1. Cecilia Jiménez Bedoya
  2. PowerBuilder
  3. Wednesday, 23 May 2018 11:07 AM UTC
Is there an option to have an xml and an xlst to convert it to pdf in powerbuilder?
Marco Meoni Accepted Answer Pending Moderation
  1. Wednesday, 23 May 2018 13:01 PM UTC
  2. PowerBuilder
  3. # 1

Hi Cecilia,

since PB 2017 can now generate native PDF files, I would load the XML into a a datawindow/datastore (ImportString function) and then save it into PDF (SaveAs function).

Limitations apply according to the complexity of the input XML, but you can leverage PBDOM extensions just in case.

Best,

Marco

Comment
There are no comments made yet.
Michael Kramer Accepted Answer Pending Moderation
  1. Wednesday, 23 May 2018 12:42 PM UTC
  2. PowerBuilder
  3. # 2

Hi Cecilia,

I believe you mean XML to PDF using XSLT files. There is no standard function in PowerBuilder to perform that file conversion.

However, there is existing software to do that conversion (like Apache Cocoon). I would consider using such a software component. From PowerBuilder you would shuffle around the required files and perform the required calls to automate the process.

More info on Apache Cocoon => https://cocoon.apache.org/2.1/howto/howto-html-pdf-publishing.html

HTH /Michael

 

Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.
We use cookies which are necessary for the proper functioning of our websites. We also use cookies to analyze our traffic, improve your experience and provide social media features. If you continue to use this site, you consent to our use of cookies.