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

PDF - Margins from Printer's Marks

Explorer ,
Sep 12, 2019 Sep 12, 2019

Hi everyone,

 

I'm not very optimistic about this, but is there a simple way to find the dimensions added to a PDF when exporting with bleed marks, crop marks, slug, etc.? InDesign is a bit unpredictable in how it handles margins so unfortunately it's not as simple as retrieving the bleed and offset from pdfExportPreferences.

 

I've been able to figure out the total vertical and horizontal difference in page size using Javascript in Acrobat but specifically need the amount added to the left, right, top, and bottom of the page. Haven't found any documentation on this so any push in the right direction is greatly appreciated.

 

Thanks so much!

TOPICS
Import and export , Scripting
1.1K
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

correct answers 1 Correct answer

Advocate , Sep 13, 2019 Sep 13, 2019

Hi shelbycott,

Why don't you first understand all the export as pdf options within application.

First clear your mind what you exactly need.

Screen Shot 2019-09-14 at 9.29.43 AM.pngScreen Shot 2019-09-14 at 9.29.33 AM.pngScreen Shot 2019-09-14 at 9.29.22 AM.png

 

First understand what you exactly need.

Because about bleed and sludges, some time people use their own print presets.

You can have all those information from javascript, but first understand what actually you need before exporting as pdf.

You can find all those preferences here : PDF Export Preference

Best

Sunil

Translate
Advocate ,
Sep 12, 2019 Sep 12, 2019

Hi shelbycott,

Take this code for your reference.

///////////

var myDoc = app.documents[0];

var flattenerPreset = app.pdfExportPreferences.appliedFlattenerPreset;

var bottomBleed = app.pdfExportPreferences.bleedBottom;

var insideBleed = app.pdfExportPreferences.bleedInside;

var outsideBleed = app.pdfExportPreferences.bleedOutside;

var topBleed = app.pdfExportPreferences.bleedTop;

var isBleedMark = app.pdfExportPreferences.bleedMarks;

var isCropMark = app.pdfExportPreferences.cropMarks;

myDoc.exportFile(ExportFormat.PDF_TYPE, File("~/Desktop/Test_Web.Pdf"), false);

////////

This is how you can have more information on this link : https://www.indesignjs.de/extendscriptAPI/indesign-latest/#PDFExportPreference.html

 

Best

Sunil

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 ,
Sep 13, 2019 Sep 13, 2019

Hi Sunil,

 

My mistake, should have been more clear. I still want to show PDF export options and have the user choose their own settings.

 

Unfortunately, the bleed does not make up the entire margin when combined with crop marks and other printer's marks and InDesign doesn't handle this in a straightforward manner. I was wondering if there's any other way to find the total amount added to each side. Appreciate the reply though!

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
Community Expert ,
Sep 13, 2019 Sep 13, 2019

Open the PDF in Acrobat, in the left lower corner you see the dimensions of the file.

But if you want to place a PDF with the same final size, place it in InDesign and use the Align Panel, select align to Page and click the center buttons.

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 ,
Sep 13, 2019 Sep 13, 2019
Thank you for your reply. I am able to find the new dimensions but right now I have no way of knowing how much of the margin was added to the left vs. right side, top vs. bottom. I'm writing an extension so need to find this via Javascript.
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
Advocate ,
Sep 13, 2019 Sep 13, 2019
LATEST

Hi shelbycott,

Why don't you first understand all the export as pdf options within application.

First clear your mind what you exactly need.

Screen Shot 2019-09-14 at 9.29.43 AM.pngScreen Shot 2019-09-14 at 9.29.33 AM.pngScreen Shot 2019-09-14 at 9.29.22 AM.png

 

First understand what you exactly need.

Because about bleed and sludges, some time people use their own print presets.

You can have all those information from javascript, but first understand what actually you need before exporting as pdf.

You can find all those preferences here : PDF Export Preference

Best

Sunil

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