Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Importing Html into Adobe Indesign

We are currently working on an pdf version of a newspaper at work, we have a .net website which captures the articles to publish, storing the content entered as html, so we can maintain styles like bold, underline, strike out.

Once this is stored in the database we are planning to use Indesign to create the pdf. We currently we have a template built, but when we generate an xml document and import into Indesign the html tags are just written out. Is there a way around this, to get Indesign to maintain the tags as they would be in html? We just need some simple ones, like bold, strikeout, underling, center align.

Thanks.

like image 838
Paritosh Avatar asked Mar 01 '12 14:03

Paritosh


People also ask

Does InDesign support HTML?

InDesign exports all stories, linked and embedded graphics, SWF movie files, footnotes, text variables (as text), bulleted and numbered lists, internal cross-references, and hyperlinks that jump to text or web pages. Tables can be exported to HTML as well.

Can you embed a website in InDesign?

Embed a Publish Online DocumentWhen the file has finished uploading, click View Document to view it in a web browser. Click the new Embed icon at the bottom of the viewer window.

What is HTML export on InDesign for?

The HTML file created by In","noIndex":0,"noFollow":0},"content":"<p>Exporting an InDesign document to HTML allows you to share the document on the web so that it can be viewed on a variety of devices. The HTML file created by InDesign can also easily be edited.

Can you import in an HTML File?

Embedding an HTML file is simple. All we need to do is use the common „<link>“ element. Then we add the value „import“ to the „rel“ attribute. Using „href“ we attach the URL of the HTML file, just like we are used to when it comes to stylesheets and scripts.


2 Answers

Pandoc now support export to ICML (Adobe InCopy's XML format that can be "placed" in InDesign documents). To convert HTML to ICML:

pandoc --standalone -o output.icml input.html

See Importing Markdown in InDesign in the pandoc wiki for details around the workflow.

like image 107
mb21 Avatar answered Sep 17 '22 15:09

mb21


You'll need to translate the HTML tags into CharacterStyles, and apply those to the XML on import.

The tricky thing is that CharacterStyles can't be applied nested like HTML can, so you need to make a CharacterStyle for each combination that might be present. Or you can apply styles to the specific run of text, with a script.

like image 21
tomtaylor Avatar answered Sep 18 '22 15:09

tomtaylor