Flying saucer Implement HTML to PDF (some issues, continuous update)

Source: Internet
Author: User

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)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.