[Melbourne-pm] unicode html->pdf?

Mathew Robertson mathew.robertson at netratings.com.au
Tue Oct 23 20:37:06 PDT 2007


I have also been in the same situation, but I cant offer any
tried-and-tested solution.

PDF::API2 will do UTF8, but getting that to work with template-driven
sites is next to impossible.  This is ignoring the fact that most sites
now use some javascript to do the right thing.

The only solution which may work is to automate/script firefox so that
it loads the website, then calls the print handler to print a PDF.  You
could use one of the Firefox extensions for scripting a page-download
(eg: http://www.dbai.tuwien.ac.at/user/pollak/webpagedump), but hack it
to print to a PDF printer (rather than save to disk).


Guy Morton wrote:
> I've been struggling with this for a while so I thought I'd ask here  
> to see if someone else has come across this problem and found a  
> workable solution.
> I have a client for whom I maintain a number of html-formatted  
> document templates. These are editable via a web interface using the  
> tinyMCE editor, which is very groovy and which works well. I use TT  
> to render these templates into documents for further processing into  
> PDFs.
> HTMLDOC is the application I've used in the past to convert these  
> documents into PDF, however it does not support unicode and therefore  
> cannot render chinese characters in documents.
> So, what I need is a way to convert my utf-8 charset HTML-formatted  
> documents into PDF.
> Anyone got a suggestion as to what might work?
> Guy
> _______________________________________________
> Melbourne-pm mailing list
> Melbourne-pm at pm.org
> http://mail.pm.org/mailman/listinfo/melbourne-pm
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.pm.org/pipermail/melbourne-pm/attachments/20071024/d93f5195/attachment.html 

More information about the Melbourne-pm mailing list