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

ASF subversion and git services commented on PDFBOX-3468:
---------------------------------------------------------

Commit 1757212 from [~tilman] in branch 'pdfbox/trunk'
[ https://svn.apache.org/r1757212 ]

PDFBOX-3468: downgrade dash error log to warning

> ERROR: dash lengths all zero, ignored
> -------------------------------------
>
>                 Key: PDFBOX-3468
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-3468
>             Project: PDFBox
>          Issue Type: Wish
>          Components: Parsing
>    Affects Versions: 2.0.2
>            Reporter: Daniel Persson
>            Priority: Trivial
>              Labels: log-level
>   Original Estimate: 10m
>  Remaining Estimate: 10m
>
> On Friday our production log system alerted us that we had an error ("dash 
> lengths all zero, ignored"). We investigated and found that the PDF processed 
> gave an error when opening it up in Adobe Reader as well but the page looked 
> fine and was processed fine as well. But still we got this error. For us this 
> is a false positive, even though a line pattern should not be empty the page 
> isn't broken or can't be viewed so why handle it as an error. 
> My suggestion is to handle the errors in the code below as an information 
> logging or warning.
> In our case we got an update 1 hour later with a PDF that didn't have the 
> empty line dash pattern.
> {code:title=SetLineDashPattern.java|borderStyle=solid}
>         for (COSBase base : dashArray)
>         {
>             if (base instanceof COSNumber)
>             {
>                 COSNumber num = (COSNumber) base;
>                 if (num.floatValue() != 0)
>                 {
>                     allZero = false;
>                     break;
>                 }
>             }
>             else
>             {
>                 LOG.error("dash array has non number element " + base + ", 
> ignored");
>                 dashArray = new COSArray();
>                 break;
>             }
>         }
>         if (dashArray.size() > 0 && allZero)
>         {
>             LOG.error("dash lengths all zero, ignored");
>             dashArray = new COSArray();
>         }
> {code}



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

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

Reply via email to