|
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. Alternatively you can operate in indirect mode and draw
your data into an Image
object before adding the Image object to your document.
In general you will want to add JPEG images in pass-through mode
and all other types of images in 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.
The Image object can apply color correction to images as they are
decoded. So images are inserted into the PDF fully color corrected
ensuring that they always display correctly.
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. This is the reason
you will typically want to embed JPEG images using pass-through
mode.
|