Flying saucer Implement HTML to PDF (and some issues, continuous update)
A detailed introduction is available on the Flyingsaucer website.
Website address: https://today.java.net/pub/a/today/2007/06/26/generating-pdfs-with-flying-saucer-and-itext.html# The-problem-with-pdfs
The Chinese have the following problems in using Flyingsaucer to convert HTML into PDF:
L Chinese does not display the problem
L <td> content is too long to be converted into a PDF after the problem is not complete
There are a number of articles on the web that offer solutions that don't solve the problem.
In the study of the problem, 2 types of jars were used, the first of which was to download the jar on the official website as shown:
Another is to download someone else to modify the source after the jar as follows:
For questions that do not appear in Chinese, the following 3 solutions are summarized below:
L Modify the source code, solve the problem: unknown
L Use other people's modified source to solve the problem: this is the most convenient, recommend a person's blog everyone to see, address is: http://blog.csdn.net/shanliangliuxing/article/details/6833471 ( If need jar can email me [email protected])
L Use the online crazy to add fonts: the idea of adding fonts is to add fonts to both the code side and the HTML that needs to be converted. But I've tried. No success! All in error.
Summary under the seemingly direct use of the modified source code is the most convenient, but I very much want to add fonts this form straightened out, so if someone is successful with this form please be sure to tell me ([email protected])
About <td> content too long can not show the whole problem of the solution idea:
L Modify Source: Unknown
L Use other people's modified source code: Not found there is currently available
How to add style to solve the idea: the test has not worked at all.
Summary: Temporarily unable to fix.
Flying saucer Implement HTML to PDF (some issues, continuous update)