// your code to generate invoice HTML goes here $out = '<!DOCTYPE html> <html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8" /> </head> <body> This is Test </body> </html>';
require_once(__DIR_LIBRARY."/princexml/prince.php"); $prince = new Prince('/usr/bin/prince');
Can you save the PDF output as a local file, then check it with a text editor especially at the beginning or end, to see if some HTML is there? Often the PHP is adding unwanted HTML to the output.
You can just use "Save Page As..." in Firefox, or change your PHP to use convert_string_to_file() and specify a filename on the server where your PHP code has write permissions.
It depends what Linux distribution you are running. You can check this by running "lsb_release -a" or checking /etc/redhat-release or /etc/centos-release, or asking your sysadmin.
Hi, we are running on 'Centos' Linux distribution. so now you can provide the font installation steps. Our sys admin said, he installed all fonts but now also in log file showing 'internal error: no available fonts' error.
It's probably best to run Prince manually from the command-line when testing, and try under PHP when that is working. If you run "fc-list | grep Arial" or "fc-list | grep DejaVu" does it show up any fonts?
1. first page of PDF contains 'princexml' logo, can we remove that? 2. the whole page content shrink to less (one page showing two pages now), can we make it full width?
Thanks mike, your reply makes perfect and you have any Skype id to chat because i would like to buy a paid version of product and some more comments. thanks...