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:

SettingDescription
Show Invoice Payments on PDFYes / No — show transaction history at the bottom
Swap Company / Customer DetailsMove company info to right, customer to left
Invoice ColumnsChoose which columns appear: qty, rate, tax, total, etc.
Logo WidthControls the company logo size on PDFs
FontSelect the font used across all PDF documents
Colour SchemePrimary and secondary colour for PDF headers and accents

Custom PDF Templates

To create a custom template without modifying core files:

  1. Copy the relevant PDF view file from application/views/pdf/.
  2. Create a folder application/views/pdf_custom/ and paste your copy there.
  3. 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.