Q:
I am using pdftron.PDF.Convert.ToSvg() to convert PDF to SVG.
One question I face is if there is any option to control the quality of the images/resources extracted from the PDF – the problem I have is that some of the files are big because the PDF has a lot of quality…
A:
If PDF contains large images, you could run ‘pdftron.PDF.Optimizer’ to shrink images prior to conversion to SVG (pdftron.PDF.Convert.ToSvg()).
For an example of how to use PDF Optimizer, please see
http://www.pdftron.com/pdfnet/samplecode.html#Optimizer sample
In case the problem is not related to images, but slow SVG viewer performance (which is frequently the case), you may want to consider using PDFNet WebViewer (http://www.pdftron.com/pdfnet/webviewer/demo.html) which is using HTML5 canvas for rendering.