Quantcast
Channel: All Discussions - mPDF Forum
Viewing all 108 articles
Browse latest View live

mpdf is hanging on a lang='es' parameter in a span of text

$
0
0
i have a <span> that has a lang='es' in it. there are only utf-8 characters within the span.  if i remove the lang='es', mpdf works fine, but with it, it hangs a process that times out after my php time out (even on a small document and my timeout is 5 minutes).  without the lang='es', it generates the file in seconds.

after the timeout, i get a message saying non-UTF-8 character(s) found.

not sure how the lang='es' got in there honestly... probably a cut and paste from windows or something... but in any case, it shouldn't cause mpdf to hang.

AND... on a system (joomla v1.5) with php setting ISO-8859-1, it works even with the tag.
iconv.output_encodingISO-8859-1
with my new joomla, this is set to UTF-8.  it's possible that is the issue...  




MathML

$
0
0
Dear Sir,

As i can use html code in mpdf and it's working fine. i like to use MathML code also for display equation in pdf. Is mpdf support MathML code, if code so did you give this feature in future.

Output to browser with SaveAs filename

$
0
0
Hello,

I am generating a PDF document via my php script. The document generates just fine, but when I click on the "SaveAs" button (Adobe Plug-in within FireFox) the default SaveAs filename is the original script filename, bit the filename I am trying to specify.

I am using:

$mpdf->Output($file_name, 'I');

where $file_name is the actual name I want to use.

In the past I saved the PDF to a file on my server, but I want the PDF to be displayed in the browser instead.

Any suggestions?

Thanks for the support. mPDF is a great program... :)


TOC inside tables

$
0
0
Hi all,

I don't know if its only a problem of my config or if it's not possible at all.

I have the h2toc flag set so that TOC is generated out of H1-6 tags automatically.

But this doesn't seem to work correct if H1-6 tags are inside tables.

Someone with same problem or possible solution to that?

Regards

(possible) PHP7 compatibility issues

$
0
0
in DokuWiki I checked some php7 compatibility issues. This reveals also code with potential compatibility issues for mPDF.
I didn't fully understand the surrounding code, so maybe the code is not affected, but I think you can judge that better.

lib/plugins/dw2pdf/mpdf/classes/ttfontsuni.php
2115: $$tag[$loclsubs[$key]] = $sub;
2126: $$tag[$loclsubs[$key]] = $sub;
2146: $$tag[$loclsubs[$key]] = $sub;
2155: $$tag[$loclsubs[$key]] = $sub;
Update to: ${$tag[$loclsubs[$key]]} = $sub;

/lib/plugins/dw2pdf/mpdf/mpdf.php (line 10400): $data = $this->$v[1];
Update to: $data = $this->{$v[1]};




Shrinking section

$
0
0
Hi - I'm trying to print a report via mPDF and the raw content is HTML. On screen everything in the report looks fine, but when sent to mPDF, one section is scaled down on the page to about 2/3's the original size. After that section of the report, the subsequent sections are fine again.

By doing some debugging, it would appear that the section I'm having trouble with is too 'big' for mPDF. The section has a </pagebreak> wrapped around it which I think is why it's being treated differently to the section either side of it. By removing some of the content in this particular section (by suppressing the HTML), the section prints fine like all the others.

Is there a setting to govern the number of characters that mPDF will print without it trying to reduce the font size and page size etc. of a particular section ?

Cheers,

Tim

Hide Barcode numbers

$
0
0
Hi.

I need to hide numbers on barcode. Is there any functions to do that?

Generating two pdf's successively

$
0
0
I'm using mpdf libriary to generate pdf file from view (html) and all is good. But when I try to do it again with another view in the same place, I get pdf with data from first view with corrupted image and new blank page.

Also, when I call pdf creation in seperate places, all works fine, and both pdf's create without any questions. However, it happened that I need to call both in one place.

I tried to use sleep(10), unset($html) but it didn't work, and I have found nothing in internet about this problem. Please help.


Viewing all 108 articles
Browse latest View live