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

How to include External style sheets for EPUB export

$
0
0

Hi All,

 

I'm trying to include a css file for epub export. Here is what i'm trying.

 

var doc = app.activeDocument;
with(doc.epubExportPreferences)
{        includeDocumentMetadata = true;        imageExportResolution = ImageResolution.PPI_150;        imageConversion = ImageConversion.JPEG;        embedFont = false;        includeCSSDefinition = false;        preserveLocalOverride = false;        externalStyleSheets = "D:/Chinna/Epub/QJ-stylesheet.css";    }
doc.exportFile(ExportFormat.EPUB, File(doc.fullName.toString().replace(".indd",".epub")), false);

 

It returns an error. (Expected Array of Strings but received "D:/Chinna/Epub/QJ-stylesheet.css").

 

Regards,

Chinna


Viewing all articles
Browse latest Browse all 15932

Trending Articles



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