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 2018/01/13 15:36:00 UTC

[jira] [Comment Edited] (PDFBOX-4064) cm operator has 7 numbers

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

Tilman Hausherr edited comment on PDFBOX-4064 at 1/13/18 3:35 PM:
------------------------------------------------------------------

The raw content stream looks like this:
{code}
182792.02
0
0
-205740.02
0.00-50
205740.02
cm
{code}
That's a bug we've seen in other google-produced PDF documents. It happens here because of a difference in parsing in the "outer" part of PDF file and in the content stream. In the first, the "\-" is passed to the {{COSFloat}} constructor, in the second, it isn't, i.e. it considers the "\-" to be part of the next token. Because of that, {{PDFDebugger}} shows these 7 parameters. I tried being more lenient but it produced regressions so more investigation is needed.


was (Author: tilman):
The raw content stream looks like this:
{code}
182792.02
0
0
-205740.02
0.00-50
205740.02
cm
{code}
That's a bug we've seen in other google-produced PDF documents. It happens here because of a difference in parsing in the "outer" part of PDF file and in the content stream. In the first, the "\-" is passed to COSFloat constructor, in the second, it isn't, i.e. it considers the "\-" to be part of the next token. Because of that, PDFDebugger shows these 7 parameters. I tried being more lenient but it produced regressions so more investigation is needed.

> cm operator has 7 numbers
> -------------------------
>
>                 Key: PDFBOX-4064
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-4064
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Parsing
>    Affects Versions: 2.0.8
>         Environment: Windows 10
>            Reporter: savan patel
>         Attachments: CM_GOT_7_NUMBERS.pdf
>
>
> i got pdf in which one particular page there is an image which is not rendered on the position...
> i understood the problem. there is 7 numbers came before cm operator which i think is bug...
> Page 9 has an error...



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org