How to create a PDF template and export as HTML/CSS?

I need a tool that allows me to design how a PDF file would look like in a web page. Something simple the image below, I would like to design using some visual tool, export to HTML/CSS and then just fill the fields in my backend. Is this possible?



The only solution I would suggest would be to use InDesign for this. The template solution in a PDF format could work but after Acrobat 8.0 Adobe realized what people were doing with scripting and features so they limited what you can do with Acrobat and there are not as many objects in the newer versions of Acrobat so a pure JavaScript solution may not be possible.

I would template your workflow with InDesign by creating a standardized CSS you can import and default paragraph and character styles. You can then output as a PDF for the approval process and HTML. However, be advised if you start adding tidbits to the character and paragraph styles it will make your CSS convoluted.

Another solution could be generating in XML and use many tools you can research on converting XML to PDF then bring it into InDesign as IDML but this would probably require Adobe’s InDesign SDK and you have to go through an approval process now which, if I recall, it took three weeks before I was approved.

If I may be missing something by your question please let me know and I will go into further detail with my answer.

Source : Link , Question Author : Valter Silva , Answer Author : DᴀʀᴛʜVᴀᴅᴇʀ

Leave a Comment