Copy link to clipboard
Copied
Hi,
I am exporting InDesign file as HTML with no css option. If I use the option showingOptions is true, then the dialog HTML Export options dialog is open when running the script. But I need to export InDesign file as html with no css and without dialog open… If anyone knows pls let me know....
Thanks in advance,
Sudha K
Copy link to clipboard
Copied
Like other export types, HTML export has its own export preferences:
app.documents[0].htmlExportPreferences.generateCascadeStyleSheet = false;
Copy link to clipboard
Copied
Hi,
Thanks for your reply. its throwing error to me. Then i searched it in InDesign CS6 object model reference.
Error : Object does not support the property or method 'generateCascadeStyleSheet'
app.activeDocument.htmlExportPreferences.cssExportOption = StyleSheetExportOption.NONE;
Its working now.
- Sudha K
Copy link to clipboard
Copied
I did not find this reference in jongware documentation...
I found cssExportOption, but it returns me an error.
Copy link to clipboard
Copied
You're probably looking in the wrong object model version. PDF, Epub, and HTML export options have changed between CS6 and CC2017 and are likely to change in future versions.
CS6:
htmlExportPreferences.cssExportOption = StyleSheetExportOption.EMBEDDED_CSS
CC2017:
htmlExportPreference.generateCascadeStyleSheet = true/false
htmlExportPreference.externalStyleSheets = <string>
and CC2015 may have different options as well. Always make sure you check the correct object model.
P.
Copy link to clipboard
Copied
Thank you so much, Peter!!!
It's clear now for me.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now