Q: How do I selectively rasterize all vector paths inside a PDF?
I need to write a server component that takes a pdf file, selectively
rasterizes all _vector_ images inside the pdf (i.e. paths), and spits
out the pdf. Can I do this with PDFNet ?
A: You could rasterize images selectively as shown in ElementEdit and
In ElementEdit sample all images are removed and text color is changed
to blue, but with a simple tweak you can turn things around and skip
everything but paths etc. You have full control over which elements
will be preserved before passing the modified page to PDFDraw.
For a concrete sample project using this technique you may want to
take a look at PDF2HTML sample project that comes as part of C#
version of PDFNet (http://www.pdftron.com/pdfnet/samplecode/
Pdf2Html.cs). In this case PDFDraw is used to selectively rasterize
HTML background image (which contains everything except text).
In case you need to process the original embedded images, you can
extract them as shown in ImageExtract sample (http://www.pdftron.com/
You received this message because you are subscribed to the "PDFTron PDFNet SDK" group. To post to this group, send email to firstname.lastname@example.org
To unsubscribe from this group, send email to email@example.com. For more information, please visit us at http://www.pdftron.com