Ok nice, there’s no support… I understand that but there seems to be a problem with rendering the pdf as a string ! please advise me on what I should do.
I’m using the phpmailer() class to send it as an attachement. If I try to print the string in the browser, nothing comes out. Seems like the string is empty !
Hi Ygery, can you please be a bit more specific so that we can see what the problem is. Please provide us with the steps required to simulate the problem.
Quite easy actually. Just try to do $file = $invoice->render(‘Envato.pdf’,’S’);
That should render the pdf as a string allowing you to send it as an email with phpmailer (AddStringAttachement). But render S is not returning anything making it impossible to send it as an email…
Sloved but the problem is on your side: your render function has 4 cases, in 3 of them, it’s fine. But in the the S case (return as a string) that’s exactly whats missing: no return.
In invoicr.php, render function, modify ’$this->Output($name,$destination);’ to return $this->Output($name,$destination);
Then everything works as expected.
It it possible to send directly the invoice by email (smtp) without saving on the server ?
hello, on pdf invoice i have issue with € charset display. how i can fix this?
Polish words not work.
Exmaple: “Termin płatności”
Does this have the ability to include both Bill To and Ship To information?
Hello, I wish you all my best wishes for the new year, and especially health.
I have a problem with your PHP script:
With $ invoice-> render (‘Envato.pdf’, ‘I’); we can see the Envato logo, but if I download on my PC or if I use $ invoice-> render (‘Envato.pdf’, ‘F’); to create the PDF in my server, the Envato logo disappears and I have a message that the image is unreadable, memory problem.
- http://iobnet.com/facture/envato.php -> Logo Envato is OK juste with : render (‘Envato.pdf’, ‘I’)
- http://iobnet.com/facture/Envato.pdf -> Logo Envato is not OK with : render (‘Envato.pdf’, ‘F’)
Thanks for your help.
Please when will you release a php7 version of this code? I am having the error below.
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; invoicr has a deprecated constructor in C:\wamp64\www\invoicr\invoicr.php
can you help out?
your demo not working
Warning: count(): Parameter must be an array or an object that implements Countable in /public_html/invoicer/invoicr.php on line 277
Warning: count(): Parameter must be an array or an object that implements Countable in /invoicer/invoicr.php on line 277
FPDF error: Some data has already been output, can’t send PDF file
Is it working this PHP invoicing without mysql ?!
Use, by you or one client, in a single end product which end users are not charged for. The total price includes the item price and a buyer fee.
Use, by you or one client, in a single end product which end users can be charged for. The total price includes the item price and a buyer fee.
View license details
Price is in US dollars. Price displayed excludes sales tax.
Deliver better projects faster. Web, design & video assets
Unlimited downloads, from $16.50/month
Effortless design and video. Made online by you.
Smart templates ready for any skill level.
Designers matched perfectly to
you on Envato Studio
2000 artists ready to undertake your work