ICEpdf
  1. ICEpdf
  2. PDF-795

text in block doesn't render but other PDF reader can

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 5.0.5, 5.0.6, 5.0.7
    • Fix Version/s: 6.4
    • Component/s: Core/Parsing
    • Labels:
      None
    • Environment:
      Windows 7, RedHat 5.7
      java 1.7

      Description

      I have a very simple pdf file as attached. I can see the text "squre, circle, .." in each block with other PDF reader(foxit), but I cannot see them if I open the file with ICE PDF viewer.

      to reproduce it just compare the result with different pdf reader.

      anyway to upload the attachement pdf file?
      1. OFont.java
        16 kB
        Wei Chen
      2. visio_in_word.pdf
        84 kB
        Wei Chen

        Activity

        Wei Chen created issue -
        Hide
        Wei Chen added a comment -

        the pdf file to reproduce the issue.

        Show
        Wei Chen added a comment - the pdf file to reproduce the issue.
        Wei Chen made changes -
        Field Original Value New Value
        Attachment visio_in_word.pdf [ 17342 ]
        Hide
        Patrick Corless added a comment -

        I see the problem using the OS version of the ICEpdf. The PRO version renders the document fine.

        We'll need to take a closer look to see why the shape text isn't being displayed by the OS version.

        Show
        Patrick Corless added a comment - I see the problem using the OS version of the ICEpdf. The PRO version renders the document fine. We'll need to take a closer look to see why the shape text isn't being displayed by the OS version.
        Hide
        Wei Chen added a comment -

        Hi Patrick,
        is there any update on this issue? hope you can delliver a patch quickly.

        Show
        Wei Chen added a comment - Hi Patrick, is there any update on this issue? hope you can delliver a patch quickly.
        Hide
        Wei Chen added a comment - - edited

        look likes it is a font size problem. the point size pass to the OFont.derideFont() is 0.33333, which will reset the size of the font to 0.

        I tried a simple fix to this issue. it works, but I am not sure whether it impacts the existing logic.

        the basic idea is use a float field to track the scale between the font point size the PDF wants and the real font's point size. and do the scale when calulting the asent/desent/bounds and render the text.

        I can help if anybody need the fix.

        Show
        Wei Chen added a comment - - edited look likes it is a font size problem. the point size pass to the OFont.derideFont() is 0.33333, which will reset the size of the font to 0. I tried a simple fix to this issue. it works, but I am not sure whether it impacts the existing logic. the basic idea is use a float field to track the scale between the font point size the PDF wants and the real font's point size. and do the scale when calulting the asent/desent/bounds and render the text. I can help if anybody need the fix.
        Hide
        Patrick Corless added a comment -

        Would it be possible to provide a path for evaluation?

        Show
        Patrick Corless added a comment - Would it be possible to provide a path for evaluation?
        Hide
        Wei Chen added a comment -

        this OFont is based on v 4.3.4, you can created a patch by yourself.

        Show
        Wei Chen added a comment - this OFont is based on v 4.3.4, you can created a patch by yourself.
        Wei Chen made changes -
        Attachment OFont.java [ 17390 ]
        Patrick Corless made changes -
        Fix Version/s 5.1.1 [ 11770 ]
        Patrick Corless made changes -
        Fix Version/s 5.1.2 [ 11872 ]
        Fix Version/s 5.1.1 [ 11770 ]
        Patrick Corless made changes -
        Fix Version/s 5.2 [ 10970 ]
        Patrick Corless made changes -
        Fix Version/s 5.1.2 [ 11872 ]
        Patrick Corless made changes -
        Fix Version/s 5.3 [ 12070 ]
        Fix Version/s 5.2 [ 10970 ]
        Patrick Corless made changes -
        Fix Version/s 6.2 [ 12974 ]
        Fix Version/s 6.1 [ 12070 ]

          People

          • Assignee:
            Patrick Corless
            Reporter:
            Wei Chen
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated: