Re: [PHP] Batch processing HTML2PS
In article [EMAIL PROTECTED], [EMAIL PROTECTED] (Jason Wong) wrote: On Friday 03 May 2002 07:03, Mrdini wrote: I think using the PDF functions would be a much better solution. You have full control over what gets printed where. Search on sourceforge for wrapper classes which make the PDF functions easier to use. Well, I didn't really look into this way of doing PDFs as I want to dump straight to lpr (it's a postscript laser printer). Also, I don't feel up to learning how to create PDFs -_-. I had a look a while back, and it sounds VERY complicated. I as said, take a look at some of those classes. It's a lot easier that you think. And whatever little learning curve there is, is more than made up for by not having to deal with the uncertainties of HTML layout :) (a day later). *bows* You are, of course, right. :) Whilst I haven't quite gotten there yet, I've been experimenting a bit with http://sourceforge.net/projects/pdf-php/ and it's _easy_! Whilst not as flexible as something like PDFlib, it suits my purposes very well nevertheless. The end is in sight! Thanks. -- Yoav Felberbaum E-Mail: [EMAIL PROTECTED] Website (Not worth looking ^_^) : http://www.wlv.ac.uk/~c9807379/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Batch processing HTML2PS
Hi, I'm currently working on a warehouse system, and I'd like to print some labels pretty accurately. At the moment, I'm using Mozilla to print, but this just won't do, especially not when we're expecting to print something like 4,000 labels next week :D $client is the MySQL record where the client information is stored. $copies is the number of copies. So, what I was thinking was to go :- User selects number of copies to print the client number. Give HTML2ps the PHP URL with all the info stored in the URL (form POST IIRC). Use the CSS defintion of page-break to break up each page. (Each page is different because there's a barcode on each page, which is generated by a function) Would this work? HOW do I call HTML2ps from inside PHP? Would I be better off going:- loop until 50 copies have been printed. HTML2ps, print page x; x = x + 1; go back to start of loop. (In other words, call HTML2ps repeately. In this case, I won't need page-break will I?). Many thanks! (BTW running Apache on Red Hat 7.2 with PHP 2.x (can't recall off my head)) -- Yoav Felberbaum E-Mail: [EMAIL PROTECTED] Website (Not worth looking ^_^) : http://www.wlv.ac.uk/~c9807379/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Batch processing HTML2PS
On Friday 03 May 2002 02:05, Mrdini wrote: Hi, I'm currently working on a warehouse system, and I'd like to print some labels pretty accurately. At the moment, I'm using Mozilla to print, but this just won't do, especially not when we're expecting to print something like 4,000 labels next week :D $client is the MySQL record where the client information is stored. $copies is the number of copies. So, what I was thinking was to go :- User selects number of copies to print the client number. Give HTML2ps the PHP URL with all the info stored in the URL (form POST IIRC). I think using the PDF functions would be a much better solution. You have full control over what gets printed where. Search on sourceforge for wrapper classes which make the PDF functions easier to use. -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * /* Your job is being a professor and researcher: That's one hell of a good excuse for some of the brain-damages of minix. (Linus Torvalds to Andrew Tanenbaum) */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Batch processing HTML2PS
In article [EMAIL PROTECTED], [EMAIL PROTECTED] (Jason Wong) wrote: On Friday 03 May 2002 02:05, Mrdini wrote: Hi, I'm currently working on a warehouse system, and I'd like to print some labels pretty accurately. At the moment, I'm using Mozilla to print, but this just won't do, especially not when we're expecting to print something like 4,000 labels next week :D $client is the MySQL record where the client information is stored. $copies is the number of copies. So, what I was thinking was to go :- User selects number of copies to print the client number. Give HTML2ps the PHP URL with all the info stored in the URL (form POST IIRC). I think using the PDF functions would be a much better solution. You have full control over what gets printed where. Search on sourceforge for wrapper classes which make the PDF functions easier to use. Well, I didn't really look into this way of doing PDFs as I want to dump straight to lpr (it's a postscript laser printer). Also, I don't feel up to learning how to create PDFs -_-. I had a look a while back, and it sounds VERY complicated. -- Yoav Felberbaum E-Mail: [EMAIL PROTECTED] Website (Not worth looking ^_^) : http://www.wlv.ac.uk/~c9807379/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Batch processing HTML2PS
On Friday 03 May 2002 07:03, Mrdini wrote: I think using the PDF functions would be a much better solution. You have full control over what gets printed where. Search on sourceforge for wrapper classes which make the PDF functions easier to use. Well, I didn't really look into this way of doing PDFs as I want to dump straight to lpr (it's a postscript laser printer). Also, I don't feel up to learning how to create PDFs -_-. I had a look a while back, and it sounds VERY complicated. I as said, take a look at some of those classes. It's a lot easier that you think. And whatever little learning curve there is, is more than made up for by not having to deal with the uncertainties of HTML layout :) -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * /* Sanity is the trademark of a weak mind. -- Mark Harrold */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php