AlgoSphere generates PDF documents for invoices, estimates, proposals, contracts, and credit notes. The appearance can be extensively customised from the admin settings.
PDF Settings
Navigate to Setup → Settings → PDF for all PDF-related configuration:
| Setting | Description |
|---|---|
| Show Invoice Payments on PDF | Yes / No — show transaction history at the bottom |
| Swap Company / Customer Details | Move company info to right, customer to left |
| Invoice Columns | Choose which columns appear: qty, rate, tax, total, etc. |
| Logo Width | Controls the company logo size on PDFs |
| Font | Select the font used across all PDF documents |
| Colour Scheme | Primary and secondary colour for PDF headers and accents |
Custom PDF Templates
To create a custom template without modifying core files:
- Copy the relevant PDF view file from
application/views/pdf/. - Create a folder
application/views/pdf_custom/and paste your copy there. - Edit the custom file — AlgoSphere will automatically use your version over the default.
Update-Safe
Always use the pdf_custom folder approach — your changes will survive AlgoSphere updates.
TCPDF Error: Unable to Get Image Size
If you see a TCPDF error about image size when generating PDFs:
- Ensure the logo is uploaded via Setup → Settings → Company
- Verify the GD PHP extension is enabled on your server
- Ensure the logo file is a standard format (JPG or PNG) and under 2 MB
Adding Custom CSS to PDFs
PDF styles are controlled via inline CSS within the view files. To add custom styles, use the custom view file approach described above and add your CSS to the <style> block at the top of the template.