Save digitally signed file using IStreamwrapper

PDF-XChange Editor SDK for Developers

Moderators: TrackerSupp-Daniel, Tracker Support, Paul - Tracker Supp, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, Ivan - Tracker Software, Tracker Supp-Stefan

Forum rules
DO NOT post your license/serial key, or your activation code - these forums, and all posts within, are public and we will be forced to immediately deactivate your license.

When experiencing some errors, use the IAUX_Inst::FormatHRESULT method to see their description and include it in your post along with the error code.
chavas
User
Posts: 141
Joined: Tue Mar 15, 2016 12:21 pm

Save digitally signed file using IStreamwrapper

Post by chavas »

Hi,


When we save a digitally signed file using IStreamWrapper, the file gets corrupt. Here are the steps to reproduce this issue-
1) Open the PDF file using IStreamWrapper.
ReadFileStream(_FileMemorystream)
Dim srcIStream As IStreamWrapper = New IStreamWrapper(_FileMemorystream)
pdfctrl.OpenDocFrom(srcIStream)

2) Save the document-
Dim fs As New MemoryStream()
Dim srcIStream As IStreamWrapper = New IStreamWrapper(fs)
pdfctrl.Doc.Save(srcIStream, 1)

we are using PDF Editor SDK version-6.0.322.7 . Attached here is the screenshot of the error.

Rgds
Charu
You do not have the required permissions to view the files attached to this post.
Sasha - Tracker Dev Team
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am

Re: Save digitally signed file using IStreamwrapper

Post by Sasha - Tracker Dev Team »

Hello Charu,

Can you please make a small sample project that illustrates this behavior so we can quickly debug it and hopefully find a solution to this issue?

Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
chavas
User
Posts: 141
Joined: Tue Mar 15, 2016 12:21 pm

Re: Save digitally signed file using IStreamwrapper

Post by chavas »

Hi Alex,

It is reproducible in your FullDemo project too. I am attaching a sample pdf file. Pls run fulldemo and check the stream option. Open the attached pdf file thru stream and save it thru stream(without making any changes).

Rgds
You do not have the required permissions to view the files attached to this post.
chavas
User
Posts: 141
Joined: Tue Mar 15, 2016 12:21 pm

Re: Save digitally signed file using IStreamwrapper

Post by chavas »

Hi Alex,


Attached here is the sample project for your reference.

Rgds
Charu
You do not have the required permissions to view the files attached to this post.
Sasha - Tracker Dev Team
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am

Re: Save digitally signed file using IStreamwrapper

Post by Sasha - Tracker Dev Team »

Hello Charu,

Your sample worked nicely for me - everything was saved correctly. We'll be holding a release in a few days - please wait for it and then update and see whether the problem reoccurs.

Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ