Util to split pdf into 16 pg segments

  • Thread starter Thread starter A Man
  • Start date Start date
A

A Man

I have Adobe Acrobat Distiller 7.0. I need to split a pdf of about 100 pgs
into 16 page segments, each with a different filename. Is there a freeware
util to do such a thing? Preferably something that doesn't require a third
party util like perl or python.

Thanks.
 
I have Adobe Acrobat Distiller 7.0. I need to split a pdf of about 100 pgs
into 16 page segments, each with a different filename. Is there a freeware
util to do such a thing? Preferably something that doesn't require a third
party util like perl or python.

Thanks.
Forgot to mention I am looking for a util for Win2000 or DOS.
 
Forgot to mention I am looking for a util for Win2000 or DOS.

PDFTK can do that, you can download it from
http://www.accesspdf.com/index.php?topic=pdftk

Copied from that page:


pdftk: the pdf toolkit

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 command-line 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
* Fill PDF Forms with FDF Data and/or Flatten Forms
* Apply a Background Watermark
* Report on PDF Metrics such as Metadata, Bookmarks, and Page
Labels
* Update PDF Metadata
* Attach Files to PDF Pages or the PDF Document
* Unpack PDF Attachments
* Burst a PDF Document into Single Pages
* Uncompress and Re-Compress Page Streams
* Repair Corrupted PDF (Where Possible)

Pdftk allows you to manipulate PDF easily and freely. It does not
require Acrobat, and it runs on Windows, Linux, Mac OS X, FreeBSD and
Solaris.

Pdftk is free software (GPL).
 
I looked at the PDFTK docs and could not find a way to make 16 pg segments
from a large pdf. There is a burst option which makes single page pdfs from
one source pdf though, but that is not what I need.

Do you know how to use PDFTK to make 16 pg pdfs from a larger pdf? Thanks.

Oh, if the last pdf is less than 16 pgs that's ok.
 
Do you know how to use PDFTK to make 16 pg pdfs from a larger pdf? Thanks.

Several possibilities. You can burst and recombine or you can "cat"
the pages you need. A sample batch for the latter approach:

----------------- Copy as GetPages.bat ----------------------
set first=%2
goto startup
:next
set /A "first+=" %4
:startup
set /A "last=first - 1 + " %4
if %last% gtr %3 set last=%3
PdfTK %1 cat %first%-%last% output %first%-%last%_%1
if %last% lss %3 goto next
-------------------------------------------------------------

Start the batch those:

GetPages Sample.pdf 3 36 16

This extracts from page 3 to page 36 of Sample.pdf documents with
16 pages, each.

If you want to auto-detect the number of pages of Sample.pdf, than
have a look at the "Backgrounds over textboxes/pictures" sample:

http://www.accesspdf.com/article.php/20041129165718588

BeAr
 
Thanks Bear. I tried it and it worked. Your example will also help me
understand how pdftk works. Thanks again.

BTW, I was using Acrobat's File, Save As to extract every 16 pages, but the
Save As function would not keep the pdf in the format/version of the original
PDF. It defaulted to a different pdf version, which I didn't want, and I
could not figure out how to change the behavior of Save As.
 
Back
Top