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 2014/09/11 12:56:34 UTC
[jira] [Commented] (PDFBOX-2341) WriteDecodedDoc cant decrypt pdf
correctly
[ https://issues.apache.org/jira/browse/PDFBOX-2341?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14129876#comment-14129876 ]
Tilman Hausherr commented on PDFBOX-2341:
-----------------------------------------
There's a part cut off. End of correct stream:
{code}
BT
/F15 10 Tf
1 0 0 -1 0 359.34899902 Tm [<002000130016001B00010021000600170004000C001B0012>] TJ
1 0 0 -1 0 371.34899902 Tm [<00220023002400250026002700010024000300260025002800250027002900210024> 74 <0029> 18 <002A0021>] TJ
ET
Q
{code}
end of bad stream:
{code}
BT
/F15 10 Tf
1 0 0 -1 0 359.34899902 Tm [<002000130016001B00010021000600170004000C001B0012>] TJ
1 0 0 -1 0 371.34899902 Tm [<002200230024002500260027000100
{code}
However PDFDebugger shows the correct contents (which is where I got the above data). PDFReader can't render, it has the "bad" stream and throws an exception "Missing closing bracket for hex string".
> WriteDecodedDoc cant decrypt pdf correctly
> ------------------------------------------
>
> Key: PDFBOX-2341
> URL: https://issues.apache.org/jira/browse/PDFBOX-2341
> Project: PDFBox
> Issue Type: Bug
> Components: Parsing
> Affects Versions: 2.0.0
> Reporter: simon steiner
> Attachments: aes256_57.pdf
>
>
> java -jar ~/pdf-box-svn/app/target/pdfbox-app-2.0.0-SNAPSHOT.jar WriteDecodedDoc aes256_57.pdf tmp.pdf
> "Kind Regards" missing
> I guess you will ask me to use nonseq
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)