Created attachment 24633 [details] fop_ouput.pdf: what I get FOP TRUNK r884526 fop-pdf-images-2.0.0.SNAPSHOT.jar I am playing with fox:external-document and fo:external-graphic to embed external PDF. PDF to insert are both made with FOP, using prepress new feature: - prepress_trim.pdf uses fox:crop-box="trim-box" - prepress_media.pdf uses fox:crop-box="media-box" For both FOs, the result is not what I expect (see fop_output.pdf). I suspect several things: - resetting media-box lower-left corner to 0. - using media-box size instead of trim-box (fo:external-graphic) - using media-box size for all *-box (fox:external-document) I wonder whether negative coordinates in PDF *-box are valid or not (I've sawn similar issues using Adobe Illustrator with FOP PDFs).
Created attachment 24634 [details] pdf_pdf.fo: main source FO file FO used to generate the fo_output.pdf file
Created attachment 24635 [details] prepress.fo: source FO used for embedded PDF files The 2 PDF sources are generated with this unique source FO: - prepress_trim.pdf uses fox:crop-box="trim-box" - prepress_media.pdf uses fox:crop-box="media-box"
Created attachment 24636 [details] prepress_media.pdf: PDF with crop-box = media-box
Created attachment 24637 [details] prepress_trim.pdf: PDF with crop-box = trim-box
resetting P2 open bugs to P3 pending further review
Pascal, could you try the latest pdf-image plugin please? Let me know what you think and we can change the way the current if you think it necessary.
(In reply to comment #6) > Pascal, could you try the latest pdf-image plugin please? Let me know what > you think and we can change the way the current if you think it necessary. Just tried after update/build on both fop & pdf-image: output is better: trim-box is now taken into account for the size of the rectangle containing the pdf (both as external graphics and fox:document). But the image position is always shifted to the bottom-left corner, probably with the value of the difference between media-box and trim-box. I'll attach pdf output from FOP trunk
Created attachment 29417 [details] PDF output with trunk (r1390401)
Created attachment 29418 [details] PDF with crop-box = media-box, against latest fop/pdf-image trunks
Created attachment 29419 [details] PDF with crop-box = trim-box, against latest fop/pdf-image trunks Note that 2 new versions do not change anything.