34
Chapter7-CommandLineBatchProcessing
SpecifyingMoreSourceThanDestinationDirectories
Youcanspecifymoresourcethandestinationdirectorieswhenusingthecommandlinefor
runningSnowBatch.
Note:
Iftherearemoresourcethandestinationdirectorieslisted,thelastdestinationdirectory
willbeassociatedwiththesurplussourcedirectories.
Example7.6:SpecifyingMoreSourcethanDestinationDirectories
c:\>sbcmdline -s c:\Snowbound\ -s c:\Snowbound\SubDir1 -d
c:\SnowboundOutc:\>sbcmdline -s c:\Snowbound\ -d
c:\SnowboundOut -r
Thefirstcommandconvertsallimagesinthec:\SnowbounddirectorytoTIFF_G4_FAXand
placestheminthec:\SnowboundOutdirectory.Thelogfilec:\SnbdLog.1.txtis
created.Italsoconvertsallimagesinthec:\Snowbound\SubDir1directorytoTIFF_G4_
FAXandplacestheminthec:\SnowboundOutdirectory.Thelogfilec:\SnbdLog.2.txt
iscreatedforthisportionoftheconversion.
Thesecondcommandconvertsallimagesinthec:\Snowbounddirectoryandallofits
subdirectoriestoTIFF_G4_FAXandplacestheminthec:\SnowboundOutdirectory.Thelog
filec:\SnbdLog.1.txtiscreated.
SpecifyingtheReplicatedOutputSubdirectory
Youcanspecifythatimagesconvertedfromtheoriginalsubdirectoriesgotocorresponding
replicatedsubdirectoriesunderthedestinationdirectorieswhenusingthecommandlinefor
runningSnowBatch.
Example7.7:SpecifyingtheReplicatedOutputSubdirectory
c:\>sbcmdline -s c:\snowbatch\input -d c:\snowbatch\output -e
.tif -f 10 -r -R
Thiscommandconvertsallimagesinthec:\snowbatch\input directoryandallofits
subdirectoriesfromPDFtoTIFFandplacestheminthec:\snowbatch\outputdestination
directorywiththesubdirectoriesreplicated.The-rcommandconvertsimagesfromtheoriginal
subdirectories.The-Rcommandplacesconvertedimagesintoreplicatedsubdirectoriesinthe
destinationdirectory.Withoutthe-rcommand,the-Rcommandwillbeignored.
SpecifyingAnOutputFormat
YoucanspecifyanoutputformatwhenusingthecommandlineforrunningSnowBatch.
43
36
Chapter7-CommandLineBatchProcessing
Note:
SeeAppendix A,
Supported
File
Formats
forvalidformats.Youcanspecifyeitherthe
formatnameornumber.
Example7.8:SpecifyingAnOutputFormat
c:\>sbcmdline -s c:\Snowbound\ -f TIFF_UNCOMPRESSED
c:\>sbcmdline -s c:\Snowbound\ -f 0
Thiscommandconvertsallimagesinthec:\SnowbounddirectorytoTIFF_UNCOMPRESSED
andplacestheminthec:\directory.Thelogfilec:\SnbdLog.1.txt iscreated.
SpecifyingSplittingMulti-pageFiles
Youcansplitmulti-pagefileswhenusingthecommandlineforrunningSnowBatch.Separate
filesarecreatedduringtheconversion.SeeSplitting
Up
Multi-
page
Files
formoreinformation.
Example7.9:SpecifyingSplittingMulti-pageFiles
c:\>sbcmdline -s c:\Snowbound\image3.4pages.sbd -p
Thiscommandsplitstheimage3.4pages.sbdimageinthec:\Snowbounddirectory,convertsit
toTIFF_G4_FAX,andplacesseparatefilesinthec:\directory.Thelogfile
c:\SnbdLog.1.txtiscreated.
CombiningMultipleFilesintoOneFile
YoucancombinefilesintoonefilewhenusingthecommandlineforrunningSnowBatchasin
theexamplebelow.
Example7.10:CombiningMultipleFilesintoOneFile
c:\>sbcmdline -s file1 -s file2 -d destfile
Thiscommandcombinesfile1withfile2andcreatesthedestfile.
Anotherwaytocombinemultiplefilesintoonefileistousethecommandlineseveraltimesand
usethesamedestinationnameasintheexamplebelow.
Example7.11:UsingtheCommandLineSeveralTimes
44
46
Chapter7-CommandLineBatchProcessing
c:\>sbcmdline -s file1 -d destfile
c:\>sbcmdline -s file2 -d destfile
c:\>sbcmdline -s file3 -d destfile
Thiscommandcombinesfile1,file2,andfile3tocreatethedestfile.
SpecifyingLoggingOptions
Youcanspecifywheretheconversionlogiscreatedandwhatitiscalledwhenusingthe
commandlineforrunningSnowBatch.SeeSelecting
Logging
Options
formoreinformation.
Example7.12:SpecifyingLoggingOptions
c:\>sbcmdline -s c:\Snowbound\ -l mylog
c:\>sbcmdline -s c:\Snowbound\ -l c:\Snowbound\mylog
Thefirstcommandconvertsallimagesinthec:\Snowbound directorytoTIFF_G4_FAXand
placestheminthec:\directory.Thelogfilec:\mylog.1.txtiscreated.
Thesecondcommandconvertsallimagesinthec:\Snowbound directorytoTIFF_G4_FAX
andplacestheminthec:\directory.Thelogfilec:\Snowbound\mylog.1.txtiscreated.
SpecifyingCustomExtensions
Youcanspecifycustomextensionsfortheconvertedfileswhenusingthecommandlinefor
runningSnowBatch.Thedefaultextensionis“.sbd.”SeeSelecting
the
Destination
Format
for
moreinformation.
Example7.13:SpecifyingCustomExtensions
c:\>sbcmdline -s c:\Snowbound\ -e .myext
Thiscommandconvertsallimagesinthec:\SnowbounddirectorytoTIFF_G4_FAXandplaces
theminthec:\directory.Eachimageendswiththeextensionmyext.Thelogfile
c:\SnbdLog.1.txtiscreated.
SpecifyingDocumentOptions
YoucanspecifytheheightandwidthoftheconvertedPDFimagesandthedocumentinput
variableswhenusingthecommandlineforrunningSnowBatch.SeeSetting
Document
Input
and
Output
Options
formoreinformation.Youcanspecifydocumentoptionsforthefollowing
imagetypes:
l
PDF
l
PCL
45
53
Chapter7-CommandLineBatchProcessing
l
DOC(Word)
l
XLS(Excel)
l
PPT(PowerPoint)
l
AFP
l
RTF
Note:
ChangingtheresolutionandbitdepthcouldspeedupconversionofPDFdocuments.
ChangingthebitdepthofacolorPDFto1willcreateamonochromeimage.
Example7.14:SpecifyingDocumentOptions
c:\>sbcmdline -s c:\Snowbound\ -i 200,1
c:\>sbcmdline -s c:\Snowbound\ -f PDF -o 612,792
Thefirstcommandconvertsallimagesinthec:\SnowbounddirectorytoTIFF_G4_FAXand
iftheyarePDFs,theimagesarereadinat200resolutionandabitdepthof1.Theimagesare
placedinthec:\ directory.Thelogfilec:\SnbdLog.1.txtiscreated.
Thesecondcommandconvertsallimagesinthec:\SnowbounddirectorytoPDFswithan
outputsizeof8.5by11inches(8.5*72=612and11*72=792),andplacestheminthec:\
directory.Thelogfile c:\SnbdLog.1.txtiscreated.
SettingtheOverlayPathfortheAFPFileFormat
YoucanspecifytheoverlaypathfortheAPFfileformatwhenusingthecommandlinefor
runningSnowBatch.SeeSetting
the
Overlay
Path
and
Font
Mapping
Options
formore
information.
Example7.15:SettingtheOverlayPathfortheAFPFileFormat
c:\>sbcmdline -s c:\Snowbound\ -d c:\destpath -f AFP -y
c:\overlaypath
Thiscommandsetsc:\overlaypathastheoverlaypath.Itconvertsallimagesinthe
c:\Snowbound directorytotheAFPfileformatandplacestheminthec:\destpath
directory.
SettingtheOutputNamingConvention
Youcanspecifytheoutputnamingconventionwhenusingthecommandlineforrunning
SnowBatch.SeeSetting
the
Overlay
Path
and
Font
Mapping
Options
formoreinformation.
46
60
Chapter7-CommandLineBatchProcessing
Example7.16:SettingtheOutputNamingConvention
Sbcmdline -n 4
KEEP_ORIGINAL_FILE_OUTPUT_NAME
Sbcmdline -n 3
APPEND_NEW_EXTENTION_OUTPUT_NAME
Sbcmdline -n 2
FORCE_JUST_NEW_EXTENTION_OUTPUT_NAME
Sbcmdline -n 1
SMALLER_SEMI_UNIQUE_OUTPUT_NAME
Sbcmdline -n 0
LARGER_SEMI_UNIQUE_OUTPUT_NAME
SettingtheFontMappingPathfortheAFPFileFormat
YoucanspecifythefontmappingpathfortheAPFfileformatwhenusingthecommandlinefor
runningSnowBatch.SeeSetting
the
Overlay
Path
and
Font
Mapping
Options
formore
information.
Example7.17:SettingtheFontMappingPathfortheAFPFileFormat
c:\>sbcmdline -s c:\Snowbound\ -d c:\dest -f AFP -m
c:\fontmappingpath
Thiscommandsetsthefontmappingpathasc:\fontmappingpath.Itconvertsallimages
inthec:\SnowbounddirectorytotheAFPfileformatandplacestheminthec:\dest
directory.
SpecifyingCommandOptionsforWatermarkMerging
Youcanspecifythecommandoptionformergingwatermarkswhenusingthecommandlinefor
runningSnowBatch.SeeSetting
the
Source
File
Options
formoreinformation.
The-wmflag flagcommandcanhavethefollowingvalues:
l
Flagvalue0-watermarkimage
l
1-Textinformation
l
2-Datetime
The-wm watermarkcommandcanhavethefollowingvalues:
l
Foranimagewatermark,watermarkistheimagepathtomerge.
l
Foratextwatermark,watermarkisthetextstringtobeadded
l
Forthedatetimewatermark,watermarkgivesthedateandtimeformatasshort,longor
timeinthefollowingformat:
l
Shortformat: "dd/mm/yy"
l
Longformat:"Mon,Day,Year"
l
Timeformat:"HH:MM:SS"
47
55
Chapter7-CommandLineBatchProcessing
The-pos Positioncommandcanhavethefollowingvalues:
Positionvalue:posX,posY
IfposXandposYaregreaterthan0,thenposXandposYaretheabsolutepixelvalueofthe
imageposition.
IfposXandposYarelessthanorequalto0,thenitgivestherelativepositionofwatermarkas
inthefollowingexample:
l
0-left top
l
-1-middle top
l
-2-right top
l
-3-left middle
l
-4-middle middle
l
-5-right middle
l
-6-left bottom
l
-7-middle bottom
l
-8-right bottom
The-Font fontoptionscommandcanhavethefollowingvalues:
Fontoptionsgivesfontinformationsuchas:
l
fontname
l
fontsize
l
fontcolor
l
fontstyle
Example7.18:SpecifyingCommandOptionsforWatermarkMerging
-s C:\test\Images\AppletIntro.tif -d
C:\test\SnowBatch\watermarktest
-f 43 -e .png -wmflag 0 -wm
C:\test\Images\watermark.jpg -pos -2,-2
-s
C:\test\Images\AppletIntro.tif -d
C:\test\SnowBatch\watermarktest
-f 43 -e .png
-wmflag 1 -wm
"watermark text display" -pos -1,-1 -font
"Arial",16,65280,regular
-s C:\test\Images\AppletIntro.tif -d
C:\test\SnowBatch\watermarktest -f 13 -e .jpg
-wmflag 2 -wm
short -pos -7,-7 -font "Arial",10,255,regular
-s C:\test\Images\AppletIntro.tif -d
C:\test\SnowBatch\watermarktest -f 13 -e .jpg
-wmflag 2 -wm
48
19
Chapter7-CommandLineBatchProcessing
long
-pos -8,-8 -font "Arial",10,255,regular
-s C:\test\Images\AppletIntro.tif -d
C:\test\SnowBatch\watermarktest
-f 13 -e .jpg
-wmflag 2 -wm
time -pos -6,-6 -font "Arial",10,255,regular
PleaseseethenexttopicChapter
8,
Setting
Up
Open
Office
2007
XML
(OOXML)
Support.
49
28
Chapter8-SettingUpOpenOffice2007XML(OOXML)Support
Chapter 8 - Setting Up Open Office 2007
XML (OOXML) Support
ThischapterdescribeshowtoinstallandsetupOpen2007OpenOfficeXML(OOXML)support.
Thischaptercontainsthefollowingtopics:
Setting
up
Open
Office
2007
XML
(OOXML)
Support
Using
the
Command
Line
for
OOXML
Support
SettingupOpenOffice 2007 XML(OOXML) Support
ThissectiondescribesthestepstotaketosetupOpenOffice2007OOXMLsupport.Follow
thestepsbelowtosetuptheproduct:
LoadingtheOOXMLLicense
1. LoadtheOOXMLLicense.
2. Fromthemainmenu,selectOptions>LicenseFileOptions.
Figure8-1:LicenseFileOptions
50
Documents you may be interested
Documents you may be interested