Quantcast
Channel: Adobe Community : Popular Discussions - InDesign Scripting
Viewing all articles
Browse latest Browse all 15932

[JS] CS5.5: Exporting EPS with Bleed Settings.- Reg

$
0
0

Dear All

 

I'm having the doubt regarding for the exporting EPS with changing the bleed setting for while on-Fly process.

 

Currently I'm using the below source code:

 

//==================== Source Code ======================//

var myDoc = app.activeDocument 
__DoEPSExportPreferenceSettings(myDoc) 
 myEPSFileName = File(myDoc.filePath).fsName + "/"+ String(myDoc.name).split(".indd")[0]+(".eps");
 app.activeDocument.exportFile(ExportFormat.epsType, File(myEPSFileName));  
function __DoEPSExportPreferenceSettings(myDoc){         with(app.epsExportPreferences)         {                pageRange = "1";                epsSpreads = false;                postscriptLevel = PostScriptLevels.LEVEL_3;                epsColor = EPSColorSpace.UNCHANGED_COLOR_SPACE;                preview = PreviewTypes.NONE                fontEmbedding = FontEmbedding.COMPLETE;                dataFormat = DataFormat.ASCII;                    var BleedTopOffset = app.activeDocument.documentPreferences.documentBleedTopOffset;                    var BleedBottomOffset = app.activeDocument.documentPreferences.documentBleedBottomOffset;                    var BleedInsLeftOffset = app.activeDocument.documentPreferences.documentBleedInsideOrLeftOffset;                    var BleedOutRightOffset = app.activeDocument.documentPreferences.documentBleedOutsideOrRightOffset;                                                            bleedBottom =32 + "pt";                bleedTop =  32 + "pt";                 bleedInside =  32 + "pt";                 bleedOutside =  32 + "pt";                               imageData = EPSImageData.ALL_IMAGE_DATA;                opiImageReplacement = true;                omitBitmaps = false;                omitEPS = false;                omitPDF = false;                appliedFlattenerPreset = "[High Resolution]";                ignoreSpreadOverrides = true;        }       }

 

//==================== End : Source Code ======================//

but unable to set the Bleed settings, while exporting as eps format.

I mean the script is trying to change the bleed settings while using the "EPS ExportPreference settings", but unable to to exporting as EPS. [The output eps is without change the above mentioned 32pt settings in bleed].

 

I'm checking all the possibilities. but unable to solve this proble.

 

 

Please any one can give me the proper soultions, I will appriciate...

 

 

Thanks in Advance

T.R.Harihara SudhaN


Viewing all articles
Browse latest Browse all 15932

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>