1

Is there a way to use css pagination with the current version of dompdf shipped with CiviCRM? Like:

@page :footer {content: "page " decimal(pageno);}

The issue is that I want some content that is repeated on every page. In a dompdf issue on Github it is claimed that using fixed positioning is another way to achieve this. But we have tried this solution in CiviCRM PDF templates and it does not have that effect.

2
  • 1
    I cannot give you much detail but in our experience, creating properly formated multipage documents in CiviCRM with dompdf is very complicated to say the least. We usually use wkhtmltopdf which makes things a little bit better. – Fabian Dec 10 '20 at 8:06
  • Thanks for this good suggestion – unfortunately in this case wkhtmltopdf isn't available on the server. – Andreas Dec 11 '20 at 19:16
0

The dompdf in civi is the latest 0.8.6. If you're asking if dompdf itself supports pagination, I don't know offhand - that would be a dompdf question.

1
  • It should support that: I tried to formulate my question a bit more precisely and also added a link about how someone managed to do it elsewhere – however in civi the solution presented there didn't work for me. – Andreas Dec 11 '20 at 19:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.