Using the SDK to create documents with variable data lists

Writing a book, Automating Document Production - Discuss your special needs here

Using the SDK to create documents with variable data lists

Postby freecouch » Thu Dec 10, 2015 9:39 pm

I've been playing around with the OO SDK to create documents on the fly by using XReplaceable and XReplaceDescriptor to fill in document variables with dynamic data (eg. @name@ becomes "Jane Doe") and then converting the documents to flattened PDFs for archiving. I'm wondering if it's possible to create a variable number of entire sections of repeatable data. For example, if I have a half page chunk that represents all the data associated with a person, can I create 1 to N repetitions of those half page segments based on variable data that I extract from a back-end system? For example, I could have a document that looks like this:

First Name: Bob
Last Name: Smith
Phone: 555-1212

... and I could have another document that looks like this:

First Name: Bob
Last Name: Smith
Phone: 555-1212
--- --- --- --- --- --- --- ---
First Name: Jane
Last Name: Smith
Phone: 555-1313
--- --- --- --- --- --- --- ---
First Name: Jim
Last Name: Smith
Phone:
--- --- --- --- --- --- --- ---
First Name: Jessy
Last Name: Smith
Phone: 555-1414
Open Office 4 on Windows 7 & Linux Mint 17.1
freecouch
 
Posts: 1
Joined: Thu Dec 10, 2015 9:00 pm

Return to Advanced Uses

Who is online

Users browsing this forum: No registered users and 2 guests