The IPostProcessing interface controls the post-processing of documents being converted
Properties
String CustomAppParameters
Defines any parameters that will be passed on to the application referenced in the CustomAppPath property once the conversion process is complete. Only available if the Mode property has the value PP_OPEN_CUSTOM_APP. In addition to a static string, parameters may include macros which will be replaced with actual values at runtime. It is both readable and writable.
Macro
Description
Example Value
&[OutFile(0)]
Full path and output file name
C:\UDC OutputFiles\My Document.pdf
&[OutFile(1)]
Full path and output file name in 8.3 format;
C:\UDCOUT~1\MYDOCU~1.pdf
&[Copies]
Number of copies you set for the application. Universal Document Converter creates one file per output page.
1
String CustomAppPath
Points to the application to be run once the conversion process is complete. Only available if the Mode property has the value PP_OPEN_CUSTOM_APP. It is both readable and writable.
Enum Mode
Defines the operation to be performed once the conversion process is complete. It is both readable and writable.
Constant
Value
Description
PP_NONE
0
No post-processing
PP_OPEN_FOLDER
1
Folder with output files will be opened once conversion is complete
PP_OPEN_DEF_VIEWER
2
Once conversion is complete, all output files will be opened in the application set as default for this type of file
PP_OPEN_CUSTOM_APP
3
Once conversion is complete, the application the CustomAppPath property points to will be run with the parameters listed in the CustomAppParameters property
Examples
Visual Basic 6
Dim objUDC As IUDC
Dim itfPrinter As IUDCPrinter
Dim itfProfile As IProfile
Set objUDC = New UDC.APIWrapper
Set itfPrinter = objUDC.Printers("Universal Document Converter")
Set itfProfile = itfPrinter.Profile
itfProfile.PostProcessing.Mode = PP_OPEN_CUSTOM_APP
itfProfile.PostProcessing.CustomAppPath = "C:\my_app.exe"
itfProfile.PostProcessing.CustomAppParameters = "&[OutFile(0)]"