CIB pdf toolbox 2 technical documentation

4. Usecases

4.3. Creating PDF-Documents from Image formats

Inside the InputFilename property you can also load image formats of type JPEG, BMP, Tiff, JPEG2000 and PNG and not only PDF documents. Those image formats will be automatically converted to a PDF document.

Property

Meaning

Type

InputImageScaling

You can specify the dimensions of the pages on which the images will be emplaced.
Width;Height in pt. mm or in DPI.

Example:

InputImageScaling=100pt;200pt
With as 100pt and height as 200pt

InputImageScaling=100mm;200mm
With as 100mm and height as 200mm

InputImageScaling=;200pt
Arbitrary Width and fixed height of 200pt.

InputImageScaling=100dpi
resolution of the image will be 100 dpi, height and width will be dynamically calculated according to these.

Instead of setting a DPI or fixed size, you can select also a
predefined size, as the ISO page formats A1-A9

Set

InputImageMargin

Setting a margin in pt, which should be used for the images. Default is 0.

Example:

InputImageMargin=10pt
Setting all margins to 10 pt

InputImageMargin=10pt;20pt
Setting left and right margin to 10 pt, top an bottom to 20 pt

InputImageMargin=10pt;20pt;30pt;40pt
Setting left margin to 10pt, top margin to 20pt; right margin to 30pt and bottom margin to 40 pt

Set

InputImageBackgroundColor

Define the background color of the page as a color.

Example:

InputImageBackgroundColor= #FF0000
Sets red as background color.

Set

InputImageScalingMax

Defining a maximum size of a created image in pt

Set

InputImageEmbedStyle

Either embed or fit. Fit means, that the image is completely
spanned over the page. Embed means, that the image is
embedded into a page, with a fixed page, as A4.

Set