Q: We are evaluating TRON pdf tool, and i have the trial version
downloaded. We have a ecommerce website, where we need to watermark
some text to existing pdf and render them on the fly to our customers.
Our application is developed in ASP.Net and c#. Can you please help me
with sample program that:
1. Reads a pdf file from a physical folder.
2. Watermarks them with some text (for e.g for demo only)
3. Render the pdf on the fly.
I couldnt find examples for asp.net in your website or in the demo
samples. Please help.
---------------------
A: You can use PDFNet SDK in ASP.NET to implement your requirements.
- As a starting point download (http://www.pdftron.com/pdfnet/
downloads.html) the appropriate version of PDFNet for .NET (for
the .NET version that you are targeting and the platform).
- Add a reference to PDFNet.DLL in your project solution.
- Copy & paste some of the sample code and tweak it to match your
requirements.
The following samples are relevant to the task:
- Stamper: http://www.pdftron.com/pdfnet/samplecode.html#Stamper
Uses pdftron.PDF.Stamper utility to stamp PDF pages with text,
images, or vector art.
- PDFDraw: http://www.pdftron.com/pdfnet/samplecode.html#PDFDraw
Uses pdftron.PDF.PDFDraw to convert PDF pages to images.