Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
1

Illustrator scripting - exporting PDF without bleed

Community Beginner ,
Oct 29, 2023 Oct 29, 2023

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.

TOPICS
Scripting
352
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe
Enthusiast ,
Oct 30, 2023 Oct 30, 2023
LATEST

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines