For those of you interested… I am nearing completion of a new PDF class for XOJO. This one is a bit different from all the others out there. It is not designed to utilize all the functions and features of PDF, but more to emulate the GRAPHICS object that exists in XOJO today. I believe that this will cover alot of the needs developers have for PDF, without adding the overhead and complexity required by other commercial PDF classes.
If has all the properties of a GRAPHICS object, except for AntiAlias, Copies, Firstpage,Handle, Lastpage,PrintingCanceled,TextUnit, Transparency and UseOldRenderer
For the most part because most of these properties are specific to the direct use of a PRINTER, or in creating a PICTURE object.
It adds the following properties that are for direct support of PDF. Author, Subject, Title, Landscape, Style (dotted/dashed lines).
If supports all the methods of a GRAPHICS object, expect for CLIP, DrawCautionIcon, DrawNoteIcon,DrawStopIcon, Pixel and StringDirection
It adds the following new methods… Margins and SavePDF
The first version to be released will only support the PDF Base14 fonts which are Normal/Bold/Italic versions of Courier, Arial/Helvetica, Times, Symbol and Dingbats. Future version will hopefully support all fonts types.
Example of use
pdf=new SimplePDF pdf.forecolor=&cff0000 pdf.textfont="Courier" pdf.textsize=24 pdf.drawstring "Hello World",100,100 pdf.author="Dave" pdf.subject="This is a test" pdf.SavePDF(f) ' where F is a folderitem
I am posting this now for two reasons… One to see how much interest there is in a light-weight PDF class… and to see if anyone has any ideas for features without straying from the GRAPHICS OBJECT paradigm.