M
|
MikeT 6/10/2024 |
I would try locally if it's possible to combine the two (pdf created in phpr + xml file) with gs, see here: https://ghostscript.com/blog/zugferd.html |
![]() |
HJB 6/10/2024 |
https://wiki.print2forms.de/doku.php?id=print2forms:tips:tip69c Sorry, but I made Google to be my best friend :) Or say, |
![]() |
mbintex author 6/10/2024 |
@HJB well, this requires a) a third party software Then I´ll be better off with a completely different PDF engine instead of pdfmake.js that can incorporate XML by itself. This is found by Google too: https://github.com/easybill/zugferd-php but it only generates the XML - hard enough, but does not integrate it into a PDF. @Mike Personally I would really prefer to generate XML and PDF in one "go", instead of having three steps, that depend on each other. |
C
|
Chris Whitehead 6/10/2024 |
I found this one which can create a pdf with an XML attachment, it uses the FPDF lib. If you want a basic invoice printer class in php, try this, it's using the FPDF lib as well, maybe you could use it for the invoice layout and the other to add the XML attachment. I'm just wondering if this format will spread from Germany to the UK? Maybe I should be prepared lol. |
M
|
MikeT 6/10/2024 |
@mbintex Yeah, I understand. I'm not familiar with the Zugferd complexity/requirements. But it seems to be complex enough that if a reliable gs workflow is available it might be even more "dependency free", since you only have to call it from php (and gs is very perfomant). But that's just me, I like to split things up like that (Unix background, lol). |
![]() |
HJB 6/11/2024 |
@mbintex Beginning of 2025 still takes a while and with "business by law", here to make companies of all kinds |
![]() |
mbintex author 6/11/2024 |
@HJB I don´t mind paying, since I want to get paid myself :-) But a solution that requires paying by usage is hard to calculate. |
![]() |
mbintex author 6/11/2024 |
@Chris this looks promising to me: https://github.com/horstoeko/zugferd Allthough I still would prefer a solution that could write the XML directly to the PDF in one "go". |
![]() |
mbintex author 6/11/2024 |
K
|
kohle 6/11/2024 |
You can send to your customers a xml file (XRechnung) and a separate pdf file instead of a combined ZUGFeRD xml+pdf. rgs |
![]() |
mbintex author 6/12/2024 |
@kohle Technically this seems to be the easiest way. Waiting for the first customer asking, what this funny xml file should do ... Of course this way one could stay with pdfmake.js and don´t change anything here. |
C
|
Chris Whitehead 6/12/2024 |
@mbintex I'd be willing to have a play at this, I'm a little on the busy side at the moment but if you don't find a solution let me know. |
![]() |
mbintex author 6/15/2024 |
I will go with one of the XRechnung PHP libraries and only hand out a separate XML file. Never really understood why Xlinesoft got rid of DOMPdf and changed to pdfmake.js. In my eyes DOMPDF did a better job ... |