I'm struggling with some layout issues. Is it possible to see the exact HTML output of which the PFD is generated? Maybe that way I can see whats going wrong.
If this is not possible, maybe this issue should be changed in a feature request?

Thanks,

Mike.

Comments

sportel’s picture

Anyone?

candelas’s picture

Hello

At the moment there is not a way to do it in views. What i did was to check the pdf with firebug. i hope it helps :)

sportel’s picture

Hello candelas,

Thanks for the response. I've never used firebug, but I'll give it a try. I'll report my findings back. Thanks for now.

Mike.

sportel’s picture

I've tried to view the pdf with FireBug, and I see a lot of information, but not the source of the content of the pdf. Any hints?

Thanks,

Mike.

candelas’s picture

That is all that i could get :)

vegansupreme’s picture

Issue summary:View changes

Sportel,
You could try putting this in the PHP before field: watchdog('Views PDF', $content);
it will put the content of each field into a log message.

vegansupreme’s picture

Status:Active» Closed (works as designed)

Views PDF does not necessarily output HTML at all!

from http://stackoverflow.com/questions/3404095/tcpdf-not-render-all-css-prop...

In the first place, you should note that PDF and HTML and different formats that hardly have anything in common. If TCPDF allows you to provide input data using HTML and CSS it's because it implements a simple parser for these two languages and tries to figure out how to translate that into PDF. So it's logical that TCPDF only supports a little subset of the HTML and CSS specification and, even in supported stuff, it's probably not as perfect as in first class web browsers.

The closest thing is to add a page display to your view that uses the same fields and settings as the PDF. That will give you an idea of the HTML that is sent to TCPDF. Hope this helps!