Popular recipes tagged "pypdf"http://code.activestate.com/recipes/tags/pypdf/2011-11-03T17:42:10-07:00ActiveState Code RecipesCrop PDF File with pyPdf (Python) 2011-11-03T17:42:10-07:00ccpizzahttp://code.activestate.com/recipes/users/4170754/http://code.activestate.com/recipes/576837-crop-pdf-file-with-pypdf/ <p style="color: grey"> Python recipe 576837 by <a href="/recipes/users/4170754/">ccpizza</a> (<a href="/recipes/tags/pdf/">pdf</a>, <a href="/recipes/tags/pypdf/">pypdf</a>). Revision 3. </p> <p>This recipe was originally posted by <code>sjvr767</code> on <a href="http://www.mobileread.com/forums/showthread.php?t=25565" rel="nofollow">http://www.mobileread.com/forums/showthread.php?t=25565</a> and I decided to also make it available here.</p> <p>It uses pypdf (<a href="http://pybrary.net/pyPdf/%29" rel="nofollow">http://pybrary.net/pyPdf/)</a></p> <p>The script is supposed to be run like this:</p> <p><code>pdf_crop.py" -m "120 50 120 180" -i mypdf.pdf</code></p> <p>where the margins are <code>left top right bottom</code></p> <p>To install pyPdf try <code>easy_install pypdf</code>.</p>