HTML inside PDF form ... crazy possibility
I would like to ask about a rather crazy possibility (it is also an idea for development).
As we all know, PDF documents are not responsive, they are always (well, almost always :-)) displayed in the same form, which was a huge advantage at the time of creating the format. New needs are emerging at the moment. It would be a pity to lose the ability to use such a popular format in the world.
Such a new expectation is the WCAG standard regarding document features to ensure digital accessibility (for people with various limitations or disabilities) , where there is a requirement for responsiveness (adapting the interface, document appearance, to the type, size and screen resolution of the device on which it was opened).
And since I deal with it myself, as the creator of PDF forms in the city hall, the following thought arose in my head.
1. I create an active PDF form with all the functionalities I need (a lot of JavaScript code),
2. Inside the form is sewn (in the form of a script) HTML code which is the equivalent of the form,
3. When opening the PDF form, a macro is run which, at the user's request:
3.1 Creates an HTML file corresponding to our form, of course already pre-filled with the data downloaded from our form,
3.2 The HTML form allows you to fill it in further
3.3 After completing the form, the data from this form are saved in the appropriate fields of the PDF form from which it was called,
4. The PDF form, if the user so wishes, enables its further editing, of course maintaining the full functionality of PDF documents.
Probably there will be doubts "why" such acrobatics.
I answer:
1. The PDF format is damn popular and there are free tools to use it (creating is a different matter),
2. The PDF format natively supports electronic signatures, which is essential in communication with government institutions,
3. The PDF format in the file contains all the information necessary for its presentation (e.g. fonts), and the ISO standards seem to mention this requirement,
4. Supports a scripting language also supported by web browsers,
5. The only reason why I would have to give it up is the lack of responsiveness,
6. I don't know any other format that has features 1-4 and is responsive.
I am counting on an answer, especially from Adobe 🙂
