Other options for PDF creation besides 'pdftron.PDF.PDFDC'?

Q: Is there another API for creating PDFs from elements like text runs, rectangles etc apart from going via HDC calls ( using ‘pdftron.PDF.PDFDC’?

A:

Yes, using PDFNet there are multiple ways to generate PDF content.

The most powerful option is to use ElementBuilder & ElementWriter as shown in ElementBuilder sample:

ElementBuilder: http://www.pdftron.com/pdfnet/samplecode.html#ElementBuilder

This gives access to full PDF graphics modes, but for some applications the API may be overkill. In case you don’t need low-level of control, it may be simpler to generate content from HTML string (see HTML2PDF sample - http://www.pdftron.com/pdfnet/samplecode.html#Html2Pdf) or from WPF/FlowDocuments (e.g. along the lines of Xaml2Pdf sample - http://www.pdftron.com/pdfnet/samplecode.html#Xaml2Pdf).

For more info please see the following entry:

https://groups.google.com/d/topic/pdfnet-sdk/LNRckeTekzs/discussion