Can I add a table to a PDF with PDFNet?

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:

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

Note that you could do the same with HTML:

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

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