From: Tony G. <Ton...@Su...> - 2003-08-14 16:01:58
|
The xmlroff-list archive shows a message from Dave Malcolm on 5th August titled "GnomePrint with a client-supplied GnomePrintJob" that I, for one, didn't receive. Am I the only one who didn't get it? To answer Dave's question, on the face of it, it looks like the code is correct. What are you getting as output? A zero-length file? Small and invalid PDF file? Blank PDF pages? fo_xsl_formatter_set_result_tree() does fo_xml_doc_ref(result_tree), so you should be able to keep the FoXmlDoc just by omitting the fo_xml_doc_unref() in your code. I would prefer to keep the '#include <libgnomeprint/gnome-print.h>' out of fo-doc-gp.h so apps that use libfo don't need to depend on the libgnomeprint headers. Maybe the new function could go in fo-xsl-formatter-private.h or in a new header for use by apps, such as yours, that aren't troubled by having to know details of libgnomeprint. Yes, I'm still trying to get to the tree-viewer app. Regards, Tony Graham ------------------------------------------------------------------------ XML Technology Center - Dublin Sun Microsystems Ireland Ltd Phone: +353 1 8199708 Hamilton House, East Point Business Park, Dublin 3 x(70)19708 |