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

How to include External style sheets for EPUB export

Enthusiast ,
Nov 14, 2014 Nov 14, 2014

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

TOPICS
Scripting
605
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

correct answers 1 Correct answer

People's Champ , Nov 14, 2014 Nov 14, 2014

Try:

externalStyleSheets = ["D:/Chinna/Epub/QJ-stylesheet.css"];

Translate
People's Champ ,
Nov 14, 2014 Nov 14, 2014

Try:

externalStyleSheets = ["D:/Chinna/Epub/QJ-stylesheet.css"];

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
Enthusiast ,
Nov 14, 2014 Nov 14, 2014
LATEST

Thanks Ariel.

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