Skip to main content
New Participant
June 7, 2020
Question

Folding Marks for A1, A2 etc. pdf files

  • June 7, 2020
  • 3 replies
  • 1430 views

Hi Community.

 

I searched a lot to find a solution but still didn't found anything right.

 

I am looking for an option to (automatically) add little fold marks for folding A1 or A2 plans / plots. I am using Adobe Acrobat Pro DC and the pdf files are delivered by customers. It should be little lines at the lower right and the upper right position of the document - customizable position to fold the plans to A4 and A4 minus 20 mm.

 

Is there any workaround or script to automatically add such fold marks to multiple pdfs?

 

thanks in advance and kind regards,

Matthias

This topic has been closed for replies.

3 replies

try67
Community Expert
June 7, 2020

I took a shot at it... This should add lines that mark the size of an A4 page within an A1 page:

 

var a1Width = 1684;
var a1Height = 2384;
this.addAnnot({page: 0, type: "Line", points: [[a1Width/Math.sqrt(8), 0], [a1Width/Math.sqrt(8), a1Height]], style: "D", dash: [6,4]});
this.addAnnot({page: 0, type: "Line", points: [[0, a1Height/Math.sqrt(8)], [a1Width, a1Height/Math.sqrt(8)]], style: "D", dash: [6,4]});
Thom Parker
Community Expert
June 7, 2020

You probably want to lock them down.

 

Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often
try67
Community Expert
June 7, 2020

Sure, you can do that, but if you print it out it shouldn't really matter...

Thom Parker
Community Expert
June 7, 2020

A script can be written to automatically add the "line" markup annotation.

Here's an article that covers what you'll to know to do it:

https://www.pdfscripting.com/public/PDF-Page-Coordinates.cfm

 

To create an annotation, use the "doc.addAnnot()" function

 

Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often
Bernd Alheit
Community Expert
June 7, 2020

You can draw comment lines.