Skip to main content
jothipriya
Inspiring
June 8, 2020
Answered

InDesign document to html

  • June 8, 2020
  • 5 replies
  • 1890 views

Hi Everyone,

How to convert an InDesign document into Html file using script. Anyone guide me

-Jothi

This topic has been closed for replies.
Correct answer Derek Cross

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

5 replies

Derek Cross
Community Expert
Community Expert
June 9, 2020

I'd recommend Kris for this kind of specialist scripting – he's your man!

https://www.rorohiko.com

jothipriya
Inspiring
June 9, 2020

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/11193349?page=1#M189496 for more details

Derek Cross
Community Expert
Community Expert
June 8, 2020

Can you confirm why you want to export a document from InDesign as HTML – what is the purpose?

jothipriya
Inspiring
June 9, 2020

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/11190531?page=1#M189320

-Jothi

Derek Cross
Community Expert
Community Expert
June 8, 2020

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

jothipriya
Inspiring
June 8, 2020

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

Community Expert
June 8, 2020

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

-Manan
jothipriya
Inspiring
June 8, 2020

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

Participant
June 21, 2024

Can yoy please share that one line scripting code?

 

Derek Cross
Community Expert
Derek CrossCommunity ExpertCorrect answer
Community Expert
June 8, 2020

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