[
https://issues.apache.org/jira/browse/PDFBOX-3434?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15388008#comment-15388008
]
Tilman Hausherr commented on PDFBOX-3434:
-----------------------------------------
This isn't a bug. Please have a look at the CreateLandscapePDF.java example
from the source code download. You will see this line for a 90° rotated page:
{code}
contentStream.transform(new Matrix(0, 1, -1, 0, pageWidth, 0));
{code}
So you need to do something similar for every rotation. The first 4 digits are
the rotation, the next two the translation (the rotation is not centered!).
> Watermark landscape pdf:s watermarks are 90 degree right rotated
> ----------------------------------------------------------------
>
> Key: PDFBOX-3434
> URL: https://issues.apache.org/jira/browse/PDFBOX-3434
> Project: PDFBox
> Issue Type: Bug
> Affects Versions: 1.8.11
> Reporter: ryuukei
> Labels: watermark
> Attachments: up.png, watermark_result.png
>
>
> I'm using pdfbox 1.8.11 and FOP to add water mark to pdf:s. It works nicely
> to most input pdf files. However I get a problem when the file is in
> landscape, the watermarking will be 90 degree right rotated.
> I will attach the image used for water mark, and signed result.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]