PDF Creator 1.51 on Terminal server

Hi!


I have seen several people ask this question, but never seen an answer. 

I am running PDFCreator 1.51 on a Windows 2008 R2 terminal server. It works great for users who are local admins, but for regular users, it does not work, 
What happens is, I can choose the printer and print, and then nothing more happens. At all. This is regardless of whether I use auto save or not. I can set the output dir to a dir wich all users has R/W access to, it makes no difference. 
The program has been installed in install mode on the terminal server, logged in on the console as domain admin. The log shows no entries when I try to print. 

Does anybody have any idea what to do???

Best regards,
Allan

Any Ideas on this one?


Thanks,
Allan

Hi,

there is a problem with the recent version of the pdfcmon.dll handling session IDs on terminal servers, which according to tests is now fixed for the next release. you would like to test it, please write us an email and i will supply you with the new dll.

regards,

Robin


Hi.

I just tried the latest version  1.6 and have the same problem. For regular RDS users nothing happens.

Any idea what can be done to solve this?

Regards,

MocniMax

Hi,

please enable logging for the PDFCreator (press F3 on the print monitor screen) and for the pdfcmon.dll by adding the following to your registry:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Print\Monitors\pdfcmon name : Logging, value :1.
This will cause PDFCreator to create an advanced logfile at %Windir%\Temp\_pdfcmonLog.txt.

Post the logfiles here as text or send them to us: support@pdfforge.org


regards,


Robin

Hi Robin.

I am posting this in two posts. The first one is from the  Admin user.

Regards,
Mocni Max

ADMIN USER LOG

[04.11.2012 11:38:28]-------------------- = --------------------
[04.11.2012 11:38:28]DLL-FileVersion=0.2.2.0
[04.11.2012 11:38:28]Modul-GetOsInfo=Start
[04.11.2012 11:38:28]GetVersionEx=True
[04.11.2012 11:38:28]BuildNumber=7601
[04.11.2012 11:38:28]MajorVersion=6
[04.11.2012 11:38:28]MinorVersion=1
[04.11.2012 11:38:28]PlatformId=2
[04.11.2012 11:38:28]CSDVersion=Service Pack 1
[04.11.2012 11:38:28]ProductType=3
[04.11.2012 11:38:28]ServicePackMajor=1
[04.11.2012 11:38:28]ServicePackMinor=0
[04.11.2012 11:38:28]SuiteMask=16
[04.11.2012 11:38:28]Modul-GetOsInfo=End (Void)
[04.11.2012 11:38:28]Modul-PdfStartDocPort=Start
[04.11.2012 11:38:28]Modul-GetJobInfo=Start
[04.11.2012 11:38:28]OpenPrinter=True
[04.11.2012 11:38:28]pjob->pMachineName=\\SERVER
[04.11.2012 11:38:28]pjob->pUserName=AdminUser
[04.11.2012 11:38:28]Modul-GetJobInfo=End (True)
[04.11.2012 11:38:28]PrinterName=PDFCreator
[04.11.2012 11:38:28]JobId=230
[04.11.2012 11:38:28]ComputerName=\\SERVER
[04.11.2012 11:38:28]UserName=AdminUser
[04.11.2012 11:38:28]Modul-GetSessionData=Start
[04.11.2012 11:38:28]OpenThreadToken=successful
[04.11.2012 11:38:28]DuplicateTokenEx=successful
[04.11.2012 11:38:28]SessionId=8
[04.11.2012 11:38:28]WTSEnumerateSessions=successful
[04.11.2012 11:38:28]Session found=true
[04.11.2012 11:38:28]WinStation=RDP-Tcp#24
[04.11.2012 11:38:28]Modul-GetSessionData=End (True)
[04.11.2012 11:38:28]Modul-IsConsoleSession=Start
[04.11.2012 11:38:28]sessionID=8
[04.11.2012 11:38:28]WTSGetActiveConsoleSessionId=1
[04.11.2012 11:38:28]Modul-IsConsoleSession=End (False)
[04.11.2012 11:38:28]SessionId=8
[04.11.2012 11:38:28]WinStation=RDP-Tcp#24
[04.11.2012 11:38:28]PDFServer=FALSE
[04.11.2012 11:38:28]Modul-GetUserTmpPath=Start
[04.11.2012 11:38:28]Modul-GetUserTmp=Start
[04.11.2012 11:38:28]RevertToSelf=successful
[04.11.2012 11:38:28]WTSQueryUserToken=successful
[04.11.2012 11:38:28]GetEnvironemtVariableForUser-Variable=%TMP%
[04.11.2012 11:38:28]GetEnvironemtVariableForUser-Result=C:\Users\ADMINU~1\AppData\Local\Temp
[04.11.2012 11:38:28]User-Temp=C:\Users\ADMINI~1.OFF\AppData\Local\Temp
[04.11.2012 11:38:28]Modul-GetUserTmp=End (True)
[04.11.2012 11:38:28]m_SessionId=8
[04.11.2012 11:38:28]Modul-ExtendPathWithSessionId=Start
[04.11.2012 11:38:28]Modul-IsPerSessionTempDirActivated=Start
[04.11.2012 11:38:28]Open ‘Terminal Server’ policy key=successful
[04.11.2012 11:38:28]Open ‘PerSessionTempDir’ policy value=successful
[04.11.2012 11:38:28]PerSessionTempDir=0
[04.11.2012 11:38:28]Modul-IsPerSessionTempDirActivated=End (False)
[04.11.2012 11:38:28]Modul-IsfDenyTSConnectionsActivated=Start
[04.11.2012 11:38:28]Open ‘Terminal Server’ policy key=successful
[04.11.2012 11:38:28]Open ‘fDenyTSConnections’ policy value=not successful
[04.11.2012 11:38:28]Open ‘Terminal Server’ key=successful
[04.11.2012 11:38:28]Open policy value ‘fDenyTSConnections’=successful
[04.11.2012 11:38:28]fDenyTSConnections=0
[04.11.2012 11:38:28]Modul-IsfDenyTSConnectionsActivated=End (False)
[04.11.2012 11:38:28]SessionId=8
[04.11.2012 11:38:28]IsfDenyTSConnectionsActivated=False
[04.11.2012 11:38:28]IsPerSessionTempDirActivated=False
[04.11.2012 11:38:28]((s_osvi.dwMajorVersion < 6) && (s_osvi.wProductType == VER_NT_WORKSTATION))=False (=> <> Win XP)
[04.11.2012 11:38:28]IsPerSessionTempDirActivated=False
[04.11.2012 11:38:28]Modul-ExtendPathWithSessionId=End (False)
[04.11.2012 11:38:28]ExtendPathWithSessionId=False
[04.11.2012 11:38:28]Modul-GetUserTmpPath=End (True)
[04.11.2012 11:38:28]TmpPath=C:\Users\ADMINI~1.OFF\AppData\Local\Temp\PdfCreator\Spool
[04.11.2012 11:38:28]Modul-GetDatFileName=Start
[04.11.2012 11:38:28]pDatFile=79760AE6A60045828833038B98386801.inf
[04.11.2012 11:38:28]Modul-GetDatFileName=End (True)
[04.11.2012 11:38:28]PostscriptFile=C:\Users\ADMINI~1.OFF\AppData\Local\Temp\PdfCreator\Spool\79760AE6A60045828833038B98386801.ps
[04.11.2012 11:38:28]DocName=T:\PDFCreator\_pdfcmonLog_User.txt
[04.11.2012 11:38:28]OpenPrinter=True
[04.11.2012 11:38:28]Modul-PdfStartDocPort=End (True)
[04.11.2012 11:38:28]Modul-CreateDatFile=Start
[04.11.2012 11:38:28]CreateFile: CloseHandle(hFile)=successful
[04.11.2012 11:38:28]Modul-CreateDatFile=End (True)
[04.11.2012 11:38:28]Modul-StartPdfCreator=Start
[04.11.2012 11:38:28]RevertToSelf=successful
[04.11.2012 11:38:28]WTSQueryUserToken=successful
[04.11.2012 11:38:28]DuplicateTokenEx=successful
[04.11.2012 11:38:28]CreateEnvironmentBlock=successful
[04.11.2012 11:38:28]EnvironmentSize=2159
[04.11.2012 11:38:28]Modul-ExtendPathWithSessionId=Start
[04.11.2012 11:38:28]Modul-IsPerSessionTempDirActivated=Start
[04.11.2012 11:38:28]Open ‘Terminal Server’ policy key=successful
[04.11.2012 11:38:28]Open ‘PerSessionTempDir’ policy value=successful
[04.11.2012 11:38:28]PerSessionTempDir=0
[04.11.2012 11:38:28]Modul-IsPerSessionTempDirActivated=End (False)
[04.11.2012 11:38:28]Modul-IsfDenyTSConnectionsActivated=Start
[04.11.2012 11:38:28]Open ‘Terminal Server’ policy key=successful
[04.11.2012 11:38:28]Open ‘fDenyTSConnections’ policy value=not successful
[04.11.2012 11:38:28]Open ‘Terminal Server’ key=successful
[04.11.2012 11:38:28]Open policy value ‘fDenyTSConnections’=successful
[04.11.2012 11:38:28]fDenyTSConnections=0
[04.11.2012 11:38:28]Modul-IsfDenyTSConnectionsActivated=End (False)
[04.11.2012 11:38:28]SessionId=8
[04.11.2012 11:38:28]IsfDenyTSConnectionsActivated=False
[04.11.2012 11:38:28]IsPerSessionTempDirActivated=False
[04.11.2012 11:38:28]((s_osvi.dwMajorVersion < 6) && (s_osvi.wProductType == VER_NT_WORKSTATION))=False (=> <> Win XP)
[04.11.2012 11:38:28]IsPerSessionTempDirActivated=False
[04.11.2012 11:38:28]Modul-ExtendPathWithSessionId=End (False)
[04.11.2012 11:38:28]ExtendPathWithSessionId=False
[04.11.2012 11:38:28]CommandLine= /PPDFCREATORPRINTER /PIFC:\Users\ADMINI~1.OFF\AppData\Local\Temp\PdfCreator\Spool\79760AE6A60045828833038B98386801.inf
[04.11.2012 11:38:28]Command=C:\Program Files (x86)\PDFCreator\PDFCreator.exe
[04.11.2012 11:38:28]CloseHandle(hTokenDup)=successful
[04.11.2012 11:38:28]CloseHandle(hTokenNew)=successful
[04.11.2012 11:38:28]CloseHandle(pi.hThread)=successful
[04.11.2012 11:38:28]CloseHandle(pi.hProcess)=successful
[04.11.2012 11:38:28]DestroyEnvironmentBlock=successful
[04.11.2012 11:38:28]Modul-StartPdfCreator=End (True)

Hi Robin.

This is the second one from ordinary user.

Regards,
Mocni Max


ORDINARY USER LOG

[04.11.2012 11:32:14]-------------------- = --------------------
[04.11.2012 11:32:14]DLL-FileVersion=0.2.2.0
[04.11.2012 11:32:14]Modul-GetOsInfo=Start
[04.11.2012 11:32:14]GetVersionEx=True
[04.11.2012 11:32:14]BuildNumber=7601
[04.11.2012 11:32:14]MajorVersion=6
[04.11.2012 11:32:14]MinorVersion=1
[04.11.2012 11:32:14]PlatformId=2
[04.11.2012 11:32:14]CSDVersion=Service Pack 1
[04.11.2012 11:32:14]ProductType=3
[04.11.2012 11:32:14]ServicePackMajor=1
[04.11.2012 11:32:14]ServicePackMinor=0
[04.11.2012 11:32:14]SuiteMask=16
[04.11.2012 11:32:14]Modul-GetOsInfo=End (Void)
[04.11.2012 11:32:14]Modul-PdfStartDocPort=Start
[04.11.2012 11:32:14]Modul-GetJobInfo=Start
[04.11.2012 11:32:14]OpenPrinter=True
[04.11.2012 11:32:14]pjob->pMachineName=\\SERVER
[04.11.2012 11:32:14]pjob->pUserName=UserName
[04.11.2012 11:32:14]Modul-GetJobInfo=End (True)
[04.11.2012 11:32:14]PrinterName=PDFCreator
[04.11.2012 11:32:14]JobId=228
[04.11.2012 11:32:14]ComputerName=\\SERVER
[04.11.2012 11:32:14]UserName=UserName
[04.11.2012 11:32:14]Modul-GetSessionData=Start
[04.11.2012 11:32:14]OpenThreadToken=successful
[04.11.2012 11:32:14]DuplicateTokenEx=successful
[04.11.2012 11:32:14]SessionId=2
[04.11.2012 11:32:14]WTSEnumerateSessions=successful
[04.11.2012 11:32:14]Session found=true
[04.11.2012 11:32:14]WinStation=RDP-Tcp#40
[04.11.2012 11:32:14]Modul-GetSessionData=End (True)
[04.11.2012 11:32:14]Modul-IsConsoleSession=Start
[04.11.2012 11:32:14]sessionID=2
[04.11.2012 11:32:14]WTSGetActiveConsoleSessionId=1
[04.11.2012 11:32:14]Modul-IsConsoleSession=End (False)
[04.11.2012 11:32:14]SessionId=2
[04.11.2012 11:32:14]WinStation=RDP-Tcp#40
[04.11.2012 11:32:14]PDFServer=FALSE
[04.11.2012 11:32:14]Modul-GetUserTmpPath=Start
[04.11.2012 11:32:14]Modul-GetUserTmp=Start
[04.11.2012 11:32:14]RevertToSelf=successful
[04.11.2012 11:32:14]WTSQueryUserToken=successful
[04.11.2012 11:32:14]GetEnvironemtVariableForUser-Variable=%TMP%
[04.11.2012 11:32:14]GetEnvironemtVariableForUser-Result=H:\Temp
[04.11.2012 11:32:14]User-Temp=H:\Temp
[04.11.2012 11:32:14]Modul-GetUserTmp=End (True)
[04.11.2012 11:32:14]m_SessionId=2
[04.11.2012 11:32:14]Modul-ExtendPathWithSessionId=Start
[04.11.2012 11:32:14]Modul-IsPerSessionTempDirActivated=Start
[04.11.2012 11:32:14]Open ‘Terminal Server’ policy key=successful
[04.11.2012 11:32:14]Open ‘PerSessionTempDir’ policy value=successful
[04.11.2012 11:32:14]PerSessionTempDir=0
[04.11.2012 11:32:14]Modul-IsPerSessionTempDirActivated=End (False)
[04.11.2012 11:32:14]Modul-IsfDenyTSConnectionsActivated=Start
[04.11.2012 11:32:14]Open ‘Terminal Server’ policy key=successful
[04.11.2012 11:32:14]Open ‘fDenyTSConnections’ policy value=not successful
[04.11.2012 11:32:14]Open ‘Terminal Server’ key=successful
[04.11.2012 11:32:14]Open policy value ‘fDenyTSConnections’=successful
[04.11.2012 11:32:14]fDenyTSConnections=0
[04.11.2012 11:32:14]Modul-IsfDenyTSConnectionsActivated=End (False)
[04.11.2012 11:32:14]SessionId=2
[04.11.2012 11:32:14]IsfDenyTSConnectionsActivated=False
[04.11.2012 11:32:14]IsPerSessionTempDirActivated=False
[04.11.2012
11:32:14]((s_osvi.dwMajorVersion < 6) &&
(s_osvi.wProductType == VER_NT_WORKSTATION))=False (=> <> Win
XP)
[04.11.2012 11:32:14]IsPerSessionTempDirActivated=False
[04.11.2012 11:32:14]Modul-ExtendPathWithSessionId=End (False)
[04.11.2012 11:32:14]ExtendPathWithSessionId=False
[04.11.2012 11:32:14]Modul-GetUserTmpPath=End (True)
[04.11.2012 11:32:14]TmpPath=H:\Temp\PdfCreator\Spool
[04.11.2012 11:32:14]Modul-GetDatFileName=Start
[04.11.2012 11:32:14]pDatFile=92FEF0AA05F2464CBCDD8B5CE67933C6.inf
[04.11.2012 11:32:14]Modul-GetDatFileName=End (True)
[04.11.2012 11:32:14]PostscriptFile=H:\Temp\PdfCreator\Spool\92FEF0AA05F2464CBCDD8B5CE67933C6.ps
[04.11.2012 11:32:14]DocName=T:\UserName\FileToPrint.txt
[04.11.2012 11:32:14]CreateFile=The system cannot find the path specified.

[04.11.2012 11:32:14]Modul-PdfStartDocPort=End (True)
[04.11.2012 11:33:53]Modul-CreateDatFile=Start
[04.11.2012 11:33:53]CreateFile=The system cannot find the path specified.

[04.11.2012 11:33:53]Modul-CreateDatFile=End (False)
[04.11.2012 11:33:53]Modul-StartPdfCreator=Start
[04.11.2012 11:33:53]RevertToSelf=successful
[04.11.2012 11:33:53]WTSQueryUserToken=successful
[04.11.2012 11:33:53]DuplicateTokenEx=successful
[04.11.2012 11:33:53]CreateEnvironmentBlock=successful
[04.11.2012 11:33:53]EnvironmentSize=1961
[04.11.2012 11:33:53]Modul-ExtendPathWithSessionId=Start
[04.11.2012 11:33:53]Modul-IsPerSessionTempDirActivated=Start
[04.11.2012 11:33:53]Open ‘Terminal Server’ policy key=successful
[04.11.2012 11:33:53]Open ‘PerSessionTempDir’ policy value=successful
[04.11.2012 11:33:53]PerSessionTempDir=0
[04.11.2012 11:33:53]Modul-IsPerSessionTempDirActivated=End (False)
[04.11.2012 11:33:53]Modul-IsfDenyTSConnectionsActivated=Start
[04.11.2012 11:33:53]Open ‘Terminal Server’ policy key=successful
[04.11.2012 11:33:53]Open ‘fDenyTSConnections’ policy value=not successful
[04.11.2012 11:33:53]Open ‘Terminal Server’ key=successful
[04.11.2012 11:33:53]Open policy value ‘fDenyTSConnections’=successful
[04.11.2012 11:33:53]fDenyTSConnections=0
[04.11.2012 11:33:53]Modul-IsfDenyTSConnectionsActivated=End (False)
[04.11.2012 11:33:53]SessionId=2
[04.11.2012 11:33:53]IsfDenyTSConnectionsActivated=False
[04.11.2012 11:33:53]IsPerSessionTempDirActivated=False
[04.11.2012
11:33:53]((s_osvi.dwMajorVersion < 6) &&
(s_osvi.wProductType == VER_NT_WORKSTATION))=False (=> <> Win
XP)
[04.11.2012 11:33:53]IsPerSessionTempDirActivated=False
[04.11.2012 11:33:53]Modul-ExtendPathWithSessionId=End (False)
[04.11.2012 11:33:53]ExtendPathWithSessionId=False
[04.11.2012 11:33:53]CommandLine= /PPDFCREATORPRINTER /PIFH:\Temp\PdfCreator\Spool\92FEF0AA05F2464CBCDD8B5CE67933C6.inf
[04.11.2012 11:33:53]Command=C:\Program Files (x86)\PDFCreator\PDFCreator.exe
[04.11.2012 11:33:53]CloseHandle(hTokenDup)=successful
[04.11.2012 11:33:53]CloseHandle(hTokenNew)=successful
[04.11.2012 11:33:53]CloseHandle(pi.hThread)=successful
[04.11.2012 11:33:53]CloseHandle(pi.hProcess)=successful
[04.11.2012 11:33:53]DestroyEnvironmentBlock=successful
[04.11.2012 11:33:53]Modul-StartPdfCreator=End (True)

Hi,

is H:\ possible a network drive? If i remember correctly, there can be problems if the temp folder is not located on a local drive, can you confirm this?

regards,

Robin

Hi Robin.

Yes, H:\ is a network drive but defined on the same RDS server where PDFCreator is installed and which users are using.
I will try to define a local Temp for test only to see if that will solve a problem.
Thanks.

Regards,
Mocni Max

Hi Robin.

Solved! As you pointed out, problem was in using network drive for TMP (not temp).
With directory TMP is pointing to on local drive, PDFCreator is working as it should.
If TMP network share is not defined as mapped one but as UNC path, PDFCreator works too.

Thanks a lot!

Regards,
Mocni Max