Hello all. 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.
Thanks in advance.
Matt Pangaro
LOGGING
=======================================================================
SEVERE: Error writing string : x
Feb 18, 2009 11:38:04 AM org.apache.pdfbox.pdmodel.font.PDType1Font
drawString
SEVERE: At coordinates : 509.8265 : 151.33002
Feb 18, 2009 11:38:04 AM org.apache.pdfbox.pdmodel.font.PDType1Font
drawString
SEVERE: G2 bounds : java.awt.Rectangle[x=0,y=0,width=612,height=792]
Feb 18, 2009 11:38:04 AM org.apache.pdfbox.pdmodel.font.PDType1Font
drawString
SEVERE: Font : java.awt.Font[family=Lucida Sans Typewriter,name=Lucida
Sans Typewriter fed,style=plain,size=5]
Feb 18, 2009 11:38:04 AM 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:171)
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.operator.pagedrawer.Invoke.process(Invoke.java:115)
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:88)
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)