![]() Before pdfcrop has used the T eX engine's default. * X e T eX's X e T eXpdffile expects keyword media, not mediabox.ĭefault is auto that means the PDF version is inherited from the input file. * X e T eX: -clip does not die, but this option is ignored, because X e T eX always clip. * Fix for the case that the PDF file contains an entry /CropBox different to /MediaBox. * Workaround added for buggy ghostscript ports that print the BoundingBox data twice. * Options -bbox-odd and –bbox-even added. * Syntax description for option -bbox fixed (Lukas Prochazka). * Option -luatex and -luatexcmd added for Lua T eX. ![]() * Validation of options -papersize and -resolution. * Backticks and whitespace are forbidden for options -gs, -pdftexcmd, -xetexcmd. ![]() * -no-shell-escape added for pdf T eX/ X e T eX. Input files with unsafe file names are linked/copied to temporary file with safe file name.Įrror detection for invalid Bounding Boxes.įix for negative coordinates in Bounding Boxes (David Menestrina). Workarounds for the workaround (error detection. Support for X e T eX added with new options -pdftex, -xetex, -xetexcmds. (open("-| ") is used for ghostscript call).įix for moving the temporary file to the output file across file system boundaries. Use mgs.exe instead of gswin32c.exe for MIKTEX. Use of File::Spec module's "devnull" call.Ĭlear map file entries so that pdf T eX does not touch the fonts. "nul" instead of "/dev/null" for windows. ** WARNING ** Version of PDF file (1.6) is newer In this cases pdfcrop tries to fix the PDF version afterwards in the PDF header and X e T eX warnings as the following can be safely ignored. Older X e T eX (and pdf T eX If Ghostscript returns wrong values or cannot process the pdf file, it sometimes helps to try another version of Ghostscript. pdfcrop relies on Ghostscript for the calculation of the Bounding Box.My environment for developing and testing: If you have questions, problems with pdfcrop, error reports, if you have improvements or want to have additional features, please send them to the author or add an issue to consists of gs, followed by a version number and an optional c (Ghostscript's convention for console version).be one of the standard names (gs, gswin32c, mgs, gs386, gsos2) or.-luatexcmd: if used, the value must be empty or luatex.-xetexcmd: if used, the value must be empty or xetex.-pdftexcmd: if used, the value must be empty or pdftex.This mode sets restrictions for the following options: or the called program name contains restricted.the program is called under the name rpdfcrop.Of course the calculation with higher resolution settings are more accurate. Ghostscript's calculation of the bounding box is faster, if -resolution 72 is used instead of ghostscript's implicite default setting of 4000 DPI (hint from Ionut Georgescu).T eXLive 2020 put it in TDS:doc/support/pdfcrop/README.md 6. It is allowed to rename it to pdfcrop.txt or pdfcrop.md. Documentation README.md:Ĭopy it to an appropriate place, for example /usr/local/share/doc/pdfcrop/README.md. (This feature is added in T eX Live 2009.) For T eX Live (since 2009) see entry for shell_escape_commands in the configuration file texmf.cnf. Prefer rpdfcrop if you want to add pdfcrop to the programs that may be executed in T eX's restricted shell escape mode. ![]() Generate links or install again under the name rpdfcrop. I do not expect that the perl script runs under DOS. Move the file to a directory where the shell can find it (environment variable PATH, e.g.Ensure that the execute permission is set: chmod +x pdfcrop.It is allowed to rename to pdfcrop: mv pdfcrop.and a directory that is part of PATH contains a wrapper script or link with name "pdfcrop".TDS 1.1 location (TDS means "texmf" tree, see CTAN:tds/tds.pdf): Normally pdfcrop will be installed by the T eX system. pdf T eX, version >= 1.0 (because of page selecting and pdfximage syntax) or X e T eX or Lua T eX.Ghostscript (>= 8.0 if PDF file contains rotated pages).Perl5 (version 5 of the perl interpreter).The temporary files are deleted after the run unless the -debug option is used. Tmp-pdfcrop-*.pdf: result after pdf T eX, luatex or xetex run Tmp-pdfcrop-*.log: log file of pdf T eX, luatex or xetex run Tmp-pdfcrop-*.tex: input file for pdf T eX, luatex or xetex README.md: Documentation, the file you are reading.įollowing temporary files are produced if pdfcrop is invoked: The project pdfcrop consists of two files: L aT eX Project Public License, version 1.3c or later. PDFCROP takes a PDF file as input, calculates the BoundingBox for each page by the help of ghostscript and generates a output PDF file with removed margins.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |