CSS differences between [print invoice] and [download invoice]
-
Hi there,
I noticed a few differences between my invoice design for the print version and the pdf version. The print layout is the layout I am satisfied with.
As can be seen from the image above, for the PDF version:
1. The invoice number, date and order number is not aligned to the right. There seems to be a right margin which is not needed.
2. The order description does not have the appropriate line height.
NOTE: The line height CSS is defined throughwf_pklist_add_custom_css
as such:add_filter('wf_pklist_add_custom_css','wt_pklist_alter_line_height',10,2); function wt_pklist_alter_line_height($custom_css,$template_type) { if($template_type=='invoice') { $custom_css.='.product_td{line-height: 1.5em !important;}'; } return $custom_css; }
I shall also note that I have installed the mPDF plugin and is using mPDF to generate these pdfs.
Additionally, would it be possible to resize the width for the SKU and Order Description? Preferably the SKU should be much smaller in width, perhaps at 15%.Thank you!
- The topic ‘CSS differences between [print invoice] and [download invoice]’ is closed to new replies.