Along the lines of the other comments ...
What I use in production is a local tomcat server running the xmlsh servlet.
http://www.xmlsh.org/EmbeddingServlet

Then from MarkLogic I package all the files needed for a PDF (including the 
source XML, as well as all images)  into a ZIP stream, base64 encode it and 
POST it to an xmlsh servlet.
The servlet then unencodes, unzips the files, uses XSLT to produce FOP then 
Apache FOP to produce a PDF.
It then sends back the PDF to MarkLogic which then pushes it out to the client 
with the right Content-Type for PDF.

This allows dynamic generation of PDF from a ML hosted application, entirely 
scripting based (only a few lines scripting of code on both ends).

This is architecturally similar to the MLJAM solution but doesn't require any 
java coding.





----------------------------------------
David A. Lee
Senior Principal Software Engineer
Epocrates, Inc.
[email protected]<mailto:[email protected]>
812-482-5224

From: [email protected] 
[mailto:[email protected]] On Behalf Of 
[email protected]
Sent: Thursday, June 09, 2011 10:21 AM
To: [email protected]
Subject: [MarkLogic Dev General] output PDF from MarkLogic?

Is there a library for outputting PDF files from MarkLogic? I found plenty of 
information about converting PDF to XML, but what about the other way around?

Thanks,
Ryan
_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to