Like other export types, HTML export has its own export preferences:
app.documents.htmlExportPreferences.generateCascadeStyleSheet = false;
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
I did not find this reference in jongware documentation...
I found cssExportOption, but it returns me an error.
1 person found this helpful
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.
htmlExportPreferences.cssExportOption = StyleSheetExportOption.EMBEDDED_CSS
htmlExportPreference.generateCascadeStyleSheet = true/false
htmlExportPreference.externalStyleSheets = <string>
and CC2015 may have different options as well. Always make sure you check the correct object model.
Thank you so much, Peter!!!
It's clear now for me.