Enhanced Batch Processing lets you convert documents to Flash programmatically without
user assistance using operating system command line. Enhanced Batch Processing
is available only in Server mode. Another option for automatic document
conversion in Server mode is
Print2Flash OLE Automation API.
Enhanced Batch Processing is activated when launching Print2Flash Server application
from operating system command line with certain parameters. The command line
syntax is as follows:
If any file name or path parameters contain spaces, they must be enclosed in
double quotes. In options parameter you can list one or more options.
Most options corresponds to the properties and methods of
Print2Flash OLE Automation API objects. The
general syntax of an option is:
Here OptionName is the name of the option from the table below, and
OptionValue specifies the option value and must be of the type specified in the
table. For example, to specify German document interface language, you
need to specify this option:
The available options are listed in the table below.
| Option name |
Value type |
Description |
|
Document interface |
| InterfaceOptions |
Integer |
Similar to
InterfaceOptions property of
Profile
object. |
| Language |
String |
Similar to
Language property of
Profile object. |
|
Skins |
| SkinName |
String |
The name of the predefined
skin to use. If other skin parameters
listed below are specified, they override this skin settings. If this
parameter is omitted, the default Skin
object settings are used. |
| ToolbarBgrColor |
Integer |
Similar to ToolbarBgrColor property of
Skin object. |
| OverButColor |
Integer |
Similar to OverButColor property of
Skin object. |
| OverRectColor |
Integer |
Similar to OverRectColor property of
Skin object. |
| DownButColor |
Integer |
Similar to DownButColor property of
Skin object. |
| DownRectColor |
Integer |
Similar to DownRectColor property of
Skin object. |
| DocBgrColor |
Integer |
Similar to DocBgrColor property of
Skin object. |
| ScrollBarColor |
Integer |
Similar to ScrollBarColor property of
Skin object. |
| TextHighlightColor |
Integer |
Similar to TextHighlightColor property of
Skin object. |
| ColorAdjustment |
String |
Similar to ColorAdjustment property of
Skin object. |
| BtnColorAdj |
Boolean |
Similar to BtnColorAdj property of
Skin object. Can be either "on" or "off". |
| ZoomHandleOffset |
Integer |
Similar to ZoomHandleOffset property of
Skin object. |
| LogoURL |
String |
Similar to LogoURL property of
Skin object. |
| HelpButtonURL |
String |
Similar to HelpButtonURL property of
Skin object. |
| TBBgrImgBehavior |
Integer |
Similar to TBBgrImgBehavior property of
Skin object. |
| TBImage<Integer> |
String |
Specifies an image file name to use for a toolbar
button or control. The image to be set is specified as a number at the end
of the parameter name. This number must be one of the values of
TOOLBARIMAGE enumeration. For
example, parameter name TBImage10 corresponds to the Next Page button
image. This parameter accomplishes a similar function as SetToolbarImage
method of the Skin object. |
| NoSkin |
Boolean |
When this option is "on", it tells Print2Flash that no
skin is used and no skin images are
stored inside the document. It is helpful for reducing of document file size
in case you either don't
need the document toolbar at all or use
your own custom document viewer for
single file mode. When this option is "on", it cancels using of the
default skin and overrides the SkinName and
TBImage parameters. Can be "on" or 'off". |
|
Document protection |
| ProtectionOptions |
Integer |
Similar to
ProtectionOptions property of
Profile object. |
| RestrictionDomains |
String |
Similar to RestrictionDomains property of
Profile object. |
|
Document optimization |
| FlashVersion |
Integer |
Similar to
FlashVersion property of
Profile
object. |
| CompressionMethod |
Integer |
Similar to
CompressionMethod property of
Profile
object. |
| UseJpeg |
Boolean |
Similar to UseJpeg property of
Profile object. Can be either "on" or "off". |
| JpegQuality |
Integer |
Similar to
JpegQuality property of
Profile object.
If specified, it is implied that UseJpeg option is on. |
|
Hyperlinks |
| ParseLinks |
Boolean |
Similar to ParseLinks property of
Profile object. Can be
either "on" or "off". |
| ExtractLinks |
Integer |
Similar to ExtractLinks property of BatchProcessingOptions
object. |
| LinkTargetAuto |
Boolean |
Similar to
LinkTargetAuto property of
Profile object. Can be
either "on" or "off". |
| LinkTarget |
Integer |
Similar to
LinkTarget property of BatchProcessingOptions
object. |
|
Output format |
| OutputFormat |
Integer |
Similar to OutputFormat property of
Profile
object. |
| DocTemplate |
String |
Similar to DocTemplate property of
Profile
object. If specified, TemplateType parameter is
assumed to be equal to 1 (TEMPLATE_CUSTOM). |
| TemplateType |
Integer |
Similar to TemplateType property of
Profile
object. |
| PageFileName |
String |
Similar to PageFileName property of
Profile
object. |
| OutputResolution |
Integer |
Similar to OutputResolution property of
Profile
object. |
| ASVersion |
Integer |
Similar to ASVersion property of
Profile
object. |
| GenerateExternalViewer |
Boolean |
Similar to GenerateExternalViewer property of BatchProcessingOptions
object. Can be either "on" or "off". |
|
Watermarks |
| WatermarkImage |
String |
Similar to WatermarkImage property of
Profile
object. |
| WatermarkScale |
Integer |
Similar to WatermarkScale property of
Profile
object. |
| WatermarkTransparency |
Integer |
Similar to WatermarkTransparency property of
Profile
object. |
| WatermarkAnchor |
String |
Similar to WatermarkAnchor property of
Profile
object. |
| WatermarkXOffset |
Integer |
Similar to WatermarkXOffset property of
Profile
object. |
| WatermarkYOffset |
Integer |
Similar to WatermarkYOffset property of
Profile
object. |
|
Page thumbnails |
| ThumbnailPageRange |
String |
Similar to
ThumbnailPageRange property of
Profile
object. |
| ThumbnailFileName |
String |
Similar to ThumbnailFileName property of
Profile
object. |
| ThumbnailFormat |
Integer |
Similar to
ThumbnailFormat property of
Profile
object. |
| ThumbnailImageHeight |
Integer |
Similar to ThumbnailImageHeight property of
Profile
object. |
| ThumbnailImageWidth |
Integer |
Similar to ThumbnailImageWidth property of
Profile
object. |
|
Metadata file |
| CreateMetaDataFile |
Boolean |
Similar to
CreateMetaDataFile property of
Profile
object. Can be either "on" or "off". |
| MetaDataFileFormat |
Integer |
Similar to MetaDataFileFormat property of
Profile
object. |
| MetaDataFileName |
String |
Similar to
MetaDataFileName property of
Profile
object. |
|
Log file |
| CreateLogFile |
Boolean |
Similar to
CreateLogFile property of
BatchProcessingOptions object. Can be either "on" or "off". Default is "off"; |
| LogFileName |
String |
Similar to
LogFileName property of
BatchProcessingOptions object. If this option is specified, it implies that
CreateLogFile option is also specified. By
default, the log is written to p2fServer.exe.log file located in the same
directory where Print2Flash is installed. |
| LoggingLevel |
Integer |
Similar to
LoggingLevel property of
BatchProcessingOptions object.
Default value is 0. |
|
Special document processing |
| UseAutomation |
Integer |
Similar to UseAutomation property of
BatchProcessingOptions object. |
| KillAllAutomationProcesses |
Integer |
Similar to KillAllAutomationProcesses property of
BatchProcessingOptions object. |
| Excel.SheetRange |
String |
Similar to SheetRange property of
ExcelOptions object. |
| Excel.OverridePrintQuality |
Boolean |
Similar to OverridePrintQuality property of
ExcelOptions object. Can be either "on"
or "off". |
| PowerPoint.FitToPage |
Boolean |
Similar to FitToPage property of
PowerPointOptions object. Can be
either "on" or "off". |
| PowerPoint.PrintHiddenSlides |
Integer |
Similar to PrintHiddenSlides property of
PowerPointOptions object. Can be
either "on" or "off". |
|
Printing preferences |
| FormName |
String |
Similar to
SetFormName method of
PrintingPreferences
object. |
| Orientation |
Integer |
Similar to
Orientation property method of
PrintingPreferences object. |
|
PaperLength |
Integer |
PaperLength and PaperWidth can be specified to denote
a custom paper size similar to
SetCustomPaperSize method of
PrintingPreferences object. |
| PaperWidth |
Integer |
See PaperLength option above. |
| Resolution |
Integer |
Similar to
Resolution property of
PrintingPreferences object. |
|
Abnormal situation control |
| ActivityTimeout |
Integer |
Similar to ActivityTimeout property of
BatchProcessingOptions object. |
|
AfterPrintingTimeout |
Integer |
Similar to
AfterPrintingTimeout property of
BatchProcessingOptions object.
Default is 10 seconds. |
|
BeforePrintingTimeout |
Integer |
Similar to
BeforePrintingTimeout property
of BatchProcessingOptions
object. Default is 30 seconds. |
|
KillProcessIfTimeout |
Boolean |
Similar to
KillProcessIfTimeout
property of BatchProcessingOptions
object. Can be either "on" or "off". If omitted, Print2Flash determines the
best value for this setting automatically. |
| KillSplWOW64 |
Boolean |
Similar to
KillSplWOW64
property of BatchProcessingOptions
object. Can be either "on" or "off". If omitted, Print2Flash determines the
best value for this setting automatically. |
| PressPrintButton |
Boolean |
Similar to
PressPrintButton property of
BatchProcessingOptions object.
Can be either "on" or "off". If omitted, Print2Flash determines the best
value for this setting automatically. |
| PrintingTimeout |
Integer |
Similar to
PrintingTimeout
property of BatchProcessingOptions
object. Default is infinite time. |
|
Other options |
| IncludeSubDirs |
Boolean |
Boolean indicator specifying whether to look for files
to convert in all subdirectories of the sourcefiledir directory
in addition to the files located directly in sourcefiledir directory.
This option can only be used for directory conversion. Can be either "on" or
"off". By default it is "off". |
|
PageRange |
String |
Similar to
PageRange property of
BatchProcessingOptions object. |
To launch Print2Flash in batch mode, click Start button in Windows and select
Run. In the opened dialog window type the command line according to the
syntax and click OK.
Then Print2Flash is launched in the background (without user interface) and
starts converting specified documents. After a document is converted, the output
Print2Flash document file is created in the specified output folder. Note that
though Print2Flash is launched without user interface in batch processing mode,
the applications which send documents to Print2Flash may display user interface.
The following example converts a document named "C:\MyDocs\Report.xls" to
Flash document named "C:\MyDocs\Report.xls.swf" and enables only Drag, Select
Text, Previous Page and Next Page buttons in the resulting Flash document:
The next example converts
all documents in a directory named "C:\MyDocs" to
Flash documents written into "C:\FlashDocs" directory and disables
printing and copying text from the resulting Flash documents:
The example below converts
a document named "C:\MyDocs\Conference.txt" to
a Flash document named "D:\Publish\Report2.swf" selecting Landscape page
orientation and Letter paper size for the output file pages: