pdfbox-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rix, Brad" <Brad....@flatironssolutions.com>
Subject PDFImageWriter.writeImage -- conversion of text does not appear correct
Date Thu, 03 Oct 2013 20:13:09 GMT
I am having a problem where PDFImageWriter writeImage method is generating invalid output.
    I have included the input PDF as well as sample of the section where the input/output
shows the error.

The Input PDF has a blank between 10.4 and "Relay".   The output JPG generates a bad character
upon ouptut.   I also included the log4j output, but I do not see any errors in the logs,
but the character is wrong in the log as well.

Is this a bug in PDF Box or is there something that I am doing incorrectly?     I can attach
the one page PDF (only 143K as well if that helps someone look at it).

Input  PDF.
[cid:image001.png@01CEC041.71486460]

Ouput from: PDFImageWriter  writeImage method.
Ouptut from [cid:image002.png@01CEC041.71486460]

2013-10-03 15:46:55,544 63952 [qtp1963463-18] DEBUG org.apache.pdfbox.util.PDFStreamEngine
 - processing substream token: PDFOperator{Tc}
2013-10-03 15:46:55,544 63952 [qtp1963463-18] DEBUG org.apache.pdfbox.util.PDFStreamEngine
 - processing substream token: COSString{10.4[1]}   ---> the character following 10.4 is
^B
2013-10-03 15:46:55,544 63952 [qtp1963463-18] DEBUG org.apache.pdfbox.util.PDFStreamEngine
 - processing substream token: PDFOperator{Tj}
2013-10-03 15:46:55,545 63953 [qtp1963463-18] DEBUG org.apache.pdfbox.util.PDFStreamEngine
 - processing substream token: COSName{F7}
2013-10-03 15:46:55,546 63954 [qtp1963463-18] DEBUG org.apache.pdfbox.util.PDFStreamEngine
 - processing substream token: COSInt{1}
2013-10-03 15:46:55,547 63955 [qtp1963463-18] DEBUG org.apache.pdfbox.util.PDFStreamEngine
 - processing substream token: PDFOperator{Tf}
2013-10-03 15:46:55,547 63955 [qtp1963463-18] DEBUG org.apache.pdfbox.util.PDFStreamEngine
 - processing substream token: COSFloat{8.5}
2013-10-03 15:46:55,547 63955 [qtp1963463-18] DEBUG org.apache.pdfbox.util.PDFStreamEngine
 - processing substream token: COSInt{0}
2013-10-03 15:46:55,547 63955 [qtp1963463-18] DEBUG org.apache.pdfbox.util.PDFStreamEngine
 - processing substream token: COSInt{0}
2013-10-03 15:46:55,548 63956 [qtp1963463-18] DEBUG org.apache.pdfbox.util.PDFStreamEngine
 - processing substream token: COSFloat{8.5}
2013-10-03 15:46:55,548 63956 [qtp1963463-18] DEBUG org.apache.pdfbox.util.PDFStreamEngine
 - processing substream token: COSFloat{100.5027}
2013-10-03 15:46:55,548 63956 [qtp1963463-18] DEBUG org.apache.pdfbox.util.PDFStreamEngine
 - processing substream token: COSFloat{317.772}
2013-10-03 15:46:55,548 63956 [qtp1963463-18] DEBUG org.apache.pdfbox.util.PDFStreamEngine
 - processing substream token: PDFOperator{Tm}
2013-10-03 15:46:55,548 63956 [qtp1963463-18] DEBUG org.apache.pdfbox.util.PDFStreamEngine
 - processing substream token: COSString{Relay }


Thanks,


[cid:image005.png@01CEC042.AFF58200]<http://www.flatironssolutions.com/>

Brad Rix
Technical Lead
Office: 303.542.2172 | Mobile: 303.915.2771
Skype: brad.rix | Google IM: Bradford.Rix@gmail.com
Brad.Rix@FlatironsSolutions.com | http://www.flatironssolutions.com/
Tw: @FlatironsSols<https://twitter.com/FlatironsSols> | Fb: https://www.facebook.com/FlatironsSolutions




Mime
  • Unnamed multipart/related (inline, None, 0 bytes)
View raw message