Getting Started / Examples

To try this out straight away either type in the following line at the command line (assuming that the current working directory has been changed to where the files have been extracted from the ZIP):
Image2PDF.exe -UseActualImageDPI -image "Examples\Test images\Lake district.jpg" -output "test.pdf" -OpenPDF

Or open up the Examples directory and double-click on any of the example batch files as listed below.


Example 01.bat

Very simple example - just the bare essential commands are used:
..\Image2PDF.exe -UseActualImageDPI -image "Test images\Lake district.jpg" -output "Example 01.pdf" -OpenPDF


Example 02.bat

Slideshow example - show all JPG images in the test images directory (using a wildcard filename) for 5 seconds with a 2.5 second wipe down transition between images. This also makes use of a standard options file that sets the pdf meta data and named bookmarks.
..\Image2PDF.exe -image "Test images\*.jpg" -Slideshow WipeDown 2.5 5.0 -output "Example 02.pdf" -options "Standard.txt"

Standard.txt
-UseActualImageDPI
-OpenPDF
-title        "Example"
-subject      "One of a number of supplied examples"
-author       "The Utility Warrior Team"
-creator      "Image2PDF.exe"
-producer     "Image to PDF by Utility Warrior"
-keywords     "example,standard,options,image2pdf"
-Outline      filename capitalise
-OutlineTitle "Example images"
-license      "YOUR LICENSE CODE HERE"
-FitWindow
-PageModeOutlines
-PageLayoutOneColumn
-CreationDate


Example 03.bat

Fixed page size example - with a pastel green background colour and makes use of two options files, a standard one with common commands in and a specific one to this example which also contains an image stamp at the top right of every page which links to a web page.
..\Image2PDF.exe -options "Example 03.txt" -options "Standard.txt"

Example 03.txt
-image           "Test images\*.jpg"
-output          "Example 03.pdf"
-PageSize        "A5+Landscape"
-BackgroundColor #ccff99
-imageStamp      "Test images\UtilityWarriorLogo.png" top right 5
-stampURL        "http://www.utilitywarrior.com/Image-to-PDF.htm"


Standard.txt
-UseActualImageDPI
-OpenPDF
-title        "Example"
-subject      "One of a number of supplied examples"
-author       "The Utility Warrior Team"
-creator      "Image2PDF.exe"
-producer     "Image to PDF by Utility Warrior"
-keywords     "example,standard,options,image2pdf"
-Outline      filename capitalise
-OutlineTitle "Example images"
-license      "YOUR LICENSE CODE HERE"
-FitWindow
-PageModeOutlines
-PageLayoutOneColumn
-CreationDate


Example 04.bat

Bates numbering example - the Bates "number" has been placed at the bottom right within a white border underneath the image. Again, this example makes use of two options files, a standard one with common commands in and a specific one to this example.
..\Image2PDF.exe -options "Example 04.txt" -options "Standard.txt"

Example 04.txt
-image           "Test images\*.jpg"
-output          "Example 04.pdf"
-BatesFormat     "DT-Day DT-MM/DT-DD/DT-YEAR (BN-BBBBBBBB-PG-PPPP)"
-BatesNumber     123456
-BatesIncrement  1
-BatesFont       14 Times-Bold #000000 normal
-BatesBackground FilledRectangle #ffffff #000000
-BatesLocation   bottom right 0 10
-BorderBottom    33
-BackgroundColor #ffffff


Standard.txt
-UseActualImageDPI
-OpenPDF
-title        "Example"
-subject      "One of a number of supplied examples"
-author       "The Utility Warrior Team"
-creator      "Image2PDF.exe"
-producer     "Image to PDF by Utility Warrior"
-keywords     "example,standard,options,image2pdf"
-Outline      filename capitalise
-OutlineTitle "Example images"
-license      "YOUR LICENSE CODE HERE"
-FitWindow
-PageModeOutlines
-PageLayoutOneColumn
-CreationDate