[PDFNet] Converting Illustrator (AI) and InDesign files to PDF

Question:
I would like to know if you have any tool (SDK actually) that can
convert Adobe InDesign and Adobe Illustrator files to JPEGs. If not,
do you know any SDKs out there that can help us with this conversion.
----------------

Answer:
Most Adobe Illustrator (.AI) are essentially PDFs (when saved with
PDF compatibility mode) and you can use PDFNet SDK (or PDF2Image) to
directly convert them to JPEG.

https://helpx.adobe.com/ca/illustrator/kb/optimize-native-pdf-file-sizes.html#:~:text=AI%20files%20use%20both%20PDF,application%20that%20recognizes%20PDF%20files

InDesign is using a proprietary format and we don’t offer an SDK that
can directly rasterize InDesign files. You may be able to use
‘pdftron.PDF.Convert’ API from PDFNet (see http://www.pdftron.com/pdfnet/samplecode.html#Convert)
to convert InDesign files to PDF via a virtual printer driver which
you can then rasterize using PDFDraw or using PDF2Image.

--
You received this message because you are subscribed to the "PDFTron PDFNet SDK" group. To post to this group, send email to support@pdftron.com
To unsubscribe from this group, send email to pdfnet-sdk-unsubscribe@googlegroups.com. For more information, please visit us at http://www.pdftron.com

Q: I’ve tried converting .ai files to jpeg and the sample code that
comes with PDF2Image SDK didn’t work. I need more help with this.


A: Since you are using PDF2Image you need to add “–extension .ai” to
the command line. In case of PDFNet there is no difference from
processing regular PDF files. Please keep in mind that files need to
be re/saved with PDF compatibility option.

Thanks - it worked, appreciate your help with this.
--
You received this message because you are subscribed to the "PDFTron PDFNet SDK" group. To post to this group, send email to support@pdftron.com
To unsubscribe from this group, send email to pdfnet-sdk-unsubscribe@googlegroups.com. For more information, please visit us at http://www.pdftron.com