When using GS to convert one pdf into another (e.g. downsampling) the ArtBox, BleedBox and TrimBox specification get lost. This means that when applications use the ArtBox instead of the CropBox, the resulting pdf file is no longer usable for placed pdf purposes. Looking at the pdf_main file, my impression is that these boxes need to be picked up, translated (like the cropbox is) and flushed. Those boxes have been part of the pdf spec for some time now. Hans
The Bug687832.pdf and ICPconcept.pdf hav all four Box settings, but they all have the same value for the Box arrays. The files with "interesting" ArtBox values are: IllustratorPDF+JpegV5.pdf SmoothShading.pdf ai2.pdf chilis_black.pdf chilis_red.pdf So far I haven't found any files that have differing numbers in the 'CropBox', 'TrimBox', 'ArtBox' and 'MediaBox', but zapping Bug687832.pdf or ICPconcept.pdf to modify the values should provide an adequate test.
The work on this thing should start with making the PDF interpreter to pass the boixes to device parameters. Assigning to Ray who handles those parts.
Passing to Ken since he handles pdfwrite from now.
Enhancement still missing in Ghostscript 9.03
Pass all PDF boxes for further processing using pdfmark operator. pdfwrite device can already convert them back to page attributes. http://git.ghostscript.com/?p=ghostpdl.git;a=commitdiff;h=9c76d00aaf4504cb65fc82771b705c9dc529084a