On Sun, Jan 25, 2009 at 04:18:26PM -0800, Gary Kline wrote:
>       Folks,
>       Is there a way to split a large pdf file into smaller [ say 1MB ]
>       chunks?  Or are there open source tools out there that i can
>       build?  
>       thanks in advance,
>       gary

To split the file, use split(1):

  $ split -b 1M file.pdf file-chunk

See "man split".

But you won't be able to view the chunks separately,
because, well, they aren't PDF files anymore. ;-)
For this, you'd prefer to split the PDF file after
N pages. You may want to investigate print/pdftk:

>From /usr/ports/print/pdftk/pkg-descr:

  If PDF is electronic paper, then pdftk is an electronic staple-remover,
  hole-punch, binder, secret-decoder-ring, and X-Ray-glasses.
  Pdftk is a simple tool for doing everyday things with PDF documents.
  Keep one in the top drawer of your desktop and use it to:
  Merge PDF Documents
  Split PDF Pages into a New Document
  Decrypt Input as Necessary (Password Required)
  Encrypt Output as Desired
  Burst a PDF Document into Single Pages
  Report on PDF Metrics, including Metadata and Bookmarks
  Uncompress and Re-Compress Page Streams
  Repair Corrupted PDF (Where Possible)
  Pdftk is also an example of how to use a library of Java classes
  in a stand-alone C++ program. Specifically, it demonstrates how GCJ and CNI
  allow C++ code to use iText's (itext-paulo) Java classes.
  WWW: http://www.accesspdf.com/pdftk/

There are also other less heavy-weight programs to extract
pages and page-ranges from a PDF and PostScript file...


Cordula's Web. http://www.cordula.ws/
freebsd-questions@freebsd.org mailing list
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"

Reply via email to