[ 
https://issues.apache.org/jira/browse/PDFBOX-5866?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17872177#comment-17872177
 ] 

Tilman Hausherr commented on PDFBOX-5866:
-----------------------------------------

Comparison between this file and an AES256 file that works. This file:
{noformat}
2 0 obj
<<
/CF
<<
/StdCF
<<
/AuthEvent /DocOpen
/CFM /AESV3
/Length 32
>>
>>
/Filter /Standard
/V 5
/R 5
/Length 256
/P -1028
/O 
<4488A2922FDC84B1BE9BAB3BC900CCE1F6EF3C302EC20727DC5F65CD349CE8EF34134AD0247ED26AD49B0FC1F92419DA>
/OE 
<297D089D0887DEE6603C1CD9C45B52C4DE7639CD80470EB549C0482D8835558D4B3305932DACC046D616A984EA3075D7>
/U 
<267627EA5F73FAE7C08D86D43A1A5D29091CB448B235BA4294754422BB70EF9F6CEA3117D2189B2EAD3E9E41E3C79093>
/UE 
<2DD20030A67CE482F819E4214352D31EA69107102ACAE08734035A35950BE6118062F90C5FA3CDE84165242873F6A35B>
/Perms <9D7AAB8A1B52D3C63AC815ED000E2885C74740CB6EB3EC6BA59CD17E54BDE7EC>
/StmF /StdCF
/StrF /StdCF
>>
endobj
{noformat}

file that works:

{noformat}
5 0 obj
<<
/Filter /Standard
/V 5
/R 5
/Length 256
/P -64
/O 
<B91ECC1D3889CBEC29C14220BDE4D678B227CE29757BCC787161B939743867716BEC51313B63D8D82BDC4D91F3D8FDC2>
/U 
<0D48CD96A1A3859C5F361908A235ABC9B2D773C72C9360667152CAD0D9B2A9133BF852013252C5DDA0848D8163C20C9D>
/OE <CD7C32133371CAD11BB4F8B53934F229D8483064276B8872DD39230605DDDDBA>
/UE <D91E0E55F6A11E21340E1AEC716232CECE8615170B811F4DF6D20ED6D12C0B36>
/Perms <644CB0197232270E265A984BB5D70886>
/EncryptMetadata true
/CF <</StdCF <</AuthEvent /DocOpen /CFM /AESV3 /Length 32>>>>
/StmF /StdCF /StrF /StdCF
>>
endobj
13 0 obj
<< /Nums [0 << /S /D >>
] >>

endobj
{noformat}


> Unable to load  password protected pdf
> --------------------------------------
>
>                 Key: PDFBOX-5866
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-5866
>             Project: PDFBox
>          Issue Type: Bug
>            Reporter: Charles D
>            Priority: Major
>         Attachments: pdfbox_invalid_pwd.pdf
>
>
> PDFBox is unable to load password protected pdf. Error is "Invalid AES key 
> length: 48 bytes."
> Adobe and qpdf are able to successfully open it , but many other applications 
> I've tried are unable to do so.
> The pdf is created by a third party scanner so unfortunately we have no 
> insight/control over its creation. 
> [^pdfbox_invalid_pwd.pdf] . Please let me know the best way to provide the 
> password. 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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

Reply via email to