Blank page instead of report

Hi

I have installed PDFCreator 1.6.0.2 on Win2003 Server (EE SP2).

Some service use PDFCreator to print reports to PDF. Service logged as domain user with admin rights on the server. Sometimes instead of report generated blank pdf (single empty page).

Any suggestions?

============== Below _pdfcmonlog file from last case =================

[12.01.2013 10:58:05]-------------------- = --------------------
[12.01.2013 10:58:05]Modul-PdfStartDocPort=Start
[12.01.2013 10:58:05]DLL-FileVersion=0.2.3.0
[12.01.2013 10:58:05]Modul-GetOsInfo=Start
[12.01.2013 10:58:05]GetVersionEx=True
[12.01.2013 10:58:05]BuildNumber=3790
[12.01.2013 10:58:05]MajorVersion=5
[12.01.2013 10:58:05]MinorVersion=2
[12.01.2013 10:58:05]PlatformId=2
[12.01.2013 10:58:05]CSDVersion=Service Pack 2
[12.01.2013 10:58:05]ProductType=3
[12.01.2013 10:58:05]ServicePackMajor=2
[12.01.2013 10:58:05]ServicePackMinor=0
[12.01.2013 10:58:05]SuiteMask=274
[12.01.2013 10:58:05]Modul-GetOsInfo=End (Void)
[12.01.2013 10:58:05]Modul-GetJobInfo=Start
[12.01.2013 10:58:05]OpenPrinter=True
[12.01.2013 10:58:05]pjob->pMachineName=\\\\APPSERVER1
[12.01.2013 10:58:05]pjob->pUserName=nasuser
[12.01.2013 10:58:05]Modul-GetJobInfo=End (True)
[12.01.2013 10:58:05]PrinterName=PDFCreator
[12.01.2013 10:58:05]JobId=5
[12.01.2013 10:58:05]ComputerName=\\\\APPSERVER1
[12.01.2013 10:58:05]UserName=nasuser
[12.01.2013 10:58:05]Modul-GetSessionData=Start
[12.01.2013 10:58:05]OpenThreadToken=successful
[12.01.2013 10:58:05]DuplicateTokenEx=successful
[12.01.2013 10:58:05]SessionId=0
[12.01.2013 10:58:05]WTSEnumerateSessions=successful
[12.01.2013 10:58:05]Modul-GetSessionData=End (True)
[12.01.2013 10:58:05]Modul-IsConsoleSession=Start
[12.01.2013 10:58:05]sessionID=0
[12.01.2013 10:58:05]WTSGetActiveConsoleSessionId=0
[12.01.2013 10:58:05]Modul-IsConsoleSession=End (True)
[12.01.2013 10:58:05]SessionId=0
[12.01.2013 10:58:05]WinStation=
[12.01.2013 10:58:05]PDFServer=FALSE
[12.01.2013 10:58:05]Modul-GetUserTmpPath=Start
[12.01.2013 10:58:05]Modul-GetUserTmp=Start
[12.01.2013 10:58:05]RevertToSelf=successful
[12.01.2013 10:58:05]WTSQueryUserToken=The operation being requested was not performed because the user has not logged on to the network.
The specified service does not exist.

[12.01.2013 10:58:05]GetEnvironemtVariableForUser-Variable=%TMP%
[12.01.2013 10:58:05]GetEnvironemtVariableForUser-Result=C:\\WINDOWS\\TEMP
[12.01.2013 10:58:05]User-Temp=C:\\WINDOWS\\TEMP
[12.01.2013 10:58:05]Modul-GetUserTmp=End (True)
[12.01.2013 10:58:05]m_SessionId=0
[12.01.2013 10:58:05]Modul-ExtendPathWithSessionId=Start
[12.01.2013 10:58:05]Modul-IsPerSessionTempDirActivated=Start
[12.01.2013 10:58:05]Open 'Terminal Server' policy key=successful
[12.01.2013 10:58:05]Open 'PerSessionTempDir' policy value=not successful
[12.01.2013 10:58:05]Open 'Terminal Server' key=successful
[12.01.2013 10:58:05]Open policy value 'PerSessionTempDir'=successful
[12.01.2013 10:58:05]PerSessionTempDir=1
[12.01.2013 10:58:05]Modul-IsPerSessionTempDirActivated=End (True)
[12.01.2013 10:58:05]Modul-IsfDenyTSConnectionsActivated=Start
[12.01.2013 10:58:05]Open 'Terminal Server' policy key=successful
[12.01.2013 10:58:05]Open 'fDenyTSConnections' policy value=successful
[12.01.2013 10:58:05]fDenyTSConnections=0
[12.01.2013 10:58:05]Modul-IsfDenyTSConnectionsActivated=End (False)
[12.01.2013 10:58:05]SessionId=0
[12.01.2013 10:58:05]IsfDenyTSConnectionsActivated=False
[12.01.2013 10:58:05]IsPerSessionTempDirActivated=True
[12.01.2013 10:58:05]((s_osvi.dwMajorVersion < 6) && (s_osvi.wProductType == VER_NT_WORKSTATION))=False (=> <> Win XP)
[12.01.2013 10:58:05]IsfDenyTSConnectionsActivated=False
[12.01.2013 10:58:05](m_SessionId > 0)=False
[12.01.2013 10:58:05]Modul-ExtendPathWithSessionId=End (False)
[12.01.2013 10:58:05]ExtendPathWithSessionId=False
[12.01.2013 10:58:05]Modul-GetUserTmpPath=End (True)
[12.01.2013 10:58:05]TmpPath=C:\\WINDOWS\\TEMP\\PdfCreator\\Spool
[12.01.2013 10:58:05]Modul-GetDatFileName=Start
[12.01.2013 10:58:05]pDatFile=1B69727668FC40CA839AD061C7F2502B.inf
[12.01.2013 10:58:05]Modul-GetDatFileName=End (True)
[12.01.2013 10:58:05]PostscriptFile=C:\\WINDOWS\\TEMP\\PdfCreator\\Spool\\1B69727668FC40CA839AD061C7F2502B.ps
[12.01.2013 10:58:05]DocName=Доп. суточный отчет (VK)
[12.01.2013 10:58:05]OpenPrinter=True
[12.01.2013 10:58:05]Modul-PdfStartDocPort=End (True)
[12.01.2013 10:58:05]Modul-CreateDatFile=Start
[12.01.2013 10:58:05]CreateFile: CloseHandle(hFile)=successful
[12.01.2013 10:58:05]Modul-CreateDatFile=End (True)
[12.01.2013 10:58:05]Modul-StartPdfCreator=Start
[12.01.2013 10:58:05]RevertToSelf=successful
[12.01.2013 10:58:05]WTSQueryUserToken=The operation being requested was not performed because the user has not logged on to the network.
The specified service does not exist.

[12.01.2013 10:58:05]DuplicateTokenEx=The handle is invalid.

[12.01.2013 10:58:05]CreateEnvironmentBlock=successful
[12.01.2013 10:58:05]EnvironmentSize=1231
[12.01.2013 10:58:05]Modul-ExtendPathWithSessionId=Start
[12.01.2013 10:58:05]Modul-IsPerSessionTempDirActivated=Start
[12.01.2013 10:58:05]Open 'Terminal Server' policy key=successful
[12.01.2013 10:58:05]Open 'PerSessionTempDir' policy value=not successful
[12.01.2013 10:58:05]Open 'Terminal Server' key=successful
[12.01.2013 10:58:06]Open policy value 'PerSessionTempDir'=successful
[12.01.2013 10:58:06]PerSessionTempDir=1
[12.01.2013 10:58:06]Modul-IsPerSessionTempDirActivated=End (True)
[12.01.2013 10:58:06]Modul-IsfDenyTSConnectionsActivated=Start
[12.01.2013 10:58:06]Open 'Terminal Server' policy key=successful
[12.01.2013 10:58:06]Open 'fDenyTSConnections' policy value=successful
[12.01.2013 10:58:06]fDenyTSConnections=0
[12.01.2013 10:58:06]Modul-IsfDenyTSConnectionsActivated=End (False)
[12.01.2013 10:58:06]SessionId=0
[12.01.2013 10:58:06]IsfDenyTSConnectionsActivated=False
[12.01.2013 10:58:06]IsPerSessionTempDirActivated=True
[12.01.2013 10:58:06]((s_osvi.dwMajorVersion < 6) && (s_osvi.wProductType == VER_NT_WORKSTATION))=False (=> <> Win XP)
[12.01.2013 10:58:06]IsfDenyTSConnectionsActivated=False
[12.01.2013 10:58:06](m_SessionId > 0)=False
[12.01.2013 10:58:06]Modul-ExtendPathWithSessionId=End (False)
[12.01.2013 10:58:06]ExtendPathWithSessionId=False
[12.01.2013 10:58:06]CommandLine= /PPDFCREATORPRINTER /PIFC:\\WINDOWS\\TEMP\\PdfCreator\\Spool\\1B69727668FC40CA839AD061C7F2502B.inf
[12.01.2013 10:58:06]Command=C:\\Program Files\\PDFCreator\\PDFCreator.exe
[12.01.2013 10:58:06]CloseHandle(hTokenDup)=The handle is invalid.

[12.01.2013 10:58:06]CloseHandle(hTokenNew)=The handle is invalid.

[12.01.2013 10:58:06]CloseHandle(pi.hThread)=The handle is invalid.

[12.01.2013 10:58:06]CloseHandle(pi.hProcess)=The handle is invalid.

[12.01.2013 10:58:06]DestroyEnvironmentBlock=successful
[12.01.2013 10:58:06]Modul-StartPdfCreator=End (True)

Was the user who created the printjob (nasuser) logged in?
You always need to make sure, the user sending the print job is logged in, otherwise you need to chose the server installation during setup.

regards,

Robin

Print job created by service logged in as domain user (nasuser) with local admin rights.

Moreover, this service creates two print jobs, one of them can be blank.

Regards,

Andrey

 

One more log file PDFCreator.log

Service use automation to print two reports. First converted to empty page, second is normal.

See log

-dOffOptimizations=0
-dLockDistillerParams=false
-dGrayImageDepth=-1
-dASCII85EncodePages=false
-dDefaultRenderingIntent=/Default
-dTransferFunctionInfo=/Preserve
-dPreserveHalftoneInfo=false
-dDetectBlends=true
-f
13.02.2013 10:58:09: Error: %%[ ProductName: GPL Ghostscript ]%%; %%[Page: 1]%%; %%[LastPage]%%; %%[ Error: undefinedfilename; OffendingCommand: C:\\WINDOWS\\TEMP\\PDFCreator\\Spool\\414BDA5952524E7DB1E0B788876DF7AD.mtd ]%%; GPL Ghostscript 9.05: Unrecoverable error, exit code 1;
13.02.2013 10:58:09: Time for converting [PDF without encryption]: 00:00:00:941
14.02.2013 10:28:20: Windowsversion: Windows 2003 5.2 Build 3790 (Service Pack 2) [EnterpriseServer TerminalServer Win2000AdvancedServer Win2003Server IsWinXPPlus]
14.02.2013 10:28:20: InstalledAsServer: False
14.02.2013 10:28:21: Autosavemodus: 1files
14.02.2013 10:28:22: Autosavemodus: 1files
14.02.2013 10:28:23: Autosavemodus: Create File 'C:\\Documents and Settings\asUser\\Local Settings\\Temp\\DRVK_130213_RUS.pdf'
14.02.2013 10:28:23: Ghostscriptparameter:
-IC:\\Program Files\\PDFCreator\\GS9.05\\gs9.05\\Lib\\
-q
-dNOPAUSE
-dBATCH
-sFONTPATH=C:\\WINDOWS\\Fonts
-sDEVICE=pdfwrite
-dPDFSETTINGS=/default
-dCompatibilityLevel=1.4
-dProcessColorModel=/DeviceCMYK
-dAutoRotatePages=/PageByPage
-dCompressPages=true
-dEmbedAllFonts=true
-dSubsetFonts=true
-dMaxSubsetPct=100
-dConvertCMYKImagesToRGB=false
-sOutputFile=C:\\Documents and Settings\asUser\\Local Settings\\Temp\\DRVK_130213_RUS.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
14.02.2013 10:28:23: Error: Error: /undefinedfilename in (C:\\\\WINDOWS\\\\TEMP\\\\PDFCreator\\\\Spool\\\\F1FDF9F8590D43FD9C4FFFA936D1AA28.mtd); Operand stack:; ; Execution stack:;    %interp_exit   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--   --nostringval--   --nostringval--   false   1   %stopped_push; Dictionary stack:;    --dict:1205/1684(ro)(G)--   --dict:0/20(G)--   --dict:77/200(L)--; Current allocation mode is local; Last OS error: No such file or directory; GPL Ghostscript 9.05: Unrecoverable error, exit code 1;
14.02.2013 10:28:23: Time for converting [PDF without encryption]: 00:00:00:264
14.02.2013 10:28:24: Windowsversion: Windows 2003 5.2 Build 3790 (Service Pack 2) [EnterpriseServer TerminalServer Win2000AdvancedServer Win2003Server IsWinXPPlus]
14.02.2013 10:28:24: InstalledAsServer: False
14.02.2013 10:28:26: Autosavemodus: 1files
14.02.2013 10:28:26: Autosavemodus: Create File 'C:\\Documents and Settings\asUser\\Local Settings\\Temp\\DRVK_130213_ENG.pdf'
14.02.2013 10:28:26: Ghostscriptparameter:
-IC:\\Program Files\\PDFCreator\\GS9.05\\gs9.05\\Lib\\
-q
-dNOPAUSE
-dBATCH
-sFONTPATH=C:\\WINDOWS\\Fonts
-sDEVICE=pdfwrite
-dPDFSETTINGS=/default
-dCompatibilityLevel=1.4
-dProcessColorModel=/DeviceCMYK
-dAutoRotatePages=/PageByPage
-dCompressPages=true
-dEmbedAllFonts=true
-dSubsetFonts=true
-dMaxSubsetPct=100
-dConvertCMYKImagesToRGB=false
-sOutputFile=C:\\Documents and Settings\asUser\\Local Settings\\Temp\\DRVK_130213_ENG.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
14.02.2013 10:28:27: Error: %%[ ProductName: GPL Ghostscript ]%%; %%[Page: 1]%%; %%[LastPage]%%; %%[ Error: undefinedfilename; OffendingCommand: C:\\WINDOWS\\TEMP\\PDFCreator\\Spool\\522CB129099B412EB7087906A555583A.mtd ]%%; GPL Ghostscript 9.05: Unrecoverable error, exit code 1;
14.02.2013 10:28:27: Time for converting [PDF without encryption]: 00:00:00:961
14.02.2013 10:28:27: Autosavemodus: Create File 'C:\\Documents and Settings\asUser\\Local Settings\\Temp\\DRVK_130213_ENG.pdf' success

Hi,

according to the log it seems to be a ghostscript (usually related to non ascii chars in the metadata) issue, which we probably can´t do anything about.

regards,

Robin