asmitaisit Posted February 1, 2008 Share Posted February 1, 2008 I have this html2pdf library. i need to create a pdf and send it as an attachment in mail. I have to insert an image as header in that PDF. how can that be done?? Thanks In advance. Asmita Link to comment https://forums.phpfreaks.com/topic/88879-insert-image-in-pdf/ Share on other sites More sharing options...
Guardian-Mage Posted February 1, 2008 Share Posted February 1, 2008 Maybe a little more detail, but why can't you just put the image in the html and when you convert it everything should be fine. Again, I am not quite sure I understand you Link to comment https://forums.phpfreaks.com/topic/88879-insert-image-in-pdf/#findComment-455225 Share on other sites More sharing options...
pdkv2 Posted February 1, 2008 Share Posted February 1, 2008 if you can post some code snippet it will be easier to suggest Link to comment https://forums.phpfreaks.com/topic/88879-insert-image-in-pdf/#findComment-455230 Share on other sites More sharing options...
asmitaisit Posted February 2, 2008 Author Share Posted February 2, 2008 i mean. i have tried taking in CSS and images in html and converting to pdf. what i do is, i extract info from database. show that on a separate page and then pass the url of that php page to: $fp = fopen(URL,"r"); $strContent = fread($fp, filesize(URL)); so that it can take in the html from that file and convert that to pdf. if there is any image in that file. will it get converted to pdf as well? I have attached a pdf dynamically created by me. also, pls help me with inserting css or styling to it. [attachment deleted by admin] Link to comment https://forums.phpfreaks.com/topic/88879-insert-image-in-pdf/#findComment-455942 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.