Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > PDF

Notices

Reply
 
Thread Tools Search this Thread
Old 12-06-2012, 01:20 PM   #16
annoporci
Enthusiast
annoporci began at the beginning.
 
Posts: 36
Karma: 10
Join Date: Oct 2012
Location: Los Angeles
Device: Kindle Paperwhite 2019, Firmware 5.12.4
Quote:
Originally Posted by willus View Post
You might check ... Briss.
Thanks willus, I've used briss before, but I need a fully automated setup, where the bounding boxes are automatically calculated. Ghostscript can be made to do it, with some scripts.

http://stackoverflow.com/questions/8...tscript-to-pdf
annoporci is offline   Reply With Quote
Old 12-07-2012, 12:09 AM   #17
willus
Fuzzball, the purple cat
willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.
 
willus's Avatar
 
Posts: 1,273
Karma: 11087488
Join Date: Jun 2011
Location: California
Device: iPad
Quote:
Originally Posted by annoporci View Post
Thanks willus, I've used briss before, but I need a fully automated setup, where the bounding boxes are automatically calculated. Ghostscript can be made to do it, with some scripts.

http://stackoverflow.com/questions/8...tscript-to-pdf
If you just want to crop each page of a PDF file to its bounding box, try k2pdfopt with these options:

-mode copy -n -t


This will copy the source file (-mode copy), keeping it in its native format (-n), but also trim each page to its bounding box (-t) as determined graphically by k2pdfopt. With k2pdfopt you can drop a folder full of PDF files onto the icon and it will batch process the entire folder. If you don't like how it names the output files, look into the -o option (command-line usage here). No other scripts or programs needed. The only issue with the above command is that it will not size each output page to the trimmed region exactly. It will keep the aspect ratio the same as the original source page, but this is also adjustable with the -w and -h options.

Last edited by willus; 12-07-2012 at 10:02 AM.
willus is offline   Reply With Quote
Advert
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
starting with multiple files? Alkiera Sigil 4 02-07-2011 02:03 AM
Multiple CSS Files jjm6383 Sigil 2 06-28-2010 05:44 PM
Txt files - Convert to Epub - Multiple files into one book - noob help Cernan Calibre 6 05-18-2010 10:12 AM
Multiple Calibre Files? Sydney's Mom Calibre 21 05-02-2010 10:42 AM
Multiple HTML Files JJH1947 Calibre 4 04-07-2009 10:24 AM


All times are GMT -4. The time now is 03:58 AM.


MobileRead.com is a privately owned, operated and funded community.