Copy link to clipboard
Copied
Hi,
We can export indesign file to html using export format type to html like pdf. How can i export indesign file to xhtml when using MathML.
Is there is any option in Javascript to export? or we should use applescript?? uisng menu click...
Copy link to clipboard
Copied
Hi all,
Just a reminder...
1. Can we have option to export Html with MathML using indesign Javascript or applescript??
2. How can export html in indesign with options??
Copy link to clipboard
Copied
export indd to html :
var doc= this.app.activeDocument;
doc.exportFile (ExportFormat.HTML,"c:\\tmp\\test.html")
Copy link to clipboard
Copied
Hi,
Thanks for your reply...
I need to export html with options. pls refer the below screenshot.
I need to disable the check box "View HTML after Exporting" and also other options of General, Image and Advanced. How can I change that?
When I using applescript click event, I can click the check box but i could not able to check whether its true or not (ie., enabled or disabled). How can i check this using applescript?
Copy link to clipboard
Copied
Hi,
look into the document's HTMLExportPreferences.
There you find what you want.
app.documents[0].htmlExportPreferences.properties =
{
// … etc. pp.
exportOrder : ExportOrder.LAYOUT_ORDER ,
viewDocumentAfterExport : false ,
// … etc pp.
};
Here is the DOM documentation for CS6 compiled by Jongware:
Adobe InDesign CS6 (8.0) Object Model JS: HTMLExportPreference
Here for CC 2018 by Gregor Fellenz:
https://www.indesignjs.de/extendscriptAPI/indesign-latest/#HTMLExportPreference.html
Regards,
Uwe
Copy link to clipboard
Copied
Hi,
Sorry for the late reply...
Thank you for your reply... I will check and get back...
Copy link to clipboard
Copied
Hi,
Its working... How can i do this using applescript?? how to set html export preference?
viewDocumentAfterExport : false
Copy link to clipboard
Copied
Sorry,
I cannot help much with AppleScript.
Regards,
Uwe
Copy link to clipboard
Copied
Thank you for your reply...
found the solution... Used click event in applescript...