Re: LPRng: PPD files
On Tue, Aug 05, 2003 at 07:17:08AM -0700, Patrick Powell wrote: I have been considering putting in the ability to use PPD files. However, I once again come up with the copyright problem. Question: is anybody, anywhere, setting up an archive for PPD files that allows unhidered access to them? No copyright, redistribution, etc., problems? The PPD files generated by the folks at www.linuxprinting.org are released under the GPL. Included at the top of every PPD file, they put: *% For information on using this, and to obtain the required backend *% script, consult http://www.linuxprinting.org/ *% *% This file is published under the GNU General Public License *% *% PPD-O-MATIC (3.0.0 or newer) generated this PPD file. I guess it depends on what you mean by 'unhindered'. However, since ifhp is under a dual license (GPL and Artistic), I'm going to guess that having PPD files released under the GPL might be sufficient for you. :) If so, then I will add the magic to ifhp: [ printer ] ppd_file /path_to_ppd_file I can't wait to try it. Yours, Luca -- Luca Filipozzi, ECE Dept. IT Manager, University of British Columbia gpgkey 5A827A2D - A149 97BD 188C 7F29 779E 09C1 3573 32C4 5A82 7A2D - YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST The address you post from MUST be your subscription address If you need help, send email to [EMAIL PROTECTED] (or lprng-requests or lprng-digest-requests) with the word 'help' in the body. For the impatient, to subscribe to a list with name LIST, send mail to [EMAIL PROTECTED] with: | example: subscribe LIST mailaddr | subscribe lprng-digest [EMAIL PROTECTED] unsubscribe LIST mailaddr | unsubscribe lprng [EMAIL PROTECTED] If you have major problems, send email to [EMAIL PROTECTED] with the word LPRNGLIST in the SUBJECT line. -
Re: LPRng: PPD files
Luca Filipozzi wrote: On Tue, Aug 05, 2003 at 07:17:08AM -0700, Patrick Powell wrote: I have been considering putting in the ability to use PPD files. However, I once again come up with the copyright problem. Question: is anybody, anywhere, setting up an archive for PPD files that allows unhidered access to them? No copyright, redistribution, etc., problems? The PPD files generated by the folks at www.linuxprinting.org are released under the GPL. Included at the top of every PPD file, they put: *% For information on using this, and to obtain the required backend *% script, consult http://www.linuxprinting.org/ *% *% This file is published under the GNU General Public License *% *% PPD-O-MATIC (3.0.0 or newer) generated this PPD file. I guess it depends on what you mean by 'unhindered'. However, since ifhp is under a dual license (GPL and Artistic), I'm going to guess that having PPD files released under the GPL might be sufficient for you. :) Here you could really extract data and add it to LPRng/IFHP and/or publish a modified PPD file both stand-alone or together with LPRng/IFHP. But please do not make a duplicate of the Foomatic database (in another format) part of ifhp. This will always be outdated, as we continuously add new data to the Foomatic database. Any integration of Foomatic with ifhp is welcome, to give both the wide printer/driver support of Foomatic and the bi-di features of ifhp to the LPRng user. Till - YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST The address you post from MUST be your subscription address If you need help, send email to [EMAIL PROTECTED] (or lprng-requests or lprng-digest-requests) with the word 'help' in the body. For the impatient, to subscribe to a list with name LIST, send mail to [EMAIL PROTECTED] with: | example: subscribe LIST mailaddr | subscribe lprng-digest [EMAIL PROTECTED] unsubscribe LIST mailaddr | unsubscribe lprng [EMAIL PROTECTED] If you have major problems, send email to [EMAIL PROTECTED] with the word LPRNGLIST in the SUBJECT line. -
Re: LPRng: PPD files
Till Kamppeter wrote: Rick Cochran wrote: How about writing a program to create a PPD file automatically by querying the printer? This would be great, but how do they do this, I only know how to retreive PJL options from a PJL-capable printer. See the foomatic-getpjloptions script of the foomatic-db-engine package on linuxprinting.org: http://www.linuxprinting.org/cvsweb.cgi/~checkout~/foomatic-db-engine/foomatic-getpjloptions.in?rev=3.0content-type=text/plain but only a small part of the printer's options are PJL options (for example PageSize and Resolution are usually PostScript commands to insert in the job data) and some printers (as the Brother HL-5040) do not answer to the script. See attached files. This is as far as I got. If there is no way to detect some printer features via PostScript, one could think about using SNMP. I think Adobe had or has something like this. One sees references to it in the comments of some PPD files. Did they somewhere publish the protocols for this? All the stuff I'm using is in the PostScript spec. If you want to write such a tool, join the Foomatic project and then one can make a queue for a PostScript printer simply with foomatic-configure, without needing to have a PPD file or the Foomatic database installed. I might be interested if the project is really feasible. Some of the commercial PPDs seem _way_ more complicated than they need to be. Some manufacturer's, as HP, have implemented some options completely in PostScript (as N-up or watermarks), so to the appropriate option choices not simple PostScript commands but complete subroutines are assigned. But HP's PPDs on http://www.linuxprinting.org/download/PPD/ are free software, so one can rip out this code and paste it into another PPD (for example of an Epson printer) to add these options there. I have already accidentally created a print queue for an Epson AcuLaser C2000 PS using HP´s PPD file for the HP LaserJet 4050, and HP´s N-up option worked nicely on the AcuLaser. If I had Epson´s PPD and pasted the N-up option there I would have it even in color, but I didn´t find Epson´s PPD. A sore point. I have to carefully remove HP's N-up code from their PPD files because it interferes with my use of EndPage to implement my banner page alternative. Why does HP go to all the trouble to implement a feature which is already implemented in the fine Adobe PostScript driver without pre-empting everyone else's use of EndPage? -Rick -- |Rick Cochran phone: 607-255-7618| |Cornell CIT - Systems Operations - Net-Print FAX: 607-255-8521| |730 Rhodes Hall, Ithaca, N.Y. 14853email: [EMAIL PROTECTED]| #!/usr/common/bin/perl use strict; use Socket; my $printer_name = $ARGV[0]; $| = 1; my $infile = 'querynp.ps'; open(F, $infile) or die Unable to open $infile ($!)\n; my $outfile = 'query_printer.out'; #open(G, $outfile) #or die Unable to create $outfile ($!)\n; # Open socket connection to printer my $port = 9100; # Standard TCP port used by TCP printers my $proto; $proto = getprotobyname('tcp'); my(undef, undef, undef, undef, @printer_ip) = gethostbyname($printer_name); if ( @printer_ip 1 ) { die ERROR: Printer not found: $printer_name ($!)\n; } my $printer_addr = pack(S n a4 x8, AF_INET, $port, $printer_ip[0]); socket(SOCK, AF_INET, SOCK_STREAM, $proto) or die ERROR: socket failed ($!)\n; connect(SOCK, $printer_addr) or die ERROR: connect failed ($!)\n; select((select(SOCK), $| = 1)[0]); # enable command buffering #print SOCK [EMAIL PROTECTED] JOB\n; #print SOCK [EMAIL PROTECTED] ENTER LANGUAGE = Postscript\n; while ( F ) { print SOCK; } close(F); print SOCK (rumplestiltskin\n) print flush\n; my $buf; while ( SOCK ) { last if /rumplestiltskin/; print; } #close(G); #print SOCK \004; #print SOCK [EMAIL PROTECTED] EOJ\n; close(SOCK); exit(0); querynp.ps Description: PostScript document
Re: LPRng: PPD files
Rick Cochran wrote: Patrick Powell wrote: I have been considering putting in the ability to use PPD files. However, I once again come up with the copyright problem. Question: is anybody, anywhere, setting up an archive for PPD files that allows unhidered access to them? No copyright, redistribution, etc., problems? If so, then I will add the magic to ifhp: [ printer ] ppd_file /path_to_ppd_file How about writing a program to create a PPD file automatically by querying the printer? This would be great, but how do they do this, I only know how to retreive PJL options from a PJL-capable printer. See the foomatic-getpjloptions script of the foomatic-db-engine package on linuxprinting.org: http://www.linuxprinting.org/cvsweb.cgi/~checkout~/foomatic-db-engine/foomatic-getpjloptions.in?rev=3.0content-type=text/plain but only a small part of the printer's options are PJL options (for example PageSize and Resolution are usually PostScript commands to insert in the job data) and some printers (as the Brother HL-5040) do not answer to the script. I think Adobe had or has something like this. One sees references to it in the comments of some PPD files. Did they somewhere publish the protocols for this? I got part way through writing one myself, but I eventually found another way to do what I needed done. If you want to write such a tool, join the Foomatic project and then one can make a queue for a PostScript printer simply with foomatic-configure, without needing to have a PPD file or the Foomatic database installed. Some of the commercial PPDs seem _way_ more complicated than they need to be. Some manufacturer's, as HP, have implemented some options completely in PostScript (as N-up or watermarks), so to the appropriate option choices not simple PostScript commands but complete subroutines are assigned. But HP's PPDs on http://www.linuxprinting.org/download/PPD/ are free software, so one can rip out this code and paste it into another PPD (for example of an Epson printer) to add these options there. I have already accidentally created a print queue for an Epson AcuLaser C2000 PS using HP´s PPD file for the HP LaserJet 4050, and HP´s N-up option worked nicely on the AcuLaser. If I had Epson´s PPD and pasted the N-up option there I would have it even in color, but I didn´t find Epson´s PPD. Till - YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST The address you post from MUST be your subscription address If you need help, send email to [EMAIL PROTECTED] (or lprng-requests or lprng-digest-requests) with the word 'help' in the body. For the impatient, to subscribe to a list with name LIST, send mail to [EMAIL PROTECTED] with: | example: subscribe LIST mailaddr | subscribe lprng-digest [EMAIL PROTECTED] unsubscribe LIST mailaddr | unsubscribe lprng [EMAIL PROTECTED] If you have major problems, send email to [EMAIL PROTECTED] with the word LPRNGLIST in the SUBJECT line. -
Re: LPRng: PPD files
Patrick Powell wrote: I have been considering putting in the ability to use PPD files. However, I once again come up with the copyright problem. Question: is anybody, anywhere, setting up an archive for PPD files that allows unhidered access to them? No copyright, redistribution, etc., problems? If so, then I will add the magic to ifhp: [ printer ] ppd_file /path_to_ppd_file How about writing a program to create a PPD file automatically by querying the printer? I think Adobe had or has something like this. One sees references to it in the comments of some PPD files. I got part way through writing one myself, but I eventually found another way to do what I needed done. Some of the commercial PPDs seem _way_ more complicated than they need to be. -Rick -- |Rick Cochran phone: 607-255-7618| |Cornell CIT - Systems Operations - Net-Print FAX: 607-255-8521| |730 Rhodes Hall, Ithaca, N.Y. 14853email: [EMAIL PROTECTED]| - YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST The address you post from MUST be your subscription address If you need help, send email to [EMAIL PROTECTED] (or lprng-requests or lprng-digest-requests) with the word 'help' in the body. For the impatient, to subscribe to a list with name LIST, send mail to [EMAIL PROTECTED] with: | example: subscribe LIST mailaddr | subscribe lprng-digest [EMAIL PROTECTED] unsubscribe LIST mailaddr | unsubscribe lprng [EMAIL PROTECTED] If you have major problems, send email to [EMAIL PROTECTED] with the word LPRNGLIST in the SUBJECT line. -
Re: LPRng: PPD files
hi patric, the only archives i am aware of are on adobe.com and linuxprinting.org foomatic uses them for the filters. walter - - - - - - - - - - - - - - Original Message - - - - - - - - - - - - - - From: Patrick Powell [EMAIL PROTECTED] Subject: LPRng: PPD files Date: 08/05/03 16:17 I have been considering putting in the ability to use PPD files. However, I once again come up with the copyright problem. Question: is anybody, anywhere, setting up an archive for PPD files that allows unhidered access to them? No copyright, redistribution, etc., problems? If so, then I will add the magic to ifhp: [ printer ] ppd_file /path_to_ppd_file Patrick Powell - YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST The address you post from MUST be your subscription address If you need help, send email to [EMAIL PROTECTED] (or lprng-requests or lprng-digest-requests) with the word 'help' in the body. For the impatient, to subscribe to a list with name LIST, send mail to [EMAIL PROTECTED] with: | example: subscribe LIST mailaddr | subscribe lprng-digest [EMAIL PROTECTED] unsubscribe LIST mailaddr | unsubscribe lprng [EMAIL PROTECTED] If you have major problems, send email to [EMAIL PROTECTED] with the word LPRNGLIST in the SUBJECT line. -
LPRng: PPD files
I have been considering putting in the ability to use PPD files. However, I once again come up with the copyright problem. Question: is anybody, anywhere, setting up an archive for PPD files that allows unhidered access to them? No copyright, redistribution, etc., problems? If so, then I will add the magic to ifhp: [ printer ] ppd_file /path_to_ppd_file Patrick Powell - YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST The address you post from MUST be your subscription address If you need help, send email to [EMAIL PROTECTED] (or lprng-requests or lprng-digest-requests) with the word 'help' in the body. For the impatient, to subscribe to a list with name LIST, send mail to [EMAIL PROTECTED] with: | example: subscribe LIST mailaddr | subscribe lprng-digest [EMAIL PROTECTED] unsubscribe LIST mailaddr | unsubscribe lprng [EMAIL PROTECTED] If you have major problems, send email to [EMAIL PROTECTED] with the word LPRNGLIST in the SUBJECT line. -
LPRng: PPD files
Is there any to use a PPD for selecting a printer input tray? I found PPDs for HP printers at http://hp.sourceforge.net/ and would like to utilize this information for tray selection. Rob Fausey. These are not the droids you're looking for. Move along. Move along. - YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST The address you post from MUST be your subscription address If you need help, send email to [EMAIL PROTECTED] (or lprng-requests or lprng-digest-requests) with the word 'help' in the body. For the impatient, to subscribe to a list with name LIST, send mail to [EMAIL PROTECTED] with: | example: subscribe LIST mailaddr | subscribe lprng-digest [EMAIL PROTECTED] unsubscribe LIST mailaddr | unsubscribe lprng [EMAIL PROTECTED] If you have major problems, send email to [EMAIL PROTECTED] with the word LPRNGLIST in the SUBJECT line. -