On 13 May 2010, at 18:48, Jonathan Steel wrote:

mismatch: div line 480 and html

followed by just as many:

prince: /Users/jonathan/tmp/97.html:552: error: Premature end of data in
tag div line 372

and ending with:

prince: /Users/jonathan/tmp/97.html: error: could not load input file
prince: error: no input documents to process

Did you check first that the html is valid by viewing the source
(view, page source or similar in browser) and copying the complete
text and pasting into w3c html validator (google will find it)?


I had planned on that, but due to time constraints I never got around to
it. Being so expensive, Prince pretty much had to work without a hitch
if I was going to spend any time trying to make it work.

As some others have pointed out, you simply need to provide Prince with valid XHTML. It even provides you with a nice syntax error to trace down where YOUR code is wrong. You wouldn't expect Ruby to let you get away with "ruts 'Hello World'" instead of "puts 'Hello World'". We've use Prince in a project that created the most complex documents you can ever imagine, using almost everything Prince has to offer, including plenty of SVG images with dynamic data in them. We're speaking of hundreds of pages too. It works without a hitch and support from the developer is simply amazing. Yes, it's expensive, but it's worth every cent if you plan on generating plenty of PDF documents with complex layouts.


Best regards

Peter De Berdt

--
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.

Reply via email to