Nitroware Posted January 3, 2009 Share Posted January 3, 2009 Hey all, I have seem to have run into a problem with this concept. What I am trying to do is convert my invoices to PDF's. The PHP script makes an HTML version of it, and then when I confirm it is ready, I want it to convert it to PDF. I have tried the PDFlib PECL thing, however im not quite sure how to install it (I cannot find a makefile, rpm, or repo [fedora]) to do this. I tried another one, however it requires "DOM". When I looked at that it said in my phpinfo() that there was a "--disable-dom". The only way ive seen to fix this is with a PHP reinstallation, and I don't want to ga THAT far. If anybody know a good PDF php script that doesn't use either of these, or knows how to fix either, and help would be VERRY useful. Thanks for any replies! Quote Link to comment Share on other sites More sharing options...
Mchl Posted January 3, 2009 Share Posted January 3, 2009 I use FPDF. I think they have some examples on their site showing HTML->PDF conversion. I use it to print invoices as well although I just create a PDF invoice without a HTML step. Quote Link to comment Share on other sites More sharing options...
Nitroware Posted January 3, 2009 Author Share Posted January 3, 2009 ok, but how hard is it to create what I would otherwise create with HTML. My invoice is not terribly complex, but it isn't easy either. There is another project based of FPDF that does html conversion, but there is no documentation whatsoever so I don't know how to use it. Quote Link to comment Share on other sites More sharing options...
Mchl Posted January 3, 2009 Share Posted January 3, 2009 It took me some days to get hang of it, but now I can produce pretty complex documents and raports with it. I'll see if I can make one with fake data, so that I can post it here. Quote Link to comment Share on other sites More sharing options...
Nitroware Posted January 3, 2009 Author Share Posted January 3, 2009 does anybody know how fix PHP, or even know of linux (fedora) HTML to PDF converter (CLI ideally) that I can have PHP execute when its ready? Either of those would work as well. Quote Link to comment Share on other sites More sharing options...
Nitroware Posted January 4, 2009 Author Share Posted January 4, 2009 If not, does anybody know of a forum that would have people that would know how to do or fix this? Quote Link to comment Share on other sites More sharing options...
Mchl Posted January 4, 2009 Share Posted January 4, 2009 Try FPDF forum. They're kinda experienced in that. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.