Build .318 : Cannot open this PDF document after password has been provided

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.
Post Reply
docu-track99
User
Posts: 518
Joined: Thu Dec 06, 2007 8:13 pm

Build .318 : Cannot open this PDF document after password has been provided

Post by docu-track99 »

We have been unable to open this PDF document in the viewer .318 and your latest offering. This PDF can be opened by Adobe and Nitro PDF viewers. Is there a recommendation code wise that will allow .318 to view the PDF after the password has been provided?

Sample file has been attached and the password is JAcpa1
Attachments
16C_1101.006ACCT_V1.pdf
(219.92 KiB) Downloaded 82 times
Sasha - Tracker Dev Team
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: Build .318 : Cannot open this PDF document after password has been provided

Post by Sasha - Tracker Dev Team »

Hello docu-track99,

Please clarify how exactly are you opening the document (I mean from code)? I just tried opening it with the latest End-User Editor and it opened correctly with the password specified.

Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
docu-track99
User
Posts: 518
Joined: Thu Dec 06, 2007 8:13 pm

Re: Build .318 : Cannot open this PDF document after password has been provided

Post by docu-track99 »

This is the code we use:

Dim openParams As PDFXEdit.ICab = frmMain.pdfCtrl.Inst.CreateOpenDocParams()
Dim openParamsRoot As PDFXEdit.ICabNode = openParams.Root

Dim secPerms As Integer = CInt(PDFXEdit.PXC_SecurityPermissions.Permit_All) And Not (CInt(PDFXEdit.PXC_SecurityPermissions.Permit_Copying_And_TextGraphicsExtractions) Or
CInt(PDFXEdit.PXC_SecurityPermissions.Permit_Printing) Or CInt(PDFXEdit.PXC_SecurityPermissions.Permit_HighQualityPrinting))

openParamsRoot.SetInt("SecPermMask", secPerms)

pdfCtrl.Inst.ProgressMon = Nothing

pdfCtrl.Inst.ActiveMainFrm.OpenDocFromPath("c:\test\16C_1101.006ACCT_V1.pdf", openParams)


We even tried skipping the above and directly opening:

pdfCtrl.Inst.ActiveMainFrm.OpenDocFromPath("c:\test\16C_1101.006ACCT_V1.pdf")
Sasha - Tracker Dev Team
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: Build .318 : Cannot open this PDF document after password has been provided

Post by Sasha - Tracker Dev Team »

Hello docu-track99,

There was a fix implemented for this - it will be available from the 323 build.

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