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.
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.
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.
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.
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With