Is it possible to generate PDF from XML code?

,

@kritk
welcome to the forum

it depends on the complexity of data and expected format in PDF.

In some cases a creation of an intermediate fromat and converting this into PDF can serve.

From technology perspective have a look here:

maybe you can share some sample input/output with us. Thanks