Can I add a table to a PDF with PDFNet?

160 views
Skip to first unread message

Aaron

unread,
Jul 30, 2014, 7:33:10 PM7/30/14
to pdfne...@googlegroups.com
Q:

Can I add a table to a PDF with PDFNet?

----------
A:

There are multiple ways to add a table to a PDF document using PDFNet.

We provide a low-level interface called ElementBuilder which can insert text and paths directly into the PDF content stream.  Here are some code samples which could get you started:

http://www.pdftron.com/pdfnet/samplecode.html#ElementBuilder
https://groups.google.com/d/msg/pdfnet-sdk/bSYgR77JiAw/AkL8RUb9SuIJ

An easier option is to create the table in another format, such as XAML, and then convert the XAML document to PDF:

https://groups.google.com/d/msg/pdfnet-sdk/bQcNHa5lHxQ/U3ZQ64XqJO0J
http://www.pdftron.com/pdfnet/samplecode.html#XAML2PDF

Note that you could do the same with HTML:

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

On Windows platforms, you can even convert Office documents, as well as any printable document format:

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



Aaron

unread,
Feb 20, 2019, 1:36:06 PM2/20/19
to PDFTron PDFNet SDK
For a one-line method to (on Windows desktop, macOS, and Linux) add an HTML snippet to a PDF page, see https://groups.google.com/d/msg/pdfnet-sdk/_4_NXk5pWzw/mMsFXeDbBAAJ

 
Reply all
Reply to author
Forward
0 new messages