ICEpdf
  1. ICEpdf
  2. PDF-717

Images in PDF are rendered tilted on the page

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 5.0.5
    • Fix Version/s: 6.0
    • Component/s: Core/Parsing, Imaging
    • Labels:
      None
    • Environment:
      All
    • Salesforce Case Reference:

      Description

      With the customer provided PDF file, the images in the PDF are rendered at a 45 degree angle on the page.

        Activity

        Hide
        Patrick Corless added a comment -

        This is a very interesting one off PDF that shows an implementation issue with how we handle the saving of a graphic state before we process a form and after. The issue is that when we set the save/restore we are doing the same function as a regular q/Q. I think this is incorrect, what we really want is to save the graphics state in it's entirety and restore it after the forms is processed, very similar to what we do when working with the Java2D Graphics object.

        The assumption seems to hold water and the PDF now renders correctly.

        Show
        Patrick Corless added a comment - This is a very interesting one off PDF that shows an implementation issue with how we handle the saving of a graphic state before we process a form and after. The issue is that when we set the save/restore we are doing the same function as a regular q/Q. I think this is incorrect, what we really want is to save the graphics state in it's entirety and restore it after the forms is processed, very similar to what we do when working with the Java2D Graphics object. The assumption seems to hold water and the PDF now renders correctly.
        Hide
        Patrick Corless added a comment -

        It turns out the water mark cm transformation is what was exposing the rotation issue and bug in our form handling. PDF renders correctly now.

        Show
        Patrick Corless added a comment - It turns out the water mark cm transformation is what was exposing the rotation issue and bug in our form handling. PDF renders correctly now.
        Hide
        Patrick Corless added a comment -

        Marking as closed

        Show
        Patrick Corless added a comment - Marking as closed

          People

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

            Dates

            • Created:
              Updated:
              Resolved: