You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Andreas Lehmkühler (JIRA)" <ji...@apache.org> on 2010/03/02 19:45:37 UTC

[jira] Created: (PDFBOX-646) Map the form space to user space if hte optional form matrix is present

Map the form space to user space if hte optional form matrix is present
-----------------------------------------------------------------------

                 Key: PDFBOX-646
                 URL: https://issues.apache.org/jira/browse/PDFBOX-646
             Project: PDFBox
          Issue Type: Improvement
          Components: Parsing, PDFReader, PDModel
    Affects Versions: 1.0.0, 0.8.0-incubator
            Reporter: Andreas Lehmkühler
            Assignee: Andreas Lehmkühler
             Fix For: 1.1.0


An XObjectForm has an optional form matrix to map the form space to user space. If that matrix is present it has to be multiplied with the current transformation matrix to calculate the correct coordinates for every following operation.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (PDFBOX-646) Map the form space to user space if the optional form matrix of a XObjectForm is present

Posted by "Andreas Lehmkühler (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PDFBOX-646?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andreas Lehmkühler updated PDFBOX-646:
--------------------------------------

    Summary: Map the form space to user space if the optional form matrix of a XObjectForm is present  (was: Map the form space to user space if hte optional form matrix is present)

> Map the form space to user space if the optional form matrix of a XObjectForm is present
> ----------------------------------------------------------------------------------------
>
>                 Key: PDFBOX-646
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-646
>             Project: PDFBox
>          Issue Type: Improvement
>          Components: Parsing, PDFReader, PDModel
>    Affects Versions: 0.8.0-incubator, 1.0.0
>            Reporter: Andreas Lehmkühler
>            Assignee: Andreas Lehmkühler
>             Fix For: 1.1.0
>
>         Attachments: tiger-as-form-xobject.pdf, tiger-as-form-xobject1.jpg
>
>
> An XObjectForm has an optional form matrix to map the form space to user space. If that matrix is present it has to be multiplied with the current transformation matrix to calculate the correct coordinates for every following operation.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (PDFBOX-646) Map the form space to user space if hte optional form matrix is present

Posted by "Daniel Wilson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/PDFBOX-646?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12840343#action_12840343 ] 

Daniel Wilson commented on PDFBOX-646:
--------------------------------------

Awesome, Andreas!

If you don't object, I'll add Mr Tiger as a Rendering test case.

> Map the form space to user space if hte optional form matrix is present
> -----------------------------------------------------------------------
>
>                 Key: PDFBOX-646
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-646
>             Project: PDFBox
>          Issue Type: Improvement
>          Components: Parsing, PDFReader, PDModel
>    Affects Versions: 0.8.0-incubator, 1.0.0
>            Reporter: Andreas Lehmkühler
>            Assignee: Andreas Lehmkühler
>             Fix For: 1.1.0
>
>         Attachments: tiger-as-form-xobject.pdf, tiger-as-form-xobject1.jpg
>
>
> An XObjectForm has an optional form matrix to map the form space to user space. If that matrix is present it has to be multiplied with the current transformation matrix to calculate the correct coordinates for every following operation.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (PDFBOX-646) Map the form space to user space if hte optional form matrix is present

Posted by "Andreas Lehmkühler (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/PDFBOX-646?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12840352#action_12840352 ] 

Andreas Lehmkühler commented on PDFBOX-646:
-------------------------------------------

That shouldn't be a problem, as it is a part of Apache FOP. Jeremias and I had discussed that issue one year ago [1] and finally I found the solution...


http://markmail.org/message/5iq4eczhijhgwa4f

> Map the form space to user space if hte optional form matrix is present
> -----------------------------------------------------------------------
>
>                 Key: PDFBOX-646
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-646
>             Project: PDFBox
>          Issue Type: Improvement
>          Components: Parsing, PDFReader, PDModel
>    Affects Versions: 0.8.0-incubator, 1.0.0
>            Reporter: Andreas Lehmkühler
>            Assignee: Andreas Lehmkühler
>             Fix For: 1.1.0
>
>         Attachments: tiger-as-form-xobject.pdf, tiger-as-form-xobject1.jpg
>
>
> An XObjectForm has an optional form matrix to map the form space to user space. If that matrix is present it has to be multiplied with the current transformation matrix to calculate the correct coordinates for every following operation.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (PDFBOX-646) Map the form space to user space if hte optional form matrix is present

Posted by "Andreas Lehmkühler (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PDFBOX-646?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andreas Lehmkühler resolved PDFBOX-646.
---------------------------------------

    Resolution: Fixed

With version 918150 I've added a getter for the optional form matrix of an XObjectForm. Whenever a XObjectForm has a form matrix it will be took into amount within the Invoke operator by multiplying it with the current transformation matrix.

Now the attached example works like a charm with the PDFReader.

> Map the form space to user space if hte optional form matrix is present
> -----------------------------------------------------------------------
>
>                 Key: PDFBOX-646
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-646
>             Project: PDFBox
>          Issue Type: Improvement
>          Components: Parsing, PDFReader, PDModel
>    Affects Versions: 0.8.0-incubator, 1.0.0
>            Reporter: Andreas Lehmkühler
>            Assignee: Andreas Lehmkühler
>             Fix For: 1.1.0
>
>         Attachments: tiger-as-form-xobject.pdf
>
>
> An XObjectForm has an optional form matrix to map the form space to user space. If that matrix is present it has to be multiplied with the current transformation matrix to calculate the correct coordinates for every following operation.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (PDFBOX-646) Map the form space to user space if hte optional form matrix is present

Posted by "Andreas Lehmkühler (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PDFBOX-646?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andreas Lehmkühler updated PDFBOX-646:
--------------------------------------

    Attachment: tiger-as-form-xobject.pdf

That file has an optional form matrix. The tiger doesn't show up using the PDFReader.

Jeremias provided me with that example long time ago. It's from the Apache FOP project.

> Map the form space to user space if hte optional form matrix is present
> -----------------------------------------------------------------------
>
>                 Key: PDFBOX-646
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-646
>             Project: PDFBox
>          Issue Type: Improvement
>          Components: Parsing, PDFReader, PDModel
>    Affects Versions: 0.8.0-incubator, 1.0.0
>            Reporter: Andreas Lehmkühler
>            Assignee: Andreas Lehmkühler
>             Fix For: 1.1.0
>
>         Attachments: tiger-as-form-xobject.pdf
>
>
> An XObjectForm has an optional form matrix to map the form space to user space. If that matrix is present it has to be multiplied with the current transformation matrix to calculate the correct coordinates for every following operation.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (PDFBOX-646) Map the form space to user space if hte optional form matrix is present

Posted by "Andreas Lehmkühler (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PDFBOX-646?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andreas Lehmkühler updated PDFBOX-646:
--------------------------------------

    Attachment: tiger-as-form-xobject1.jpg

The result of PDFToImage for the attached pdf.

> Map the form space to user space if hte optional form matrix is present
> -----------------------------------------------------------------------
>
>                 Key: PDFBOX-646
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-646
>             Project: PDFBox
>          Issue Type: Improvement
>          Components: Parsing, PDFReader, PDModel
>    Affects Versions: 0.8.0-incubator, 1.0.0
>            Reporter: Andreas Lehmkühler
>            Assignee: Andreas Lehmkühler
>             Fix For: 1.1.0
>
>         Attachments: tiger-as-form-xobject.pdf, tiger-as-form-xobject1.jpg
>
>
> An XObjectForm has an optional form matrix to map the form space to user space. If that matrix is present it has to be multiplied with the current transformation matrix to calculate the correct coordinates for every following operation.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.