Skip to main content
Participating Frequently
October 30, 2023
Question

Illustrator scripting - exporting PDF without bleed

  • October 30, 2023
  • 1 reply
  • 347 views

Hey all,


I am trying to automate the export of multiple files including a PDF without bleed. My PDF options so far are as follows, but continues to include bleed 😞

 

    var pdfDoc = new File(dest);
    pdfSaveOpts = new PDFSaveOptions();
    pdfSaveOpts.compatibility = PDFCompatibility.ACROBAT5;
    pdfSaveOpts.generateThumbnails = true;
    pdfSaveOpts.preserveEditability = true;
    pdfSaveOpts.bleedLink = false;
    pdfSaveOpts.bleedOffsetRect = [0,0,0,0];
    pdfSaveOpts.trimMarks = false;
    doc.saveAs(pdfDoc, pdfSaveOpts);

 

Any help hugely appreciated.

This topic has been closed for replies.

1 reply

Sergey Osokin
Inspiring
October 30, 2023

At first glance, bleedOffsetRect does not affect the content of the PDF file. The old artboard dimensions including bleed remain encoded in the file in the BleedBox[], CropBox[], MediaBox[] keys. There was a similar issue in this discussion https://stackoverflow.com/questions/32778511/illustrator-script-mass-pdf-export-bleed

 

I created a custom PDF preset with different bleed values. When I output this preset, the bleed values do not change: bleedOffsetRect : 0,0,0,0,0. It's as if only manually saving the PDF with a preset that has the bleeds set actually saves them in the file.