Questions tagged [pdfcrop]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
-1 votes
1 answer
48 views

pdfcrop does not crop pdflatex output correctly

I have a complicated table that uses the "array" package, which conflicts with other packages that I use, so I put the table into a separate document and ran pdflatex on it to get the table ...
TimH-02130-USA's user avatar
1 vote
1 answer
129 views

pdfcrop crops too much or too little for some figures

I am on Windows 10, with pdfcrop 1.40 installed. For some figures, pdfcrop works fine, but not for others. For figures like this one it does not crop anything: While for figures like this one, it ...
bixiou's user avatar
  • 73
0 votes
0 answers
94 views

Can't use pdfbook2

Following situation: I would like to use pdfbook2 to convert a PDF file. I entered the following command in Windows Powershell: python3 C:\tmp\pdfbook2 C:\tmp\book.pdf But every time this error ...
Max Grellenhort's user avatar
0 votes
0 answers
308 views

How to crop and include a pdf file with specified margins, while keeping the overall page dimensions the same?

I want to create a document that will contain specific chapters (Introduction etc.) and I also want to add multiple pdf files within it. So far I added the pdf files and I have cropped the white ...
Soph's user avatar
  • 1
0 votes
0 answers
623 views

How to use pdfcrop on Overleaf or TeXworks?

I only use Overleaf and I need to use pdfcrop package, but I have no idea how it is supposed to be used. I have downloaded the package from CTAN, and I tried uploading its files to an Overleaf project ...
tashakinns's user avatar
1 vote
0 answers
244 views

LaTeX to PDF to PDFCrop to PNG by ImageMagick -- How to get PNG dimensions to not exceed 600 in width

I create PNGs from LaTeX files by first cropping the content from the PDF output using PDFCrop and then converting to PNG using ImageMagick. I always use the same settings but the width of the PNG ...
Ungar Linski's user avatar
1 vote
1 answer
94 views

Crop A Pdf Using Code

I have a .tex file that produces a pdf of one page. This pdf contains some information that doesn't fill the full page and leave a big white space. Is there any code / command / environment that ...
user232560's user avatar
1 vote
0 answers
50 views

pstool using pdfcrop fails on complex document

Following a proposal here Proper toolchain for pdfLaTeX and psfrag including hyperref, I switched my pstool crop stage to pdfcrop to avoid a bug in preview. I compile a complex thesis document, ...
Tobias's user avatar
  • 101
1 vote
1 answer
200 views

How to prevent latex from removing the margin from a PDF image

I have a chart in PDF format, which had been cropped to have no margin using pdfcrop Months later, I realized that I need to add X- and Y- axis labels. Because I don't have the original script to ...
Ali's user avatar
  • 633
0 votes
1 answer
227 views

hyperref links not working with pdfcrop in latexmkrc (in Overleaf)

I like to crop white margins to save screen space while working in Overleaf. I use latexmkrc file with the following code: $pdflatex = 'pdflatex %O %S; pdfcrop --margins "20" %B.pdf %B-c.pdf;...
Ondrej Draganov's user avatar
0 votes
1 answer
103 views

Why is this PDF not cropped tightly?

Here is my MWE, adapted with cosmetic changes from Andre Stacey's hobby package, which I compiled with xelatex: \documentclass[crop]{standalone} \PassOptionsToPackage{cmyk,svgnames,dvipsnames,hyperref}...
chandra's user avatar
  • 3,084
2 votes
3 answers
8k views

Installing pdfcrop command-line tool on Mac

I would like to do some PDF cropping at the command line. I've installed BasicTeX and the TeX Live Utility: brew cask install basictex brew cask install tex-live-utility I then opened up the TeX ...
Ken Williams's user avatar
0 votes
1 answer
87 views

Get cropped pdf with luatex [closed]

Is there a good way to automatically crop the pdf document with luatex, in order to get the same result as using pdfcrop after luatex but in one operation and without pdfcrop ?
MB4E's user avatar
  • 1,084
1 vote
1 answer
121 views

Output PDF should only be part of the page

I have a paper that was accepted and now I have to convert my Latex document to their style. All of it is hidden inside the document class. An example code is of the form \documentclass{ws-m3as} \...
Cahn's user avatar
  • 113
10 votes
2 answers
7k views

Remove only top and bottom margins using pdfcrop

I usually use pdfcrop to remove white margins of pdf illustrations in LaTeX documents. Using it by command line: pdfcrop myfigure.pdf it removes all margins but to avoid me to resize the figure (if ...
Gabriele Nicolardi's user avatar
3 votes
1 answer
155 views

Standalone doesn't place properly the content

I'm trying to create many small pdf graphics such as this one: \RequirePackage{luatex85} \documentclass[11pt,a4paper]{article} \usepackage[margin=0cm]{geometry} \usepackage[dvipsnames]{xcolor} \...
skan's user avatar
  • 998
1 vote
1 answer
295 views

When I try to crop single character pdf using "pdfcrop" cropped pdf is not valid

I try to crop the PDF file using the command pdfcrop --hires 1525503522236.pdf 1525503522236_cropped.pdf I get the cropped PDF, but the cropped PDF file is not valid when opened in InDesign or ...
jagannathan jothi's user avatar
2 votes
1 answer
280 views

arara: cropping the output PDF file then converting it into image using ImageMagick

How can I create a single rule for arara that crops the output PDF file using pdfcrop command then convert the output cropped file the same way done by CarLaTeX's convert rule (shown below)? !config #...
Diaa's user avatar
  • 9,529
0 votes
1 answer
2k views

Problem in using pdfcrop

I am writing a LaTeX document on my Windows machine and I want to crop a pdf using pdfcrop. From my research I could learn that, I also have to install perl. I have downloaded and installed 64-bit ...
pkj's user avatar
  • 511
0 votes
0 answers
103 views

slice up latex pdf to little jpeg's

What I would like to achieve I would like to take all the equations in a pdf file and convert them to individual jpegs, is this possible, say by passing a compiler option? I specifically don't want ...
georg's user avatar
  • 369
1 vote
0 answers
1k views

Pdfcrop: Cannot call ghostscript `mgs' in Command Prompt

On Windows 10, I am attempting to call pdfcrop a.pdf from the command prompt, but I get the following error: !!! Error: Cannot call ghostscript `mgs.exe' (No such file or directory/The system cannot ...
Dragon's user avatar
  • 81
2 votes
0 answers
466 views

How to find out if a PDF file has data not visible within the bounding box? [closed]

I am embedding a small area of a large webpage into a document compiled with pdflatex (using \includegraphics). A raster image / screenshot produces artifacts when zooming in, so instead I am saving ...
init_js's user avatar
  • 257
6 votes
2 answers
12k views

PDFCrop: Is it integrated into Latex? Is it part of the graphix package? What on earth is it?

I am new to Latex and this place, so I have a few very simple questions, so simple that I do not find the answers: To automatically get rid of white spaces around an image on a PDF document I would ...
dan1789's user avatar
  • 73
0 votes
0 answers
95 views

matlabfrag and pstool

I am trying to include figures generated by matlabfrag through pstool. But with no luck up to this point. A similar problem is explained on the matlab file exchange and the creater of the ...
Umut Tabak's user avatar
4 votes
1 answer
2k views

Can I pdfcrop a specific page out of a pdf containing several pages?

Can I pdfcrop a specific page out of a pdf containing several pages, say I want page 3 from a pdf that has four pages
Jiapan's user avatar
  • 731
4 votes
1 answer
1k views

pdfcrop not working with TeX Live 2016, LuaLaTeX

I'm compiling \documentclass{article} \begin{document} \immediate\write18{pdfcrop PT1-matlab.pdf} \end{document} with lualatex.exe -synctex=1 -interaction=nonstopmode --shell-escape %.tex on ...
804b18f832fb419fb142's user avatar
1 vote
0 answers
994 views

Font consistency with Excel graphics

I am using Excel to create graphs to then include in my document. The workflow is as follows: Create Graph in excel, adjust width to same width as found from \textwidth, set font to "Book Antiqua" ...
Low's user avatar
  • 57
9 votes
2 answers
3k views

How to run pdfcrop when using \includegraphics with a PDF?

This question is similar to that one, but I'd like to execute pdfcrop when including a PDF.
804b18f832fb419fb142's user avatar
3 votes
1 answer
1k views

Problem with pdfcrop on Windows 10

I've been using pdfcrop (MiKTeX) from time to time without problems. But I recently moved to a windows 10 machine and now I get an error when pdfcrop is executed: The error shown is: C:\...\...
Ignasi's user avatar
  • 136k
1 vote
0 answers
113 views

Problem with Springer cropS.sty style [closed]

I am now making a translated version of the book: Proofs from THE BOOK. I have finished the chapters, but when I put it into the common file to compile, the cropS package crops the page as in the MWE. ...
trequartista's user avatar
  • 1,881
1 vote
1 answer
124 views

why pdfcrop --xetex deletes all content of pdf file? TL 2015

I was reading this on the net, (abut 80% down the page), someone suggested to use pdfcrop with --xetex so that the generated pdf is smaller than the default. When I tried this option, on Linux with ...
Nasser's user avatar
  • 20.4k
0 votes
0 answers
146 views

Problem in printing cropped pdf file

I am facing a problem printing a cropped pdf file. I used pdfcrop in ubuntu. The digital version looks as it should look but when I tried to print that (using adobe reader) the print out was not the ...
Physics Moron's user avatar
0 votes
1 answer
1k views

After El Capitan upgrade, pdfcrop does not crop pdf files

I have recently upgraded to El Capitan, and pdfcrop produces an output file, but does not crop the file. Any thoughts?
klurie's user avatar
  • 111
1 vote
1 answer
679 views

updmap error (affecting pdfcrop)

After installing texlive (on LMDE2), pdfcrop is running into errors. The error output is identical to the errors I get when I run updmap from terminal: /usr/local/texlive/2015/bin/i386-linux/updmap: ...
user86007's user avatar
6 votes
1 answer
2k views

Crop page to contents

I intent to write a paper and have to use this template (contains working with placeholder text). For editing it would be useful to crop the pages, in order to make viewing in TeXStudio's internal ...
kdb's user avatar
  • 1,869
4 votes
1 answer
506 views

Postprocess pdf with \write18 [duplicate]

I want to run a postprocessing script on my pdf. For integration with my editor it should be executed at the end of the pdflatex run, automatically -- ideally without having to change the compilation ...
kdb's user avatar
  • 1,869
8 votes
2 answers
16k views

Install and use pdfcrop on windows

first of all I have to admit I'm definitely not an expext with tex stuffes ; I have found several post related to perl script not working with latex but I can't figure out what is happening on my ...
ClementWalter's user avatar
5 votes
1 answer
3k views

pdfcrop content remains

Here's a minimal working example to illustrate the issue. Suppose we make a document like this \documentclass[12pt]{article} \begin{document} 11111111111111111111111111111 \vspace{5mm} ...
SU3's user avatar
  • 519
1 vote
1 answer
255 views

Automatically generate fitted pdfs

I'm writing some kind of a notebook using LaTex. I'd like to have basically one page for each note, the page being fitted to the text of the note. For the moment I'm using a very long page by default, ...
Martin's user avatar
  • 143
3 votes
1 answer
939 views

Strange "Too many files" error with pdfTeX

That is the auto-pst-pdf message I get when I compile the MWE below with the pdfTeX engine. I have just (meaning, as of this post's date) reinstalled my entire MikTeX 2.9 system with a complete ...
Marcos's user avatar
  • 5,422
17 votes
4 answers
5k views

How do I make pdfcrop output all pages of the same size?

I am trying to crop a powerpoint animation that I converted to pdf for import into beamer (using ppsplit), but when I run pdfcrop (from texlive) to reduce the whitespace, it crops the pages ...
zje's user avatar
  • 1,281
1 vote
1 answer
3k views

Inserting .pdf created in Visio to LaTeX without whitespace [duplicate]

Introduction: I recently created a load of figures in Microsoft Visio. These figures looks great, however, are stored in the .png format. I am interested in raising the picture quality. Method: I am ...
SteewDK's user avatar
  • 219
7 votes
1 answer
743 views

pdfcrop using luatex engine minimal setup

I want to try the great pdfcrop.pl script by Heiko Oberdiek (http://www.ctan.org/pkg/pdfcrop) with LuaTeX engine. Unfortunately my knowledge about LaTeX tools like LuaTeX is non existent. I'm looking ...
Msciwoj's user avatar
  • 173
16 votes
2 answers
4k views

Is there a way to remove white margins when importing a pdf file?

A workaround is to use pdfcrop separately (in the terminal) to crop the PDF file we want to import. However - is there a way to remove white margins when importing a PDF file from within the tex file?...
tales's user avatar
  • 265
6 votes
1 answer
1k views

Crop off-page vertices in vector graphic PDF

I have a PDF that contains one page, with a vector image on it. I want to use the left half of the image on the backside of the front cover-page of my work, and the right half on the front of the back ...
derabbink's user avatar
  • 1,640
3 votes
2 answers
6k views

Crop image using pdfcrop (has footer item)

I'm trying to crop the following image and I'd like to use pdfcrop to do it. The footer causes a problem though. So I did something like this pdfcrop --margin '0 0 0 -50' CircuitSimulation.pdf and ...
user968243's user avatar
5 votes
2 answers
165 views

Macro psGTriangle leads to pdfLatex ignoring the figure

I've noticed that the pstricks macro psGTriangle, to draw triangles with Gouraud shading does not work in combination with auto-pst-pdf/pdflatex. There is no error message, the pspicture environment ...
Adam B.'s user avatar
  • 935
2 votes
1 answer
3k views

psfragfig pdflatex image shifted and cropped

Some images inserted with psfragfig, are shifted to one side (right) and partially placed off the document. (see image, bottom figure is the one I'm talking about). It occurs with TexShop whether I ...
Wall-E's user avatar
  • 121
8 votes
2 answers
14k views

Is there a pdf crop utility for windows that will give smaller files?

The answers to this question contain pdf cropping utilities that will give smaller files than Eric Doviak's original, but as far as I can tell they only work in Linux. Is there a way to make them ...
E.P.'s user avatar
  • 1,415
5 votes
1 answer
1k views

How do I rescale cropped material with pdfcrop

I'm running pdfcrop (version 1.31) on Mac OSX. From what I read on pdfcrop page I should be able to rescale the size of the final document. The suggested approach is pdfcrop infile.pdf letter ...
A.Ellett's user avatar
  • 50.5k