saving documents without password

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

Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange

joeitaliano
User
Posts: 89
Joined: Wed Dec 29, 2010 8:50 am

saving documents without password

Post by joeitaliano »

hello

we have for some years been using another pdf product.

we are converting our code to use your activex pdf viewer sdk because your product is far better and the support you offer is superb

however we have come against a problem. the documents that we have previously created where created at the time with a password.

within the view we can open these documents using the correct password/encryption key but there are times when we need to email these documents therefore we need to remove the password dependency before we email the pdf

are there any functions in the viewer sdk that allows us to remove the password or re-save the pdf without a password

many thanks in advance

joe
User avatar
John - Tracker Supp
Site Admin
Posts: 5223
Joined: Tue Jun 29, 2004 10:34 am

Re: saving documents without password

Post by John - Tracker Supp »

Hi Joe,

if you have the 'Owner' password - you can just reset the password to a blank string '' and thus ensure there is no password - if you dont have the owner password - you cannot I am afraid modify the file contant in any way related to passwords and security etc.

See page 148 of the PDF manual for the Viewer ActiveX SDK.

HTH
If posting files to this forum - you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded - thank you.

Best regards
Tracker Support
http://www.tracker-software.com
joeitaliano
User
Posts: 89
Joined: Wed Dec 29, 2010 8:50 am

Re: saving documents without password

Post by joeitaliano »

hi john

yes i have the password as i can read it

so you are saying that i should set it to blank and then save it ?

great idea i will try that

thanks

joe
User avatar
John - Tracker Supp
Site Admin
Posts: 5223
Joined: Tue Jun 29, 2004 10:34 am

Re: saving documents without password

Post by John - Tracker Supp »

Hi Joe,

yes - I believe that will be sufficient :)

Any probs - please let us know.

Cheers
If posting files to this forum - you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded - thank you.

Best regards
Tracker Support
http://www.tracker-software.com
joeitaliano
User
Posts: 89
Joined: Wed Dec 29, 2010 8:50 am

Re: saving documents without password

Post by joeitaliano »

hi john

i appreciable your help but i cannot see in the manual where is shows how the password can be set to blank

just to make sure i am looking at the correct manual you do mean the PDF-XChange Viewer SDK

on page 148 seems in my manual to relate to some <Item> definitions

joe
User avatar
John - Tracker Supp
Site Admin
Posts: 5223
Joined: Tue Jun 29, 2004 10:34 am

Re: saving documents without password

Post by John - Tracker Supp »

Hi Joe,

seems my understanding was incorrect - you can open a file with full rights programmatically - but cannot modify the security settings currently in the Viewer SDK - so any external party (from your app) would need the password still.

If you have our PDF-Tools or PDF-XChange PRO SDK's you can do this as required (modify security) - but I am not sure if you are licensed already for these or not - or if you just have the Viewer SDK?

We are desperately trying to avoid further development on the current products to allow us to concentrate on the new release schedules for V3 of the Viewer product range - but I will discuss with the project team and see if this is not too complex or time consuming and if not - then we will add to the next release.

Will advise in the next 24 hours.
If posting files to this forum - you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded - thank you.

Best regards
Tracker Support
http://www.tracker-software.com
User avatar
Vasyl - PDF-XChange
Site Admin
Posts: 2445
Joined: Thu Jun 30, 2005 4:11 pm

Re: saving documents without password

Post by Vasyl - PDF-XChange »

Hi, joeitaliano.

We will add new feature to the next build:
ctrl.DoDocumentVerb(docId, "", "RemoveSecurity", dataIn, NULL, PXCVA_NoUI);
// if success - save document without security
ctrl.SaveDocument(docId);
Best
Regards.
PDF-XChange Co. LTD (Project Developer)

Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.