Q:
-
We have to display PDF/XPS documents in Silverlight (via SilverDox - http://www.pdftron.com/silverdox), create redactions, and save the redactions in a database.
-
After we’ve processed all of the documents, we need to put the documents through a system service that converts the documents to tiffs and burns in the redactions.
We have some code that converts xps documents to tiffs. The challenge is the redactions. Is there any way to do this with your product suite? If not, is there a way to open the documents in SilverDox and render the Canvas for each container to a tiff?
A:
PDFNet includes support for redaction via ‘pdftron.PDF.Redactor’ add-on (http://www.pdftron.com/pdfnet/features.html#Redaction).
For an example of how to use Redactor please see PDFRedact sample project: http://www.pdftron.com/pdfnet/samplecode.html#PDFRedact
Based on your project description, it seems that you are developing a web based app and that you may be using SilverDox (http://www.pdftron.com/silverdox/samplecode.html) or the WebViewer (http://www.pdftron.com/pdfnet/webviewer/demo.html). Either way, you can use these browser API to add browser based redaction support by drawing custom annotations / rectangles.
However, the redaction process itself would not be done in the browser, but on the server where you would use ‘pdftron.PDF.Redactor’ to apply the redactions to the original (PDF?) document.
If you need to view the final / redacted document in the WebViewer or Silverlight you can call pdftron.PDF.ToXod() to produce the redacted XOD.
PDFTron Redactor is a ‘vector based redactor’ and does not require conversion to TIFF etc. But it required you can always use pdftron.PDFDraw.Export() to convert redacted pages to TIFF or other image formats.