User authentication is temporarily unavailable. If this situation persists, please inform your Wiki Admin.

Problem: Logo not displaying in the PDF


If your logo is not displaying on the PDF of the invoice but is displaying OK on the print preview all you need to do is install PHP-GD. Thats the GD extension for PHP, make sure its enabled - check your phpinfo.php file and all should be fine

Thanks to JBHewitt on the forum for this one!!

If this doesn't fix the issue for you then you can add the below to options to the .htaccess file

php_value allow_url_fopen on
php_value allow_url_include 1

or add into your php.ini file

allow_url_fopen = on
allow_url_include  = 1


If you've got Apache authentication or a firewall configured

Your webserver needs to be able access your site - so if you have any firewall rules or Auth directives which might prevent localhost (or your webserver's public address) from accessing files, you will need to change them. For example, if you had set up Apache password protection for your site using AuthType Digest or AuthType Basic, you would need to add <b>Allow from</b> rules to let the server access the site without needing to authenticate itself:

		AuthType Digest
		AuthDigestProvider file
		AuthDigestDomain / http://your.simpleinvoices.tld/
		AuthUserFile /www/your.simpleinvoices.tld/.htdigest
	        Require valid-user
		Allow from
		Allow from ### change this to your server's IP address
		Satisfy any


Senica Gonzalez, 2010/05/05 02:06

I enabled gd libraries on PHP, but still no image. PHP Info shows that GD is installed and JPEG support is there. All I get is a square box on the PDF. The Print View works fine.

justin, 2010/05/11 04:21

hey senica

if you have install Simple Invoices on your local server and are connecting via http://localhost, try using http://yourIP instead - there can be issues with how your server resolves localhost

let us know how you go



Stéphane Gauvin, 2010/06/30 00:34


Same bug for me…

Print view works fine (I see the logo) but not when exported !!!

Any idea ?



Russ, 2010/07/23 20:11


Same issue here….it's installed on a web hosting site for my environment. Tried default images an my own logo and same thing a square box displays instead of my logo. Otherwise this is some great software. Print view works fine.

Julio Araujo, 2010/08/24 23:36

I installed the simpleinvoices in my home PC that is an Ubuntu 9.10 with LAMP and everything works fine, but when I installed in my host server that is Red Hat Enterprise 5.5 the pdf exporting got some issues, when I try to export an invoice to pdf file the invoice lost the logo and also formatting.

Print from phpinfo.php:

gd GD Support enabled GD Version bundled (2.0.34 compatible) FreeType Support enabled FreeType Linkage with freetype FreeType Version 2.2.1 T1Lib Support enabled GIF Read Support enabled GIF Create Support enabled JPG Support enabled PNG Support enabled WBMP Support enabled XPM Support enabled XBM Support enabled

Any tips will be welcome.

Thanks, Julio

justin, 2010/08/30 23:56

thanks for posting your solution at julio !!



Mike, 2010/09/03 16:14

If you are unlucky and cannot have allow_url_fopen activated but you have CURL support the following might work for you:

search for pipeline.factory.class.php file and remove the comments so it looks like

   if (extension_loaded('curl')) {
     $pipeline->fetchers[] = new FetcherUrlCurl();  
   } else {
  $pipeline->fetchers[] = new FetcherURL();
 | wiki/logo_not_displaying_in_the_pdf.txt · Last modified: 2016/10/11 06:15 (external edit)