PDF Creator

Hi,

I downloaded the PDFCreator package from the shareware section and tried to create a test pfd. Because there’s no documentation on the package i tried creating the pdf using the logical approach. Meaning i created a flow service with the following steps:
→ pdf.generate:beginPDF
→ pdf.generate:newPage
→ pdf.generate:setHeader
→ pdf.generate:setFooter
→ pdf.generate:endPDF
→ pdf.file:convertToFile

when running this test flow service i get a “com.wm.app.b2b.server.ServiceException: The document has no pages.” error on the pdf.generate:endPDF step.

Has anyone any experience with this package or any ideas on how to solve this?

Thanks,
Bogdan

Hi bogan,

I have recently created a pdf service using PDF creator package in my project. I used the following flow for my biz requirement.

→ pdf.generate:beginPDF
→ pdf.generate:setHeader
→ pdf.generate:setFooter
→ map
→ pdf.generate.addPDFTable
→ pdf.generate.addDocumentElement
→ pdf.generate:addParagraph
→ pdf.generate.addDocumentElement
→ pdf.generate:newPage
→ pdf.generate:endPDF
//-> pdf.file:convertToFile

My requirement was not to ‘convert To file’ but to email the pdf. I have used MIME services to email the pdf that was generated dynamically without converting to file.

Use the services in generate folder according to your need.

Cheers,
Govindaraj