Details
Description
I'm getting the error stack below when printing out a test PDF from my application. Since the error is coming from within the sun.awt stuff, I'm somewhat at a loss for how to debug. This doesn't seem to stop the PDF from rendering/printing, but the fonts on the page do look messed up, so I'm trying to work through stuff and see if there's anything I can fix/improve/patch. Another thing worth noting is that this exception occurs in 1.4.2_07 (don't ask) and 1.5.0_17, but not 1.6.0_x. Also worth noting is that even with the 1.6 not giving the error, the rendering doesn't improve, so maybe this isn't something I don't need to worry about.
Stack trace below and a sample PDF will be attached after creating the issue.
SEVERE: Error writing string :
Feb 18, 2009 1:22:24 PM org.apache.pdfbox.pdmodel.font.PDType1Font drawString
SEVERE: At coordinates : 609.93475 : 778.9607
Feb 18, 2009 1:22:24 PM org.apache.pdfbox.pdmodel.font.PDType1Font drawString
SEVERE: G2 bounds : java.awt.Rectangle[x=0,y=0,width=612,height=792]
Feb 18, 2009 1:22:24 PM org.apache.pdfbox.pdmodel.font.PDType1Font drawString
SEVERE: Font : java.awt.Font[family=Times New Roman,name=Times New Roman,style=plain,size=1]
Feb 18, 2009 1:22:24 PM org.apache.pdfbox.pdmodel.font.PDType1Font drawString
SEVERE: With exception : 1
java.lang.ArrayIndexOutOfBoundsException: 1
at sun.awt.windows.WPrinterJob.setTextColor(WPrinterJob.java:946)
at sun.awt.windows.WPathGraphics.drawString(WPathGraphics.java:376)
at org.apache.pdfbox.pdmodel.font.PDType1Font.drawString(PDType1Font.java:232)
at org.apache.pdfbox.pdfviewer.PageDrawer.processTextPosition(PageDrawer.java:172)
at org.apache.pdfbox.util.PDFStreamEngine.processEncodedText(PDFStreamEngine.java:442)
at org.apache.pdfbox.util.operator.ShowText.process(ShowText.java:50)
at org.apache.pdfbox.util.PDFStreamEngine.processOperator(PDFStreamEngine.java:491)
at org.apache.pdfbox.util.PDFStreamEngine.processSubStream(PDFStreamEngine.java:214)
at org.apache.pdfbox.util.PDFStreamEngine.processStream(PDFStreamEngine.java:173)
at org.apache.pdfbox.pdfviewer.PageDrawer.drawPage(PageDrawer.java:89)
at org.apache.pdfbox.pdmodel.PDPage.print(PDPage.java:764)
at sun.print.RasterPrinterJob.printPage(RasterPrinterJob.java:1538)
at sun.print.RasterPrinterJob.print(RasterPrinterJob.java:1110)
at sun.print.RasterPrinterJob.print(RasterPrinterJob.java:1011)
at org.apache.pdfbox.pdmodel.PDDocument.silentPrint(PDDocument.java:886)
at TestPdfPrintOptions.main(TestPdfPrintOptions.java:34)
Attachments
Attachments
Issue Links
- relates to
-
PDFBOX-428 Error Printing: dash lengths all zero
- Closed
-
PDFBOX-1742 type1CFont font with null encoding
- Closed