[
https://issues.apache.org/jira/browse/PDFBOX-6049?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18013608#comment-18013608
]
Tilman Hausherr edited comment on PDFBOX-6049 at 8/13/25 7:48 AM:
------------------------------------------------------------------
The source PDF file for the test was created from [code generated by
ChatGPT|https://chatgpt.com/share/689c431d-8a7c-8006-b2bc-f91d4aa881e2] with
minor changes by me:
{quote}Write a java program using the apache pdfbox library that creates a PDF
file with 8 pages that are rotated 0, 90, 180, 270, 0, 90, 180, 270 degrees.
The text on each page should be the word "rotation" and the number. The
rotation should be done with the setRotation() call. The font should be built
in type1 helvetica size 20.
{quote}
The overlay file was created by a modified version of the AddWatermark example.
was (Author: tilman):
The source PDF file for the test was created from code generated by ChatGPT
with minor changes by me:
{quote}Write a java program using the apache pdfbox library that creates a PDF
file with 8 pages that are rotated 0, 90, 180, 270, 0, 90, 180, 270 degrees.
The text on each page should be the word "rotation" and the number. The
rotation should be done with the setRotation() call. The font should be built
in type1 helvetica size 20.{quote}
The overlay file was created by a modified version of the AddWatermark example.
> Consider rotation of page when applying overlay
> -----------------------------------------------
>
> Key: PDFBOX-6049
> URL: https://issues.apache.org/jira/browse/PDFBOX-6049
> Project: PDFBox
> Issue Type: Improvement
> Components: Utilities
> Affects Versions: 2.0.34, 3.0.5 PDFBox
> Reporter: Tilman Hausherr
> Assignee: Tilman Hausherr
> Priority: Minor
> Fix For: 2.0.35, 3.0.6 PDFBox, 4.0.0
>
> Attachments: gs-bugzilla690022-reduced-rotations.pdf, overlay.pdf
>
>
> Ideally one would have to apply a transform in calculateAffineTransform(),
> but due to failure to implement this, the alternative would be to somehow
> keep overlay objects for each rotation.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]