Robin,
It occured to me that we would be using PDFCreator to create files that are printed via LPR/LPD from a Linux System but I was doing my testing between Windows servers. If you read on you will see that this still has a problem. I used the windows LPR command lpr -S server1 -P PDFcreator test.txt and the PDF was created correctly.
Will set up the Linux Server on Monday and see what happens.
You will see at the end I have provided the log file from the Command Prompt LPD/LPR
---------------------------------------------------------------------------------------------
I uninstalled PDFCreator, restarted the server (Server1), Installed 1.4.2
The Service is setup and runs as a Domain Administrator. Used the following command to set it up.
sc create pdfcreator start= auto binPath= "C:\\Program Files\\OldResourceKitTools\\srvany.exe" DisplayName= "PDFCreator" obj= COMUTEL\\PDFCreator password= PdF$rE@T0r <-- Have changed the usercode/password to use the domain admin.
Have the following keys in the registry
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\Print\\Monitors\\pdfcmon]
"PdfCreator"="C:\\\\Program Files (x86)\\\\PDFCreator\\\\PDFCreator.exe"
"Port"="pdfcmon"
"Driver"="pdfcmon.dll"
"Logging"=dword:00000001
[HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\services\\pdfcreator\\Parameters]
"Application"="\\"C:\\\\Program Files (x86)\\\\PDFCreator\\\\PDFCreator.exe\\""
Auto-Save set to a local drive Users have Full control. It is shared and the share has Everyone Full Control
On Server1, from an RDP session to the console and logged on as Domain Admin it works as expected
Create a printer on Server2 using LPD/LPR to \\\\server1\\PDFCreator. Using Generic/Text only drivers.
I can see the file arrive in the PDF Print monitor(Server) and get processed
A .pdf file gets created but it is blank.
Pause the Printer PDFCreator on Server1. Print from Server2. The data is visable in the Windows spool directory.
Pause PDFCreator - PDF Print Monitor and unpause the Windows Printer.
The data is now visable in C:\\Windows\\Temp\\PDFCreator\\Spool
B92350D03A95416A95CC7D1870B93428.ps
B92350D03A95416A95CC7D1870B93428.inf
Unpause PDFCreator - PDF Print Monitor - Blank PDF is created in the correct directory.
Logs - Print from Server1
7/22/2012 3:20:43 PM: Autosavemodus: 1files
7/22/2012 3:20:43 PM: Autosavemodus: Create File 'C:\\allshare\\PDFCreator.pdf'
7/22/2012 3:20:43 PM: Ghostscriptparameter:
-IC:\\Program Files (x86)\\PDFCreator\\GS9.05\\gs9.05\\Lib\\
-q
-dNOPAUSE
-dBATCH
-sFONTPATH=C:\\Windows\\Fonts
-sDEVICE=pdfwrite
-dPDFSETTINGS=/default
-dCompatibilityLevel=1.4
-r600x600
-dProcessColorModel=/DeviceCMYK
-dAutoRotatePages=/PageByPage
-dCompressPages=true
-dEmbedAllFonts=true
-dSubsetFonts=true
-dMaxSubsetPct=100
-dConvertCMYKImagesToRGB=false
-sOutputFile=C:\\allshare\\PDFCreator.pdf
-dEncodeColorImages=true
-dAutoFilterColorImages=true
-dEncodeGrayImages=true
-dAutoFilterGrayImages=true
-dEncodeMonoImages=true
-dMonoImageFilter=/CCITTFaxEncode
-dDownsampleMonoImages=false
-dPreserveOverprintSettings=true
-dUCRandBGInfo=/Preserve
-dUseFlateCompression=true
-dParseDSCCommentsForDocInfo=true
-dParseDSCComments=true
-dOPM=0
-dOffOptimizations=0
-dLockDistillerParams=false
-dGrayImageDepth=-1
-dASCII85EncodePages=false
-dDefaultRenderingIntent=/Default
-dTransferFunctionInfo=/Preserve
-dPreserveHalftoneInfo=false
-dDetectBlends=true
-f
7/22/2012 3:20:43 PM: Time for converting [PDF without encryption]: 00:00:00:208
7/22/2012 3:20:43 PM: Autosavemodus: Create File 'C:\\allshare\\PDFCreator.pdf' success
_pdfcreatorLog.txt
[22.06.2012 15:20:43]-------------------- = --------------------
[22.06.2012 15:20:43]Modul-PdfStartDocPort=Start
[22.06.2012 15:20:43]PrinterName=PDFCreator
[22.06.2012 15:20:43]JobId=18
[22.06.2012 15:20:43]ComputerName=\\\\ARMSTRONG
[22.06.2012 15:20:43]UserName=administrator
[22.06.2012 15:20:43]SessionId=2
[22.06.2012 15:20:43]WinStation=RDP-Tcp#0
[22.06.2012 15:20:43]PDFServer=TRUE
[22.06.2012 15:20:43]TmpPath=C:\\Windows\\TEMP\\PdfCreator\\Spool
[22.06.2012 15:20:43]PostscriptFile=C:\\Windows\\TEMP\\PdfCreator\\Spool\\C0AC220C7D5E4A67A522A7F8075A1A8B.ps
[22.06.2012 15:20:43]DocName=test.txt - Notepad
[22.06.2012 15:20:43]OpenPrinter=True
[22.06.2012 15:20:43]Modul-PdfStartDocPort=End
[22.06.2012 15:20:43]CreateFile: CloseHandle(hFile)=successful
Logs - Print from Server2
7/22/2012 3:23:26 PM: Autosavemodus: 1files
7/22/2012 3:23:26 PM: Autosavemodus: Create File 'C:\\allshare\\PDFCreator.pdf'
7/22/2012 3:23:26 PM: Ghostscriptparameter:
-IC:\\Program Files (x86)\\PDFCreator\\GS9.05\\gs9.05\\Lib\\
-q
-dNOPAUSE
-dBATCH
-sFONTPATH=C:\\Windows\\Fonts
-sDEVICE=pdfwrite
-dPDFSETTINGS=/default
-dCompatibilityLevel=1.4
-r600x600
-dProcessColorModel=/DeviceCMYK
-dAutoRotatePages=/PageByPage
-dCompressPages=true
-dEmbedAllFonts=true
-dSubsetFonts=true
-dMaxSubsetPct=100
-dConvertCMYKImagesToRGB=false
-sOutputFile=C:\\allshare\\PDFCreator.pdf
-dEncodeColorImages=true
-dAutoFilterColorImages=true
-dEncodeGrayImages=true
-dAutoFilterGrayImages=true
-dEncodeMonoImages=true
-dMonoImageFilter=/CCITTFaxEncode
-dDownsampleMonoImages=false
-dPreserveOverprintSettings=true
-dUCRandBGInfo=/Preserve
-dUseFlateCompression=true
-dParseDSCCommentsForDocInfo=true
-dParseDSCComments=true
-dOPM=0
-dOffOptimizations=0
-dLockDistillerParams=false
-dGrayImageDepth=-1
-dASCII85EncodePages=false
-dDefaultRenderingIntent=/Default
-dTransferFunctionInfo=/Preserve
-dPreserveHalftoneInfo=false
-dDetectBlends=true
-f
C:\\Windows\\TEMP\\PdfCreator\\Spool\\0A420ADF504842B9A3334CF6F09865CE.ps
C:\\Windows\\TEMP\\PDFCreator\\Spool\\0A420ADF504842B9A3334CF6F09865CE.mtd
7/22/2012 3:23:26 PM: Error: Error: /undefined in Untitled; Operand stack:; ; Execution stack:; %interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push 1926 1 3 %oparray_pop 1925 1 3 %oparray_pop 1909 1 3 %oparray_pop 1803 1 3 %oparray_pop --nostringval-- %errorexec_pop .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval--; Dictionary stack:; --dict:1207/1684(ro)(G)-- --dict:0/20(G)-- --dict:77/200(L)--; Current allocation mode is local; Current file position is 54; GPL Ghostscript 9.05: Unrecoverable error, exit code 1;
7/22/2012 3:23:26 PM: Time for converting [PDF without encryption]: 00:00:00:114
7/22/2012 3:23:26 PM: Autosavemodus: Create File 'C:\\allshare\\PDFCreator.pdf' success
_PdfcreatorLog.txt
[22.06.2012 15:23:25]-------------------- = --------------------
[22.06.2012 15:23:25]Modul-PdfStartDocPort=Start
[22.06.2012 15:23:25]PrinterName=PDFCreator
[22.06.2012 15:23:25]JobId=20
[22.06.2012 15:23:25]ComputerName=\\\\ARMSTRONG
[22.06.2012 15:23:25]UserName=administrator (192.168.16.2)
[22.06.2012 15:23:25]SessionId=0
[22.06.2012 15:23:25]WinStation=RDP-Tcp#0
[22.06.2012 15:23:25]PDFServer=TRUE
[22.06.2012 15:23:25]TmpPath=C:\\Windows\\TEMP\\PdfCreator\\Spool
[22.06.2012 15:23:25]PostscriptFile=C:\\Windows\\TEMP\\PdfCreator\\Spool\\0A420ADF504842B9A3334CF6F09865CE.ps
[22.06.2012 15:23:25]DocName=Untitled - Notepad
[22.06.2012 15:23:25]OpenPrinter=True
[22.06.2012 15:23:25]Modul-PdfStartDocPort=End
[22.06.2012 15:23:25]CreateFile: CloseHandle(hFile)=successful
Logfile from Command Prompt LPR/LPD
7/22/2012 3:50:32 PM: Autosavemodus: 1files
7/22/2012 3:50:33 PM: Autosavemodus: Create File 'C:\\allshare\\PDFCreator.pdf'
7/22/2012 3:50:33 PM: Ghostscriptparameter:
-IC:\\Program Files (x86)\\PDFCreator\\GS9.05\\gs9.05\\Lib\\
-q
-dNOPAUSE
-dBATCH
-sFONTPATH=C:\\Windows\\Fonts
-sDEVICE=pdfwrite
-dPDFSETTINGS=/default
-dCompatibilityLevel=1.4
-r600x600
-dProcessColorModel=/DeviceCMYK
-dAutoRotatePages=/PageByPage
-dCompressPages=true
-dEmbedAllFonts=true
-dSubsetFonts=true
-dMaxSubsetPct=100
-dConvertCMYKImagesToRGB=false
-sOutputFile=C:\\allshare\\PDFCreator.pdf
-dEncodeColorImages=true
-dAutoFilterColorImages=true
-dEncodeGrayImages=true
-dAutoFilterGrayImages=true
-dEncodeMonoImages=true
-dMonoImageFilter=/CCITTFaxEncode
-dDownsampleMonoImages=false
-dPreserveOverprintSettings=true
-dUCRandBGInfo=/Preserve
-dUseFlateCompression=true
-dParseDSCCommentsForDocInfo=true
-dParseDSCComments=true
-dOPM=0
-dOffOptimizations=0
-dLockDistillerParams=false
-dGrayImageDepth=-1
-dASCII85EncodePages=false
-dDefaultRenderingIntent=/Default
-dTransferFunctionInfo=/Preserve
-dPreserveHalftoneInfo=false
-dDetectBlends=true
-f
C:\\Windows\\TEMP\\PdfCreator\\Spool\\EEB09137F7224C9F824E005184563057.ps
C:\\Windows\\TEMP\\PDFCreator\\Spool\\EEB09137F7224C9F824E005184563057.mtd
7/22/2012 3:50:33 PM: Time for converting [PDF without encryption]: 00:00:00:136
7/22/2012 3:50:33 PM: Autosavemodus: Create File 'C:\\allshare\\PDFCreator.pdf' success
_PdfcreatorLog.txt
[22.06.2012 15:50:32]-------------------- = --------------------
[22.06.2012 15:50:32]Modul-PdfStartDocPort=Start
[22.06.2012 15:50:32]PrinterName=PDFCreator
[22.06.2012 15:50:32]JobId=12
[22.06.2012 15:50:32]ComputerName=\\\\ARMSTRONG
[22.06.2012 15:50:32]UserName=KenS (192.168.40.169)
[22.06.2012 15:50:32]SessionId=0
[22.06.2012 15:50:32]WinStation=
[22.06.2012 15:50:32]PDFServer=TRUE
[22.06.2012 15:50:32]TmpPath=C:\\Windows\\TEMP\\PdfCreator\\Spool
[22.06.2012 15:50:32]PostscriptFile=C:\\Windows\\TEMP\\PdfCreator\\Spool\\EEB09137F7224C9F824E005184563057.ps
[22.06.2012 15:50:32]DocName=test.txt
[22.06.2012 15:50:32]OpenPrinter=True
[22.06.2012 15:50:32]Modul-PdfStartDocPort=End
[22.06.2012 15:50:32]CreateFile: CloseHandle(hFile)=successful