Would you like the original pdf prior to my encrypting for comparison, and the
simplest code sample I have? I can also upload that one too...
Also debugging through my code I noticed, what seemed like if I didn't use the
initialization constructor my sets didn't change the value of the actual byte.
Ex.
AccessPermission apermission = new AccessPermission();
apermission.setCanPrint(true);
apermission.setCanModifyAnnotations(true);
apermission.setCanAssembleDocument(true);
apermission.setCanFillInForm(true);
apermission.setCanExtractForAccessibility(true);
apermission.setReadOnly();
Eclipse debugger shows:
bytes= -4
readOnly= true
while:
AccessPermission apermission = new AccessPermission(0);
apermission.setCanPrint(true);
apermission.setCanModifyAnnotations(true);
apermission.setCanAssembleDocument(true);
apermission.setCanFillInForm(true);
apermission.setCanExtractForAccessibility(true);
apermission.setReadOnly();
Eclipse debugger shows:
bytes= 1828
readOnly= true
Which looks correct to me, or least compares to what I see from iText (minus
the readOnly bit).
-----Original Message-----
From: Tilman Hausherr [mailto:[email protected]]
Sent: Thursday, March 17, 2016 2:55 PM
To: [email protected]
Subject: Re: Strange "Save As" issue with Adobe Reader 11 / DC with PDF being
encrypted by PDFBox 2 snapshot
Am 17.03.2016 um 14:21 schrieb Stahle, Patrick:
> Ok, I think I have the file uploaded to the following:
> http://wikisend.com/download/381906/tmp_10435-Technical Data Package
> BOMAnarkStampedPDFBox102259703.pdf
>
> The link is hard for me to test since I have to do this all from my phone. If
> it says not found or expired try putting in 381906 from the download page...
Thanks, it worked. I did find some weirdness: parts of the encryption object
exists twice.
659 0 obj
<<
/Filter /Standard
/V 1
/R 3
/Length 40
/P -1044
/O <92B3A580FEDD525873E5DEA425E75E1B74858FD5C6F5FED7E4C6C39C2E23D2DB>
/U <50D7EE978EFC3D29DAF239DA746CCC2228BF4E5E4E758A4164004E56FFFA0108>
>>
endobj
660 0 obj
<<
/ID [<3DADA7608D955343B3F967EB90F6801F> <1C65E39CFBD4D44099223D10A9D542B5>]
/Info 13 0 R
/Root 1 0 R
/Encrypt <<
/Filter /Standard
/V 1
/R 3
/Length 40
/P -1044
/O <92B3A580FEDD525873E5DEA425E75E1B74858FD5C6F5FED7E4C6C39C2E23D2DB>
/U <50D7EE978EFC3D29DAF239DA746CCC2228BF4E5E4E758A4164004E56FFFA0108>
>>
/Type /XRef
/Size 661
/Index [1 659]
/W [1 3 0]
/Filter /FlateDecode
/Length 1881
>>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]