Skip to main content

Watched Folders

Watched Folders automatically convert documents copied to a preconfigured input folder to a preconfigured output folder. Optionally, files in subdirectories are also converted.

The Watched Folders depend on a Windows service. In the Conversion Service, watched folders are configured as a connector.

tip

For more information about watched folders in the Conversion Service, see Folder Connectors.

Creating a new watched folder

While you used the Configuration Editor to create new watched folders in the 3-­Heights® Document Converter Service, you use the Conversion Service Configurator to add watched folders.

During installation, the Conversion Service creates an example watched folder configuration for PDF/A-2 conversion:

  • C:\ConversionService\Archive PDFA-2: Main folder for the sample configuration.
    • Input: Folder where the input files are dropped for conversion.
    • Output: Folder where the converted output files are stored if the conversion was successful without warnings.
    • Warning: Folder where the converted output files are stored if warnings are generated during conversion.
      This is also where the log file containing the warnings for that file is stored.
    • Failed: Folder where the input file is moved if the conversion has failed.
      This is also where the log file containing the error for that file is stored.

You can change the location of this folder to suit your requirements and add any number of additional configurations.

Process for creating a new watched folder configuration in the Conversion Service

  1. Open the Conversion Service Configurator.
  2. Go to the Integration tab.
  3. Press Add to create a new configuration.
3-­Heights® Document ConverterConversion Service
Add Watched Folder in the 3-­Heights® Document ConverterAdd watched folder in the Integration tab of the Conversion Service Configurator
  1. Configure the desired watched folder.
3-­Heights® Document ConverterConversion Service
Watched folderConfigure the settings for the watched folder
Root directoryNot applicable
PickupInput
OutputOutput with Success, SuccessOrWarnings
WarningsOutput with Warnings
FailedOutput with Failed

Job & document options

Unlike 3-­Heights® Document Converter where you could set job and document options with -j Set Converter Job Options and -b Set Document Options commands, the options are not configured in the watched folder itself. A workflow and profile needs to be selected in the Configurator when creating or editing your Watched Folder configuration. The settings within the selected Workflow-Profile combination are taken into account when converting documents placed in the watched folder.

3-­Heights® Document ConverterConversion Service
Job options for watched foldersJob options for watched folders

Log files

In the 3-­Heights® Document Converter, an error log file was created in the output directory in the event of errors during the conversion process.

To receive a detailed log file in the Conversion Service, you simply configure a new output connector Create Text File. You configure what kind of logs you want to receive and where you want to store these files.

3-­Heights® Document ConverterConversion Service
Log file locationLog files for watched folders
Log files for watched folders

Recursive conversion

In the 3-­Heights® Document Converter by setting the option -R, the Watched Folder service searches in subfolders of drop directory also. The output is stored in corresponding subfolder of the output directory.

In the Conversion Service, these two features can be controlled separately:

  • If the Recursive option is enabled on a Watched Folder, the service also searches for files in subfolders of the input folder.
    This works in combination with any type of output connector, not just output folders.
  • If the Recreate Structure option is enabled on a corresponding Output Folder, the output files are stored in corresponding subfolders inside the output folder.
    If the setting is disabled, all files are stored directly in the output folder without subfolders, regardless of their original location within the input folder.
Recursive searchRecreate folders
Recursive search optionRecreate folders option

Prefixes and overwriting files

In the 3-­Heights® Document Converter, you could use a job-specific prefix to number the files to prevent files with the same name from being overwritten.

The Conversion Service does not support prefixes. Instead, the Overwrite option in the Output Folder connector lets you determine whether you want to rename the output file if another file with the same name exists or overwrite the existing file.

Migrating watched folder options

This table contains the equivalent setup in the Conversion Service to migrate your existing 3-­Heights® Document Converter configuration.

Option in
3-­Heights® Document Converter
Equivalent in
Conversion Service
Note
AutoDeleteOutput Folder connector: Job Status = Success and Fileset = OriginalsFor true, don't configure an output folder for these conditions.
AutoDeleteAllOutput Folder connector: Job Status = Error and Fileset = OriginalsFor true, don't configure an output folder for these conditions.
JobPrefixOutput Folder connector: Overwrite toggle offIf the "Overwrite" option is disabled, filename conflicts can be avoided by using a suffix: " (1)", " (2)", and so on. Adding a prefix to be used where there are no name conflicts is not supported.
KeepTimeForFailedNot available (0)Files in the output folders are never deleted automatically
KeepTimeForSucceededNot available (0)Files in the output folders are never deleted automatically
LogLevelCustom logCreate custom logs using NLog
LogPathLog directoryThis setting applies to all services and client applications of the Conversion Service
PollingIntervalNot applicable
ServiceHostService Host AddressConversion Service Configurator: Conversion Service tab > Configuration / The computer name or network address where the Conversion Service hosted.
ServicePortService Host AddressDefault Port: http://localhost:13033/conversion/v1.0/rest
ThreadsNot applicableThe total number of Watched Folders is visible in the Integration tab.
ThreadConfigured watched folderAll configured Watched Folders listed in the Integration tab.
WorkerThreadsNot applicableConcurrency depends on the system’s CPU and the license

Migrating watched folder thread options

This table contains the equivalent setup in the Conversion Service to migrate your existing 3-­Heights® Document Converter configuration.

Option in
3-Heights® Document Converter
Equivalent in
Conversion Service
Note
-b ‹opt› set document optionsNot applicableAll settings have to be configured in the profile settings. Document options are not available for watched folders.
-di delete input files (in job control files)Not applicable
-j set converter job optionsUse Profile SettingsJob options are configured in the dedicated profile. See Job options
-l create error logCreate Text FileExplicitly create an output connector to write the log as a text file inside the corresponding output folder.
-o specify output directoryOutput Folder connector: Job Status -> Success or SuccessOrWarningAdd an output folder connector with the corresponding conditions.
-of specify failed directoryOutput Folder connector: Job Status -> ErrorAdd an output folder connector with the corresponding conditions.
-op unprefix outputNot applicable
-os specify directory for succeeded jobsOutput Folder connector: Job Status -> Success; File Set -> OriginalsAdd an output folder connector with the corresponding conditions.
-ow ignore warningsOutput Folder connector: Job Status -> SuccessOrWarningUse the condition SuccessOrWarnings instead of just Success for your main output folder. You can configure the events to raise a warning or error in more detail in the Profile configuration: Conversion Settings -> Warnings
-owf warnings output folderOutput Folder connector: Job Status -> WarningsAdd an output folder connector with the corresponding conditions.
-ox IDX nameNot applicableOnly used in conjunction with -1 and -1l, which are both not supported.
-o0 keep outputNot supportedNo output files are produced for failed conversions.
-o1 second output directoryOutput Folder connector: Job Status -> SuccessCreate additional output folder within your watched folder
-o2 force succeededOutput Folder connector: Job Status -> Success / SuccessOrWarning / Error; File Set -> OriginalsThe Conversion Service allows an arbitrary number of output directories.
-R Search for dropped filesWatched Folder: Recursive and Output Folder: Recreate StructureEnable both settings.
-u unzip output to folderNot applicableThe Conversion Service does not produce ZIP output files.
-w specify the path to the root directoryNot applicableAll folder paths can be configured individually.
-wd specify the drop pathWatched FolderConfigure the input folder within the watched folder
-wfi ignore files with certain extensionsNot available
-wfs process only files with certain extensionsNot available
-1 & -1l single page output (TIFF)Not supportedTIFF output is not supported by the Conversion Service.