So let’s say you have some random PDFs and what you want is one PDF that includes all of the original PDF files and a table of contents listing all of the files and the proper page numbers. Well in Ruby it is not too hard to put this together. There are a wealth of plugins, gems, and other ruby software available for manipulating and creating PDFs (a thorough list can be found here – ). To get this project up and running we are going to use two PDF::Writer () and PDFTK () – though if you want to get fancier and also include text, html, or xml documents you can use PDF::Htmldoc () which requires Htmldoc to be installed. Before I do get started though, I also have give thanks to George Anderson over at who wrote a lot of similar code on the project which provided me with some great examples.
smartlogic ::