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

Tilman Hausherr commented on PDFBOX-3888:
-----------------------------------------

There is a problem when running ShowSignature.java with the attached 
[^QV_RCA1_RCA3_CPCPS_V4_11.pdf]. At the end of the output I get this:
{quote}
Signature covers whole document
Raw content length from file is 410, but internal content string in hex has 
length 33318
'>' expected at offset 41101, but got 2
{quote}
This is because raf.read() no longer reads all. It reads until the page end, 
here this is offset 8192.

> Refactor COSParser
> ------------------
>
>                 Key: PDFBOX-3888
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-3888
>             Project: PDFBox
>          Issue Type: Improvement
>          Components: Parsing
>    Affects Versions: 3.0.0 PDFBox
>            Reporter: Andreas Lehmkühler
>            Assignee: Andreas Lehmkühler
>            Priority: Major
>              Labels: parsing
>             Fix For: 3.0.0 PDFBox
>
>         Attachments: QV_RCA1_RCA3_CPCPS_V4_11.pdf
>
>
> The COSParser contains a lot of stuff which is more or less hard to 
> understand/maintain. I'm going to refactor some of the code as follows
> - separate the bruteforce stuff maybe in its own class
> - separate the parsing of the xref data maybe in its own class
> - lay the foundation for the on demand parser



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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to