Can I use PDFNet in a web app to extract and edit PDF content?

Q: We are interested in your PDFNet Core SDK (http://www.pdftron.com/
pdfnet) to use with our .NET 2.0 web application project and have a
few questions;

We need to extract all the information from pdf file and re-generate
very same looking pdf file with same images and different text on it
(like as in mail merge), but text should be the same font, size, color
and location on page,

• Can it be used with .NET 2.0 web applications?
• Can PDFNet Core SDK extract text color information from pdf file
programmatically?
• And , can it generate pdf file with same fonts and font colors
programmatically?
• Can it extract location information (on page) for each text object
on page (to re-crate very same looking pdf document as original)
• Can it add watermark programmatically?
• Can it be used extract Turkish or other language characters (like İ,
I, ö, ç, ü, ğ, ş, Ş, Ö, Ğ, Ç etc)
• Can it show pdf file as small jpg image programmatically?
• To extract, re-create and add security password to pdf - which
product should be licenced?


A: You can use PDFNet SDK to implement the required solution.

• Can it be used with .NET 2.0 web applications?

Yes, PDFNet is available a .NET component (http://www.pdftron.com/
pdfnet/downloads.html).

• Can PDFNet Core SDK extract text color information from pdf file
programmatically?

Yes, as a starting point you may want to take a look at
ElementReaderAdv sample:

• And, can it generate pdf file with same fonts and
• font colors programmatically?

Yes you can copy graphical elements from one page to another. You can
also edit an existing page (i.e. modify existing elements, delete
existing or add new elements. As a starting point please see
ElementEdit sample:

• Can it extract location information (on page) for each text object
on page (to re-crate
• very same looking pdf document as original)

Yes you have full control over the graphics state. Again probably it
is easier to copy or modify existing elements but you can also create
all content from scratch.

• Can it add watermark programmatically?

Yes. You can use high-level ‘pdftron.PDF.Stamper’ utility class
(http://www.pdftron.com/pdfnet/samplecode.html#Stamper) or you can use
ElementBuilder & ElementWriter for full control (for more info please
see ‘How do I stamp a page?’ in http://www.pdftron.com/pdfnet/faq.html).

• Can it be used extract Turkish or other language characters (like İ,
I, ö, ç, ü, ğ, ş, Ş, Ö, Ğ, Ç etc)

Yes - PDFNet comes with full Unicode support. Please note that any
text/character output limitations in
TextExtract sample (http://www.pdftron.com/pdfnet/
samplecode.html#TextExtract) are due to console window and are not
related to PDFNet.

• Can it show pdf file as small jpg image programmatically?

Yes, PDFNet comes with a built-in rasterizer. The relevant sample is
PDFDraw: http://www.pdftron.com/pdfnet/samplecode.html#PDFDraw

➢ To extract, re-create and add security password to pdf which product
should be licenced,

PDFNet also comes with full security / encryption support so you would
not need any additional product.
As a starting point please take a look at EncTest sample: