**SPAM** ConTeXt breaks pdfcrop
I guess this has to do with my path variables, but having context minimals installed prevents pdfcrop from running successfully: PDFCROP 1.33, 2012/02/01 - Copyright (c) 2002-2012 by Heiko Oberdiek. kpathsea: Running mktexfmt pdftex.fmt /usr/local/texlive/2010/bin/x86_64-linux/mktexfmt: 395: /usr/local/texlive/2010/bin/x86_64-linux/mktexfmt: /home/user/context/tex/texmf/texconfig/tcfmgr: not found fmtutil: config file `fmtutil.cnf' not found. !!! Error: pdfTeX run failed! Does anybody have a suggestion of how to deal with this issue successfully? Thank you. Severin P.S.: I'm on ubuntu 12.04.
Hello, ** S Barmeier [2012-06-18 15:38:20 +0900]:
I guess this has to do with my path variables, but having context minimals installed prevents pdfcrop from running successfully:
PDFCROP 1.33, 2012/02/01 - Copyright (c) 2002-2012 by Heiko Oberdiek.
kpathsea: Running mktexfmt pdftex.fmt /usr/local/texlive/2010/bin/x86_64-linux/mktexfmt: 395: /usr/local/texlive/2010/bin/x86_64-linux/mktexfmt: /home/user/context/tex/texmf/texconfig/tcfmgr: not found fmtutil: config file `fmtutil.cnf' not found. !!! Error: pdfTeX run failed!
Does anybody have a suggestion of how to deal with this issue successfully?
Do you familiar with shell script writing?
Thank you. Severin
P.S.: I'm on ubuntu 12.04.
Save this code as `pdfcrop-tl' (or use any other name, except pdfcrop) <code> #!/bin/bash PATH=/usr/local/texlive/2010/bin/x86_64-linux:$PATH pdfcrop $@ exit 0 </code> and run as <terminal> $ pdfcrop-tl FILE.PDF </terminal> (If I not mistake this is known as `wrapper'.) --- WBR, Vladimir Lomov -- "Protozoa are small, and bacteria are small, but viruses are smaller than the both put together."
On 06/18/2012 07:47 PM, Vladimir Lomov wrote:
Hello, ** S Barmeier [2012-06-18 15:38:20 +0900]:
I guess this has to do with my path variables, but having context minimals installed prevents pdfcrop from running successfully:
PDFCROP 1.33, 2012/02/01 - Copyright (c) 2002-2012 by Heiko Oberdiek.
kpathsea: Running mktexfmt pdftex.fmt /usr/local/texlive/2010/bin/x86_64-linux/mktexfmt: 395: /usr/local/texlive/2010/bin/x86_64-linux/mktexfmt: /home/user/context/tex/texmf/texconfig/tcfmgr: not found fmtutil: config file `fmtutil.cnf' not found. !!! Error: pdfTeX run failed!
Does anybody have a suggestion of how to deal with this issue successfully?
Do you familiar with shell script writing?
Thank you. Severin
P.S.: I'm on ubuntu 12.04.
Save this code as `pdfcrop-tl' (or use any other name, except pdfcrop) <code> #!/bin/bash
PATH=/usr/local/texlive/2010/bin/x86_64-linux:$PATH pdfcrop $@ exit 0 </code> and run as <terminal> $ pdfcrop-tl FILE.PDF </terminal>
(If I not mistake this is known as `wrapper'.)
--- WBR, Vladimir Lomov
Many thanks! Severin
On Thu, 21 Jun 2012, S Barmeier wrote:
On 06/18/2012 07:47 PM, Vladimir Lomov wrote:
Hello, ** S Barmeier [2012-06-18 15:38:20 +0900]:
I guess this has to do with my path variables, but having context minimals installed prevents pdfcrop from running successfully:
PDFCROP 1.33, 2012/02/01 - Copyright (c) 2002-2012 by Heiko Oberdiek.
kpathsea: Running mktexfmt pdftex.fmt /usr/local/texlive/2010/bin/x86_64-linux/mktexfmt: 395: /usr/local/texlive/2010/bin/x86_64-linux/mktexfmt: /home/user/context/tex/texmf/texconfig/tcfmgr: not found fmtutil: config file `fmtutil.cnf' not found. !!! Error: pdfTeX run failed!
Does anybody have a suggestion of how to deal with this issue successfully?
You can also use pdftrimwhite (requires perl) which is part of the ConText distribution: mtxrun pdftrimwhite filename.pdf result.pdf Aditya
On 06/21/2012 09:32 AM, Aditya Mahajan wrote:
On Thu, 21 Jun 2012, S Barmeier wrote:
On 06/18/2012 07:47 PM, Vladimir Lomov wrote:
Hello, ** S Barmeier [2012-06-18 15:38:20 +0900]:
I guess this has to do with my path variables, but having context minimals installed prevents pdfcrop from running successfully: ... Does anybody have a suggestion of how to deal with this issue successfully?
You can also use pdftrimwhite (requires perl) which is part of the ConText distribution:
mtxrun pdftrimwhite filename.pdf result.pdf
Aditya
Nice, does there exist documentation for pdftrimwhite? Running it on a two-paged document, the output only contains the first page and clips the document to the very edge. Is there a way to have all pages with a 1cm margin? Severin
On Thu, 21 Jun 2012, S Barmeier wrote:
On 06/21/2012 09:32 AM, Aditya Mahajan wrote:
On Thu, 21 Jun 2012, S Barmeier wrote:
On 06/18/2012 07:47 PM, Vladimir Lomov wrote:
Hello, ** S Barmeier [2012-06-18 15:38:20 +0900]:
I guess this has to do with my path variables, but having context minimals installed prevents pdfcrop from running successfully: ... Does anybody have a suggestion of how to deal with this issue successfully?
You can also use pdftrimwhite (requires perl) which is part of the ConText distribution:
mtxrun pdftrimwhite filename.pdf result.pdf
Aditya
Nice, does there exist documentation for pdftrimwhite? Running it on a two-paged document, the output only contains the first page and clips the document to the very edge. Is there a way to have all pages with a 1cm margin?
There is some documentation in the source code. Aditya
participants (3)
-
Aditya Mahajan
-
S Barmeier
-
Vladimir Lomov