concept byte in category itext

appears as: bytes, bytes, byte, byte
iText in Action, Second Edition

This is an excerpt from Manning's book iText in Action, Second Edition.

  • It tells the PdfWriter to which OutputStream the file should be written. In the previous examples, you have written the content to a FileOutputStream, but you could have written to any other type of OutputStream. You could even have written the bytes of a PDF file to System.out.
  • Image is an abstract class, which means you can’t construct an instance directly. The getInstance() method returns an instance of a specific image implementation. iText has a separate image class for each type that is supported. These classes process the image data, and possibly change the bits and bytes into a format that is supported in PDF. For instance, JPEG images are copied as is into an image XObject, but a BMP will be decoded into raw image bytes that are compressed using the zlib/deflate compression method. A WMF file will be translated into PDF syntax; if you look inside the PDF, you’ll see that the WMF image is changed into a form XObject.