I am tasked with mapping data to a docX to generate a pdf. I have most of the data mapped properly, but I wanted to know if it's possible to generate a pdf download of a record list or read only grid. Is it possible to print off the entire record list? Mapping data to a pdf requires that you know how many fields you need to populate. How can I generate a pdf that has a dynamic amount of data?Thanks,
Discussion posts and replies are publicly visible
I have great success with the HTML to PDF plugin. I can really create complex formats including page footers, repeated headers on multi-page tables etc. Your use case seems like a good candidate.
Hi, as you have the data with you, You can use that data and with the help XSL/FML you create a document and use the smart service DOCX From Dynamic Template generate a word document. Once the word document is proper you can use one more smart service PDF From DOCX you can convert from Docx to PDF.
right, the problem is that the xml information requires a specific number of items to map together. Depending on the list, the number of rows will be different. I need to be able to do exactly what you wrote, but with a read only grid.
sorry this is a noobie question. But is there a way to convert a record list or a read only grid to an html doc?
Not directly, you'll have to generate it manually.
The HTML syntax for manually constructing a table is fairly simple. You'd need to write expression rule(s) that consume your list of data, looping over it and converting it to text enclosed by the proper html tag(s) for what you want.
This would work, but it's not the route I took. I had to learn the docx field syntax to dynamically add rows to a grid and link it to xml syntax using an expression.