You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Pierre Huttin (JIRA)" <ji...@apache.org> on 2014/11/06 10:21:34 UTC

[jira] [Commented] (PDFBOX-1133) Refactoring PDFParser.parseHeader() method

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

Pierre Huttin commented on PDFBOX-1133:
---------------------------------------

I'm agree with the fact an FDF stamp appearance stream is not a real "PDF file", but it could be a complete COSDocument, like in the sample I've attached to this issue. The problem here we are missing in PDFBox a real COSDocument parser, usually it's when we use dynamic stamp as the standards provided by adobe reader like: Approved by, Reviewed+ date, etc.. and also if you add some custom stamps Adobe Reader request to import them as PDF, and finally inclue the content of the pdf file into the appearance attribute of the stamp.

> Refactoring PDFParser.parseHeader() method
> ------------------------------------------
>
>                 Key: PDFBOX-1133
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-1133
>             Project: PDFBox
>          Issue Type: Improvement
>          Components: Parsing
>    Affects Versions: 1.7.0
>            Reporter: Pierre Huttin
>            Priority: Minor
>         Attachments: PDFParser.java.patch, sample.cdata_decoded.cos, sample.xfdf
>
>
> Re-factoring the method parseHeader() method to support an extra header declaration : "%CSO-".
> This header is foundable into some XFDF document, when the stamp appearance stream is define as complete COSDocument. This special document use "%CSO-1.0" as header declaration.
> So I purpose to enhance the PDFReader to be able to parse this kind of document.
> Pierre Huttin



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)