Skip to main content
Inspiring
June 15, 2015
Question

Export as html without css

  • June 15, 2015
  • 1 reply
  • 1138 views

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

This topic has been closed for replies.

1 reply

Peter Kahrel
Community Expert
Community Expert
June 15, 2015

Like other export types, HTML export has its own export preferences:

app.documents[0].htmlExportPreferences.generateCascadeStyleSheet = false;

Sudha_KAuthor
Inspiring
June 15, 2015

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