Save as PDF with [PDF/X-1a:2001] preset not flattening issue
Hi all,
I have a document with some transparency so I want to flatten it while saving to a PDF. In the UI, if I save it using [PDF/X-1a:2001] preset, it's perfeclty flattened.
But if I order the same operation through scripting, it doesn't. What am I doing wrong, it makes me crazy !
var doc=app.activeDocument;
var pdfSaveOptions = new PDFSaveOptions();
pdfSaveOptions.pDFPreset="[PDF/X-1a:2001]";
var pdfFile = new File(Folder.desktop + "/testIllu4.pdf");
doc.saveAs(pdfFile, pdfSaveOptions);
TIA.
Loic
