Chapters
-
Introducing PDF and iText
-
Using iText's basic building blocks
-
Adding content at absolute positions
-
Organizing content in tables
-
Table, cell, and page events
-
Working with existing PDFs
-
Making documents interactive
-
Filling out interactive forms
-
Integrating iText in your web applications
-
Brightening up your PDF with color and images
-
Choosing the right font
-
Protecting your PDF
-
PDFs inside-out
-
The imaging model
-
Page content and structure
-
PDF streams
Chapter 10:
Brightening up your PDF with color and images
< Chapter 9: Integrating iText in your web applications
Chapter 11: Choosing the right font >
Chapter 10 of the book iText in Action 2E covers:
- Using color in PDF documents
- Introducing transparency
- Using images in PDF documents
This chapter starts with an introduction to color spaces.
DeviceRGB, DeviceCMYK, DeviceGray, Separation and Pattern are the color spaces for which iText
has specific color classes that can be used as font, fill and/or stroke color.
You'll learn all about transparency, and you'll get an overview of the different image types
that are supported by iText. Finally, you'll make images transparent using masking and clipping.
- 10.1: Working with the iText color classes
- 10.1.1: Device colors
- 10.1.2: Spot colors
- 10.1.3: Painting patterns
- 10.1.4: Transparency
- 10.1.1: Device colors
- 10.2: Overview of supported image types
- 10.2.1: JPEG, JPEG2000, GIF, PNG, BMP, WMF, TIFF, and JBIG2
- 10.2.2: Creating a raw image
- 10.2.3: CCITT compressed images
- 10.2.4: Creating barcodes
- 10.2.5: Working with java.awt.Image
- 10.2.6: Compressing images
- 10.2.7: Images consisting of multiple pages or frames
- 10.2.1: JPEG, JPEG2000, GIF, PNG, BMP, WMF, TIFF, and JBIG2
- 10.3: Making images transparent
- 10.3.1: Images and transparency
- 10.3.2: Masking images
- 10.3.3: Clipping images
- 10.3.1: Images and transparency
- 10.4: Summary
Consult the full table of contents, take a look at the
illustrations
from this chapter, or try out some of the
examples:
Figures
- Figure 10.1: Tiling patterns
- Figure 10.2: Shading patterns
- Figure 10.3: Transparency groups
- Figure 10.4: Isolation and knockout
- Figure 10.5: Different image types
- Figure 10.6: Images built using raw image data
- Figure 10.7: Compressed image with quality loss
- Figure 10.8: Different frames taken from an animated GIF
- Figure 10.9: Making images transparent
- Figure 10.10: Transparency with java.awt.Image
- Figure 10.11: Hard and soft image masks
- Figure 10.12: Clipping images
- Figure 10.13: Clipped image with a transparent overlay
Examples
- DeviceColor
Keywords: Color, Color > CMYK, Color > gray color, Color > RGB, Graphics state > colors - SeparationColor
Keywords: Color, Color > separation color, Color > spot color, Graphics state > colors - TilingPatternColor
Keywords: Color, Color > pattern color, Graphics state > colors - ShadingPatternColor
Keywords: Color, color > shading colors, Graphics state > colors - Transparency1
Keywords: ColumnText, Graphics state, PdfTemplate, Transparency, Graphics state > opacity, Transparency > transparency groups - Transparency2
Keywords: Graphics state, PdfTemplate, Transparency, Graphics state > opacity, Transparency > isolation, Transparency > knockout, Transparency > transparency groups - ImageTypes
Keywords: Barcode, BMP, GIF, JBIG2, JPEG, JPEG 2000, PNG, TIFF, WMF, Barcode > EAN, Barcode > PDF417, Basic building blocks > Image, Image > image types, Image > java.awt.Image - RawImage
Keywords: Basic building blocks > Image, Image > raw image - Barcodes
Keywords: Barcode > Code 128, Barcode > Code 39, Barcode > Data matrix, Barcode > EAN, Barcode > Interleaved 2 of 5, Barcode > PDF417, Barcode > POSTNET / PLANET, Barcode > QRCode, Barcode > UPC - CompressImage
Keywords: BMP, Compression > image compression, Image > compressing images - CompressAwt
Keywords: PNG, Basic building blocks > Image, Compression > image compression, Image > compressing images, Image > java.awt.Image - PagedImages
Keywords: JBIG2, TIFF, Basic building blocks > Image, GIF > animated GIF - TransparentImage
Keywords: Transparency, Basic building blocks > Image, Image > transparent images, Transparency > making images transparent - TransparentAwt
Keywords: Transparency, Image > java.awt.Image, Image > transparent images, Transparency > making images transparent - ImageMask
Keywords: Image > image mask, Image > transparent images - TemplateClip
Keywords: Clipping content, PdfTemplate, Direct content > addImage method, Image > making images transparent - ClippingPath
Keywords: Clipping content, PdfTemplate, Direct content > addImage method, Image > transparent images - TransparentOverlay
Keywords: Clipping content, PdfTemplate, Direct content > addImage method, Image > image mask, Image > transparent images, Transparency > isolation, Transparency > knockout, Transparency > transparency groups
Content © 2010-2013 1T3XT BVBA
