ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Taco Hoekwater <taco@elvenkind.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Trim blank space of a PDF page
Date: Wed, 23 May 2018 11:25:52 +0200	[thread overview]
Message-ID: <3E3DB858-E726-4714-BD12-F0D2297464EA@elvenkind.com> (raw)
In-Reply-To: <43de9d69-8ff8-f2d2-bc00-7a563088a0a7@gmail.com>


> 
> 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).

Best wishes,
Taco



___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

  reply	other threads:[~2018-05-23  9:25 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-05-22 13:25 Procházka Lukáš Ing.
2018-05-23  9:11 ` Henri Menke
2018-05-23  9:25   ` Taco Hoekwater [this message]
2018-05-23 10:09     ` Hans Hagen
2018-05-23 14:44       ` Alan Braslau
2018-05-23 15:10         ` Taco Hoekwater

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3E3DB858-E726-4714-BD12-F0D2297464EA@elvenkind.com \
    --to=taco@elvenkind.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).