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

Andreas Lehmkühler resolved PDFBOX-428.
---------------------------------------

       Resolution: Fixed
    Fix Version/s: 0.8.0-incubator

The Exception occurs if an empty DashPatterns is used to create a BasicStroke. 
I've provided a patch and with version 769148 everything works fine.

> Error Printing: dash lengths all zero
> -------------------------------------
>
>                 Key: PDFBOX-428
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-428
>             Project: PDFBox
>          Issue Type: Bug
>          Components: PDModel
>    Affects Versions: 0.8.0-incubator
>         Environment: Windows XP
> java 1.4.2_07, 1.5.0_17, 1.6.0_11
>            Reporter: Matthew Pangaro
>             Fix For: 0.8.0-incubator
>
>
> On attempting to print some of my PDFs, I get the exception included below. 
> This causes an unknown host of errors in rendering the page for printing. It 
> also seems to interrupt the broader print interaction, since page rotation 
> fails after this. I'm working on how to debug this and learn how to help with 
> fixing, but for now I'm just trying to report what I see. Sample file is the 
> same as from PDFBOX-427.
> Feb 18, 2009 1:22:23 PM org.apache.pdfbox.util.PDFStreamEngine processOperator
> WARNING: java.lang.IllegalArgumentException: dash lengths all zero
>  at
> java.awt.BasicStroke.<init>(BasicStroke.java:207)
> org.apache.pdfbox.util.operator.pagedrawer.SetLineDashPattern.process(SetLineDashPattern.java:56)
> org.apache.pdfbox.util.PDFStreamEngine.processOperator(PDFStreamEngine.java:491)
> org.apache.pdfbox.util.PDFStreamEngine.processSubStream(PDFStreamEngine.java:214)
> org.apache.pdfbox.util.PDFStreamEngine.processStream(PDFStreamEngine.java:173)
> org.apache.pdfbox.pdfviewer.PageDrawer.drawPage(PageDrawer.java:89)
> org.apache.pdfbox.pdmodel.PDPage.print(PDPage.java:764)
> sun.print.RasterPrinterJob.printPage(RasterPrinterJob.java:1512)
> sun.print.RasterPrinterJob.print(RasterPrinterJob.java:1110)
> sun.print.RasterPrinterJob.print(RasterPrinterJob.java:1011)
> org.apache.pdfbox.pdmodel.PDDocument.silentPrint(PDDocument.java:886)
> TestPdfPrintOptions.main(TestPdfPrintOptions.java:34)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to