Log of #ghostscript at irc.freenode.net.

Search:
 <<<Back 1 day (to 2018/04/21)20180422 
cybrNaut I need to create a PDF that takes care to keep content out of the unprintable region for a specific printer13:06.06 
  3mm on the left, and 5mm on the top, right, and bottom13:06.19 
  is the "TrimBox" the correct parameter for defining the unprintable region?13:07.01 
  I'm trying to use this cmd => gs -o a4_with_margins.pdf -sDEVICE=pdfwrite -sPAPERSIZE=a4 -dFIXEDMEDIA -dCompatibilityLevel=1.4 -dPDFSETTINGS="/printer" -c '<< /PDFXTrimBoxToMediaBoxOffset [8.5 14 14 14] >> setdistillerparams' -dUseTrimBox -dPDFFitPage nearly_a4_src.ps14:34.40 
  the trimbox is the same as the media box when I run => pdfinfo -box -f 1 -l 1 a4_with_margins.pdf14:35.48 
  so my PDFXTrimBoxToMediaBoxOffset setting is being ignored14:36.05 
  -c is undocumented in the man page.. wonder if my version is too old for this15:06.17 
ray_laptop cybrNaut: You probably need to "fit" the input (PS) to the desired page. The distillerparam PDFXTrimBoxToMediaBoxOffset allows you to set a TrimBox in the PDF produced, but does not guarantee that the consumer/reader of the PDF will pay attention to the TrimBox.22:51.57 
  For example, Ghostscript uses MediaBox by default, and AFAIK Adobe uses CropBox by default if present, if not, it uses MediaBox. I'm not sure if it uses TrimBox22:52.52 
 Forward 1 day (to 2018/04/23)>>> 
ghostscript.com #mupdf
Search: