Active
Project:
Ubercart PDF Invoice
Version:
6.x-1.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
27 Sep 2011 at 19:54 UTC
Updated:
18 Jan 2012 at 01:20 UTC
Is it possible to theme the PDF from within the view?
I've tried to use CSS-classes to manipulate the table that is used by the orderlines, but without any luck sofar.
I'm not very familiar with TCPDF as i've used FDPF for most of the previous non-drupal stuff I had to do in the PDF-area.
It would be nice to have the option to show the table with borders, and have more control over the style of the table (change headers-color etc.)
Could someone point me into the right direction, or straight-out burst my bubble, stating that this is not possible? ;-)
Comments
Comment #1
maikeru commentedIn regards to tables, TCPDF seems to have some support for theming borders/cell backgrounds.
Take a look at the views_pdf documentation:
http://drupal.org/node/1086584
In particular, theres a $border variable where you can set if a border is rendered or not on a cell.
Eg Under style settings in your view, change the Render settings for a fields "PHP Code Before Output: " to have:
You'll get a red underline under the cell.
Heres some code for a pink cell background and red underline: