Skip to main content
aiScripting
Inspiring
June 10, 2015
Answered

I am trying to set the settings when placing a PDF into Illustrator..

  • June 10, 2015
  • 1 reply
  • 1002 views

When I use the "Place..." option from the File menu I get prompted with a box to set the "Crop to" setting. From like "Art" or "Trim" etc.

When I place it with a script it is defaulting to "Art" right now and that isn't what I want.

Can I change this from a script?

Any help would be much appreciated!

This topic has been closed for replies.
Correct answer aiScripting

I think I might have figured this out

  var newDoc = app.documents.add();

            app.preferences.PDFFileOptions.pDFCropToBox = PDFBoxType.PDFBLEEDBOX;

     

if I set the PDFBoxType (shown above) right after I create my document it seams to be using those settings when I place an image in this document!

1 reply

aiScripting
aiScriptingAuthorCorrect answer
Inspiring
June 18, 2015

I think I might have figured this out

  var newDoc = app.documents.add();

            app.preferences.PDFFileOptions.pDFCropToBox = PDFBoxType.PDFBLEEDBOX;

     

if I set the PDFBoxType (shown above) right after I create my document it seams to be using those settings when I place an image in this document!

y.tani
Inspiring
January 16, 2018

Hi aiScripting.

I also found your question and answer where I am in trouble with the same problem.

I was saved. Thank you very much.