OpenDocument4all - Info and tools about OpenDocument
Sunday, 05 February 2012
Home arrow My Blog
My Blog
CategoriesArchives
Main Menu
Home
My Blog
AODL - Project
AODC - Project
OO Development & Info
Forum
About OpenDocument ...
Search
News
Contact Us
Login Form





Lost Password?
No account yet? Register
Sourceforge.net

SourceForge.net - Goto the project homepage
Project site on SF.net

 

Demand OpenDocument

 

Countomat Webcounter und Webstatistik (Statistik & Logfileanalyse, Counter)

Lars’s Blog

Light weight PDF exporter for AODL 

February 2nd, 2007

Due 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.

Comments are closed.



Quick jump
Download area
Who's Online
We have 30 guests online
Polls
Should AODL and AODC also implement export as PDF and RTF?
 
Popular
© 2005 MamboZ. All rights reserved.