Return-Path: X-Original-To: apmail-pdfbox-users-archive@www.apache.org Delivered-To: apmail-pdfbox-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id BE81A18642 for ; Thu, 17 Mar 2016 19:13:16 +0000 (UTC) Received: (qmail 74660 invoked by uid 500); 17 Mar 2016 19:13:11 -0000 Delivered-To: apmail-pdfbox-users-archive@pdfbox.apache.org Received: (qmail 74634 invoked by uid 500); 17 Mar 2016 19:13:11 -0000 Mailing-List: contact users-help@pdfbox.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@pdfbox.apache.org Delivered-To: mailing list users@pdfbox.apache.org Received: (qmail 74621 invoked by uid 99); 17 Mar 2016 19:13:11 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 Mar 2016 19:13:11 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 87BA31A0607 for ; Thu, 17 Mar 2016 19:13:10 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.251 X-Spam-Level: X-Spam-Status: No, score=-0.251 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, KAM_LOTSOFHASH=0.25, RCVD_IN_DNSWL_MED=-2.3, RP_MATCHES_RCVD=-0.001] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id XK5ocjLUl1tr for ; Thu, 17 Mar 2016 19:13:08 +0000 (UTC) Received: from blsmail1.bls.gov (blsmail1.bls.gov [146.142.4.14]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id D664D5F19A for ; Thu, 17 Mar 2016 19:13:07 +0000 (UTC) X-IronPort-AV: E=Sophos;i="5.24,351,1454994000"; d="scan'208";a="47323345" Received: from unknown (HELO blsmail.bls.gov) ([10.112.2.3]) by blsmail1.bls.gov with ESMTP; 17 Mar 2016 15:13:07 -0400 Received: by blsmail.bls.gov (Postfix, from userid 450) id 167472EBE8; Thu, 17 Mar 2016 15:13:07 -0400 (EDT) Received: from blsironport1.bls.gov (unknown [146.142.43.30]) by blsmail.bls.gov (Postfix) with ESMTP id E1B0C2EB78; Thu, 17 Mar 2016 15:13:06 -0400 (EDT) X-IronPort-AV: E=Sophos;i="5.24,351,1454994000"; d="scan'208";a="194788824" Received: from mailhost.psb.bls.gov (HELO PSBEXCHAT2.psb.bls.gov) ([146.142.42.73]) by blsironport1.bls.gov with ESMTP; 17 Mar 2016 15:13:06 -0400 Received: from PSBMBX5.psb.bls.gov ([146.142.41.87]) by PSBEXCHAT2.psb.bls.gov ([146.142.42.73]) with mapi; Thu, 17 Mar 2016 15:13:06 -0400 From: "Thalvayapati, Raghu - BLS CTR" To: "users@pdfbox.apache.org" CC: "dev-unsubscribe@pdfbox.apache.org" Date: Thu, 17 Mar 2016 15:13:04 -0400 Subject: RE: Strange "Save As" issue with Adobe Reader 11 / DC with PDF being encrypted by PDFBox 2 snapshot Thread-Topic: Strange "Save As" issue with Adobe Reader 11 / DC with PDF being encrypted by PDFBox 2 snapshot Thread-Index: AdF/uHoQl5L61NkSQQOSmhxLq5VcqQAJHH4AABoqDxAAAoYgkAAUE0OAAAhSv5AAEBJj0A== Message-ID: References: <4f917617dd604f57b4cdaa5de0c950b5@US194MX113.tycoelectronics.net> <56E9B62C.1060101@t-online.de> <641617db4a0349dcb2648e38c42bb185@US194MX113.tycoelectronics.net> <56EAFD6B.4080008@t-online.de> <4a8e242c0ba74f5fb3041fb285d39a7d@US194MX113.tycoelectronics.net> In-Reply-To: <4a8e242c0ba74f5fb3041fb285d39a7d@US194MX113.tycoelectronics.net> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Please un subscribe from this -----Original Message----- From: Stahle, Patrick [mailto:patrick.stahle@te.com]=20 Sent: Thursday, March 17, 2016 3:06 PM To: users@pdfbox.apache.org Subject: RE: Strange "Save As" issue with Adobe Reader 11 / DC with PDF bei= ng encrypted by PDFBox 2 snapshot 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 actua= l byte. Ex. AccessPermission apermission =3D new AccessPermission(); apermission.setCanPrint(true); apermission.setCanModifyAnnotations(true); apermission.setCanAssembleDocument(true); apermission.setCanFillInForm(true); apermission.setCanExtractForAccessibility(true); apermission.setReadOnly(); Eclipse debugger shows:=20 bytes=3D -4=20 readOnly=3D true while: AccessPermission apermission =3D new AccessPermission(0); apermission.setCanPrint(true); apermission.setCanModifyAnnotations(true); apermission.setCanAssembleDocument(true); apermission.setCanFillInForm(true); apermission.setCanExtractForAccessibility(true); apermission.setReadOnly(); Eclipse debugger shows:=20 bytes=3D 1828=20 readOnly=3D true Which looks correct to me, or least compares to what I see from iText (minu= s the readOnly bit). -----Original Message----- From: Tilman Hausherr [mailto:THausherr@t-online.de] Sent: Thursday, March 17, 2016 2:55 PM To: users@pdfbox.apache.org Subject: Re: Strange "Save As" issue with Adobe Reader 11 / DC with PDF bei= ng 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=20 > 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 p= age... Thanks, it worked. I did find some weirdness: parts of the encryption objec= t 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: users-unsubscribe@pdfbox.apache.org For additional commands, e-mail: users-help@pdfbox.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org For additional commands, e-mail: users-help@pdfbox.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org For additional commands, e-mail: users-help@pdfbox.apache.org