Light weight PDF exporter for AODL
February 2nd, 2007Due to the increasing number of questions for a PDF export feature for AODL.
I’ve decided to write a light weight PDF exporter for AODL vers. 1.x and started
last evening. After a few hours of programming a first PDF exporter implementation
was finished. Up to now, it could export all ITextContent (text) objects of an OpenDocument
text document to a PDF file. The PDF exporter will become an own assemblie and the exporter object can
be passed to the now overloaded SaveTo method of a IDocument objects. As you can see in the
following code snippet the usage is as simple as possible.
AODL.ExternalExporter.PDF.PDFExporter pdfExporter =
new AODL.ExternalExporter.PDF.PDFExporter();
AODL.Document.TextDocuments.TextDocument doc =
new AODL.Document.TextDocuments.TextDocument();
doc.Load("E:\MyDocuments\simple_text.odt");
doc.SaveTo("E:\MyDocuments\simple_text.pdf", pdfExporter);
Since it will be available as a seperat dll it don’t have to be deployed within a project
if it isn’t used. Also the possibility to pass an external exporter object to the overloaded
SaveTo method will give you the option to write your own exporter dll. Therefor you only
have to implement the IExporter interface of the AODL main dll. Since the early state
of implementation this dll isn’t available for download or through the CVS repository.
I hope to make a first alpha version available within the next week.
My Blog 