Answer the question
In order to leave comments, you need to log in
Best option for creating templates and then saving them as PDF on the web?
Hello,
Task:
There is a portal in which nurses view patient data. Now there is a need to automatically generate template PDF files for certain patients, where the data changes depending on the patient. Those. the nurse enters the patient's profile, then sees a drop-down list of templates and when you click on one of them, a PDF will start downloading with a template and with certain data of this patient in it.
Question:
What is the best way to create templates?
Let's add your own html tag for each change about the patient, then create a template using HTML and CSS on a certain page, and a PDF document will be created from this template.
But I'm not at all sure about the correctness of this approach, so tell me, maybe there is something better.
Answer the question
In order to leave comments, you need to log in
headless chrome -> print to pdf file, then the template you will have is just a well-designed html page for printing, 1: 1 with what you see on the screen in the chrome preview for printing. All other tested solutions are crooked ...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question