Thanks for your help. I will try to look into code, and might need your help further. I will discuss it on the github issue.
Posts made by ron-liu
-
RE: Header did not be applied to the landscape pages appended by pdfOperation
-
RE: Header did not be applied to the landscape pages appended by pdfOperation
I am thinking one solution to walk around like below:
- Set header and footer after appended landscape pages in pdfOperation;
- For the appended landscape, set up a merged pdfOperation with a landscape header, and set it to be merge to front;
Theoretically, the landscape header should sit in the very front and show up, but it is not happening.
Is this the way to solve the issue?
-
Header did not be applied to the landscape pages appended by pdfOperation
Hi,
I am doing a pdf with mixed orientation pages, and also header and footer with page number. I am struggling how to work it out.
Please check the playground link here. The entry page is a portrait one with the following page operations with the right order:
- appended portrait one page
- appended landscape one page, inside there is a merged pdfOperation which is a landscape header (with renderToFront set to true)
- merged one, which is header (for portrait)
- merged one, which is footer (for portrait)
In the generated pdf, the observations are:
- in page 2, there is no header, and the footer is not as wide as the landscape page width
If I set header and footer before appended landscape pages in pdfOperation, it will end up with wrong page number, meaning the page number is scoped like separated pdfs composed together with its own page numbering.
Anyone can help? thanks.
Regards,
Ron -
How to dynamically insert page break
Hi friends,
My client want to print part of the pdf into one double sided page. My solution is to make sure this part will start with an odd page number. Because the pages before this part is unknown, I think I have to detect the page number dynamically, and insert a page break if needed like below.
{{#if isEven $pdf.pageNumber}} <div class="page-break"></div> {{/if}}
However, it looks like the $pad.pageNumber is not retrievable, any solutions?