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

Michael Klink edited comment on PDFBOX-5383 at 3/2/22, 6:11 PM:
----------------------------------------------------------------

{quote}
The PDF segment is
{noformat}
-6.6781512E7 -2226.299 m
-6.6781508E7 -2225.888 -6.6781504E7 -2225.346 -6.6781504E7 -2224.675 c
{noformat}
{quote}

So the PDF document is broken after all, the PDF format does not support 
exponential forms for numbers.


{panel:title=ISO 32000-2 section 7.3.3 "Numeric objects"}
A real value shall be written as one or more decimal digits with an optional 
sign and a leading, trailing, or embedded PERIOD (2Eh) (decimal point).
[...]
A PDF writer shall not use the PostScript language syntax for numbers with 
non-decimal radices (such as 16#FFFE) or in exponential format (such as 
6.02E23).
{panel}

----

Ah, I have to correct myself, not the PDF document is invalid but the quote 
from it. Actually those lines are:

{noformat}
-66781511.559 -2226.299 m
-66781508.692 -2225.888 -66781505.846 -2225.346 -66781503.029 -2224.675 c 
{noformat}

Here the numbers are valid PDF numbers.


was (Author: mkl):
{quote}
The PDF segment is
{noformat}
-6.6781512E7 -2226.299 m
-6.6781508E7 -2225.888 -6.6781504E7 -2225.346 -6.6781504E7 -2224.675 c
{noformat}
{quote}

So the PDF document is broken after all, the PDF format does not support 
exponential forms for numbers.


{panel:title=ISO 32000-2 section 7.3.3 "Numeric objects"}
A real value shall be written as one or more decimal digits with an optional 
sign and a leading, trailing, or embedded PERIOD (2Eh) (decimal point).
[...]
A PDF writer shall not use the PostScript language syntax for numbers with 
non-decimal radices (such as 16#FFFE) or in exponential format (such as 
6.02E23).
{panel}


> JAVA program Crashes
> --------------------
>
>                 Key: PDFBOX-5383
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-5383
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Rendering
>    Affects Versions: 2.0.24, 2.0.25, 3.0.0 PDFBox
>            Reporter: krishna prasad
>            Priority: Major
>              Labels: crash, jdk8
>         Attachments: crash.pdf
>
>
> I am trying to convert the PDF into images by using render. It hangs up the 
> program.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

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

Reply via email to