Last active
December 12, 2015 13:09
-
-
Save moluapple/9b43578fc414cfe8f717 to your computer and use it in GitHub Desktop.
置入多页面PDF (Illustrator CC 2015)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var doc = activeDocument, | |
f = File.openDialog ('选择文件 ', '*.pdf'), | |
p = prompt ('置入第 1 到?页', 5, '指定页数') | |
i = 0; | |
for (; ++i <= p;) { | |
app.preferences.setIntegerPreference('plugin/PDFImport/PageNumber', i); | |
doc.placedItems.add().file = f; | |
} | |
app.preferences.setIntegerPreference('plugin/PDFImport/PageNumber', 1); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment