Closed GoogleCodeExporter closed 9 years ago
Your PDF is definitely corrupted. Is this the raw output from dompdf or did you
open it in another application and save it? Your system configuration hasn't
changed at all?
Original comment by eclecticgeek
on 7 Feb 2012 at 10:48
Issue 419 has been merged into this issue.
Original comment by eclecticgeek
on 7 Feb 2012 at 10:48
Based on the file you attached to issue 419 your application is writing some
non-PDF data into the output stream. If you open the file in a text editor the
following is at the end of the file:
controller:
Original comment by eclecticgeek
on 7 Feb 2012 at 10:51
Hi txs for your answer:
"If you open the file in a text editor the following is at the end of the file:"
I did that...so what am i looking for ??? and how do i fix it?
We checked our system configuration and no major changes have been taken place.
I tried to integrate dompdf , into other websites of codeigniter i have, and
getting the same result so i think there might be a wrong setting in
codeigniter.
Maybe something todo with the headers or encoding ?
I would appreciate any help
Original comment by pfzw...@gmail.com
on 8 Feb 2012 at 7:57
Your application is buffering content and appending it to the end of the PDF
document. Scroll all the way to the bottom and you'll see the text
"controller:" which should not be there. I'm not familiar with CI, so I
couldn't say where the text is coming from. You could try adding an exit()
statement just after streaming the PDF. This would halt processing and prevent
anything else from slipping into the stream.
Original comment by eclecticgeek
on 8 Feb 2012 at 3:51
sorry i think i edited that part myself to show code examples attachted you
will find the pdf which is corrupt and generated the way its been outputted by
dompdf version 5.0.1
can you tell me if anything wrong with the file i opened it myself in
texteditor but seems fine to me. maybe you can tell me what wrong with the pdf
and how to fix this problem. I am having a strict deadline and this deffinately
needs to be fixed.
Are there certains setting in php or on the server that really needs to be
on??that might cause this problem?
Original comment by pfzw...@gmail.com
on 8 Feb 2012 at 9:46
Attachments:
Can you try uncommenting line 2082 in dompdf/lib/class.pdf.php?
Original comment by eclecticgeek
on 8 Feb 2012 at 10:05
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 fabien.menager
on 8 Feb 2012 at 10:35
txs fabien that worked! life saver!
Original comment by pfzw...@gmail.com
on 9 Feb 2012 at 11:56
Great! I'm closing the issue then (it was fixed in the previous beta)
Original comment by fabien.menager
on 9 Feb 2012 at 12:58
Original comment by eclecticgeek
on 30 May 2013 at 5:16
Original issue reported on code.google.com by
pfzw...@gmail.com
on 7 Feb 2012 at 7:04