Bug 687950 - ArtBox BleedBox TrimBox get lost
Summary: ArtBox BleedBox TrimBox get lost
Status: RESOLVED FIXED
Alias: None
Product: Ghostscript
Classification: Unclassified
Component: General (show other bugs)
Version: master
Hardware: All All
: P4 enhancement
Assignee: Ken Sharp
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-22 04:29 UTC by Hans Hagen
Modified: 2012-08-15 06:24 UTC (History)
3 users (show)

See Also:
Customer:
Word Size: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Hans Hagen 2005-02-22 04:29:58 UTC
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
Comment 1 Ray Johnston 2005-02-23 10:01:14 UTC
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.
Comment 2 Igor Melichev 2005-02-24 05:53:33 UTC
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.
Comment 3 leonardo 2007-08-29 20:36:42 UTC
Passing to Ken since he handles pdfwrite from now.
Comment 4 Shailesh Mistry 2011-07-19 22:06:47 UTC
Enhancement still missing in Ghostscript 9.03
Comment 5 Alex Cherepanov 2012-08-15 06:24:54 UTC
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