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

Embedded Fonts not drawn on Pages BufferedImage

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Duplicate
    • 1.8.3
    • None
    • Rendering
    • None
    • Windows 7 professional, Spring Tool Suite Version 3.2.0.RELEASE java version 1.7.0.45

    Description

      When converting a PDF Page to image PDPage,convertToImage. Some fonts are not transferring to the bufferedImage canvas.

      for(int index = 0; index < workDoc.getNumberOfPages(); index++){
      PDPage workPage = (PDPage) workDoc.getDocumentCatalog().getAllPages().get(index);
      BufferedImage workImage = workPage.convertToImage();
      ImageIO.write(workImage, "PNG", new File(baseFolder + "PdfBoxImage_" + index + ".png"));
      }

      Attachments

        1. PdfBoxImage_1.png
          24 kB
          Don Jensen
        2. PdfBoxImage_0.png
          23 kB
          Don Jensen
        3. pdfbox-1809-image.jpg
          38 kB
          Ronald Ray
        4. pdfbox-1809.pdf
          18 kB
          Ronald Ray
        5. 01-0001-01-rep-01-good.png
          748 kB
          Tilman Hausherr
        6. 01-0001-01-rep-01.png
          751 kB
          Tilman Hausherr
        7. 01-0001-01-REP.pdf
          61 kB
          Don Jensen

        Issue Links

          Activity

            People

              Unassigned Unassigned
              shondu222 Don Jensen
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: