简体   繁体   中英

Is there way to convert flat file with HTML elements data to PDF in AS400?

We have flat file which has html elements data. Program converting this data to.DOC using CPYTOIMPF and mail to the user. Office automatically converting html tags and showing in proper format.

As per new requirement, Flat file data need to be convert into PDF. I tried with spooling(RUNQRY) and used CPYSPLF but it didn't work. I got html tags like text(ex: "Tag>Invoice</Tag") instead of formatted text.

Is there a way to make this work in CLLE/RPGLE?

If the HTML is predictable and well formatted, you might be able to use the RPG opcode XML-INTO to parse it into a data structure. You can then print a report and spool it out to a PDF. This is just a direction to go, but IBM i can convert a spooled report into a PDF for you.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM