security will be not saved

PDF-XChange Viewer SDK for Developer's
(ActiveX and Simple DLL Versions)

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

Post Reply
edvschu
User
Posts: 127
Joined: Fri Jun 25, 2010 6:54 am

security will be not saved

Post by edvschu »

Hello,

I have a document with security settings. If the document via the tab is closed, the PDF viewer cares about saving. Security settings are stored.

Closing the form, i must handle saving document. I save the document with:

Code: Select all

PDFXCview.SaveDocument(docID, docFile, SaveMode, nFlags)
No security settings being saved. Must using PDF Tools to handle this?

Best regards,
edvschu
User avatar
Vasyl-Tracker Dev Team
Site Admin
Posts: 2353
Joined: Thu Jun 30, 2005 4:11 pm
Location: Canada

Re: security will be not saved

Post by Vasyl-Tracker Dev Team »

Hi, edvschu.

What values do you used for docFile, SaveMode, nFlags ?

Note: if you used docFile that is different to document's current source file - then new document security settings will be saved to new, different file, not to original file. Try simple:

SaveDocument(docID, null, 0, 0);

HTH
Vasyl Yaremyn
Tracker Software Products
Project Developer

Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.
edvschu
User
Posts: 127
Joined: Fri Jun 25, 2010 6:54 am

Re: security will be not saved

Post by edvschu »

Hi Vasyl,

before saving doc, i get value docfile by:

Code: Select all

PDFXCview.GetDocumentProperty(docId, "FileName", vDataOut, 0)
docFile = vDataOut
SaveMode has value 4 and nFlags = 0.

It works fine :D by:

Code: Select all

PDFXCview.SaveDocument(docId, docFile, 0, 0) or PDFXCview.SaveDocument(docId, Nothing, 0, 0)
Best regards,
edvschu
User avatar
Tracker Supp-Stefan
Site Admin
Posts: 17906
Joined: Mon Jan 12, 2009 8:07 am
Location: London
Contact:

Re: security will be not saved

Post by Tracker Supp-Stefan »

Hello edvschu,

Glad you found a working solution!

Regards,
Stefan
Post Reply