Re: dompdf on magento pdf free extension

807 views
Skip to first unread message

BrianS

unread,
Jun 30, 2012, 8:53:41 PM6/30/12
to dom...@googlegroups.com
Is the image part of the normal HTML? It doesn't seem that it would cause this type of problem, but you could try decreasing the image width for dompdf. 800 would be wider than a letter-size, portrait page at 72 dpi.

That being said, your error log seems to indicate a more serious issue. The first few lines complain about missing parameters, undefined arguments, and an inability to load the DOMPDF class. I don't believe the addition of an image would cause this type of problem. Perhaps something related to the first three lines is where you should start. You also might contact the extension author to ask about the error on line 4.



On Thursday, June 28, 2012 11:53:36 AM UTC-4, Vinod Kanted wrote:
I am using dompdf via magento with a extension  http://www.magentocommerce.com/magento-connect/free-pdf-8037.html when I add header image from the back end for the html to be generated and generate a pdf from a product page sometime is generates perfectly most of the time it  shows a error saying internal error 500 and digged in  little and came out with log report  of magento http://pastebin.com/An6RjFLj  And if I remove the header image it works. I have increased my PHP limt,

I am using magento 1.7.0.0
And I dompdf ver 6 (* @version $Id: dompdf_config.inc.php 468 2012-02-05 10:51:40Z fabien.menager $) got this line from the config.nic as could not find where to look for the version as this is embedded in magento extension.

Image size 800 * 171 size of the image 61.1 kb 

Any little help would be very great-full 

Smiles,
Kanted



Vinod Kanted

unread,
Jul 2, 2012, 1:52:54 AM7/2/12
to dom...@googlegroups.com

Thanks Brain,
                       I just tried it today once again without changing the setup. it is perfectly working. Do no what caused it the other day. Now the output is running into two pages I want to reduce it say to 80% overall so that it accomadates in one page. Or how to alter so that we can reduce the white space wastage. have attached example files could pls have a look

Cheers
Kanted
product_169 (2).pdf
product_430 (6).pdf

BrianS

unread,
Jul 3, 2012, 1:32:27 PM7/3/12
to dom...@googlegroups.com
Well, glad it worked out. Hopefully it was just a temporary hiccup.

As for sizing to a page ... you'd probably have to tweak the CSS. You can specify a custom stylesheet for dompdf with <link rel="stylesheet" type="text/css" href="dompdf.css" media="dompdf" />.

It's hard to give you any specific advice without seeing the original HTML document.

Vinod Kanted

unread,
Jul 4, 2012, 3:52:16 AM7/4/12
to dom...@googlegroups.com
Dear Brain, 
                     Thanks for your reply. Pls find the link from where we generate the Html to PDF 
http://test.saco.in/laptop-accessories/others/laptop-keyskin.html on top right side you should be able to find icon to generate /print  pdf. As I am not the core php guy but little advice will surly help me to accomplish my task. Thanks for investing your time on my work.

Cheers,
Kanted

John Bell

unread,
Jul 4, 2012, 5:54:08 AM7/4/12
to dom...@googlegroups.com
If you want to fit it all on one PDF page, I think you'll need to look at the PDF page design as a whole, just shrinking the contents to fit will end up with some very small type. You may need to use a different header etc, You also need to ensure that you're using UTF-8 encoding as your bullet points are not rendering correctly.

John 
--
You received this message because you are subscribed to the Google Groups "dompdf" group.
To view this discussion on the web visit https://groups.google.com/d/msg/dompdf/-/YQdDLDA3-KgJ.
To post to this group, send email to dom...@googlegroups.com.
To unsubscribe from this group, send email to dompdf+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/dompdf?hl=en.

Vinod Kanted

unread,
Jul 9, 2012, 3:33:56 AM7/9/12
to dom...@googlegroups.com
Thanks John, You  said to improve the layout  I need to look at PDF page design, Where should I look for this, so get the same designed as per my requirement, which file & folder location. Thanks

Smiles,
Vinod

To unsubscribe from this group, send email to dompdf+unsubscribe@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages