Hello,
I'm trying to evaluate PrinceXML for our team's use and after skimming through a lot of the documentation, I have some questions. What I had envisioned going in to this was the ability to define an HTML template that could have some placeholder elements, and pair it up with some data to be filled in and generate a PDF. Our use case is to provide structured PDF documents to our users that fill in data based on their selections. For example, their name, address, and potentially a dynamically sized list of medications.
The reason we are looking for something that is more template driven is that we will have several layouts per customer that we'll need to produce documents for off of the same dataset. User A might qualify for a document that displays in one manner, while User B might qualify for a document that displays in a slightly different manner.
I haven't quite seen that Prince can be used with templates. It seems to me that I would have to design a step before PDF generation that would do the HTML template population first, and produce a filled HTML document that could then be passed in to Prince for PDF generation. Am I correct, or is it possible to do something more template driven?
I'm trying to evaluate PrinceXML for our team's use and after skimming through a lot of the documentation, I have some questions. What I had envisioned going in to this was the ability to define an HTML template that could have some placeholder elements, and pair it up with some data to be filled in and generate a PDF. Our use case is to provide structured PDF documents to our users that fill in data based on their selections. For example, their name, address, and potentially a dynamically sized list of medications.
The reason we are looking for something that is more template driven is that we will have several layouts per customer that we'll need to produce documents for off of the same dataset. User A might qualify for a document that displays in one manner, while User B might qualify for a document that displays in a slightly different manner.
I haven't quite seen that Prince can be used with templates. It seems to me that I would have to design a step before PDF generation that would do the HTML template population first, and produce a filled HTML document that could then be passed in to Prince for PDF generation. Am I correct, or is it possible to do something more template driven?