Create PDF files using page layouts using CSS

I am looking for a system that allows me to create PDF files from html. I would like to use as much CSS for styles as possible.

Features that would be great:

  • Repeating specific elements on each page (header / footer)
  • The system should know the number of pages the pdf created, so I can insert something like this: page 1 of 5, page 2 of 5, page 3 of 5, etc.
  • CSS2 / CSS3 great for styles
  • Automatic line break detection

What software / system / service can be recommended for using html / css to automatically generate pdf files?

It does not matter if the system is free or commercial. But for me it is important that it is possible to send the system with existing software. Therefore, if it is a commercail, it should be possible to include it on the software stack.

+3
source share
6 answers

I don’t know if it’s exactly what you want, but an XML Printer can help you make PDF files with HTML, XML and CSS.

edit I got this on the function page:

  • Page headers and footers for page numbering and duplex printing. A.
  • Auto-layout tables with headers / footers.
  • Multi-column layout, floats and positioned blocks.
  • Lists with custom stamps or numbers.
  • , , .
  • , .
+3

ABCPDF - PDF.

+2

:

iText Java #.

+1

, . . , - (Java,.net ..)

+1

WebToPDF.NET HTML/CSS PDF. .NET, 100% .

: TallComponents,

0
source

Check out WeasyPrint . Like the other tools offered here, it converts HTML / CSS documents to PDF.

This is open-source. (Im a developer.)

0
source

Source: https://habr.com/ru/post/1786912/


All Articles