0
PDFsaveOptions scripting help needed... please.
New Here
,
/t5/illustrator-discussions/pdfsaveoptions-scripting-help-needed-please/td-p/1169767
Jun 30, 2008
Jun 30, 2008
Copy link to clipboard
Copied
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 );
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
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Explore related tutorials & articles
Community Expert
,
/t5/illustrator-discussions/pdfsaveoptions-scripting-help-needed-please/m-p/1169768#M238809
Jul 01, 2008
Jul 01, 2008
Copy link to clipboard
Copied
Check out printFlattenerOptions (page 154 of the JavaScript Reference) to outline the text.
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
_Xentral_
AUTHOR
New Here
,
/t5/illustrator-discussions/pdfsaveoptions-scripting-help-needed-please/m-p/1169769#M238810
Jul 01, 2008
Jul 01, 2008
Copy link to clipboard
Copied
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.
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.
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Advocate
,
/t5/illustrator-discussions/pdfsaveoptions-scripting-help-needed-please/m-p/1169770#M238811
Jul 02, 2008
Jul 02, 2008
Copy link to clipboard
Copied
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();
}
for (var i = doc.textFrames.length -1; i> -1; i--) {
doc.textFrames.createOutline();
}
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
_Xentral_
AUTHOR
New Here
,
LATEST
/t5/illustrator-discussions/pdfsaveoptions-scripting-help-needed-please/m-p/1169771#M238812
Jul 06, 2008
Jul 06, 2008
Copy link to clipboard
Copied
Hi Mark,
Thank you so much, it works fine now.
Thank you so much, it works fine now.
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more

