[NTG-context] Trim blank space of a PDF page

Hans Hagen j.hagen at xs4all.nl
Wed May 23 12:09:29 CEST 2018


On 5/23/2018 11:25 AM, Taco Hoekwater wrote:
> 
>>
>> On 05/23/2018 01:25 AM, Procházka Lukáš Ing. wrote:
>>> Hello,
>>>
>>> just curious - is threre a way how to crop a page of a PDF via ConTeXt?
>>>
>>> Ideally - to process a single page PDF into another file, with the one
>>> page cropped...
>>
> 
> The ‘pdfcrop’ command from TeXLive can do that for you on the command line.
> It is based around ghostscript which can automatically find the crop area,
> then uses pdftex,luatex,or xetex to create a new pdf.
> 
> It is doable to come up with a solution in ConTeXt if you do not mind
> specifying the cropbox manually, but automatic cropping is probably too
> hard for ConTeXt itself (and likely would end up duplicating pdfcrop
> to some extent).
there is a script

pdftrimwhite.pl

in the distribution

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------


More information about the ntg-context mailing list