The Header section, of the WooCommerce PDF Invoicing & Packing plugin, allows you to enable/disable and customize headers for each document type.
You can add images to headers, set image width, header title, text, text color, line color, and margin. The header images must be on the same local server as your website and the image width must be set in millimeters.
You can also use the standard “ tag in the HTML template instead of setting the image in the header. Header title, header text, and header image can contain shortcodes, but HTML tags will not be processed. For example, you can create different headers for different countries by using the `` shortcode with the `billing_country` attribute.
If you get a “TCPDF ERROR: [Image] Unable to get the size of the image: …” error, recheck that the header image URL is set correctly. If that does not help, try setting different values for the Advanced: Default Images Directory option in WooCommerce > Settings > Booster > PDF Invoicing & Packing Slips > General.
1. Navigate to WordPress Dashboard > WooCommerce > Settings > Booster > PDF INVOICING & PACKING SLIPS > Header.
The Header page will be displayed.
2. Enter/select required values for the fields. Refer to the table below for field descriptions:
Note: All the sections – Invoice, Proforma Invoice, Packing Slip, Credit Note, and Custom Document # have the same set of fields. The field description given in the below table is applicable to the fields of all the sections.
|Enable Header||Specifies if the document header is enabled|
|Header Image||Local URL to the image that you want to display in the document header. To upload the image, click media uploader.If you are face issues with displaying header image, try setting different values for the Advanced: Default Images Directory option in PDF Invoicing & Packing Slips > Advanced.|
|Header Image Width in mm||Width, in milimeters, of the header image.|
|Header Title||Title of the header|
|Header Text||Text that you want to display in the document header|
|Header Text Color||Color of the header text|
|Header Line Color||Color of the header line|
|Header Margin||Margin, in pixels, of the document header|
3. Repeat step 2 for all the document types that you want to customize.
4. Click Save changes.
The header(s) of the document(s) will be configured.