Hi All
I've been looking for an OEM solution to produce quotes, invoices, etc. from XML. Today we use straightforward XSL to transform the XML to HTML. As most of you probably know, most browers don't support enough CSS for paged-media (headers, footers, page-numbering, etc.), so PDF generation is iffy at best.
I looked at several FO solutions and FO will do it, but it means all of our clients have to totally rewrite their XSL's to produce FO instead of HTML with CSS. I then stumbled across PrinceXML and have done quite a bit of testing. Based on my tests, it seems that I can change an existing XSL in about 10-15 mins to produce good PDF with headers, footers and page numbering. To convert the same XSL to FO would probably take 4-8 hours, and means all of our clients and support people need to learn a new technology.
The final hurdle I'm stuck on is headers and footers. With FO I can specify a page-layout for first, any, left, right, last and first = last (single page doc) pages. . So for a multi-page invoice (for example), it should display the following
One other minor complication: the footer (on the last page) may be a variable height. (I could probably live without this.)
I searched the forums and found a bunch of stuff pertaining to headers and footers, but I can't get my footer to appear on the last page only. I did see references to page-groups and maps, but couldn't find any documentation on these, so I'm not sure if those will help
Can anyone tell me if Prince is able to do this? It's the last thing that's stopping us pulling the trigger on it. If not, it's Apache FOP![:-(](/forum/static/smiley/sadface.png)
Thanks in advance
Mark
I've been looking for an OEM solution to produce quotes, invoices, etc. from XML. Today we use straightforward XSL to transform the XML to HTML. As most of you probably know, most browers don't support enough CSS for paged-media (headers, footers, page-numbering, etc.), so PDF generation is iffy at best.
I looked at several FO solutions and FO will do it, but it means all of our clients have to totally rewrite their XSL's to produce FO instead of HTML with CSS. I then stumbled across PrinceXML and have done quite a bit of testing. Based on my tests, it seems that I can change an existing XSL in about 10-15 mins to produce good PDF with headers, footers and page numbering. To convert the same XSL to FO would probably take 4-8 hours, and means all of our clients and support people need to learn a new technology.
The final hurdle I'm stuck on is headers and footers. With FO I can specify a page-layout for first, any, left, right, last and first = last (single page doc) pages. . So for a multi-page invoice (for example), it should display the following
- First page: display the header (order details and big logo) and the first set of line items.
- Continuation pages (except last): should display a different (smaller) header, more lne items and page numbers in the footer.
- Last page: display the smaller header, last line items, totals and tear off remittance slip at bottom of last page
- Single page (first page = last page): so it should show the big header, the line items, the totals and remittance slip at bottom of page.
One other minor complication: the footer (on the last page) may be a variable height. (I could probably live without this.)
I searched the forums and found a bunch of stuff pertaining to headers and footers, but I can't get my footer to appear on the last page only. I did see references to page-groups and maps, but couldn't find any documentation on these, so I'm not sure if those will help
Can anyone tell me if Prince is able to do this? It's the last thing that's stopping us pulling the trigger on it. If not, it's Apache FOP
![:-(](/forum/static/smiley/sadface.png)
Thanks in advance
Mark