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

Crop PDF to crop marks?

Explorer ,
May 13, 2024 May 13, 2024

Is there a way to create an Action/Fixup that crops every page of a PDF in the following way: Everything inside the crop marks are kept, but the crop marks themselves plus everything outside is removed.

 

I found a javascript snippet years ago that achieved this as an Action iirc, but I don't have it anymore. Been searching and trying out different solutions but nothing seems to work.

TOPICS
How to , JavaScript , Print and prepress
360
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
1 ACCEPTED SOLUTION
Explorer ,
Jan 22, 2025 Jan 22, 2025
LATEST

I managed to find the snippet, which can be saved as an action:

 

/* Crop to Cropmarks */
for (var i=0; i<this.numPages; i++) {
var ar = this.getPageBox("Trim", i);
this.setPageBoxes("Crop", i, i, ar);
}

View solution in original post

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
Explorer ,
Jan 22, 2025 Jan 22, 2025
LATEST

I managed to find the snippet, which can be saved as an action:

 

/* Crop to Cropmarks */
for (var i=0; i<this.numPages; i++) {
var ar = this.getPageBox("Trim", i);
this.setPageBoxes("Crop", i, i, ar);
}

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