You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Tilman Hausherr (Jira)" <ji...@apache.org> on 2021/04/11 09:10:00 UTC

[jira] [Closed] (PDFBOX-5144) Unable to combine file(s) in Adobe Acrobat Reader for PDFBox generated PDF

     [ https://issues.apache.org/jira/browse/PDFBOX-5144?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tilman Hausherr closed PDFBOX-5144.
-----------------------------------
    Resolution: Cannot Reproduce

Closing because no activity.

> Unable to combine file(s) in Adobe Acrobat Reader for PDFBox generated PDF
> --------------------------------------------------------------------------
>
>                 Key: PDFBOX-5144
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-5144
>             Project: PDFBox
>          Issue Type: Task
>            Reporter: Datta
>            Priority: Blocker
>         Attachments: CarePlanSummary_123_08272020 (1).pdf, CarePlanSummary_373539_03192021 (2).pdf, CarePlanSummary_373539_03192021 (2).pdf, CarePlanSummary_373539_03192021 (3).pdf, CarePlanSummary_373539_03192021 (3).pdf, CarePlanSummary_48384_05182020 (3).pdf, Merged.pdf
>
>
> Hi
> One of our client is stuck with an problem. PDF(s) generated are not able combine file(s) in adobe.Ex;- pdf1 and pdf2 are generated and when we try to combine file(s)(Adobe acrobat reader) it is giving password protected dialog box. After entering owner password it is not working.
> As per code 
> *public* StandardProtectionPolicy getDefaultProtectionPolicy() {
>     *final* *int* keyLength = 256;
>  
>     *final* AccessPermission accessPermission = *new* AccessPermission();
>     // disable printing, everything else is allowed
>     accessPermission.setCanPrint(*true*);
>     accessPermission.setCanAssembleDocument(*false*);
>     accessPermission.setCanExtractContent(*false*);
>     accessPermission.setCanModify(*false*);
>     accessPermission.setCanModifyAnnotations(*false*);
>     accessPermission.setCanExtractForAccessibility(*true*);
>     /**
>      * accessPermission.setReadOnly();
>      */
>     *final* StandardProtectionPolicy policy = *new* StandardProtectionPolicy("XYZ",
>         "", accessPermission);
>     policy.setEncryptionKeyLength(keyLength);
>     policy.setPreferAES(*true*);
>     policy.setPermissions(accessPermission);
>     *return* policy;
>   }
> Just want to know the problem is due to Access permission? 
> Also any alternate options to unblock to combine file(s). 
> Much appreciated if I get solution on the same.
> Thanks
> Datta
> !Screenshot 2021-03-30 at 10.46.59 AM.png!



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org