You can present images to ABCpdf in one of two ways.
You can operate in pass-through mode and add an image directly
into your Doc
object. Doc.AddImageFile
and Doc.AddImageData
operate in pass-through mode.
Alternatively, you can operate in indirect mode and draw your
data into an Image object before
adding the Image object to your document. The Doc.AddImageObject
method defaults to indirect mode.
Indirect mode has a number of advantages over pass-through
mode.
Because each image is fully decoded when it is presented to the
Image object, image corruption can be caught at this stage. Corrupt
images are not uncommon, and if you don't detect the corruption
before the data is inserted, you may end up with a corrupt PDF.
Images are color-corrected, which means that color profiles do
not need to be embedded and file size may be reduced.
Pass-through mode has advantages for some types of images.
Because the image may not have to be decompressed and
re-compressed, using pass-through mode can be much faster than
indirect mode. This is particularly true for scanned TIFF
images.
Because the original image compression is maintained, there is
no possibility of expansion due to re-compression.
Images are inserted in their native color space together with
any color profiles - this guarantees fidelity of color
reproduction.
|