Closed GoogleCodeExporter closed 9 years ago
I forgot to add, I use the following to 'try' to generate the pdf:
require_once("dompdf/dompdf_config.inc.php");
$dompdf = new DOMPDF();
$dompdf->load_html($factuur->html);
$dompdf->render();
$dompdf->stream("factuur" . rand(0,9999) . ".pdf");
where $factuur->html is the HTML string. I get back the above html if I instead
do print $factuur->html. So that throws no errors.
Original comment by onlinedi...@gmail.com
on 8 Feb 2012 at 2:08
We would recommend you try the 0.6.0 beta. Though not a "stable" release, it
performs at least as well as 0.5.x.
If you would rather stick to a non-beta product we'll need a bit more info. Can
you post the resulting PDF as well? Though blank it may contain something
useful in debugging your issue.
Original comment by eclecticgeek
on 8 Feb 2012 at 4:00
Ok, here is the PDF.
I hope this can help you, help me out. I have used this application before and
it did work.
A lease calculator uses dompdf as well and works just fine. It spits out quote
in PDF for the user and also mails the output. I can't figure out, why it isn't
working now.
Original comment by onlinedi...@gmail.com
on 8 Feb 2012 at 7:50
Attachments:
Can you try uncommenting line 2082 in dompdf/lib/class.pdf.php?
Original comment by eclecticgeek
on 8 Feb 2012 at 10:02
I must thank Fabien for reminding me of this:
It looks like a problem with the locales, can you try to add this before you do
"new DOMPDF"?
setlocale(LC_NUMERIC, "C");
Original comment by eclecticgeek
on 9 Feb 2012 at 12:52
That last comment did the trick! thank you very much. Maybe in a future release
run this automaticly to avoid this problem?
I had locale LC_ALL set to nl_NL for other purposes. I did not know that this
application made use of locales.
Original comment by onlinedi...@gmail.com
on 9 Feb 2012 at 9:58
This is already fixed in the SVN trunk for a year now : r361 ;)
It is in 0.6 beta 2.
Original comment by fabien.menager
on 9 Feb 2012 at 10:26
So that is why you it got recommended to me to use the beta version.......
Anyway, I am very happy with the result produced by this application. I hope my
customers will be happy with it too. Couldn't have done it without the support
here, thanks again.
example:
http://www.onlinedierenspeciaalzaak.com/pdf/?factuur=afffc36a51d93c3428726700ef5
f7592
Original comment by onlinedi...@gmail.com
on 9 Feb 2012 at 10:50
Original comment by eclecticgeek
on 30 May 2013 at 5:16
Original issue reported on code.google.com by
onlinedi...@gmail.com
on 8 Feb 2012 at 2:06