I have a few books as PDFs, and I'd like to split them by chapter for easier consumption on a mobile phone. Is there any tool (or sequence of tools) I can use to easily split the book into different PDF files by chapter?
|
This would be hard to do automatically, as there is no standard chapter label in a PDF file. However, if you do not mind some manual work, write down the pages for each chapter, and use
You need to install pdftk first:
You can also use ghostscript (which comes preinstalled) directly:
This is quite easy to convert a script that runs things semi-automatically. First, create an input file; on each line, put the desired output pdf file title, the starting page, the ending page -- like that:
Save this, using a text editor, to file Now, create a script -- save the following to a file called
Make the script executable:
And run it:
|
||||
|
|
|
You have many choices for that: 1. flpsed
2. Pdftk
3. Pdfedit
4. Using GIMP Install krita using the following command
Open the Gimp, and open the PDF document you wish to edit. For multiple page documents, it is easier on your computer to edit them one page at a time. If you choose more than one page, they will open in individual windows. Make the necessary changes to the document.Save the document as a Gimp XCF file (you'll have to save several different pages if it is a multi-page document). Close the document, then open the resulting image in Krita. Printing to PDF with Krita Go to File>Print, then choose Print to PDF. In the same dialogue box, choose the destination folder and name of the output document (such as file1.pdf). 5. PdfMod 6. Inkscape An Open Source vector graphics editor, with capabilities similar to Illustrator, CorelDraw, or Xara X, using the W3C standard Scalable Vector Graphics (SVG) file format. Inkscape supports many advanced SVG features (markers, clones, alpha blending, etc.) and great care is taken in designing a streamlined interface. It is very easy to edit nodes, perform complex path operations, trace bitmaps and much more. We also aim to maintain a thriving user and developer community by using open, community-oriented development. Install inkscape in Ubuntu
7. PDF-Shuffler PDF-Shuffler is a small python-gtk application, which helps the user to merge or split pdf documents and rotate, crop and rearrange their pages using an interactive and intuitive graphical interface. It is a frontend for python-pyPdf. |
|||
|
|
|
You could try pdfsam (pdf-split-and-merge) but you have to manually select the beginning of each chapter. |
|||
|
|
|
I was looking now for hours for the perfect tool for the same reason and indeed pdfsam The split by chapter worked for me, it was not necessary to select the pages manually, there is a function provided and you can even select the "depth" -- like e.g. on section, or subsection level. What took me some time to find out: How to give the output files the name of the chapters instead of the regular naming (user defineable prefix + number of starting page + original document name). After hours of searching I found the solution: One can use "complex prefix(es)" as described here. This solved all of my problems and should help you as well. |
||||
|
|

