Export PDF
Hello everyone,
I'm posting here because I really can't find a solution to my problem.
I have a 4 page indesign file and I would like to export from this document 4 pdf :
1 pdf with pages 1 and 3 in small definition
1 pdf with pages 1 and 3 in high definition
1 pdf with pages 2 and 4 in small definition
1 pdf with pages 2 and 4 in high definition
I have a script to save my document in several pdf's of different qualities, but I can't integrate a code to select that certain page. I have tried with colour labels but without success.
Here is the script I use to export my pdfs of different qualities.
d = app.activeDocument;
// Here you can choose the PDF preset
preset1 = app.pdfExportPresets.itemByName("Print");
preset2 = app.pdfExportPresets.itemByName("Web");
if (!(preset1.isValid && preset2.isValid)){
alert("One of the presets does not exist. Please check spelling carefully.");
exit();
}
if (d.saved){
thePath = String(d.fullName).replace(/\..+$/, "") + ".pdf";
thePath = String(new File(thePath).saveDlg());
}
else{
thePath = String((new File).saveDlg());
}
thePath = thePath.replace(/\.pdf$/, "");
name1 = thePath+"_print.pdf";
name2 = thePath+"_web.pdf";
d.exportFile(ExportFormat.PDF_TYPE, new File(name1), false, preset1);
d.exportFile(ExportFormat.PDF_TYPE, new File(name2), false, preset2);
Thank you very much,
Claire
