PDFcreator can't print MS Visio files


#1

Whenever I want to print a MS Visio (*.vsd) file into a PDF file I receive the following error: "Fehler (109) während der Aktion Datei öffnen. Der Dateiname ist ungültig." from MS Visio. It seems, that PDFCreator and MS Visio doesn't work together and something went wrong with the file name.

This happens on a Windows 7 + MS Visio 2010 and on Windows 10 + MS Visio 2016. I used PDFCreator Free v3.2.2 Build 13517 to test this.

May I do something wrong? Printing MS Word files with PDFCreator works perfectly for me.


#2

Hi @flo_onqt

Unfortunately, we can't test the printing with visio.
Could you create a trace log following this guide in our knowledge base and send it over using the contact form?


#3

Sorry, I posted it here, because I didn't find the contact form so far.

Please find the log in the listing:

2018-09-26 13:36:45.4951 [Trace] 3336-1 (ProgramThread) pdfforge.PDFCreator.Core.Startup.StartConditions.CheckAllStartupConditions.CheckAll: Checking installation...
2018-09-26 13:36:45.5107 [Trace] 3336-1 (ProgramThread) pdfforge.PDFCreator.Core.Startup.StartConditions.CheckAllStartupConditions.CheckAll: Checking SpoolerRunningCondition
2018-09-26 13:36:45.5107 [Trace] 3336-1 (ProgramThread) pdfforge.PDFCreator.Core.Startup.StartConditions.CheckAllStartupConditions.CheckAll: Checking CheckSpoolFolderCondition
2018-09-26 13:36:45.5263 [Trace] 3336-1 (ProgramThread) pdfforge.PDFCreator.Core.Startup.StartConditions.CheckAllStartupConditions.CheckAll: Checking GhostscriptCondition
2018-09-26 13:36:45.5263 [Trace] 3336-1 (ProgramThread) pdfforge.PDFCreator.Core.Startup.StartConditions.CheckAllStartupConditions.CheckAll: Checking PrinterInstalledCondition
2018-09-26 13:36:45.5263 [Trace] 3336-1 (ProgramThread) pdfforge.PDFCreator.Core.Startup.StartConditions.CheckAllStartupConditions.CheckAll: Checking TerminalServerNotAllowedCondition
2018-09-26 13:36:45.5419 [Trace] 3336-1 (ProgramThread) pdfforge.PDFCreator.UI.ViewModels.SettingsLoaderBase.LogProfiles: Profiles:
2018-09-26 13:36:45.5575 [Trace] 3336-1 (ProgramThread) pdfforge.PDFCreator.UI.ViewModels.SettingsLoaderBase.LogProfiles:
2018-09-26 13:36:45.5575 [Trace] 3336-1 (ProgramThread) pdfforge.PDFCreator.UI.ViewModels.SettingsLoaderBase.LogProfiles: Hohe Komprimierung (kleinere Datei)
2018-09-26 13:36:45.5575 [Trace] 3336-1 (ProgramThread) pdfforge.PDFCreator.UI.ViewModels.SettingsLoaderBase.LogProfiles: Hohe Qualität (größere Datei)
2018-09-26 13:36:45.5575 [Trace] 3336-1 (ProgramThread) pdfforge.PDFCreator.UI.ViewModels.SettingsLoaderBase.LogProfiles: JPEG (Grafikdatei)
2018-09-26 13:36:45.5575 [Trace] 3336-1 (ProgramThread) pdfforge.PDFCreator.UI.ViewModels.SettingsLoaderBase.LogProfiles: PDF/A (Langzeitarchivierung)
2018-09-26 13:36:45.5575 [Trace] 3336-1 (ProgramThread) pdfforge.PDFCreator.UI.ViewModels.SettingsLoaderBase.LogProfiles: PNG (Grafikdatei)
2018-09-26 13:36:45.5575 [Trace] 3336-1 (ProgramThread) pdfforge.PDFCreator.UI.ViewModels.SettingsLoaderBase.LogProfiles: Druck nach dem Speichern
2018-09-26 13:36:45.5575 [Trace] 3336-1 (ProgramThread) pdfforge.PDFCreator.UI.ViewModels.SettingsLoaderBase.LogProfiles: TIFF (mehrseitige Grafikdatei)
2018-09-26 13:36:45.5887 [Debug] 3336-1 (ProgramThread) pdfforge.PDFCreator.Core.Startup.AppStarts.MaybePipedApplicationStarter.SendMessageOrStartApplication: Starting attempt 1:
2018-09-26 13:36:45.5887 [Debug] 3336-1 (ProgramThread) pdfforge.PDFCreator.Core.Startup.AppStarts.MaybePipedApplicationStarter.TryStartApplication: Starting pipe server
2018-09-26 13:36:45.6043 [Debug] 3336-1 (ProgramThread) pdfforge.PDFCreator.Core.Communication.PipeServerManager.StartServer: Starting pipe server thread
2018-09-26 13:36:45.6043 [Debug] 3336-1 (ProgramThread) pdfforge.PDFCreator.Core.Startup.AppStarts.MaybePipedApplicationStarter.TryStartApplication: Reloading settings
2018-09-26 13:36:45.6199 [Trace] 3336-1 (ProgramThread) pdfforge.PDFCreator.UI.ViewModels.SettingsLoaderBase.LogProfiles: Profiles:
2018-09-26 13:36:45.6199 [Trace] 3336-1 (ProgramThread) pdfforge.PDFCreator.UI.ViewModels.SettingsLoaderBase.LogProfiles:
2018-09-26 13:36:45.6199 [Trace] 3336-1 (ProgramThread) pdfforge.PDFCreator.UI.ViewModels.SettingsLoaderBase.LogProfiles: Hohe Komprimierung (kleinere Datei)
2018-09-26 13:36:45.6199 [Trace] 3336-1 (ProgramThread) pdfforge.PDFCreator.UI.ViewModels.SettingsLoaderBase.LogProfiles: Hohe Qualität (größere Datei)
2018-09-26 13:36:45.6199 [Trace] 3336-1 (ProgramThread) pdfforge.PDFCreator.UI.ViewModels.SettingsLoaderBase.LogProfiles: JPEG (Grafikdatei)
2018-09-26 13:36:45.6355 [Trace] 3336-1 (ProgramThread) pdfforge.PDFCreator.UI.ViewModels.SettingsLoaderBase.LogProfiles: PDF/A (Langzeitarchivierung)
2018-09-26 13:36:45.6355 [Trace] 3336-1 (ProgramThread) pdfforge.PDFCreator.UI.ViewModels.SettingsLoaderBase.LogProfiles: PNG (Grafikdatei)
2018-09-26 13:36:45.6355 [Trace] 3336-1 (ProgramThread) pdfforge.PDFCreator.UI.ViewModels.SettingsLoaderBase.LogProfiles: Druck nach dem Speichern
2018-09-26 13:36:45.6355 [Trace] 3336-1 (ProgramThread) pdfforge.PDFCreator.UI.ViewModels.SettingsLoaderBase.LogProfiles: TIFF (mehrseitige Grafikdatei)
2018-09-26 13:36:45.6823 [Debug] 3336-1 (ProgramThread) pdfforge.PDFCreator.Core.Startup.AppStarts.MaybePipedApplicationStarter.TryStartApplication: Finding spooled jobs
2018-09-26 13:36:45.6979 [Debug] 3336-1 (ProgramThread) pdfforge.PDFCreator.Conversion.Jobs.SpooledJobFinder.GetJobs: Looking for spooled jobs in 'C:\Users\Flo\AppData\Local\Temp\PDFCreator\Spool'
2018-09-26 13:36:45.6979 [Debug] 3336-1 (ProgramThread) pdfforge.PDFCreator.Core.Startup.AppStarts.MainWindowStart.StartApplication: Starting main window
2018-09-26 13:36:45.6979 [Debug] 3336-1 (ProgramThread) pdfforge.PDFCreator.Utilities.Threading.ThreadManager.StartSynchronizedThread: Starting MainWindowThread thread
2018-09-26 13:36:45.6979 [Debug] 3336-1 (ProgramThread) pdfforge.PDFCreator.Utilities.Threading.ThreadManager.StartSynchronizedThread: Adding thread MainWindowThread
2018-09-26 13:36:45.6979 [Debug] 3336-1 (ProgramThread) pdfforge.PDFCreator.Utilities.Threading.ThreadManager.StartSynchronizedThread: Adding thread
2018-09-26 13:36:45.6979 [Debug] 3336-1 (ProgramThread) pdfforge.PDFCreator.Core.Startup.AppStarts.MaybePipedApplicationStarter.SendMessageOrStartApplication: TryStartApplication: True
2018-09-26 13:36:45.6979 [Debug] 3336-1 (ProgramThread) pdfforge.PDFCreator.Core.Startup.AppStarts.MaybePipedApplicationStarter.SendMessageOrStartApplication: Starting update check thread
2018-09-26 13:36:45.6979 [Debug] 3336-1 (ProgramThread) pdfforge.PDFCreator.Utilities.Threading.ThreadManager.StartSynchronizedThread: Adding thread UpdateThread
2018-09-26 13:36:45.7135 [Debug] 3336-10 (UpdateThread) pdfforge.PDFCreator.UI.Presentation.Assistants.Update.UpdateAssistant.UpdateThread: Launched UpdateThread
2018-09-26 13:36:45.7135 [Debug] 3336-10 (UpdateThread) pdfforge.PDFCreator.UI.Presentation.Assistants.Update.UpdateAssistant.Update: Automatic UpdateCheck is disabled
2018-09-26 13:36:45.7291 [Debug] 3336-1 (ProgramThread) pdfforge.PDFCreator.Core.Startup.AppStarts.MaybePipedApplicationStarter.SendMessageOrStartApplication: Starting Cleanup thread
2018-09-26 13:36:45.7291 [Debug] 3336-1 (ProgramThread) pdfforge.PDFCreator.Utilities.Threading.ThreadManager.StartSynchronizedThread: Starting CleanUpThread thread
2018-09-26 13:36:45.7291 [Debug] 3336-1 (ProgramThread) pdfforge.PDFCreator.Utilities.Threading.ThreadManager.StartSynchronizedThread: Adding thread CleanUpThread
2018-09-26 13:36:45.7291 [Debug] 3336-1 (ProgramThread) pdfforge.PDFCreator.Core.Startup.AppStarts.MaybePipedApplicationStarter.Shutdown: Waiting for all threads to finish
2018-09-26 13:36:45.7291 [Debug] 3336-1 (ProgramThread) pdfforge.PDFCreator.Utilities.Threading.ThreadManager.WaitForThreads: Waiting for all synchronized threads to end
2018-09-26 13:36:45.7291 [Debug] 3336-1 (ProgramThread) pdfforge.PDFCreator.Utilities.Threading.ThreadManager.WaitForThreads: 1 Threads remaining
2018-09-26 13:37:00.8834 [Debug] 3336-8 (MainWindowThread) pdfforge.PDFCreator.UI.Presentation.Assistants.FileConversionAssistant.HandleFileList: Launched Drag & Drop
2018-09-26 13:37:00.8990 [Trace] 3336-8 (MainWindowThread) pdfforge.PDFCreator.Core.Printing.Printing.PrintCommand..ctor: Checking PrintCommand for 'Z:\BS\Slides\os_9_sw_pckg\build_package_overview.vsd'
2018-09-26 13:37:00.8990 [Trace] 3336-8 (MainWindowThread) pdfforge.PDFCreator.Core.Printing.Printing.PrintCommand..ctor: The file is printable: PrintTo
2018-09-26 13:37:00.9146 [Debug] 3336-8 (MainWindowThread) pdfforge.PDFCreator.Core.Printing.Printing.PrintCommand.Print: Launching printto for "Z:\BS\Slides\os_9_sw_pckg\build_package_overview.vsd": C:\Program Files\Microsoft Office\Office14\VISIO.EXE /pt %1,%2,%3,%4


#4

The line pdfforge.PDFCreator.Core.Printing.Printing.PrintCommand.Print: Launching printto for "Z:\BS\Slides\os_9_sw_pckg\build_package_overview.vsd": C:\Program Files\Microsoft Office\Office14\VISIO.EXE /pt %1,%2,%3,%4
tells us that PDFCreator used the printto command that was set in your registry. I suspect that this process isn't completed correctly. We did face similar issues with customers using Word and Excel Windows Apps.
You can find the command in your registry somewhere at Computer\HKEY_CLASSES_ROOT\ either located in a key called Visio.something or .filename
It's possible that one of the commands isn't working correctly. It's hard to tell how to fix a particular issue but you could try some alternate commands

Does the printing from inside the software work? (for example FILE -> Print -> PDFCreator Printer)


#5

Ok. Thank you for your respone. Now I seem to have it working. I will do more tests in the next hours.

  1. Printing within MS Visio over PDFCreator worked.
  2. I had to change the registry
    • key: HKEY_CLASSES_ROOT\Visio.Drawing.11\shell\PrintTo\command(Standard)
    • from: "C:\Program Files\Microsoft Office\Office14\VISIO.EXE" /pt "%1","%2","%3","%4"
    • to: "C:\Program Files\Microsoft Office\Office14\VISIO.EXE" /pt "%1" "%2"

Now I can print with:
"C:\Program Files\PDFCreator\PDFCreator.exe" /PrintFile="C:\full\path\to\visio_file.vsd" /Outputfile="C:\full\path\to\visio_file.pdf"


#6

That's great to hear! Please keep us posted. :slight_smile:


#7

So now I have my final solution.

I hacked a small batch script to automatically convert Visio files into PDF files.

@ECHO OFF

SETLOCAL EnableDelayedExpansion

SET PDFCreator="C:\Program Files\PDFCreator\PDFCreator.exe"
SET pdf_file=""
SET vsd_file=""

if "%~1"=="/?" (
    echo "Usage: %0 [<visio_file.vsd>]"
    echo "   <visio_file.vsd> is optional. If specified only the <visio_file.vsd> is converted."
    echo "                    Otherwise all files in the current folder are converted."
    exit /B 0
)

if "%~1"=="" (
    for /r %%f in (*.vsd) do (
        SET pdf_file=%%~df%%~pf%%~nf.pdf

        echo converting %%f
        %PDFCreator% /PrintFile="%%f" /OutputFile="!pdf_file!"

        REM we have to wait a few seconds, because if we are to fast, PDFCreator crashes!
        timeout 3
    )
) else (
    SET vsd_file=%~f1
    SET pdf_file=%~d1%~p1%~n1.pdf

    echo converting !vsd_file!
    %PDFCreator% /PrintFile="!vsd_file!" /OutputFile="!pdf_file!"
)

So far I found one thing I had to work around it: If I convert many files one after the other then sometimes PDFCreator crashes. If I use a small timeout of about 3 seconds, then it seems to be stable and doesn't crash anymore. Maybe there is somewhere a problem in PDFCreator. You can find the error report below:

Error Report for PDFCreator 3.2.2.13517

Exception:
InvalidOperationException
Der Vorgang ist aufgrund des aktuellen Zustands des Objekts ungültig.
at pdfforge.PDFCreator.Core.Startup.ParametersManager.GetAndResetParameters()
at pdfforge.PDFCreator.Core.Workflow.JobBuilder.PreselectedProfile(JobInfo jobInfo, PdfCreatorSettings settings)
at pdfforge.PDFCreator.Core.Workflow.JobBuilder.BuildJobFromJobInfo(JobInfo jobInfo, PdfCreatorSettings settings)
at pdfforge.PDFCreator.Core.Workflow.JobInfoQueueManager.ProcessJob(JobInfo jobInfo)
at pdfforge.PDFCreator.Core.Workflow.JobInfoQueueManager.ProcessJobs()
at pdfforge.PDFCreator.Utilities.Threading.SynchronizedThread.RunThread()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()

Log:
2018-09-26 16:02:20.4343 [Debug] 4708-1 (ProgramThread) pdfforge.PDFCreator.Editions.EditionBase.ProgramBase.StartApplication: Starting PDFCreator
2018-09-26 16:02:20.5591 [Info] 4708-1 (ProgramThread) pdfforge.PDFCreator.Core.Startup.AppStartFactory.LogCommandLineParameters: Command Line parameters: 
/INFODATAFILE=C:\Users\Flo\AppData\Local\Temp\PDFCreator\Spool\192-9E6AD80E570E498D9437BA6F1E1D5BB9.inf
2018-09-26 16:02:20.5747 [Debug] 4708-1 (ProgramThread) pdfforge.PDFCreator.Core.Printing.FolderProvider..ctor: Temp folder is 'C:\Users\Flo\AppData\Local\Temp\PDFCreator\Temp'
2018-09-26 16:02:20.5747 [Debug] 4708-1 (ProgramThread) pdfforge.PDFCreator.Core.Printing.FolderProvider..ctor: Spool folder is 'C:\Users\Flo\AppData\Local\Temp\PDFCreator\Spool'
2018-09-26 16:02:20.6839 [Trace] 4708-1 (ProgramThread) pdfforge.PDFCreator.UI.ViewModels.SettingsLoaderBase.LogProfiles: Profiles:
2018-09-26 16:02:20.6839 [Trace] 4708-1 (ProgramThread) pdfforge.PDFCreator.UI.ViewModels.SettingsLoaderBase.LogProfiles: <Default Profile>
2018-09-26 16:02:20.6839 [Trace] 4708-1 (ProgramThread) pdfforge.PDFCreator.UI.ViewModels.SettingsLoaderBase.LogProfiles: High Compression (small file)
2018-09-26 16:02:20.6839 [Trace] 4708-1 (ProgramThread) pdfforge.PDFCreator.UI.ViewModels.SettingsLoaderBase.LogProfiles: High Quality (large file)
2018-09-26 16:02:20.6839 [Trace] 4708-1 (ProgramThread) pdfforge.PDFCreator.UI.ViewModels.SettingsLoaderBase.LogProfiles: JPEG (graphic file)
2018-09-26 16:02:20.6839 [Trace] 4708-1 (ProgramThread) pdfforge.PDFCreator.UI.ViewModels.SettingsLoaderBase.LogProfiles: PDF/A (long term preservation)
2018-09-26 16:02:20.6839 [Trace] 4708-1 (ProgramThread) pdfforge.PDFCreator.UI.ViewModels.SettingsLoaderBase.LogProfiles: PNG (graphic file)
2018-09-26 16:02:20.6839 [Trace] 4708-1 (ProgramThread) pdfforge.PDFCreator.UI.ViewModels.SettingsLoaderBase.LogProfiles: Print after saving
2018-09-26 16:02:20.6839 [Trace] 4708-1 (ProgramThread) pdfforge.PDFCreator.UI.ViewModels.SettingsLoaderBase.LogProfiles: TIFF (multipage graphic file)
2018-09-26 16:02:20.7619 [Trace] 4708-1 (ProgramThread) pdfforge.PDFCreator.Core.Startup.StartConditions.CheckAllStartupConditions.CheckAll: Checking installation...
2018-09-26 16:02:20.7619 [Trace] 4708-1 (ProgramThread) pdfforge.PDFCreator.Core.Startup.StartConditions.CheckAllStartupConditions.CheckAll: Checking SpoolerRunningCondition
2018-09-26 16:02:20.7775 [Trace] 4708-1 (ProgramThread) pdfforge.PDFCreator.Core.Startup.StartConditions.CheckAllStartupConditions.CheckAll: Checking CheckSpoolFolderCondition
2018-09-26 16:02:20.7775 [Trace] 4708-1 (ProgramThread) pdfforge.PDFCreator.Core.Startup.StartConditions.CheckAllStartupConditions.CheckAll: Checking GhostscriptCondition
2018-09-26 16:02:20.7775 [Trace] 4708-1 (ProgramThread) pdfforge.PDFCreator.Core.Startup.StartConditions.CheckAllStartupConditions.CheckAll: Checking PrinterInstalledCondition
2018-09-26 16:02:20.7775 [Trace] 4708-1 (ProgramThread) pdfforge.PDFCreator.Core.Startup.StartConditions.CheckAllStartupConditions.CheckAll: Checking TerminalServerNotAllowedCondition
2018-09-26 16:02:20.8867 [Trace] 4708-1 (ProgramThread) pdfforge.PDFCreator.UI.ViewModels.SettingsLoaderBase.LogProfiles: Profiles:
2018-09-26 16:02:20.8867 [Trace] 4708-1 (ProgramThread) pdfforge.PDFCreator.UI.ViewModels.SettingsLoaderBase.LogProfiles: <Standardprofil>
2018-09-26 16:02:20.9023 [Trace] 4708-1 (ProgramThread) pdfforge.PDFCreator.UI.ViewModels.SettingsLoaderBase.LogProfiles: Hohe Komprimierung (kleinere Datei)
2018-09-26 16:02:20.9023 [Trace] 4708-1 (ProgramThread) pdfforge.PDFCreator.UI.ViewModels.SettingsLoaderBase.LogProfiles: Hohe Qualität (größere Datei)
2018-09-26 16:02:20.9023 [Trace] 4708-1 (ProgramThread) pdfforge.PDFCreator.UI.ViewModels.SettingsLoaderBase.LogProfiles: JPEG (Grafikdatei)
2018-09-26 16:02:20.9023 [Trace] 4708-1 (ProgramThread) pdfforge.PDFCreator.UI.ViewModels.SettingsLoaderBase.LogProfiles: PDF/A (Langzeitarchivierung)
2018-09-26 16:02:20.9023 [Trace] 4708-1 (ProgramThread) pdfforge.PDFCreator.UI.ViewModels.SettingsLoaderBase.LogProfiles: PNG (Grafikdatei)
2018-09-26 16:02:20.9179 [Trace] 4708-1 (ProgramThread) pdfforge.PDFCreator.UI.ViewModels.SettingsLoaderBase.LogProfiles: Druck nach dem Speichern
2018-09-26 16:02:20.9179 [Trace] 4708-1 (ProgramThread) pdfforge.PDFCreator.UI.ViewModels.SettingsLoaderBase.LogProfiles: TIFF (mehrseitige Grafikdatei)
2018-09-26 16:02:20.9647 [Debug] 4708-1 (ProgramThread) pdfforge.PDFCreator.Core.Startup.AppStarts.MaybePipedApplicationStarter.SendMessageOrStartApplication: Starting attempt 1: 
2018-09-26 16:02:20.9647 [Debug] 4708-1 (ProgramThread) pdfforge.PDFCreator.Core.Startup.AppStarts.MaybePipedApplicationStarter.TryStartApplication: Starting pipe server
2018-09-26 16:02:20.9647 [Debug] 4708-1 (ProgramThread) pdfforge.PDFCreator.Core.Communication.PipeServerManager.StartServer: Starting pipe server thread
2018-09-26 16:02:20.9803 [Debug] 4708-1 (ProgramThread) pdfforge.PDFCreator.Core.Startup.AppStarts.MaybePipedApplicationStarter.TryStartApplication: Reloading settings
2018-09-26 16:02:21.0271 [Trace] 4708-1 (ProgramThread) pdfforge.PDFCreator.UI.ViewModels.SettingsLoaderBase.LogProfiles: Profiles:
2018-09-26 16:02:21.0271 [Trace] 4708-1 (ProgramThread) pdfforge.PDFCreator.UI.ViewModels.SettingsLoaderBase.LogProfiles: <Standardprofil>
2018-09-26 16:02:21.0427 [Trace] 4708-1 (ProgramThread) pdfforge.PDFCreator.UI.ViewModels.SettingsLoaderBase.LogProfiles: Hohe Komprimierung (kleinere Datei)
2018-09-26 16:02:21.0427 [Trace] 4708-1 (ProgramThread) pdfforge.PDFCreator.UI.ViewModels.SettingsLoaderBase.LogProfiles: Hohe Qualität (größere Datei)
2018-09-26 16:02:21.0583 [Trace] 4708-1 (ProgramThread) pdfforge.PDFCreator.UI.ViewModels.SettingsLoaderBase.LogProfiles: JPEG (Grafikdatei)
2018-09-26 16:02:21.0583 [Trace] 4708-1 (ProgramThread) pdfforge.PDFCreator.UI.ViewModels.SettingsLoaderBase.LogProfiles: PDF/A (Langzeitarchivierung)
2018-09-26 16:02:21.0583 [Trace] 4708-1 (ProgramThread) pdfforge.PDFCreator.UI.ViewModels.SettingsLoaderBase.LogProfiles: PNG (Grafikdatei)
2018-09-26 16:02:21.0583 [Trace] 4708-1 (ProgramThread) pdfforge.PDFCreator.UI.ViewModels.SettingsLoaderBase.LogProfiles: Druck nach dem Speichern
2018-09-26 16:02:21.0583 [Trace] 4708-1 (ProgramThread) pdfforge.PDFCreator.UI.ViewModels.SettingsLoaderBase.LogProfiles: TIFF (mehrseitige Grafikdatei)
2018-09-26 16:02:21.1207 [Debug] 4708-1 (ProgramThread) pdfforge.PDFCreator.Core.Startup.AppStarts.MaybePipedApplicationStarter.TryStartApplication: Finding spooled jobs
2018-09-26 16:02:21.1207 [Debug] 4708-1 (ProgramThread) pdfforge.PDFCreator.Conversion.Jobs.SpooledJobFinder.GetJobs: Looking for spooled jobs in 'C:\Users\Flo\AppData\Local\Temp\PDFCreator\Spool'
2018-09-26 16:02:21.1207 [Debug] 4708-1 (ProgramThread) pdfforge.PDFCreator.Conversion.Jobs.SpooledJobFinder.GetJobs: Found inf file: C:\Users\Flo\AppData\Local\Temp\PDFCreator\Spool\192-9E6AD80E570E498D9437BA6F1E1D5BB9.inf
2018-09-26 16:02:21.1207 [Debug] 4708-1 (ProgramThread) pdfforge.PDFCreator.Core.Workflow.JobInfoQueue.Add: New JobInfo: C:\Users\Flo\AppData\Local\Temp\PDFCreator\Spool\192-9E6AD80E570E498D9437BA6F1E1D5BB9.inf
2018-09-26 16:02:21.1363 [Debug] 4708-1 (ProgramThread) pdfforge.PDFCreator.Core.Workflow.JobInfoQueue.Add: DocumentTitle: Visio-build.vsd
2018-09-26 16:02:21.1363 [Debug] 4708-1 (ProgramThread) pdfforge.PDFCreator.Core.Workflow.JobInfoQueue.Add: ClientComputer: \\WIN7_MSDN_WS
2018-09-26 16:02:21.1363 [Debug] 4708-1 (ProgramThread) pdfforge.PDFCreator.Core.Workflow.JobInfoQueue.Add: SessionId: 1
2018-09-26 16:02:21.1363 [Debug] 4708-1 (ProgramThread) pdfforge.PDFCreator.Core.Workflow.JobInfoQueue.Add: PrinterName: PDFCreator
2018-09-26 16:02:21.1363 [Debug] 4708-1 (ProgramThread) pdfforge.PDFCreator.Core.Workflow.JobInfoQueue.Add: JobCounter: 185
2018-09-26 16:02:21.1363 [Debug] 4708-1 (ProgramThread) pdfforge.PDFCreator.Core.Workflow.JobInfoQueue.Add: JobId: 192
2018-09-26 16:02:21.1363 [Debug] 4708-1 (ProgramThread) pdfforge.PDFCreator.Core.Workflow.JobInfoQueue.Add: Added JobInfo: C:\Users\Flo\AppData\Local\Temp\PDFCreator\Spool\192-9E6AD80E570E498D9437BA6F1E1D5BB9.inf
2018-09-26 16:02:21.1363 [Debug] 4708-1 (ProgramThread) pdfforge.PDFCreator.Utilities.Threading.ThreadManager.StartSynchronizedThread: Adding thread ProcessingThread
2018-09-26 16:02:21.1363 [Debug] 4708-9 (ProcessingThread) pdfforge.PDFCreator.Core.Workflow.JobInfoQueueManager.ProcessJobs: New PrintJob C:\Users\Flo\AppData\Local\Temp\PDFCreator\Spool\192-9E6AD80E570E498D9437BA6F1E1D5BB9.inf from Printer PDFCreator
2018-09-26 16:02:21.1519 [Debug] 4708-1 (ProgramThread) pdfforge.PDFCreator.Core.Startup.AppStarts.NewPrintJobStart.StartApplication: Adding new job
2018-09-26 16:02:21.1519 [Trace] 4708-9 (ProcessingThread) pdfforge.PDFCreator.Core.Workflow.JobInfoQueueManager.ProcessJob: Creating job workflow
2018-09-26 16:02:21.1519 [Trace] 4708-9 (ProcessingThread) pdfforge.PDFCreator.Core.Workflow.JobBuilder.BuildJobFromJobInfo: Building Job from JobInfo
2018-09-26 16:02:21.1831 [Debug] 4708-1 (ProgramThread) pdfforge.PDFCreator.Core.Workflow.JobInfoQueue.Add: New JobInfo: C:\Users\Flo\AppData\Local\Temp\PDFCreator\Spool\192-9E6AD80E570E498D9437BA6F1E1D5BB9.inf
2018-09-26 16:02:21.1831 [Error] 4708-9 (ProcessingThread) pdfforge.PDFCreator.Core.Workflow.JobInfoQueueManager.ProcessJobs: There was an error while processing the print jobs: System.InvalidOperationException: Der Vorgang ist aufgrund des aktuellen Zustands des Objekts ungültig.
   bei pdfforge.PDFCreator.Core.Startup.ParametersManager.GetAndResetParameters()
   bei pdfforge.PDFCreator.Core.Workflow.JobBuilder.PreselectedProfile(JobInfo jobInfo, PdfCreatorSettings settings)
   bei pdfforge.PDFCreator.Core.Workflow.JobBuilder.BuildJobFromJobInfo(JobInfo jobInfo, PdfCreatorSettings settings)
   bei pdfforge.PDFCreator.Core.Workflow.JobInfoQueueManager.ProcessJob(JobInfo jobInfo)
   bei pdfforge.PDFCreator.Core.Workflow.JobInfoQueueManager.ProcessJobs()
2018-09-26 16:02:21.1831 [Debug] 4708-1 (ProgramThread) pdfforge.PDFCreator.Core.Workflow.JobInfoQueue.Add: DocumentTitle: Visio-build.vsd
2018-09-26 16:02:21.1987 [Fatal] 4708-9 (ProcessingThread) pdfforge.PDFCreator.Editions.EditionBase.ProgramBase.CurrentDomain_UnhandledException: Uncaught exception, IsTerminating: True
2018-09-26 16:02:21.1987 [Debug] 4708-1 (ProgramThread) pdfforge.PDFCreator.Core.Workflow.JobInfoQueue.Add: ClientComputer: \\WIN7_MSDN_WS
2018-09-26 16:02:21.1987 [Debug] 4708-1 (ProgramThread) pdfforge.PDFCreator.Core.Workflow.JobInfoQueue.Add: SessionId: 1
2018-09-26 16:02:21.1987 [Debug] 4708-1 (ProgramThread) pdfforge.PDFCreator.Core.Workflow.JobInfoQueue.Add: PrinterName: PDFCreator
2018-09-26 16:02:21.1987 [Debug] 4708-1 (ProgramThread) pdfforge.PDFCreator.Core.Workflow.JobInfoQueue.Add: JobCounter: 185

Environment:
Windows 6.1.7601

Platform:
x86

Environment variables:
Path=C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\
SESSIONID=1
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
USERDOMAIN=WIN7_MSDN_WS
PROCESSOR_ARCHITECTURE=x86
SystemDrive=C:
PUBLIC=C:\Users\Public
APPDATA=C:\Users\Flo\AppData\Roaming
windir=C:\Windows
LOCALAPPDATA=C:\Users\Flo\AppData\Local
SESSIONNAME=Console
USERPROFILE=C:\Users\Flo
ProgramFiles=C:\Program Files
PROCESSOR_LEVEL=6
FP_NO_HOST_CHECK=NO
HOMEPATH=\Users\Flo
COMPUTERNAME=WIN7_MSDN_WS
USERNAME=Flo
NUMBER_OF_PROCESSORS=2
PROCESSOR_IDENTIFIER=x86 Family 6 Model 158 Stepping 9, GenuineIntel
SystemRoot=C:\Windows
ComSpec=C:\Windows\system32\cmd.exe
LOGONSERVER=\\WIN7_MSDN_WS
TEMP=C:\Users\Flo\AppData\Local\Temp
CommonProgramFiles=C:\Program Files\Common Files
TMP=C:\Users\Flo\AppData\Local\Temp
PROCESSOR_REVISION=9e09
PSModulePath=C:\Windows\system32\WindowsPowerShell\v1.0\Modules\
ALLUSERSPROFILE=C:\ProgramData
OS=Windows_NT
ProgramData=C:\ProgramData
HOMEDRIVE=C:

Additional Data:
Thread=ProcessingThread

#8

Got it working with .doc files. looks promising, even though the word window pops up each time while printing. (again a registry printto issue on my side..)
The script isn't working for visio files without adjusting the registry, is it?

If you need an automatic conversion of files in a folder, you might want to look at PDFCreators HotFolder. Your script is like a very simple, manual version of HotFolder. :grin:


#9

Yes, only with the registry change described above, the conversion of MS Visio files with PDFCreator is possible.

As far as I see: the HotFolder does have a different concept. I don't want to move my files to different folders, because they are part of my repositories that I use on different computers. The converted PDF files are then used by other automatic build steps (latex), ... I think with my script I'm more flexible.

Could you reproduce the crash? The crashes happened on a Windows 7 with MS Word 2010 and MS Visio 2010. I could reproduce it with both. But on the Windows 10 I couldn't see a crash, because MS Visio 2016 needs much more time to start.


#10

Sorry, I forgot to mention the crash.
The script doesn't crash for me (Windows 10) after removing the timeout. Of course, it's possible that your visio files are larger than my word files what leads to a delayed spooling. I will need to ask a developer to look into the log for more information. I will try to recreate the issue on a virtual machine using Windows 7 if I'm able to install Word on it.

I think you might be able to work around the crash using the PDFCreator COM Interface. The COM Interface should make sure that all prints are correctly queued and processed.
Find the COM Interface documentation here: http://docs.pdfforge.org/pdfcreator/3.2/en/pdfcreator/com-interface/
You can find some sample scripts in the PDFCreator program folder.
I will also try to figure out how to adjust your script to use the COM Interface. (Unfortunately, I'm a starter when it comes to the COM Interface & I can only look at it if the support mailbox is empty.)