Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
sportel CreditAttribution: sportel commentedAnyone?
Comment #2
candelas CreditAttribution: candelas commentedHello
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 :)
Comment #3
sportel CreditAttribution: sportel commentedHello 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.
Comment #4
sportel CreditAttribution: sportel commentedI'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.
Comment #5
candelas CreditAttribution: candelas commentedThat is all that i could get :)
Comment #6
vegansupreme CreditAttribution: vegansupreme commentedSportel,
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.
Comment #7
vegansupreme CreditAttribution: vegansupreme commentedViews PDF does not necessarily output HTML at all!
from http://stackoverflow.com/questions/3404095/tcpdf-not-render-all-css-prop...
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!