ICEpdf
  1. ICEpdf
  2. PDF-866

High CPU load when trying to render pages in PDF

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 5.1.2
    • Fix Version/s: 6.0
    • Component/s: Core/Parsing
    • Labels:
      None
    • Environment:
      All

      Description

      With the provided PDF, there is a high CPU load when trying to render the contents of the PDF file. No errors are thrown and after leaving the viewer for 10-15 min, the page content still doesn't show.

        Activity

        Arran Mccullough created issue -
        Hide
        Patrick Corless added a comment -

        The file in question uses type 3 fonts. And there appears to be a parsing issue while interpreting one of the inline images which puts the parser into an infinite loop,

        Show
        Patrick Corless added a comment - The file in question uses type 3 fonts. And there appears to be a parsing issue while interpreting one of the inline images which puts the parser into an infinite loop,
        Hide
        Patrick Corless added a comment -

        The image in question is indeed inline but it's actually not the data stream that 's the problem but some rather strange postscript in the dictionary of the inline image: "[null<</K -1/Columns 16>>]"

        Show
        Patrick Corless added a comment - The image in question is indeed inline but it's actually not the data stream that 's the problem but some rather strange postscript in the dictionary of the inline image: " [null<</K -1/Columns 16>>] "
        Patrick Corless made changes -
        Field Original Value New Value
        Fix Version/s 5.2 [ 10970 ]
        Hide
        Patrick Corless added a comment -

        The parsing error is related to the fact the image array tokens were not white space separated as expected. I've make a small tweak to the content parser which addresses this issue. Still need a full QA run but don't expect any problems.

        Because of the use of Type 3 fonts, the font rendering quality can be improved by using the system property -Dorg.icepdf.core.imageReference=smoothScaled

        Show
        Patrick Corless added a comment - The parsing error is related to the fact the image array tokens were not white space separated as expected. I've make a small tweak to the content parser which addresses this issue. Still need a full QA run but don't expect any problems. Because of the use of Type 3 fonts, the font rendering quality can be improved by using the system property -Dorg.icepdf.core.imageReference=smoothScaled
        Patrick Corless made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #44289 Tue Mar 24 11:40:27 MDT 2015 patrick.corless PDF-866 fixed a byte offset issue for the token "ID" and processing inline data streams.
        Files Changed
        Commit graph MODIFY /icepdf/branches/icepdf-5.0.1/icepdf/core/src/org/icepdf/core/util/content/AbstractContentParser.java
        Patrick Corless made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #46087 Thu Oct 15 08:04:47 MDT 2015 patrick.corless PDF-866 merged content parser changes.
        Files Changed
        Commit graph MODIFY /icepdf/branches/icepdf-5.1.1/icepdf/core/src/org/icepdf/core/util/content/AbstractContentParser.java
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #49602 Wed Nov 30 12:02:26 MST 2016 patrick.corless PDF-866 addition of a few more content parser changes, mainly for general code protection.
        Files Changed
        Commit graph MODIFY /icepdf/branches/icepdf-5.1.1/icepdf/core/src/org/icepdf/core/util/content/AbstractContentParser.java

          People

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

            Dates

            • Created:
              Updated:
              Resolved: