Re: [NTG-context] **SPAM** ConTeXt breaks pdfcrop
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 ___ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] **SPAM** ConTeXt breaks pdfcrop
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 ___ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] **SPAM** ConTeXt breaks pdfcrop
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 ___ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] **SPAM** ConTeXt breaks pdfcrop
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) > > #!/bin/bash > > PATH=/usr/local/texlive/2010/bin/x86_64-linux:$PATH > pdfcrop $@ > exit 0 > > and run as > > $ pdfcrop-tl FILE.PDF > > > (If I not mistake this is known as `wrapper'.) > > --- > WBR, Vladimir Lomov > Many thanks! Severin ___ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] **SPAM** ConTeXt breaks pdfcrop
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) #!/bin/bash PATH=/usr/local/texlive/2010/bin/x86_64-linux:$PATH pdfcrop $@ exit 0 and run as $ pdfcrop-tl FILE.PDF (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." ___ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] **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. ___ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___