Copy link to clipboard
Copied
Hi Everyone,
How to convert an InDesign document into Html file using script. Anyone guide me
-Jothi
File > Export, choose HTML or ePub from the format drop-down menu.
Alternatively use InDesign's Publish Online or the in5 plug in: https://ajarproductions.com
Copy link to clipboard
Copied
File > Export, choose HTML or ePub from the format drop-down menu.
Alternatively use InDesign's Publish Online or the in5 plug in: https://ajarproductions.com
Copy link to clipboard
Copied
Either go with the solutions that Derek mentioned, if it does not suit your purposes then you will have to work it out yourself. Its not a trivial task as not everything in InDesign has a direct one to one correspondence to HTML elements, for example the text composition of InDesign is something that would be hard to mimic on HTML in my opinion. You will have to earmark the feature set that you want to support and start from supporting just those feature at the start and then evolve the solution.
-Manan
Copy link to clipboard
Copied
Hi Derek_Cross and Manan Joshi,
Thanks for your reply!! I have find the one line scripting code to export indesign document into html.
-Jothi
Copy link to clipboard
Copied
Can yoy please share that one line scripting code?
Copy link to clipboard
Copied
The simplest code to export HTML of an InDesign document would be as follows. Set the export path in the first line
var filePath = File("Path to the html file you want to export")
app.documents[0].exportFile(ExportFormat.HTML, filePath)
P.S. :- If you still have questions please open a new discussion, this post is 4 years old so you won't get much attention in this post.
-Manan
Copy link to clipboard
Copied
Have you been set this as a college assignment?
As mentioned this is not really the way to go, but there's more info here for you to dig through:
https://indesignsecrets.com/exporting-from-indesign-to-html5-amazing-free-script.php
Copy link to clipboard
Copied
Hi Derek,
It's not a college assignment. I have visited the link you given and i'ave downloaded and checked the free script Export FXL Html.jsxbin but it's useful. I'm trying to export the InDesign document into html based on the page wise contents for that i start it with exporting full document.
-Jothi
Copy link to clipboard
Copied
Can you confirm why you want to export a document from InDesign as HTML – what is the purpose?
Copy link to clipboard
Copied
Hi Derek,
Yeah! i'll explain you I'ave an xml with bold contents insde the <bol> </bol>tag and the reason i have asked about the scripting is to check after exported the InDesign document into HTML whether the <bol> tag appears are not it appears but it shows the bold tag inside the span class. The main issue is, I have generated an xml including <bol></bol> tag for some text. After drag and drop the contents from xml in InDesign document the text included in <bol></bol> tag gets bold then if i need to change something in my document then by using liveupdate i can update it sameway it also gets updated in database too. After liveupdate the bold tag disappears in the database. i don't know what to do with it. i'm searching to do liveupdate with all tags that applied in the xml must apply to the database. Is there ia a way??? I have posted this issue in another thread you can refer by clicking this link https://community.adobe.com/t5/indesign/how-to-find-bold-text-using-script-in-indesign-document/m-p/...
-Jothi
Copy link to clipboard
Copied
I'd recommend Kris for this kind of specialist scripting – he's your man!
Copy link to clipboard
Copied
Thank you derek i've visited the kris blog it has so many stuff to look. Shall you help me to get the bold text using script manan has helped me to get the bold text count please refer the link https://community.adobe.com/t5/indesign/how-to-find-bold-text-using-script-in-indesign-document/m-p/... for more details