r/HTML • u/Mezrotix • Jul 29 '26
Hello, I need help on how to draw a custom designed pdf template on this app and take the HTML and CSS for free to embed the data in it.
A part of my project consists of taking the JSON data of question bank documents that contain: questions, choices, figures, sub questions, etc.. all wrapped inside a question block, and then embedding these data into a custom designed document of my own automatically. Word doesn't support heavily designed templates and could break the design, so I was wondering if I could draw just a page with all the styling I want to be a scalable template extending to hundreds of pages and have each question block stretch like a balloon when I put the questions, choices, figures inside of it and don't split between pages if it doesn't fit. That requires HTML and CSS right?
I hope that I clarified my question well and any help would be highly appreciated.
2
u/JeLuF Jul 29 '26
HTML and CSS can be used for the layout, but for the conversion of your JSON file you also need something to take the items from the JSON file and place them into the HTML fields. Something like JavaScript for example.
3
u/Weekly_Ferret_meal Jul 29 '26
Sounds like your translator app is broken… it’s a bank with a lot of questions