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

Ross Johnson commented on PDFBOX-4283:
--------------------------------------

Excellent, thank you!

FYI, I did just notice that Chrome's built-in PDF viewer shows some vertical 
text in the upper left of the attached sample sheet, while Acrobat Reader and 
pdf.js both show a totally blank page. The rest of the pages in the original 
PDF do have and display the vertical text in Reader, so it's probably supposed 
to be there, just something else strange going on with these few pages. Anyway, 
not a PDFBox problem.

> Allowing Rectangles with additional elements
> --------------------------------------------
>
>                 Key: PDFBOX-4283
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-4283
>             Project: PDFBox
>          Issue Type: Bug
>          Components: PDModel
>    Affects Versions: 1.8.15, 2.0.11
>            Reporter: Ross Johnson
>            Assignee: Tilman Hausherr
>            Priority: Minor
>             Fix For: 1.8.16, 2.0.12, 3.0.0 PDFBox
>
>         Attachments: weird-rectangle.pdf
>
>
> I've come across some pages in a large PDF that have some additional, 
> non-numerical elements at the end of the MediaBox rectangle array, e.g. 
> {code:java}
> /MediaBox [0 0 612 792 5 0 R 6 0 R]
> {code}
> Trying to read such a structure with PDPage.getMediaBox() throws an exception 
> trying to construct the PDRectangle at [this 
> line|[https://github.com/apache/pdfbox/blob/6f18d7c4bef4d23a22dcf14c804d737d43908deb/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/common/PDRectangle.java#L131].]
> I'm not sure if this strange case should be treated as a file issue, or if 
> should be supported by slicing / shortening the COSArray prior to trying to 
> convert to floats. Acrobat Reader shows the pages without complaint.
> The original PDF was produced by Foxit PhantomPDF Printer Version 7.3.9.0803.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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

Reply via email to