XOD convertion quality is low


I have found a PDF where the conversion quality to XOD is not good.
I have seen inside the XOD and it seems that it references only an image from its page.
And this image (which is low in quality) is what is getting displayed.

I have used a high quality and maximum pixels for the JPG:

var options = new pdftron.PDF.Convert.XODOutputOptions();
options.SetJPGQuality(95);//1 to 100
pdftron.PDF.Convert.ToXod(srcPath, tempFilePath, options);

…but this didn’t solve the problem.
SetMaximumImagePixels() does make the quality better but not enough good to read the text. And using a higher value than that (50000000) causes memory allocation problems.

This happens in your online demo viewers too.
I attach the PDF file that causes the problem.


mitomap-phylogeny.pdf (2.07 MB)

The problem is that your is very complex and XOD conversion process decides to flatten it so that page can be quickly rendered in the WebViewer. If you want to maintain high-quality you could a) disable flattening or b) increase the resolution of rendered image.

All of this is covered in the following article:

I converted your file with docpub -f xod --flatten off --norender and the generated file is

So you have vector quality but it may take a bit longer to render.

If you have any future questions about WebViewer or XOD conversion, could please send them to https://groups.google.com/forum/#!forum/pdfnet-webviewer rather than to this list? Thank you!