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] Function library
Hi folks, I have a function library, which I'd like to alter for my purposes, to allow PNG images to be stored. The only problem is I can't make head nor tails of the code. It does not seem to call any GD functions, even though it says it's supposed to. Could anyone explain basically what this code does? // -- function addJpegImage_common($data,$x,$y,$w=0,$h=0,$imageWidth,$imageHeight){ // note that this function is not to be called externally // it is just the common code between the GD and the file options $this-numImages++; $im=$this-numImages; $label='I'.$im; $this-numObj++; $this-o_image($this-numObj,'new',array('label'=$label,'data'=$data,'iw'=$imageWidth,'ih'=$imageHeight)); $this-objects[$this-currentContents]['c'].=\nq; $this-objects[$this-currentContents]['c'].=\n.$w. 0 0 .$h. .$x. .$y. cm; $this-objects[$this-currentContents]['c'].=\n/.$label.' Do'; $this-objects[$this-currentContents]['c'].=\nQ; } // -- (I've set wrap off for readability of code) This SEEMS to be called by $this-addJpegImage_common($data,$x,$y,$w,$h,$imageWidth,$imageHeight); Does anyone understand the function? 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
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