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 2015/10/30 20:50:27 UTC
[jira] [Commented] (PDFBOX-3072) Allow missing page type
[ https://issues.apache.org/jira/browse/PDFBOX-3072?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14983174#comment-14983174 ]
Tilman Hausherr commented on PDFBOX-3072:
-----------------------------------------
I agree with that one. It is analog to what Andreas did for the Catalog (PDFBOX-3060).
> Allow missing page type
> -----------------------
>
> Key: PDFBOX-3072
> URL: https://issues.apache.org/jira/browse/PDFBOX-3072
> Project: PDFBox
> Issue Type: Improvement
> Components: PDModel
> Affects Versions: 2.0.0
> Reporter: Andrea Vacondio
> Priority: Minor
> Attachments: relaxed_page_type.diff
>
>
> I came across a PDF document with missing type in the page dictionary. According to the spec that's required and PDFBox has a check and throws an IllegalState if the page is requested to the PDPageTree. Acrobat and other libs handle the same doc so I think the constraint could be relaxed a little, consider valid if type is Page or missing, and consider invalid if it's something else, what do you think?
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org