How to generate transparent preview of the document?
Hi all,
I would like to generate trsansparent preview of an document in PNG file. Normal (not-transparent preview) I am doing by JavaScript like it is described below:
var myDocument = app.open(File(app.scriptArgs.getValue("documentPath")));
myDocument.exportFile(ExportFormat.jpg, File(app.scriptArgs.getValue("thumbnailPath")), PDFExportPreset.acrobatCompatibility);
myDocument.close(SaveOptions.no);
The result is normal JPG file. But I would like to get a transparent image. How can I do this?
Thank you for all information!