Uploaded image for project: 'PDFBox'
  1. PDFBox
  2. PDFBOX-478

PDFToImage don't render text in iText generated PDF

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.8.0-incubator
    • Utilities
    • None
    • Ubuntu 8.10 with resticted fonts extras, jdk 1.6.0.7, itext 2.1.4

    Description

      When try to PDFToImage a pdf with text added with the iText library, the result image don't contain the text.

      I debugged a little the pdfbox, and found that the text is extracted well in the class org/apache/pdfbox/pdmodel/font/PDType1Font.java the String is drawed in the graphics as should be ( i think so )

      If i write the BufferedImage in PDPage convertToImage() the image don't contains anything. i belive the issue is that the graphics objects where the PDType1Font1 draws the string is not the "same", or something related.

      a PDF to test can be found at http://itext.ugent.be/library/com/lowagie/examples/general/HelloWorldPdf.pdf

      Thanks.

      Attachments

        Activity

          People

            Unassigned Unassigned
            svasquez Sebastian Ortiz V
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 1h
                1h
                Remaining:
                Remaining Estimate - 1h
                1h
                Logged:
                Time Spent - Not Specified
                Not Specified