I am working in a routine for crop PDF\'s and import them into a PDF template. I am using GhostScript, invoked with exec() from a PHP script, and FPDI. All runn
exec()
You can't set a 'CropBox' in PostScript, because CropBox isn't part of the PostScript language, its PDF-specific.
You need to send a /PAGE pdfmark with a /CropBox, as the first post you reference says. You don't set a /Install.