[ https://issues.apache.org/jira/browse/PDFBOX-6048?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18013018#comment-18013018 ]
Tilman Hausherr commented on PDFBOX-6048: ----------------------------------------- I did think about that, but it didn't feel right... the media box is used currently, so an overlay would be positioned in the center of the media box. Using the cropbox might bring changes in PDFs that have a media box that starts at (0,0) but a different crop box, and the intention was to have no changes for the majority of users. > Overlay on PDF with unusual media box not visible > ------------------------------------------------- > > Key: PDFBOX-6048 > URL: https://issues.apache.org/jira/browse/PDFBOX-6048 > Project: PDFBox > Issue Type: Bug > Components: Utilities > Affects Versions: 2.0.34, 3.0.5 PDFBox > Reporter: Tilman Hausherr > Assignee: Tilman Hausherr > Priority: Major > Fix For: 4.0.0 > > Attachments: originalPDF.pdf, overlay.pdf > > > See attached link; user had a file and an overlay and the result wasn't > visible. The reason is that calculateAffineTransform() assumes that our > origin is (0,0) and in this file it is (0,-6600). > I'll change the method accordingly but won't touch the earlier versions > because this could change existing applications. We'll have to put this on > the migration list. -- This message was sent by Atlassian Jira (v8.20.10#820010) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org