Converting HTML to IDML with PHP

The HTML2IDML-Library makes it possible to convert HTML documents into IDML files for Adobe InDesign with PHP. It can be easily integrated into websites, content management systems and e-commerce systems.

With the HTML2IDML library, our goal is to make the conversion from HTML to IDML (or vice versa) so simple and comprehensive that all you need to do is call a single method:

<?php

$html2Idml = new Html2IdmlConverter();
$idmlContent = $html2Idml->getHtmlConverted($htmlContent);

However, when implementing our projects, we found that the conversion always follows very specific rules and requires individual adjustments. This is because an IDML document is structured completely differently to an HTML document. Positioning and formatting are handled according to their own unique logic.

Our library therefore covers basic functionalities, such as converting CSS styles and CSS classes into paragraph and character formats, taking inheritance into account.

Since a great deal of custom code must be written for each project, our HTML2IDML library is not (yet) publicly available. Detailed documentation is also not available at this time. If you are interested in converting IDML and HTML documents, please contact us.