[ 
https://issues.apache.org/jira/browse/PDFBOX-2513?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ralf Hauser updated PDFBOX-2513:
--------------------------------
    Attachment: patch2513b.txt

patch2513b.txt improves error message 4 since it is the least specific one, so 
if we now the page-number I guess we should also disclose it (if we have an 
undefined error number "-1", at least say where it happened ;) ).

The result is then:
 2 : Unknown graphics error, EOL encountered in white run. for Image entry 
'Img329'
2 : Unknown graphics error, Stream was not read - filter: CCITTFaxDecode for 
Image entry 'Img329'
2 : Unknown graphics error, Stream was not read - filter: CCITTFaxDecode for 
Image entry 'Img329'
-1 : Unknown error, Unable to check the ContentStream : Stream was not read - 
filter: CCITTFaxDecode - on page 2
2 : Unknown graphics error, Stream was not read - filter: CCITTFaxDecode for 
Image entry 'Img329'
2 : Unknown graphics error, Stream was not read - filter: CCITTFaxDecode for 
Image entry 'Img329'

In the same vein, we should also mention the page number in 
.ResourcesValidationProcess.validateXObjects() .


> false negative? RuntimeException: EOL encountered in white run
> --------------------------------------------------------------
>
>                 Key: PDFBOX-2513
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-2513
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Preflight
>    Affects Versions: 2.0.0
>         Environment: java7 deb7
>            Reporter: Ralf Hauser
>              Labels: CCITTFaxDecode
>         Attachments: 2513.pdf, AcrobatXI-Preflight.png, 
> page3-AdobeReader.png, page3-MacPreview.png, patch2513.txt, patch2513a.txt, 
> patch2513b.txt
>
>
> java.lang.RuntimeException: EOL encountered in white run.
>       at 
> org.apache.pdfbox.filter.ccitt.TIFFFaxDecoder.decodeWhiteCodeWord(TIFFFaxDecoder.java:1168)
>       at 
> org.apache.pdfbox.filter.ccitt.TIFFFaxDecoder.decodeT6(TIFFFaxDecoder.java:980)
>       at 
> org.apache.pdfbox.filter.CCITTFaxFilter.decode(CCITTFaxFilter.java:95)
>       at org.apache.pdfbox.cos.COSStream.doDecode(COSStream.java:386)
>       at org.apache.pdfbox.cos.COSStream.doDecode(COSStream.java:335)
>       at org.apache.pdfbox.cos.COSStream.getDecodeResult(COSStream.java:290)
>       at 
> org.apache.pdfbox.pdmodel.graphics.image.PDImageXObject.<init>(PDImageXObject.java:115)
>       at 
> org.apache.pdfbox.pdmodel.graphics.PDXObject.createXObject(PDXObject.java:65)
>       at 
> org.apache.pdfbox.preflight.process.reflect.ResourcesValidationProcess.validateXObjects(ResourcesValidationProcess.java:285)
>       at 
> org.apache.pdfbox.preflight.process.reflect.ResourcesValidationProcess.validate(ResourcesValidationProcess.java:80)
>       at 
> org.apache.pdfbox.preflight.utils.ContextHelper.callValidation(ContextHelper.java:81)
>       at 
> org.apache.pdfbox.preflight.utils.ContextHelper.validateElement(ContextHelper.java:54)
>       at 
> org.apache.pdfbox.preflight.process.reflect.SinglePageValidationProcess.validateResources(SinglePageValidationProcess.java:167)
>       at 
> org.apache.pdfbox.preflight.process.reflect.SinglePageValidationProcess.validate(SinglePageValidationProcess.java:82)
>       at 
> org.apache.pdfbox.preflight.utils.ContextHelper.callValidation(ContextHelper.java:81)
>       at 
> org.apache.pdfbox.preflight.utils.ContextHelper.validateElement(ContextHelper.java:54)
>       at 
> org.apache.pdfbox.preflight.process.PageTreeValidationProcess.validatePage(PageTreeValidationProcess.java:56)
>       at 
> org.apache.pdfbox.preflight.process.PageTreeValidationProcess.validate(PageTreeValidationProcess.java:45)
>       at 
> org.apache.pdfbox.preflight.utils.ContextHelper.callValidation(ContextHelper.java:81)
>       at 
> org.apache.pdfbox.preflight.utils.ContextHelper.validateElement(ContextHelper.java:118)
>       at 
> org.apache.pdfbox.preflight.PreflightDocument.validate(PreflightDocument.java:168)



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

Reply via email to