Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.0
    • 2.0.0
    • None
    • None
    • win7 64 java 1.7.0_17

    Description

      I build maven repo for pdfbox 2.0 version from git.
      I need convert pdf to image.
      In pdf used font Arial from windows but i get not readable image.

      Attachments

        1. 1 (3)-01.png
          204 kB
          Tilman Hausherr
        2. 1 (3).pdf
          61 kB
          Pro
        3. 1_1.png
          9 kB
          Pro
        4. _1 (3)-01.png
          203 kB
          Tilman Hausherr

        Issue Links

        Activity

          bas Bas Zoetekouw added a comment -

          For those of you wondering RenderUtil seems to be deleted from 2.0.0 API and new instance of PDFRenderer should be used to renderImage from PDF document.

          bas Bas Zoetekouw added a comment - For those of you wondering RenderUtil seems to be deleted from 2.0.0 API and new instance of PDFRenderer should be used to renderImage from PDF document.

          The rendering works again after solving PDFBOX-1718.

          Thanks for the report!

          lehmi Andreas LehmkĂĽhler added a comment - The rendering works again after solving PDFBOX-1718 . Thanks for the report!

          Image rendered before making the changes of PDFBOX-1672. The "O" in "Organization" is correct.

          tilman Tilman Hausherr added a comment - Image rendered before making the changes of PDFBOX-1672 . The "O" in "Organization" is correct.

          Look at the "O" of "Organization". This image was rendered after making the changes described in PDFBOX-1672.

          tilman Tilman Hausherr added a comment - Look at the "O" of "Organization". This image was rendered after making the changes described in PDFBOX-1672 .

          Seems to be the same issue as described in PDFBOX-1718.

          lehmi Andreas LehmkĂĽhler added a comment - Seems to be the same issue as described in PDFBOX-1718 .
          pro85 Pro added a comment -

          Missing en characters in img.

          pro85 Pro added a comment - Missing en characters in img.
          pro85 Pro added a comment -

          After updating to latest svn revision 1523961 in image file missing en characters.

          pro85 Pro added a comment - After updating to latest svn revision 1523961 in image file missing en characters.
          pro85 Pro added a comment - - edited

          I check version of pdfbox used. it's real was mistake on my side.
          Grails use ivy cache and don't update from new local maven repo.

          All works great. Thanks for help.

          pro85 Pro added a comment - - edited I check version of pdfbox used. it's real was mistake on my side. Grails use ivy cache and don't update from new local maven repo. All works great. Thanks for help.
          pro85 Pro added a comment -

          Ok. I will check this tomorrow and write answer.
          Thanks for help.

          pro85 Pro added a comment - Ok. I will check this tomorrow and write answer. Thanks for help.

          @Pro: if page.convertToImage() compiles, then you have an older version. If RenderUtil.convertToImage(page) compiles, then you have the new version.

          tilman Tilman Hausherr added a comment - @Pro: if page.convertToImage() compiles, then you have an older version. If RenderUtil.convertToImage(page) compiles, then you have the new version.
          pro85 Pro added a comment -

          @Andreas LehmkĂĽhler: I use latest version from svn 1515178.
          I install to my local maven repo and use it in my grails project.

          pro85 Pro added a comment - @Andreas LehmkĂĽhler: I use latest version from svn 1515178. I install to my local maven repo and use it in my grails project.

          BIG sorry. After downloading the whole project again, I realized that my (separate) test program was using the 1.8.2 version. I'll test and then correct/delete my comments where applicable.

          tilman Tilman Hausherr added a comment - BIG sorry. After downloading the whole project again, I realized that my (separate) test program was using the 1.8.2 version. I'll test and then correct/delete my comments where applicable.

          @Tilman: you are not using the latest trunk version if you still got that warnings

          @Pro: Are you sure that you got the newest version and recompiled the code?

          lehmi Andreas LehmkĂĽhler added a comment - @Tilman: you are not using the latest trunk version if you still got that warnings @Pro: Are you sure that you got the newest version and recompiled the code?
          pro85 Pro added a comment -

          I build pdfbox from svn too. The same bug.
          Maybe you use 1.8.2 version of pdfbox?
          On my env if i use 1.8.2 version i get message
          INFO font.PDCIDFontType2Font - Can't read the embedded font PSGALG+ArialMT
          INFO font.PDCIDFontType2Font - Using font Arial instead
          and result is OK(becouse used system font Arial).
          If i use 2.0.0-SNAPSHOT from svn or git i don't get INFO messages "Can't read the embedded font MRJBSU+ArialMT" but get result like attach 1_1.png

          pro85 Pro added a comment - I build pdfbox from svn too. The same bug. Maybe you use 1.8.2 version of pdfbox? On my env if i use 1.8.2 version i get message INFO font.PDCIDFontType2Font - Can't read the embedded font PSGALG+ArialMT INFO font.PDCIDFontType2Font - Using font Arial instead and result is OK(becouse used system font Arial). If i use 2.0.0-SNAPSHOT from svn or git i don't get INFO messages "Can't read the embedded font MRJBSU+ArialMT" but get result like attach 1_1.png
          tilman Tilman Hausherr added a comment - - edited

          It just worked fine for me (i.e. the text is now there), but I used svn. Either the git mirror isn't up to date, or you made some mistake. (previous error msg deleted as I was using the wrong version)

          tilman Tilman Hausherr added a comment - - edited It just worked fine for me (i.e. the text is now there), but I used svn. Either the git mirror isn't up to date, or you made some mistake. (previous error msg deleted as I was using the wrong version)
          pro85 Pro added a comment -

          Today i update project from git repo. I get the same bug. Where i wrong?

          pro85 Pro added a comment - Today i update project from git repo. I get the same bug. Where i wrong?

          After solving PDFBOX-490 there was still an encoding issue. I fixed that in revision 1515178.

          Thanks for the report

          lehmi Andreas LehmkĂĽhler added a comment - After solving PDFBOX-490 there was still an encoding issue. I fixed that in revision 1515178. Thanks for the report
          pro85 Pro added a comment -

          In 1.8.2 i get info:
          INFO font.PDCIDFontType2Font - Can't read the embedded font PSGALG+ArialMT
          INFO font.PDCIDFontType2Font - Using font Arial instead
          That used system font Arial.
          Maybe can any write code how define use specified ttf(font in my project as resource) file to render image in convertToImage method?

          pro85 Pro added a comment - In 1.8.2 i get info: INFO font.PDCIDFontType2Font - Can't read the embedded font PSGALG+ArialMT INFO font.PDCIDFontType2Font - Using font Arial instead That used system font Arial. Maybe can any write code how define use specified ttf(font in my project as resource) file to render image in convertToImage method?
          pro85 Pro added a comment -

          Result png.

          pro85 Pro added a comment - Result png.
          pro85 Pro added a comment -

          Pdf to convert

          pro85 Pro added a comment - Pdf to convert

          People

            lehmi Andreas LehmkĂĽhler
            pro85 Pro
            Votes:
            0 Vote for this issue
            Watchers:
            Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment