[ https://issues.apache.org/jira/browse/PDFBOX-4120?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16682422#comment-16682422 ]
Tilman Hausherr edited comment on PDFBOX-4120 at 11/10/18 2:11 PM: ------------------------------------------------------------------- Is this similar to PDFBOX-3358? Could you please attach your PDFs and some simple code? was (Author: tilman): Is this similar to PDFBOX-3358? Could you please attach your PDFs? > Overlay process forcing bounding box to 0,0, clipping overlayed page. > --------------------------------------------------------------------- > > Key: PDFBOX-4120 > URL: https://issues.apache.org/jira/browse/PDFBOX-4120 > Project: PDFBox > Issue Type: Improvement > Affects Versions: 2.0.8 > Reporter: Gregg > Priority: Major > Labels: Overlay > > Hello, > I am using the overlay functionality in PDFBox to stamp existing pdf file > pages with some test running up the left margin and across the footer of each > page. > I am creating an overlay page, based on the size, rotation, media and crop > boxes with the text to stamp. I then call the overlay method with my overlay > pages to create the final document. > The overlay code creates a PDFormXObject representation of the overlay page > to apply to the source page. Overlay.createOverlayXObject() sets the > bounding box of the new PDFormXObject using the source page media box, but it > forces the x,y to 0,0. > The issue I have is when the original page has a media/crop box that starts > in a negative quadrant, the overlay is clipped so some of the text is > missing. The work around I am doing is to go through the results pages after > the overlay method completes and update the bounding boxes of the > PDFormXObject to be the media box as the source page. > I think it would be helpful if we could tell the overlay process whether it > should manipulate the bounding box or not. -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org