Hi @Cisco_Saeed,
Just for your information:
If I see it correctly then your intention is, using IP, to create a pdf invoice and embed an xml file in it.
This is the way Germany formats its e-invoices (zugferd or xrechnung). The rest of Europe takes a different (and much better/future) approach, namely they create an xml file (in a UBL - EN16931 or PEPPOL format) where they can “optionally” embed a pdf.
The formatting of an xrechnung/zugferd xml file is also completely different. They use different tags than the ones you see in the “normal” UBL 2.1 format. Looking at the Fatoora format I noticed that it is a copy (with some modifications) of the European EN 16931 format.
So it seems to me that it would be better to go for an external XML file with (embedding or not) PDF.
Having said that and in response to your post I would like to suggest that:
- I provide you with my customizations (in PHP and with examples)
- I explain to you; how, what and why I did it this way
- ‘in return and for the IP community’ I do expect you to add this code into the GitHub IP repository…
Perhaps it would be better, if you wish, that we continue this communication via email…?
Have a nice day,