Wednesday, September 9th, 2009
Pdf with .doc templates using prawn in Ruby on Rails
Problem
You want to generate pdf documents in your Ruby on Rails app using .doc templates.
Solution
Open the .doc document in OpenOffice and save it as an Open Document Format (.odt).
Open the saved .odt document and export to pdf, making sure you use ‘Losless compression’ in the General Options section.
Use imagemagick’s convert to make the pdf file [...]
No Comments » - Posted in ruby on rails by kosmas
Friday, January 25th, 2008
Combining multiple ps pages into a multiple page pdf file
Problem
You have a lot of ps files and you want to combine them into a single pdf file with multiple pages.
Solution
You can use Ghostscript:
gs -q -sPAPERSIZE=a4 -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=out.pdf in1.ps in2.ps in3.ps