Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Adobe Illustrator CS3 placing a linked PDF image, cropping to bounding box
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Adobe Illustrator CS3 placing a linked PDF image, cropping to bounding box



Title: Adobe Illustrator CS3 placing a linked PDF image, cropping to bounding box
I’m placing a linked PDF image into an Illustrator file using Applescript.

When you do this manually, the Place dialog box has a pop-down menu that says:

Crop to: Bounding Box  (with other choices: Art, Crop, Trim, Bleed, Media).

I can’t seem to replicate with Applescript the “Crop to: Bounding Box” setting.

I’ve found a “PDF options” object in the “settings” object that allows you to edit this setting:

tell application "Adobe Illustrator"
    set AIDoc to current document
       set PDF crop bounds of PDF file options of settings to PDF bounding box
end
tell


But that does not have the same result as placing an object manually and selecting the “Crop to: Bounding Box”.

Is there some way to specify how to crop the object as you make the new placed item similar to how it is done manually in Illustrator?

    set placed_file to make new placed item in AILayerNameByRef ¬
                with properties {file path:file_ref, position:{PlacedX, PlacedY}}

Thanks.
Jim
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.