PDF merge or split and name with bookmark

merge with bookmark

http://sourceforge.net/projects/pdfmerge/

PDF Split and Merge tool is implemented using the PdfSharp library and is either GUI or command driven.It is useful for automated document creation.It allows bookmarks from the input pdfs to be imported and flexibly embedded in the destination document. PDF pages can be numbered and annotated with a footer label.

split and name with bookmark

Scanning a large number of pages works well, but it’s always a problem later splitting them up. Using splitter pages works okay, but sometimes it’s necessary to split a large single PDF. For instance, perhaps there are multiple letters contained in a single scanned file.

Using a program to split that large PDF according to bookmarks is one technique to overcome that problem.

The basic process is to open the large PDF and insert a bookmark everywhere a split is desired. The bookmark gets named according to what the final split PDF file should be named. For instance, in the case of correspondence the new file name could be <2012-2-18 Mr. Smith> so a bookmark would be created at the first page of that letter with that name. When split, all bookmarks become file names. There are more options than that but that’s the basic technique.

If the document already contains bookmarks, the new bookmarks could contain keywords or symbols that uniquely identify them and the free Java program mentioned below would only split on those bookmarks.

There is a free Java program that will split just like this. I’m going to work up an AutoIt3 script to handle the program with a GUI, but as the Java program comes it’s a jar command line program.

For testing I’m using the following folder structure:

c:\javaPDFsplit\splitPDFjar             … contains the SplitPDF.jar program
c:\javaPDFsplit\input                         … contains the file to be split
c:\javaPDFsplit\output                      … contains the split files

Here’s the command line for a PDF called test.pdf

c:\javaPDFsplit\java -jar .\SplitPDFjar\SplitPDF.jar -bLevel 1 -iFile .\input\test.pdf -oFolder .\output

Here’s the project site, which has a description of the various things the program can do.

http://sourceforge.net/projects/splitpdf/

Here’s the download page, where you will want the file <SplitPDF.jar> and the file <Split PDF Bookmark.pdf>

http://sourceforge.net/projects/splitpdf/files/

The file <Split PDF Bookmark.pdf> explains other options.

If you put the files in a folder called <c:\javaPDFsplit\splitPDFjar\> then you can use the command line noted above.

As an aside, and possibly a note for a future post, some PDF programs let you automatically create bookmarks based on certain criteria. NitroPDF allows such actions and a description is on their website here: http://www.nitropdf.com/help/automate_pdf_bookmark_creation.htm other program may also have this feature but I haven’t researched further.