-
Just wanting to confirm (before I sink more time into this) that the various PDF writers (I have tried the three options) do not support the headers defined in the generated Excel file.
The defined header is not added to the out.pdf. If I use the Xlsx writer and save to out.xlsx it produces the expected output. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
That's correct, nor with the HTML Writer which is used as the basis for all of the PDF Writers |
Beta Was this translation helpful? Give feedback.
-
Well, I hate giving up on something, so for those looking for a potential solution...
I have a 3-column configuration for my header, but feel free to modify the header section as you see fit. Edit Apr 23, 2022: I modified the code to use two Mpdf objects. One is used to detect the orientation (landscape or portrait) of the page being added, and the other is the PDF document you actually want. In the original answer, I had simply hard-coded landscape for all added pages. Note that this method creates two layers on each page. The "bottom" layer is the template page, while the "top" layer has the header. Next step is to see how to merge the layers. :) |
Beta Was this translation helpful? Give feedback.
Well, I hate giving up on something, so for those looking for a potential solution...