Convert HTML to PDF

Source: Internet
Author: User
Tags xsl

Original: http://www.javaworld.com/article/2071749/java-app-dev/convert-html-content-to-pdf-format.html


Translation: http://www.blogjava.net/shaofan/archive/2006/05/30/48866.html


Key steps:

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/30/89/wKioL1OoU1OhsDNDAACGmFtzGck909.jpg "title=" Jw-0410-html-100156013-orig.jpg "alt=" Wkiol1oou1ohsdndaacgmftzgck909.jpg "/>


The conversion process consists of the following three steps:

1. convert HTML to XHTML;

2. convert XHTML to xsl-fo (extensible Stylesheet Language formatting Objects Extended Stylesheet Language formatting objects ). XSL style sheets and XSLT converters are used here;

3. Pass the xsl-fo document to the formatter to generate the target PDF document.


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.