To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=92909
                 Issue #|92909
                 Summary|pdf import applies transformation matrix wrongly
               Component|Drawing
                 Version|OOo 3.0 Beta 2
                Platform|Sun
                     URL|
              OS/Version|All
                  Status|UNCONFIRMED
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|DEFECT
                Priority|P3
            Subcomponent|code
             Assigned to|wg
             Reported by|frank_markesteijn





------- Additional comments from [EMAIL PROTECTED] Tue Aug 19 12:43:25 +0000 
2008 -------
The Sun PDF Import extension Beta 0.3.1 Solaris x86 on ooo3.0 Beta 2 Build
BEB300_m3 produces a rotation when a skew is applied, after that other
transformations are somewhat garbled. In the attached file Leers.text.pdf, when
viewed in ooo or a pdf viewer, in the top right corner of every page you find a
legend with some short text strings, the third line in every legend is a latin
species name that should be skewed not rotated, when you open this pdf file in a
text editor then line 4980 reads "q 1 0 0.2 1 632 533 cm", q saves the current
graphics state, then a transformation is applied. If this file is saved as an
ooo drawing and that new file is then unzipped, form a terminal: "unzip
Leers.text.odg", then in the file Contents.xml this transformation is translated
to "draw:transform="rotate (-0.197396738401708) translate (22.295cm 1.933cm)",
this would have been correct had the pdf transformation matrix been "1 -0.2 0.2
1 632 533 cm", it appears that the third component of the matrix is duplicated
into the second component of the matrix, however i am not certain that the sign
is inversed, it appears to be the case but there is probably more to it than
that, the translation in the xml file does also not match the translation in the
pdf file (fifth and sixth components of the matrix), when viewed in ooo however
the text appears in the correct position. Objects on the same page that appear
after this skewed/rotated object in the pdf file are placed in wrong positions,
thus it seems the "Q" instruction on line 4987 in the pdf file does not fully
restore the graphics state, or at least not the current transformation matrix,
this incomplete or incorrect restoration does not always produce the same error
in the placement of objects, on different pages in the pdf document the text
objects in the legend (upper right) are misplaced in a different manner on
different pages.
There are other things wrong when this file is imported
but those are different bugs.
The attached file Leers.txt.pdf is a plain ascii file, so you can open it in any
text editor.

---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to