Jeff Burlysystems wrote: > Sounds like the underlying html/css in your "complicated" test might > not be valid, such that prince is saying that it isn't able to > generate the pdf because it can't parse/process that html/css? You > might want to run that html/css thru a validator first, like > http://validator.w3.org/ , to first fix any invalid html/css and then > try it again. >
I think I will try this just because its a good exercise anyways. > As for flyingsaucer, I looked into using that a while back but just > didn't like all of the dependencies required to get it working at the > time, especially for ruby/rails project. But, maybe if you already > have a jvm installed, or are already running jruby, or .... > I played with it some more and it turns out that as soon as I install the acts_as_flying_saucer plugin, the layout of all my pages gets totally messed up. Uninstall the plugin, pages go back to normal. So this one is definitely out of the picture. I might look at the underlying Java Library and compile a simple binary that we can use to convert saved pages. More work then doing it in rails, but it would be just like prince or wkthtmltopdf. > Whatever you end up using to gen your pdfs with, another tool you > might find useful is pdftk -- http://www.accesspdf.com/pdftk/ -- for > any pre-/post-processing of your pdfs, like splitting pdfs into pages, > stitching pdf pages together, adding watermarks, etc. > Thanks. This tool does look interesting. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

