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

PDFsaveOptions scripting help needed... please.

New Here ,
Jun 30, 2008 Jun 30, 2008
I am not a programmer so I need help from a kind soul to fill in the blanks on the missing parts below as I attempt to automate some of my steps to save my illustrator to pdf. What I need is to convert text to outlines using PDFSaveOptions() and setting convertStrokesToOutlines to "True"... i just can't seem to get it to work or am I on the right track. Thank you so much in advance.

I have managed to do this so far on Illustrator CS3:
var doc = app.activeDocument;
var dsname = app.activeDocument.activeDataSet.name

if ( app.documents.length > 0 ) {
var saveName = new File (doc.path + "/Designs/" + dsname);
saveOpts = new PDFSaveOptions();
saveOpts.pDFPreset = ("AI pdf");
***** i need to convert all text to outlines here.... *****
saveOpts.flattenerOptions = ?????;
doc.saveAs( saveName, saveOpts );
TOPICS
Scripting
1.9K
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
Adobe
Community Expert ,
Jul 01, 2008 Jul 01, 2008
Check out printFlattenerOptions (page 154 of the JavaScript Reference) to outline the text.
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
New Here ,
Jul 01, 2008 Jul 01, 2008
Hi Larry or anybody,

Yes, I've tried that, there's no script error but the text does not convert, here's my script which I added to the one in my earlier post:

var flatOpts = new PrintFlattenerOptions();
saveOpts.flattenerOptions = flatOpts;
saveOpts.convertTextToOutlines = true;

Any advice? thank you.
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 ,
Jul 02, 2008 Jul 02, 2008
How about converting the text to outlines before you save the PDF?

for (var i = doc.textFrames.length -1; i> -1; i--) {
doc.textFrames.createOutline();
}
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
New Here ,
Jul 06, 2008 Jul 06, 2008
LATEST
Hi Mark,

Thank you so much, it works fine now.
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