[
https://issues.apache.org/jira/browse/PDFBOX-1961?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14015530#comment-14015530
]
Tilman Hausherr commented on PDFBOX-1961:
-----------------------------------------
Some debugging in PageDrawer.java; the point is the one used for
graphics.translate() before processSubStream().
{code}
PDFBOX-927:
2.0 (bad)
matrix: [[1.0,0.0,0.0][0.0,1.0,0.0][-75.7534,-651.605,1.0]]
point: Point2D.Float[75.7534, 651.605]
point: Point2D.Float[0.0, -1303.21] (transformed)
1.8 (good)
matrix: [[1.0,0.0,0.0][0.0,1.0,0.0][-75.7534,-651.605,1.0]]
point: Point2D.Float[75.7534, 651.605]
point: Point2D.Float[0.0, 0.0] (transformed)
PDFBOX-1452
2.0: (good)
matrix: [[1.0,0.0,0.0][0.0,1.0,0.0][0.0,0.0,1.0]]
point: Point2D.Float[420.0, 760.0]
point: Point2D.Float[420.0, -760.0] (transformed)
1.8: (good)
matrix: [[1.0,0.0,0.0][0.0,1.0,0.0][0.0,0.0,1.0]]
point: Point2D.Float[420.0, 760.0]
point: Point2D.Float[420.0, 760.0] (transformed)
{code}
This regression was introduced by fixing another regression, in PDFBOX-1760
with rev 1545774 which introduced
{code}
at.scale(1, -1);
{code}
At that time this fixed the regression with PDFBOX-1452 ("the greek file") but
introduced a new regression with PDFBOX-927. There must be something missing in
2.0 because 1.8 can display both files, and because PDFBOX-1452 is displayed
correctly in both versions but with different translations.
> Page with annotations renders fine with 1.8 but not with 2.0
> ------------------------------------------------------------
>
> Key: PDFBOX-1961
> URL: https://issues.apache.org/jira/browse/PDFBOX-1961
> Project: PDFBox
> Issue Type: Bug
> Components: Rendering
> Affects Versions: 2.0.0
> Reporter: Tilman Hausherr
> Labels: Annotations, regression
> Fix For: 2.0.0
>
> Attachments: annots.pdf, annots.pdf-2-v18.png, annots.pdf-2-v2.png
>
>
> Page 2 of the attached PDF (from a ghostscript installation) renders fine
> with 1.8 but not with 2.0. The other pages are not rendered properly with any
> version.
--
This message was sent by Atlassian JIRA
(v6.2#6252)