hmmm, if i comment out the check on data != 0 in the NetUtil.readPrintFile class I seems to receive the complete PCL data file: public byte[] readPrintFile(InputStream is, OutputStream os) throws IOException { final String METHOD_NAME = "readPrintFile(): "; ByteArrayOutputStream baos = new ByteArrayOutputStream(); int data = is.read(); while(-1 != data /*&& 0 != data*/) { //should see a 0 baos.write(data); data = is.read(); } os.write(Constants.ACK); return baos.toByteArray(); } If I convert the...
Hi Chris, I tried out the Java version of the lpdspooler and it works perfectly fine when I print to a generic text or postscript printer. However, if I try to print to a PCL printer the data file seems incomplete. I only see the "metadata" in the printjob file, but not the actual data. Example: %-12345X@PJL JOB @PJL SET JOBATTR "OS =Windows" @PJL SET JOBATTR "OS Version = Windows 8.1 6.3.9600.1" @PJL SET JOBATTR "Render Type = InOS" @PJL SET JOBATTR "Render Name = HP PCL6 Class Driver" @PJL SET...
Hi Chris, I tried out the Java version of the lpdspooler and it works perfectly fine when I print to a generic text or postscript printer. However, if I try to print to a PCL printer the data file seems incomplete. I only see the "metadata" in the printjob file, but not the actual data. Example: %-12345X@PJL JOB @PJL SET JOBATTR "OS =Windows" @PJL SET JOBATTR "OS Version = Windows 8.1 6.3.9600.1" @PJL SET JOBATTR "Render Type = InOS" @PJL SET JOBATTR "Render Name = HP PCL6 Class Driver" @PJL SET...
Hi Chris, I tried out the Java version of the lpdspooler and it works perfectly fine when i print to a generic text or postcript printer. However, if i try to print to a PCL printer the data file seems incomplete. I only see the "metadata" i the printjob file, but not the actual data. Example: %-12345X@PJL JOB @PJL SET JOBATTR "OS =Windows" @PJL SET JOBATTR "OS Version = Windows 8.1 6.3.9600.1" @PJL SET JOBATTR "Render Type = InOS" @PJL SET JOBATTR "Render Name = HP PCL6 Class Driver" @PJL SET JOBATTR...
i want to save file name etension based on the input file name extension ex..if input...
I beleive with LPD/lpr printing, if you want 5 copies printed, you send the job 5...
When you send/print X number of copies to LPD server, this number is not captured...
Halloei, I am happy to try and help, but I was hoping you could answer a couple questions...
Halloei, I suspect that the printer driver you are using is adding these formatting...
I also noticed that error. It occurs because the number is too big to fit in an Integer....
Hi, at first, thanks for your work! I need to get the content of a cmd-like window...
Hi, at first, thanks for your work! I need to get the content of a cmd-like window...
Hi, I need to get the content of a cmd-like window on Windows. There is a print button...
Oh one last thing, the C# version of LPD is a port done by Jesse. I have only worked...
Peter, I was able to capture PDF's on Windows 2000 back when I wrote the Java version...
Thanks Chris for the reply. I'm using "Generic Text driver" when adding the virtual...
This is surprising. I would expect the contents to be the binary print job file sent...
LPD is a good way to store and forward print jobs. However, it does not understand...
I'm seeing the same size of 125899906843000 on Windows 7 running the C# version....
I'm detecting if the file is PDF based on the extension then I save the byte array...
Hi all, I got this C# project working for Windows 7 (Thanks to the original developers)....