Converting html to html in HTML2pdf will cause Image loss in html-php Tutorial

Source: Internet
Author: User
HTML2pdf converts html to html, and the images in html are lost. there is no pdf in html, but I use regular expressions to replace the images and insert them into the image $ pattern & lt; img .*? Src [|] (. *? (? : 2.16.gif |. jpg |. png]) [|]. *? []? & Gt; I; & nbsp; preg HTML2pdf convert html into pdf html and the image is lost.
Html contains images

The converted pdf file does not exist.

I use regular expressions to replace the image and insert it into the image.
$ Pattern = "// I ";
Preg_match_all ($ pattern, $ file, $ match );
Var_dump ($ match );
For ($ I = 0; $ I $ Img_url = preg_match ("/^ http: \\//", $ match [1] [$ I])? $ Match [1] [$ I]: "http://file.aconf.org". $ match [1] [$ I];
Preg_replace ($ match [0] [$ I], $ pdf-> Image ($ img_url, 5, 5,200,150, $ type = '', $ link = "", $ paint = true), $ file );
}
$ Pdf-> Image ($ img_url, 5, 5,200,150, $ type = '', $ link =" ", $ paint = true );
Error

Please give me some advice.
------ Solution ----------------------
The following png mode is not supported
Interlacing)
Alpha channel

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.