Create PDF from structured data

I want to be able to create graphically (with a lot of text content) a PDF file from data that can be in a database or xml or any other structured form.

Currently, our graphic designer creates these PDF files in Photoshop manually after receiving the contents as an MS Word document. But, as a rule, there are more than 20 content changes; small changes here and there, spelling corrections, etc.

Two drawbacks: 1) The time of the graphic designer is too busy. The first version is the only one he will have to work on. 2) The PDF file becomes a document that now has the final processed content, and the original content is not synchronized with it. Therefore, if the source content should be somewhere else (for example, on a website), we need to recreate it from a PDF file.

Creating a PDF file will help me solve both of these problems. Perhaps in some way the graphic designer creates the "Template" and then puts it in tags / holders and matches these tags / holders with the corresponding data.

Thank: -)

+3
source share
11 answers

. XSL-FO . - pdf xml ( xhtml) . . Apache FOP.

SQL XML .

+2

python ReportLab. , , ...

+1

, LaTeX, texi2pdf, .

+1

iReport JasperReports http://jasperforge.org. iReport , JasperReports (Java), iReport .

, , .

+1

, PDF, ​​ iText (Java).

+1

PostScript, , . PDF.

0

Prince XML. PDF XML HTML CSS.

0

, FreeMarker StringTemplate: HTML, , . , PDF-, . , , , . !

0

, SQL Server Reporting Services .
Reporting Services , PDF - . PDF , .
XML-.

0

PDF prawn, ruby. , . , .

0

You can combine CSStoXSLFO with XEP from RenderX for high quality output. With this solution, you can combine XML data into an XHTML template that is decorated with CSS. It can also generate charts with the fantastic JFreeChart library. The multimedia features of the CSS3 page are supported.

0
source

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


All Articles