Use HTML to write the relevant questions and methods that can be converted into appropriate PDF files (A4 paper size) __html

Source: Internet
Author: User

1 PDF file corresponds to the width of the HTML page is "820px".
The 21 page PDF file corresponds to the height of the HTML page as "1160px", and more than a page analogy.
3 Remember to "margin" the outer distance of the "body" element to clear zero.
Such as:

<! DOCTYPE html>
 

4 after writing the HTML page, in the browser (right key) to find "print" function, or directly "ctrl+p" call out the printed page.
5 (The following example operates under Google Browser) and then click "Change ..." on "Target Printer" and select "Save as PDF".
6 in "More Settings" can be freely selected according to the actual situation. In 1 or 2 steps, set margin to none, and if the page adds a background, check the background graphic for options. "
7 after setting, "save" can be done.

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.