Solve web printing problems-PDF

Source: Internet
Author: User
In the recently completed project, web printing has become one of our work difficulties. By comparing and combining with the actual situation, we have used to generate a PDF by printing pages first, then print the final solution.

Two methods are used:

1. Use open source code Itextsharp, Related information http://itextsharp.sourceforge.net/

Create a PDF file for dynamic information. Each line of content must be CodeGeneration, relatively bitter.

2. Use ABC. PDFTo generate a PDF file for the static page HTML, or convert the aspx file to HTML in the background, and then generate a PDF file. Regardless of the HTML file size

How can I convert a few lines of code into a PDF file?

Note the following two points:

All PDF files are created on the server and must have a set of PDF File naming schemes to ensure that PDF files are not renamed and must be deleted in a timely manner,

Server Load

In this way, the user opens a PDF file in the browser and uses the print of the PDF file to replace ie printing. Without the annoying header and footer, the printing position can be precisely controlled, you can also save the PDF file to your local machine.

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.