Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Creating PDF files with page layouts using CSS [closed]

Tags:

css

pdf

I am searching a system which allows me to generate PDF files from html. I would like to use as much CSS for styling as possible.

Features that would be great:

  • Repetition of certain elements on each page (header / footer)
  • The system should know the number of pages of the generated pdf, so I can insert something like this: page 1 of 5, page 2 of 5, page 3 of 5, etc..
  • CSS2 / CSS3 would be great for styling
  • Automatic recognition of line breaks

Which software / system / service could be recommended to use html/css for the automatic generation of pdf-files?

It does nos matter if the system is free or commercial. But what does matter to me, that it should be possible to ship the system with an existing software. So if it is commercail ,there should be a possibility to include it into a software stack.

like image 724
Richard Avatar asked Oct 21 '25 17:10

Richard


1 Answers

I don't know if it does exactly what you want, but Prince XML can help you make PDFs with HTML, XML and CSS.

edit: I got this from it's features page:

  • Page headers/footers page numbering and duplex printing.
  • Tables with automatic layout and running headers/footers.
  • Multi-column layout, floats and positioned blocks.
  • Lists with customisable bullets or numbers.
  • Automatic numbering of lists, headings, sections or figures.
  • Footnotes, cross-references.
like image 150
Auxiliary Avatar answered Oct 23 '25 10:10

Auxiliary



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!