Images and Vector Graphics
columnelements, there will be
strokeelements describing the non-text content on the page.
These elements appear in the order in which the objects were drawn in the PDF content stream (unlike the text, which is reordered into columns, paragraphs, etc.).
ImagesEach placed image is represented by an
ury) is identical in format to the
wordbounding box. Units are controlled by the
The image tag in the
imagedata attribute refers to
element in the
resources element. Multiple
images (on the same or different pages) can have the same image tag,
i.e., they can share the same image data. The same image data can be
drawn in different positions and/or with a different size.
Image masksImage masks are monochrome (1-bit) bitmaps that are filled with a particular color:
imageelements. There is an additional
colorchild element (see the description of color for
Image mask data is a 1-bit image, with no inherent color. The same image mask data can be drawn in multiple places, at different sizes, and with different colors.
FillsFill operations are represented by
eo" for the even-odd rule, or "
nzwn" for the non-zero winding number rule.
color element is the same as used with words
and image masks.
Paths are described below.
StrokesStroke operations (poly-lines) are represented by
The line cap style is one of:
- 0: butt cap
- 1: round cap
- 2: projecting square cap
The line join style is one of:
- 0: miter join
- 1: round join
- 2: bevel join
dash element describes the line dash pattern.
There will be zero or more
dashelem children, each
with a value describing the length of a dash or gap. See the PDF (or
PostScript) reference manual for a more detailed explanation. A
plain, undashed line will have an empty dash pattern:
PathsPaths are used in both
fillelements. A path consists of one or more subpaths. Each subpath starts with a
moveto, which is followed by a sequence of
closed="true") or open (
closed="false"). (For fill operations, all subpaths will be implicitly closed, so the
closedattribute can be ignored.)
are in the units specified by the