Merging Adobe PDF’s and generating a table of contents on the fly using ruby

July 21st, 2008 by Joseph Jakuta

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 – http://wiki.rubyonrails.org/rails/pages/HowtoGeneratePDFs). To get this project up and running we are going to use two PDF::Writer (http://rubyforge.org/projects/ruby-pdf/) and PDFTK (http://www.accesspdf.com/pdftk/) – though if you want to get fancier and also include text, html, or xml documents you can use PDF::Htmldoc (http://htmldoc.rubyforge.org/) which requires Htmldoc to be installed. Before I do get started though, I also have give thanks to George Anderson over at Benevolent Code who wrote a lot of similar code on the project which provided me with some great examples.

Read the rest of this entry »

Advanced Model Based searches in rails

July 21st, 2008 by Scott Davis

Creating Your First Custom SkinnableComponent in Flex 4

July 19th, 2008 by Greg Jastrab

Creating a Custom Layout Class in Flex 4

July 16th, 2008 by Greg Jastrab

Skinning A Button in Flex 4 Using FXG

July 16th, 2008 by Greg Jastrab

Compiling Your First Flex 4 Application

July 15th, 2008 by Greg Jastrab

Problems with restful_authentication Plugin and Internet Explorer Cookies

July 11th, 2008 by John Trupiano

Losing Data When Drag and Dropping Custom Classes in Flex?

July 11th, 2008 by Greg Jastrab

Merging a :has_many relationship into one instance

July 10th, 2008 by Joseph Jakuta

Reading and replacing text in Word DocX and Excel XlsX documents using Ruby

July 9th, 2008 by Joseph Jakuta