From: Bruno S. <bru...@ya...> - 2005-04-05 17:26:19
|
I'm currently working on a project for a philanthropic organization. I need to write an invoicing application in C. I am not a professional developer. What I need to do is fetch data from a database and issue PDF invoices. I'm using Daniel Veillard's Libxml2 library and I can issue XML data files with all the required billing details. I have written an XSL file with formating objects. As this project is supposed to issue many thousand invoices at the end of each month, performance is a concern. I would like to be able to Load my XSLFO file only once Apply it to many thousand dynamically created XML data trees. my code goes: xmlDocPtr invoice_doc = NULL; (..... ) invoice_doc = xmlNewDoc(BAD_CAST "1.0"); invoice_root_node = xmlNewNode(NULL, BAD_CAST "invoice"); xmlDocSetRootElement(invoice_doc, invoice_root_node); then I populate the tree with the required billing details. How is it possible to dynamically transform that memory tree into a PDF. I would like to avoid writing xml data files to disk. I hope I'm being clear. Thanks in advance __________________________________________________________________ Découvrez le nouveau Yahoo! Mail : 250 Mo d'espace de stockage pour vos mails ! Créez votre Yahoo! Mail sur http://fr.mail.yahoo.com/ |