Ask PHP to print a table in PDF? How to Get

Source: Internet
Author: User
Tags php foreach php print
May I ask PHP to print a table in PDF? How can this problem be solved? Page code: HTMLcode & lt ;? Phpforeach ($ aas $ v ):? & Gt; & lt; table & gt; ...... & lt; table & gt; & lt ;? Phpendforeach ;? & Gt; printed on a piece of paper. I want to split a table by table. one table is a piece of paper. can PHP print a PDF and one table? How can this problem be solved?
Page code:
HTML code
  

  

  
  
   
   
......

  
  


It is printed on a piece of paper.

I want to split a table by table. one table is a piece of paper.

------ Solution --------------------
What does this have to do with php ??
------ Solution --------------------
Use a style to control the width and height of the TABLE.

------ Solution --------------------
I still don't understand what the landlord wants to express
------ Solution --------------------
The page-break-before attribute sets the page-breaking action before the element.
Although you can use always to force pagination, you cannot ensure that pagination is not inserted. the creator can only ask the user agent to avoid pagination as much as possible.
Applicable to non-floating block-level elements whose position value is relative or static.
Note: use as few paging attributes as possible, and avoid using paging attributes in tables, floating elements, and block elements with borders.

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.