Different margin for header/footer and content in pdf template

Collapse
X
 
  • Time
  • Show
Clear All
new posts

  • yuri
    replied
    It has much better CSS support. It should be possible.

    Leave a comment:


  • Stefan
    replied
    Originally posted by yuri
    TCPDF is a legacy. We don't support it unfortunately.
    With Dompdf this would be possible?

    Leave a comment:


  • yuri
    replied
    TCPDF is a legacy. We don't support it unfortunately.

    Leave a comment:


  • Stefan
    replied
    Originally posted by yuri
    Other than CSS, there's no other solution. You can use a DIV with a CSS.

    Copy pasting the header and footer is the best I solution I could think of.
    How would i do this? If I set Left/Right maring in the template settings, I did not manage to display the header or footer over the whole page. I've tried it with position: absolute, negative left-margin, but couldn't find a solution. (Im using TCPDF as pdf engine)

    Leave a comment:


  • yuri
    replied
    Other than CSS, there's no other solution. You can use a DIV with a CSS.

    Copy pasting the header and footer is the best I solution I could think of.

    Leave a comment:


  • Different margin for header/footer and content in pdf template

    Would it be possible to create different left/right margins for header/footer and content in a pdf template?

    I use headers and footers across the entire width - of course this makes no sense for the content of the document - so I would like margin on the content, but not on header & footer.

    I currently solve this problem with a table, with which I create a margin in the content of the document, but this makes the creation of pdf templates more complex. Is there perhaps a simpler solution?
Working...