All Questions

19
votes
1answers
38194 views

how to add css file in mpdf

I am trying to convert html into pdf using mpdf. Problem is that i am unable to apply css to pdf file.. Here is my code of php: <?php $html = $divPrint; $mpdf=new mPDF(); $styleshee...
8
votes
2answers
7573 views

mPDF font-size not working

Using mPDF to print html to pdf the font-size I set in html is not properly set in creating the pdf. In my html I have <table width="100%" border="0" cellpadding="0" cellspacing="0" style="font-...
4
votes
5answers
10796 views

mPDF not rendering images (mPDF error: IMAGE Error Could not find image file)

We are getting plagued with this which started in April on working server. Everything was fine with our application until the customer reported that PDFs were no longer displaying the images. Our PD...
6
votes
5answers
31208 views

TCPDF & mPDF error: Some data has already been output to browser, can't send PDF file

The Problem: TCPDF & mPDF error: Some data has already been output to browser, can't send PDF file I gave up on trying to fix the error with TCPDF and installed mPDF only to get the same error w...
24
votes
3answers
75727 views

PHP mPDF save file as PDF

I have a page which uses mPDF and when you run its displays as a PDF in the browser, it can also be saved from here as a PDF no problem. What I would like to happen is when the page is run and generat...
5
votes
2answers
5728 views

mpdf ignoring javascript

i have a question here.. i'd use buffering to get the pdf files using mpdf.. but i gett a little confused here.. i have some javascript on the page that i was buffered.. but the generate content fr...
2
votes
2answers
2463 views

MPDF E-mail Attachment Sends Blank PDF

I have successfully generated a PDF using mpdf, which I have verified by downloading the PDF. However, when I send the PDF as an e-mail attachment I receive a blank PDF with an "Out of Memory" error b...
19
votes
2answers
30076 views

Auto download mpdf generated pdf document

I am newbie for mpdf so don't mind if you feel this question is stupid one:), I generated the pdf document usinf mPDF class , the issue is that after pdf generated the browser opens it in tab . But ...
6
votes
2answers
6043 views

Changing the default filename when using mPDF

I'm currently using mPDF to generate a pdf from HTML (which was generated by PHP). All works as expected but I'd like to be able to change the default filename. Currently, I have: $payStub=new mPDF...
1
votes
1answers
1359 views

Get position of text in mPDF to determine vertical height of HTML element

I am generating PDFs with the mPDF class and wondering if and how would it be possible to determine the position of the last line of text in document that is generated mPDF? I need an HTML box to be ...

Previous Next