Index
All Classes and Interfaces|All Packages|Constant Field Values
A
- addFilter(Filter) - Method in class com.orsonpdf.Stream
-
Adds a filter to the stream.
- addObject(PDFObject) - Method in class com.orsonpdf.PDFDocument
-
Adds an object to the document.
- addRenderingHints(Map<?, ?>) - Method in class com.orsonpdf.PDFGraphics2D
-
Adds all the supplied rendering hints.
- Args - Class in com.orsonpdf.util
-
A utility class that performs checks for method argument validity.
- arrayMustHaveLength(int, boolean[], String) - Static method in class com.orsonpdf.util.Args
-
Checks an array to ensure it has the correct length and throws an
IllegalArgumentExceptionif it does not. - arrayMustHaveLength(int, double[], String) - Static method in class com.orsonpdf.util.Args
-
Checks an array to ensure it has the correct length and throws an
IllegalArgumentExceptionif it does not. - ASCII85 - Enum constant in enum com.orsonpdf.filter.FilterType
-
ASCII85 encoding.
- ASCII85Filter - Class in com.orsonpdf.filter
-
A filter that can encode in ASCII-85 format.
- ASCII85Filter() - Constructor for class com.orsonpdf.filter.ASCII85Filter
-
Default contructor.
- Ascii85OutputStream - Class in com.orsonpdf.filter
-
An ascii85 encoder, implemented as an
OutputStream. - Ascii85OutputStream(OutputStream) - Constructor for class com.orsonpdf.filter.Ascii85OutputStream
-
Creates an output stream to encode ascii85 data, using a default line with of 72 characters and not using the space character compression option.
- Ascii85OutputStream(OutputStream, boolean) - Constructor for class com.orsonpdf.filter.Ascii85OutputStream
-
Creates an output stream to encode ascii85 data, using a default line width of 72 characters.
- Ascii85OutputStream(OutputStream, int, boolean) - Constructor for class com.orsonpdf.filter.Ascii85OutputStream
-
Creates an output stream to encode ascii85 data.
- AXIAL - Enum constant in enum com.orsonpdf.shading.ShadingType
-
Axial shading.
- AxialShading - Class in com.orsonpdf.shading
-
An axial shading.
- AxialShading(int, double[], Function) - Constructor for class com.orsonpdf.shading.AxialShading
-
Creates a new axial shading.
B
- BASELINE_CENTER - Enum constant in enum com.orsonpdf.util.TextAnchor
-
Baseline/center.
- BASELINE_LEFT - Enum constant in enum com.orsonpdf.util.TextAnchor
-
Baseline/left.
- BASELINE_RIGHT - Enum constant in enum com.orsonpdf.util.TextAnchor
-
Baseline/right.
- BOTTOM_CENTER - Enum constant in enum com.orsonpdf.util.TextAnchor
-
Bottom/center.
- BOTTOM_LEFT - Enum constant in enum com.orsonpdf.util.TextAnchor
-
Bottom/left.
- BOTTOM_RIGHT - Enum constant in enum com.orsonpdf.util.TextAnchor
-
Bottom/right.
C
- CENTER - Enum constant in enum com.orsonpdf.util.TextAnchor
-
Middle/center.
- CENTER_LEFT - Enum constant in enum com.orsonpdf.util.TextAnchor
-
Middle/left.
- CENTER_RIGHT - Enum constant in enum com.orsonpdf.util.TextAnchor
-
Middle/right.
- clearRect(int, int, int, int) - Method in class com.orsonpdf.PDFGraphics2D
-
Clears the specified rectangle by filling it with the current background color.
- clip(Shape) - Method in class com.orsonpdf.PDFGraphics2D
-
Clips to the intersection of the current clipping region and the specified shape.
- clipRect(int, int, int, int) - Method in class com.orsonpdf.PDFGraphics2D
-
Clips to the intersection of the current clipping region and the specified rectangle.
- com.orsonpdf - package com.orsonpdf
-
Contains
PDFGraphics2Dand supporting classes to allow Java2D rendering to Adobe's Portable Document Format (PDF). - com.orsonpdf.filter - package com.orsonpdf.filter
-
Filters that support the
PDFGraphics2Dimplementation. - com.orsonpdf.shading - package com.orsonpdf.shading
-
Contains shading classes that support the
PDFGraphics2Dimplementation. - com.orsonpdf.util - package com.orsonpdf.util
-
A utility package for the OrsonPDF library.
- convertRenderedImage(RenderedImage) - Static method in class com.orsonpdf.util.GraphicsUtils
-
Converts a rendered image to a
BufferedImage. - COONS - Enum constant in enum com.orsonpdf.shading.ShadingType
- copyArea(int, int, int, int, int, int) - Method in class com.orsonpdf.PDFGraphics2D
-
This method does nothing.
- copyOf(Shape) - Static method in class com.orsonpdf.util.GraphicsUtils
-
Returns a shape that is more or less equivalent to the supplied shape.
- COURIER - Static variable in class com.orsonpdf.PDFFont
-
Identifier for the standard PDF font 'Courier'.
- COURIER_BOLD - Static variable in class com.orsonpdf.PDFFont
-
Identifier for the standard PDF font 'Courier-Bold'.
- COURIER_BOLDITALIC - Static variable in class com.orsonpdf.PDFFont
-
Identifier for the standard PDF font 'Courier-BoldItalic'.
- COURIER_ITALIC - Static variable in class com.orsonpdf.PDFFont
-
Identifier for the standard PDF font 'Courier-Italic'.
- create() - Method in class com.orsonpdf.PDFGraphics2D
-
Returns a new
PDFGraphics2Dinstance that is a copy of this instance. - createCompatibleVolatileImage(int, int, ImageCapabilities, int) - Method in class com.orsonpdf.PDFGraphicsConfiguration
- createDictionary(int) - Method in class com.orsonpdf.PDFImage
-
Creates a dictionary reflecting the current configuration for this image.
- createDictionary(int) - Method in class com.orsonpdf.PDFSoftMaskImage
-
Creates a dictionary reflecting the current configuration for this image.
- createDictionary(int) - Method in class com.orsonpdf.Stream
-
Creates the dictionary for this stream object.
- createFontKey(Font) - Static method in class com.orsonpdf.FontKey
-
Creates a new key for a given font.
- createPage(Rectangle2D) - Method in class com.orsonpdf.PDFDocument
-
Creates a new
Page, adds it to the document, and returns a reference to thePage. - createPolygon(int[], int[], int, boolean) - Static method in class com.orsonpdf.util.GraphicsUtils
-
Creates a polygon for from the specified
xandycoordinates.
D
- DefaultFontMapper - Class in com.orsonpdf
-
A class that can be used to map AWT/Java2D fonts to PDF built-in font names.
- DefaultFontMapper() - Constructor for class com.orsonpdf.DefaultFontMapper
-
Creates a new instance with default mappings.
- dictionary - Variable in class com.orsonpdf.DictionaryObject
- dictionary - Variable in class com.orsonpdf.Function
-
The function dictionary.
- dictionary - Variable in class com.orsonpdf.Pattern
- dictionary - Variable in class com.orsonpdf.shading.Shading
-
The dictionary.
- Dictionary - Class in com.orsonpdf
-
A dictionary is a map and supports writing the bytes for the dictionary in the PDF syntax.
- Dictionary() - Constructor for class com.orsonpdf.Dictionary
-
Creates a new instance with no type.
- Dictionary(String) - Constructor for class com.orsonpdf.Dictionary
-
Creates a new dictionary with the specified type (which can be
null). - DictionaryObject - Class in com.orsonpdf
-
A PDF object that is represented by a dictionary.
- dispose() - Method in class com.orsonpdf.PDFGraphics2D
-
Performs any actions required when the graphics instance is finished with.
- draw(Shape) - Method in class com.orsonpdf.PDFGraphics2D
-
Draws the specified shape with the current
paintandstroke. - drawAlignedString(String, Graphics2D, float, float, TextAnchor) - Static method in class com.orsonpdf.util.TextUtils
-
Draws a string such that the specified anchor point is aligned to the given
(x, y)location. - drawArc(int, int, int, int, int, int) - Method in class com.orsonpdf.PDFGraphics2D
-
Draws an arc contained within the rectangle
(x, y, width, height), starting atstartAngleand continuing througharcAngledegrees using the currentpaintandstroke. - drawGlyphVector(GlyphVector, float, float) - Method in class com.orsonpdf.PDFGraphics2D
-
Draws the specified glyph vector at the location
(x, y). - drawImage(BufferedImage, BufferedImageOp, int, int) - Method in class com.orsonpdf.PDFGraphics2D
-
Draws the image resulting from applying the
BufferedImageOpto the specified image at the location(x, y). - drawImage(Image, int, int, int, int, int, int, int, int, Color, ImageObserver) - Method in class com.orsonpdf.PDFGraphics2D
-
Draws part of an image (defined by the source rectangle
(sx1, sy1, sx2, sy2)) into the destination rectangle(dx1, dy1, dx2, dy2). - drawImage(Image, int, int, int, int, int, int, int, int, ImageObserver) - Method in class com.orsonpdf.PDFGraphics2D
-
Draws part of an image (defined by the source rectangle
(sx1, sy1, sx2, sy2)) into the destination rectangle(dx1, dy1, dx2, dy2). - drawImage(Image, int, int, int, int, Color, ImageObserver) - Method in class com.orsonpdf.PDFGraphics2D
-
Draws an image to the rectangle
(x, y, w, h)(scaling it if required), first filling the background with the specified color. - drawImage(Image, int, int, int, int, ImageObserver) - Method in class com.orsonpdf.PDFGraphics2D
-
Draws the image into the rectangle defined by
(x, y, w, h). - drawImage(Image, int, int, Color, ImageObserver) - Method in class com.orsonpdf.PDFGraphics2D
-
Draws an image at the location
(x, y). - drawImage(Image, int, int, ImageObserver) - Method in class com.orsonpdf.PDFGraphics2D
-
Draws an image at the location
(x, y). - drawImage(Image, AffineTransform, ImageObserver) - Method in class com.orsonpdf.PDFGraphics2D
-
Draws an image with the specified transform.
- drawLine(int, int, int, int) - Method in class com.orsonpdf.PDFGraphics2D
-
Draws a line from
(x1, y1)to(x2, y2)using the currentpaintandstroke. - drawOval(int, int, int, int) - Method in class com.orsonpdf.PDFGraphics2D
-
Draws an oval framed by the rectangle
(x, y, width, height)using the currentpaintandstroke. - drawPolygon(int[], int[], int) - Method in class com.orsonpdf.PDFGraphics2D
-
Draws the specified polygon using the current
paintandstroke. - drawPolyline(int[], int[], int) - Method in class com.orsonpdf.PDFGraphics2D
-
Draws the specified multi-segment line using the current
paintandstroke. - drawRenderableImage(RenderableImage, AffineTransform) - Method in class com.orsonpdf.PDFGraphics2D
-
Draws the renderable image.
- drawRenderedImage(RenderedImage, AffineTransform) - Method in class com.orsonpdf.PDFGraphics2D
-
Draws the rendered image.
- drawRotatedString(String, Graphics2D, double, float, float) - Static method in class com.orsonpdf.util.TextUtils
-
A utility method for drawing rotated text.
- drawRotatedString(String, Graphics2D, float, float, double, float, float) - Static method in class com.orsonpdf.util.TextUtils
-
A utility method for drawing rotated text.
- drawRotatedString(String, Graphics2D, float, float, TextAnchor, double, float, float) - Static method in class com.orsonpdf.util.TextUtils
-
Draws a string that is aligned by one anchor point and rotated about another anchor point.
- drawRotatedString(String, Graphics2D, float, float, TextAnchor, double, TextAnchor) - Static method in class com.orsonpdf.util.TextUtils
-
Draws a string that is aligned by one anchor point and rotated about another anchor point.
- drawRoundRect(int, int, int, int, int, int) - Method in class com.orsonpdf.PDFGraphics2D
-
Draws a rectangle with rounded corners using the current
paintandstroke. - drawString(String, float, float) - Method in class com.orsonpdf.PDFGraphics2D
-
Draws a string at
(x, y). - drawString(String, int, int) - Method in class com.orsonpdf.PDFGraphics2D
-
Draws a string at
(x, y). - drawString(AttributedCharacterIterator, float, float) - Method in class com.orsonpdf.PDFGraphics2D
-
Draws a string of attributed characters at
(x, y). - drawString(AttributedCharacterIterator, int, int) - Method in class com.orsonpdf.PDFGraphics2D
-
Draws a string of attributed characters at
(x, y).
E
- encode(byte[]) - Method in class com.orsonpdf.filter.ASCII85Filter
- encode(byte[]) - Method in interface com.orsonpdf.filter.Filter
-
Apply the encoding to the bytes in
sourceand return the encoded data in a new array. - encode(byte[]) - Method in class com.orsonpdf.filter.FlateFilter
- equals(Object) - Method in class com.orsonpdf.FontKey
-
Tests this key for equality with an arbitrary object.
- equals(Object) - Method in class com.orsonpdf.util.GradientPaintKey
-
Checks this instance for equality with an arbitrary object.
- equals(Object) - Method in class com.orsonpdf.util.RadialGradientPaintKey
-
Tests this instance for equality with an arbitrary object.
- equals(Object, Object) - Static method in class com.orsonpdf.util.ObjectUtils
-
Returns
trueif the objects are equal or bothnull, andfalseotherwise. - EXPONENTIAL_INTERPOLATION - Enum constant in enum com.orsonpdf.FunctionType
-
PDF function type 2.
- ExponentialInterpolationFunction - Class in com.orsonpdf
-
A PDF "Type 2" function.
- ExponentialInterpolationFunction(int, float[], float[]) - Constructor for class com.orsonpdf.ExponentialInterpolationFunction
-
Creates a new function.
F
- fill(Shape) - Method in class com.orsonpdf.PDFGraphics2D
-
Fills the specified shape with the current
paint. - fillArc(int, int, int, int, int, int) - Method in class com.orsonpdf.PDFGraphics2D
-
Fills an arc contained within the rectangle
(x, y, width, height), starting atstartAngleand continuing througharcAngledegrees, using the currentpaint - fillOval(int, int, int, int) - Method in class com.orsonpdf.PDFGraphics2D
-
Fills an oval framed by the rectangle
(x, y, width, height). - fillPolygon(int[], int[], int) - Method in class com.orsonpdf.PDFGraphics2D
-
Fills the specified polygon using the current
paint. - fillRect(int, int, int, int) - Method in class com.orsonpdf.PDFGraphics2D
-
Fills the specified rectangle with the current
paint. - fillRoundRect(int, int, int, int, int, int) - Method in class com.orsonpdf.PDFGraphics2D
-
Fills a rectangle with rounded corners.
- Filter - Interface in com.orsonpdf.filter
-
A filter that can be used to encode stream data in PDF output.
- FilterType - Enum in com.orsonpdf.filter
-
Filter types for PDF streams.
- findOrCreateFontReference(Font) - Method in class com.orsonpdf.Pages
-
Finds or creates a font reference for the specified AWT font.
- FLATE - Enum constant in enum com.orsonpdf.filter.FilterType
-
Flate encoding.
- FlateFilter - Class in com.orsonpdf.filter
-
Encodes data using Flate.
- FlateFilter() - Constructor for class com.orsonpdf.filter.FlateFilter
-
Default constructor.
- flush() - Method in class com.orsonpdf.filter.Ascii85OutputStream
-
Adds the closing block and flushes the underlying output stream.
- FontKey - Class in com.orsonpdf
-
A key to represent a Java2D font.
- FontKey(String, boolean, boolean) - Constructor for class com.orsonpdf.FontKey
-
Creates a new font key.
- FontMapper - Interface in com.orsonpdf
-
Maps an AWT font to a PDF built-in font.
- FREE_FORM - Enum constant in enum com.orsonpdf.shading.ShadingType
- Function - Class in com.orsonpdf
-
A PDF function object.
- Function(int, FunctionType) - Constructor for class com.orsonpdf.Function
-
Creates a new function.
- FUNCTION - Enum constant in enum com.orsonpdf.shading.ShadingType
- FunctionType - Enum in com.orsonpdf
-
The PDF function types.
G
- getAuthor() - Method in class com.orsonpdf.PDFDocument
-
Returns the author for the document.
- getBackground() - Method in class com.orsonpdf.PDFGraphics2D
-
Returns the background color.
- getBounds() - Method in class com.orsonpdf.Page
-
Returns a new rectangle containing the bounds for this page (as supplied to the constructor).
- getBounds() - Method in class com.orsonpdf.PDFGraphicsConfiguration
-
Returns the bounds for this configuration.
- getC0() - Method in class com.orsonpdf.ExponentialInterpolationFunction
-
Returns the function result when x is 0.0.
- getC1() - Method in class com.orsonpdf.ExponentialInterpolationFunction
-
Returns the function result when x is 1.0.
- getClip() - Method in class com.orsonpdf.PDFGraphics2D
-
Returns the user clipping region.
- getClipBounds() - Method in class com.orsonpdf.PDFGraphics2D
-
Returns the bounds of the user clipping region.
- getColor() - Method in class com.orsonpdf.PDFGraphics2D
-
Returns the foreground color.
- getColorModel() - Method in class com.orsonpdf.PDFGraphicsConfiguration
-
Returns the color model for this configuration.
- getColorModel(int) - Method in class com.orsonpdf.PDFGraphicsConfiguration
-
Returns the color model for the specified transparency type, or
null. - getComposite() - Method in class com.orsonpdf.PDFGraphics2D
-
Returns the current composite.
- getConfigurations() - Method in class com.orsonpdf.PDFGraphicsDevice
-
Returns all configurations for this device.
- getContents() - Method in class com.orsonpdf.Page
-
Returns the
PDFObjectthat represents the page content. - getCoords() - Method in class com.orsonpdf.shading.AxialShading
-
Returns a copy of the axis coordinates array
(x1, y1, x2, y2). - getCoords() - Method in class com.orsonpdf.shading.RadialShading
-
Returns a copy of the axis coordinates array
(x1, y1, x2, y2). - getDecode() - Method in enum com.orsonpdf.filter.FilterType
-
Returns the decode value that can be written in the PDF output for this filter type.
- getDefaultConfiguration() - Method in class com.orsonpdf.PDFGraphicsDevice
-
Returns the default configuration for this device.
- getDefaultTransform() - Method in class com.orsonpdf.PDFGraphicsConfiguration
-
Returns the default transform.
- getDevice() - Method in class com.orsonpdf.PDFGraphicsConfiguration
-
Returns the graphics device that this configuration is associated with.
- getDeviceConfiguration() - Method in class com.orsonpdf.PDFGraphics2D
-
Returns the device configuration associated with this
Graphics2D. - getDocument() - Method in class com.orsonpdf.Pages
-
Returns the PDF document that the pages belong to.
- getDomain() - Method in class com.orsonpdf.Function
-
Returns the function domain.
- getDomain() - Method in class com.orsonpdf.shading.AxialShading
-
Returns the function domain.
- getDomain() - Method in class com.orsonpdf.shading.RadialShading
-
Returns the function domain.
- getExtend() - Method in class com.orsonpdf.shading.AxialShading
-
Returns the extend array.
- getExtend() - Method in class com.orsonpdf.shading.RadialShading
-
Returns the extend array.
- getFilterType() - Method in class com.orsonpdf.filter.ASCII85Filter
-
Returns the filter type.
- getFilterType() - Method in interface com.orsonpdf.filter.Filter
-
Returns the filter type.
- getFilterType() - Method in class com.orsonpdf.filter.FlateFilter
-
Returns the filter type.
- getFont() - Method in class com.orsonpdf.PDFGraphics2D
-
Returns the current font used for drawing text.
- getFont(String) - Method in class com.orsonpdf.Pages
-
Returns the PDF font with the specified name, or
nullif there is no font with that name. - getFontMetrics(Font) - Method in class com.orsonpdf.PDFGraphics2D
-
Returns the font metrics for the specified font.
- getFontRenderContext() - Method in class com.orsonpdf.PDFGraphics2D
-
Returns the font render context.
- getFonts() - Method in class com.orsonpdf.Pages
-
Returns a list of fonts used in these pages.
- getFunction() - Method in class com.orsonpdf.shading.AxialShading
-
Returns the function for this shading.
- getFunction() - Method in class com.orsonpdf.shading.RadialShading
-
Returns the function for this shading.
- getFunctionType() - Method in class com.orsonpdf.Function
-
Returns the function type.
- getGeneration() - Method in class com.orsonpdf.PDFObject
-
Returns the PDF object generation number.
- getGraphics2D() - Method in class com.orsonpdf.Page
-
Returns the
PDFGraphics2Dinstance for drawing to the page. - getIDstring() - Method in class com.orsonpdf.PDFGraphicsDevice
-
Returns the id string.
- getN() - Method in class com.orsonpdf.ExponentialInterpolationFunction
-
Returns the interpolation exponent.
- getName() - Method in class com.orsonpdf.PDFFont
-
Returns the name of the font within the PDF document (this is not the same as the font name).
- getNextNumber() - Method in class com.orsonpdf.PDFDocument
-
Returns a new PDF object number and increments the internal counter for the next PDF object number.
- getNonStrokeAlpha() - Method in class com.orsonpdf.GraphicsStateDictionary
-
Returns the non-stroke alpha (a value in the range
0.0to1.0). - getNormalizingTransform() - Method in class com.orsonpdf.PDFGraphicsConfiguration
-
Returns the normalizing transform.
- getNumber() - Method in enum com.orsonpdf.FunctionType
-
Returns the PDF number for the function type.
- getNumber() - Method in class com.orsonpdf.PDFObject
-
Returns the PDF object number (specified in the constructor).
- getNumber() - Method in enum com.orsonpdf.shading.ShadingType
-
Returns the PDF number for the shading type.
- getObjectBytes() - Method in class com.orsonpdf.DictionaryObject
-
Returns the bytes that go between the 'obj' and 'endobj' in the PDF output for this object.
- getObjectBytes() - Method in class com.orsonpdf.Function
-
Returns the bytes that go between the 'obj' and 'endobj' in the PDF output for this object.
- getObjectBytes() - Method in class com.orsonpdf.Page
- getObjectBytes() - Method in class com.orsonpdf.Pages
- getObjectBytes() - Method in class com.orsonpdf.Pattern
-
Returns the bytes that go between the 'obj' and 'endobj' in the PDF output for this object.
- getObjectBytes() - Method in class com.orsonpdf.PDFFont
-
Returns the bytes that go between the 'obj' and 'endobj' in the PDF output for this object.
- getObjectBytes() - Method in class com.orsonpdf.PDFObject
-
Returns the bytes that go between the 'obj' and 'endobj' in the PDF output for this object.
- getObjectBytes() - Method in class com.orsonpdf.shading.Shading
-
Returns the bytes that go between the 'obj' and 'endobj' in the PDF output for this object.
- getObjectBytes() - Method in class com.orsonpdf.Stream
-
Returns the PDF bytes for this stream object, with all current filters applied.
- getPages() - Method in class com.orsonpdf.Pages
-
Returns a list of the pages in this object.
- getPaint() - Method in class com.orsonpdf.PDFGraphics2D
-
Returns the paint used to draw or fill shapes (or text).
- getPaint() - Method in class com.orsonpdf.util.GradientPaintKey
-
Returns the
GradientPaintthat was supplied to the constructor. - getPaint() - Method in class com.orsonpdf.util.RadialGradientPaintKey
-
Returns the
RadialGradientPaintthat was supplied to the constructor. - getPDFBytes() - Method in class com.orsonpdf.PDFDocument
-
Returns a byte array containing the encoding of this PDF document.
- getRawStreamData() - Method in class com.orsonpdf.GraphicsStream
- getRawStreamData() - Method in class com.orsonpdf.PDFImage
-
Returns the raw image data.
- getRawStreamData() - Method in class com.orsonpdf.PDFSoftMaskImage
-
Returns the raw image data.
- getRawStreamData() - Method in class com.orsonpdf.Stream
-
Returns the raw data for the stream.
- getReference() - Method in class com.orsonpdf.PDFObject
-
Returns the PDF reference string for this object (for example,
"2 0 R"). - getRenderingHint(RenderingHints.Key) - Method in class com.orsonpdf.PDFGraphics2D
-
Returns the current value for the specified hint.
- getRenderingHints() - Method in class com.orsonpdf.PDFGraphics2D
-
Returns a copy of the rendering hints.
- getShading() - Method in class com.orsonpdf.Pattern.ShadingPattern
-
Returns the shading.
- getShadingType() - Method in class com.orsonpdf.shading.Shading
-
Returns the shading type.
- getStroke() - Method in class com.orsonpdf.PDFGraphics2D
-
Returns the current stroke (used when drawing shapes).
- getStrokeAlpha() - Method in class com.orsonpdf.GraphicsStateDictionary
-
Returns the stroke alpha (in the range
0.0to1.0). - getTextBounds(String, Graphics2D, FontMetrics) - Static method in class com.orsonpdf.util.TextUtils
-
Returns the bounds for the specified text.
- getTitle() - Method in class com.orsonpdf.PDFDocument
-
Returns the title for the document.
- getTransform() - Method in class com.orsonpdf.PDFGraphics2D
-
Returns a copy of the current transform.
- getType() - Method in class com.orsonpdf.Dictionary
-
Returns the dictionary type.
- getType() - Method in class com.orsonpdf.PDFGraphicsDevice
-
Returns the device type.
- GradientPaintKey - Class in com.orsonpdf.util
-
A wrapper for a
GradientPaintthat can be used as the key for aHashMap. - GradientPaintKey(GradientPaint) - Constructor for class com.orsonpdf.util.GradientPaintKey
-
Creates a new instance based on the specified
paint. - GraphicsStateDictionary - Class in com.orsonpdf
-
A graphics state dictionary.
- GraphicsStateDictionary(int) - Constructor for class com.orsonpdf.GraphicsStateDictionary
-
Creates a new instance with the type
/ExtGState. - GraphicsStream - Class in com.orsonpdf
-
A
Streamthat contains graphics for the PDF document that can be generated via thePDFGraphics2Dclass. - GraphicsUtils - Class in com.orsonpdf.util
-
Utility methods for shapes and images.
H
- HALF_ASCENT_CENTER - Enum constant in enum com.orsonpdf.util.TextAnchor
-
Half-ascent/center.
- HALF_ASCENT_LEFT - Enum constant in enum com.orsonpdf.util.TextAnchor
-
Half-ascent/left.
- HALF_ASCENT_RIGHT - Enum constant in enum com.orsonpdf.util.TextAnchor
-
Half-ascent/right.
- hashCode() - Method in class com.orsonpdf.FontKey
-
Returns a hash code for this instance.
- hashCode() - Method in class com.orsonpdf.util.GradientPaintKey
-
Returns a hash code for this instance.
- hashCode() - Method in class com.orsonpdf.util.RadialGradientPaintKey
-
Returns a hash code for this instance.
- hashCode(Object) - Static method in class com.orsonpdf.util.ObjectUtils
-
Returns the hash code for the object, or 0 if the object is
null. - HELVETICA - Static variable in class com.orsonpdf.PDFFont
-
Identifier for the standard PDF font 'Helvetica'.
- HELVETICA_BOLD - Static variable in class com.orsonpdf.PDFFont
-
Identifier for the standard PDF font 'Helvetica-Bold'.
- HELVETICA_BOLDOBLIQUE - Static variable in class com.orsonpdf.PDFFont
-
Identifier for the standard PDF font 'Helvetica-BoldOblique'.
- HELVETICA_OBLIQUE - Static variable in class com.orsonpdf.PDFFont
-
Identifier for the standard PDF font 'Helvetica-Oblique'.
- hit(Rectangle, Shape, boolean) - Method in class com.orsonpdf.PDFGraphics2D
-
Returns
trueif the rectangle (in device space) intersects with the shape (the interior, ifonStrokeis false, otherwise the stroked outline of the shape).
I
- isBaseline() - Method in enum com.orsonpdf.util.TextAnchor
-
Returns
trueif this anchor is at the baseline level of the text bounds, andfalseotherwise. - isBottom() - Method in enum com.orsonpdf.util.TextAnchor
-
Returns
trueif this anchor is at the bottom of the text bounds, andfalseotherwise. - isCompatibleValue(Object) - Method in class com.orsonpdf.PDFHints.Key
-
Returns
trueifvalis a value that is compatible with this key, andfalseotherwise. - isDebugMode() - Method in class com.orsonpdf.PDFDocument
-
Returns the debug mode flag that controls whether or not the output stream is filtered.
- isEmpty() - Method in class com.orsonpdf.Dictionary
-
Returns
trueif the dictionary has no entries, andfalseotherwise. - isHalfAscent() - Method in enum com.orsonpdf.util.TextAnchor
-
Returns
trueif this anchor is at the half-ascent level of the text bounds, andfalseotherwise. - isHalfHeight() - Method in enum com.orsonpdf.util.TextAnchor
-
Returns
trueif this anchor is at the half-height level of the text bounds, andfalseotherwise. - isHorizontalCenter() - Method in enum com.orsonpdf.util.TextAnchor
-
Returns
trueif this anchor is horizontally at the center of the text bounds, andfalseotherwise. - isLeft() - Method in enum com.orsonpdf.util.TextAnchor
-
Returns
trueif this anchor is at the left side of the text bounds, andfalseotherwise. - isRight() - Method in enum com.orsonpdf.util.TextAnchor
-
Returns
trueif this anchor is at the right side of the text bounds, andfalseotherwise. - isTop() - Method in enum com.orsonpdf.util.TextAnchor
-
Returns
trueif this anchor is at the top of the text bounds, andfalseotherwise.
K
- Key(int) - Constructor for class com.orsonpdf.PDFHints.Key
- KEY_DRAW_STRING_TYPE - Static variable in class com.orsonpdf.PDFHints
-
The key for the hint that controls whether strings are rendered as characters (standard PDF output) or vector graphics (implemented using
TextLayout).
L
- LATTICE_FORM - Enum constant in enum com.orsonpdf.shading.ShadingType
M
- mapToBaseFont(Font) - Method in class com.orsonpdf.DefaultFontMapper
- mapToBaseFont(Font) - Method in interface com.orsonpdf.FontMapper
-
Returns the name of the PDF built-in font that should be used in place of the specified AWT/Java2D font.
N
- nullNotPermitted(Object, String) - Static method in class com.orsonpdf.util.Args
-
Checks that an argument is non-
nulland throws anIllegalArgumentExceptionotherwise.
O
- ObjectUtils - Class in com.orsonpdf.util
-
Some utility methods.
P
- Page - Class in com.orsonpdf
-
Represents a page in a
PDFDocument. - Pages - Class in com.orsonpdf
-
A
PDFObjectthat maintains the list of pages for the document. - Pattern - Class in com.orsonpdf
-
A pattern object (see the concrete subclass
Pattern.ShadingPattern). - Pattern(int) - Constructor for class com.orsonpdf.Pattern
-
Creates a new pattern object.
- Pattern.ShadingPattern - Class in com.orsonpdf
-
A shading pattern object.
- PDFDocument - Class in com.orsonpdf
-
Represents a PDF document.
- PDFDocument() - Constructor for class com.orsonpdf.PDFDocument
-
Creates a new
PDFDocument, initially with no content. - PDFFont - Class in com.orsonpdf
-
A
PDFObjectrepresenting a PDF font. - PDFGraphics2D - Class in com.orsonpdf
-
A
Graphics2Dimplementation that writes to PDF format. - PDFGraphics2D(GraphicsStream, int, int) - Constructor for class com.orsonpdf.PDFGraphics2D
-
Creates a new instance of
PDFGraphics2D. - PDFGraphics2D(GraphicsStream, int, int, boolean) - Constructor for class com.orsonpdf.PDFGraphics2D
-
Creates a new instance of
PDFGraphics2D. - PDFGraphicsConfiguration - Class in com.orsonpdf
-
A graphics configuration for the
PDFGraphics2Dclass. - PDFGraphicsConfiguration(int, int) - Constructor for class com.orsonpdf.PDFGraphicsConfiguration
-
Creates a new instance.
- PDFGraphicsDevice - Class in com.orsonpdf
-
A graphics device for use in the
PDFGraphicsConfigurationclass. - PDFGraphicsDevice(String, GraphicsConfiguration) - Constructor for class com.orsonpdf.PDFGraphicsDevice
-
Creates a new instance.
- PDFHints - Class in com.orsonpdf
-
Defines the rendering hints that can be used with the
PDFGraphics2Dclass. - PDFHints.Key - Class in com.orsonpdf
-
A key for hints used by the
PDFGraphics2Dclass. - PDFImage - Class in com.orsonpdf
-
Represents an image in a PDF document.
- PDFImage(int, Image, String) - Constructor for class com.orsonpdf.PDFImage
-
Creates a new image object.
- PDFObject - Class in com.orsonpdf
-
A PDF Object (also referred to as an 'Indirect Object' in the PDF specification).
- PDFObject(int) - Constructor for class com.orsonpdf.PDFObject
-
Creates a new instance with the specified object number and the default generation number (0).
- PDFObject(int, int) - Constructor for class com.orsonpdf.PDFObject
-
Creates a new instance.
- PDFSoftMaskImage - Class in com.orsonpdf
-
Represents a soft mask image in a PDF document.
- PDFSoftMaskImage(int, Image) - Constructor for class com.orsonpdf.PDFSoftMaskImage
-
Creates a new soft mask image object.
- PDFUtils - Class in com.orsonpdf
-
Various utility functions for working with the PDF format.
- POSTSCRIPT_CALCULATOR - Enum constant in enum com.orsonpdf.FunctionType
-
PDF function type 4.
- put(String, Object) - Method in class com.orsonpdf.Dictionary
-
Puts an entry in the dictionary.
- put(String, Object) - Method in class com.orsonpdf.DictionaryObject
-
Puts an item in the dictionary.
R
- RADIAL - Enum constant in enum com.orsonpdf.shading.ShadingType
-
Radial shading.
- RadialGradientPaintKey - Class in com.orsonpdf.util
-
A wrapper for a
RadialGradientPaintthat can be used as the key for aHashMap. - RadialGradientPaintKey(RadialGradientPaint) - Constructor for class com.orsonpdf.util.RadialGradientPaintKey
-
Creates a new key instance.
- RadialShading - Class in com.orsonpdf.shading
-
A radial shading.
- RadialShading(int, double[], Function) - Constructor for class com.orsonpdf.shading.RadialShading
-
Creates a new radial shading instance.
- remove(String) - Method in class com.orsonpdf.Dictionary
-
Removes an entry from the dictionary, returning the value that was stored previously.
- remove(String) - Method in class com.orsonpdf.DictionaryObject
-
Removes an item from the dictionary.
- removeFilters() - Method in class com.orsonpdf.Stream
-
Removes any filters that were previously added.
- rotate(double) - Method in class com.orsonpdf.PDFGraphics2D
-
Applies a rotation (anti-clockwise) about
(0, 0). - rotate(double, double, double) - Method in class com.orsonpdf.PDFGraphics2D
-
Applies a rotation (anti-clockwise) about
(x, y).
S
- SAMPLED - Enum constant in enum com.orsonpdf.FunctionType
-
PDF function type 0.
- scale(double, double) - Method in class com.orsonpdf.PDFGraphics2D
-
Applies a scale transformation.
- setAuthor(String) - Method in class com.orsonpdf.PDFDocument
-
Sets the author for the document.
- setBackground(Color) - Method in class com.orsonpdf.PDFGraphics2D
-
Sets the background color.
- setC0(float[]) - Method in class com.orsonpdf.ExponentialInterpolationFunction
-
Sets the function result to be used when x is 0.0.
- setC1(float[]) - Method in class com.orsonpdf.ExponentialInterpolationFunction
-
Sets the function result to be used when x is 1.0.
- setClip(int, int, int, int) - Method in class com.orsonpdf.PDFGraphics2D
-
Sets the user clipping region to the specified rectangle.
- setClip(Shape) - Method in class com.orsonpdf.PDFGraphics2D
-
Sets the user clipping region.
- setColor(Color) - Method in class com.orsonpdf.PDFGraphics2D
-
Sets the foreground color.
- setComposite(Composite) - Method in class com.orsonpdf.PDFGraphics2D
-
Sets the composite (only
AlphaCompositeis handled). - setCoords(double[]) - Method in class com.orsonpdf.shading.AxialShading
-
Sets the axis coordinates array
(x1, y1, x2, y2). - setCoords(double[]) - Method in class com.orsonpdf.shading.RadialShading
-
Sets the array containing the coordinates
(x1, y1, r1, x2, y2, r2)of the starting circle and the ending circle. - setDebugMode(boolean) - Method in class com.orsonpdf.PDFDocument
-
Sets the debug MODE flag (this needs to be set before any call to
PDFDocument.createPage(java.awt.geom.Rectangle2D)). - setDomain(double[]) - Method in class com.orsonpdf.Function
-
Sets the domain for the function.
- setDomain(double[]) - Method in class com.orsonpdf.shading.AxialShading
-
Sets the domain.
- setDomain(double[]) - Method in class com.orsonpdf.shading.RadialShading
-
Sets the domain.
- setExtend(boolean[]) - Method in class com.orsonpdf.shading.AxialShading
-
Sets the extend array.
- setExtend(boolean[]) - Method in class com.orsonpdf.shading.RadialShading
-
Sets the extend array.
- setFont(Font) - Method in class com.orsonpdf.PDFGraphics2D
-
Sets the font to be used for drawing text.
- setFunction(Function) - Method in class com.orsonpdf.shading.AxialShading
-
Sets the function for this shading.
- setFunction(Function) - Method in class com.orsonpdf.shading.RadialShading
-
Sets the function for this shading.
- setN(double) - Method in class com.orsonpdf.ExponentialInterpolationFunction
-
Sets the interpolation exponent.
- setNonStrokeAlpha(float) - Method in class com.orsonpdf.GraphicsStateDictionary
-
Sets the non-stroke alpha.
- setPaint(Paint) - Method in class com.orsonpdf.PDFGraphics2D
-
Sets the paint used to draw or fill shapes (or text).
- setPaintMode() - Method in class com.orsonpdf.PDFGraphics2D
-
Does nothing in this
PDFGraphics2Dimplementation. - setRenderingHint(RenderingHints.Key, Object) - Method in class com.orsonpdf.PDFGraphics2D
-
Sets the value for a hint.
- setRenderingHints(Map<?, ?>) - Method in class com.orsonpdf.PDFGraphics2D
-
Sets the rendering hints to the specified collection.
- setShading(Shading) - Method in class com.orsonpdf.Pattern.ShadingPattern
-
Sets the shading.
- setStroke(Stroke) - Method in class com.orsonpdf.PDFGraphics2D
-
Sets the stroke that will be used to draw shapes.
- setStrokeAlpha(float) - Method in class com.orsonpdf.GraphicsStateDictionary
-
Sets the stroke alpha.
- setTitle(String) - Method in class com.orsonpdf.PDFDocument
-
Sets the title for the document.
- setTransform(AffineTransform) - Method in class com.orsonpdf.PDFGraphics2D
-
Sets the transform.
- setType(String) - Method in class com.orsonpdf.Dictionary
-
Sets the type (for example, "/Catalog").
- setXORMode(Color) - Method in class com.orsonpdf.PDFGraphics2D
-
Does nothing in this
PDFGraphics2Dimplementation. - Shading - Class in com.orsonpdf.shading
-
A PDF shading object (this class is abstract, subclasses implement particular shading types).
- Shading(int, ShadingType) - Constructor for class com.orsonpdf.shading.Shading
-
Creates a new shading instance.
- ShadingPattern(int, Shading, AffineTransform) - Constructor for class com.orsonpdf.Pattern.ShadingPattern
-
Creates a new shading pattern.
- ShadingType - Enum in com.orsonpdf.shading
-
An enumeration of the PDF shading types.
- shear(double, double) - Method in class com.orsonpdf.PDFGraphics2D
-
Applies a shear transformation.
- size() - Method in class com.orsonpdf.Dictionary
-
Returns the number of items in the dictionary.
- STITCHING - Enum constant in enum com.orsonpdf.FunctionType
-
PDF function type 3.
- StitchingFunction - Class in com.orsonpdf
-
A stitching function.
- StitchingFunction(int, Function[], float[], float[]) - Constructor for class com.orsonpdf.StitchingFunction
-
Creates a new stitching function.
- Stream - Class in com.orsonpdf
T
- TENSOR - Enum constant in enum com.orsonpdf.shading.ShadingType
- TextAnchor - Enum in com.orsonpdf.util
-
Used to indicate the position of an anchor point for a text string.
- TextUtils - Class in com.orsonpdf.util
-
Text utility functions.
- TIMES_BOLD - Static variable in class com.orsonpdf.PDFFont
-
Identifier for the standard PDF font 'Times-Bold'.
- TIMES_BOLDITALIC - Static variable in class com.orsonpdf.PDFFont
-
Identifier for the standard PDF font 'Times-BoldItalic'.
- TIMES_ITALIC - Static variable in class com.orsonpdf.PDFFont
-
Identifier for the standard PDF font 'Times-Italic'.
- TIMES_ROMAN - Static variable in class com.orsonpdf.PDFFont
-
Identifier for the standard PDF font 'Times-Roman'.
- toBytes(String) - Static method in class com.orsonpdf.PDFUtils
-
A utility method to convert a string to US-ASCII byte format.
- toDateFormat(Date) - Static method in class com.orsonpdf.PDFUtils
-
Returns a string in standard PDF date format representing the specified date (in the default timezone).
- TOP_CENTER - Enum constant in enum com.orsonpdf.util.TextAnchor
-
Top/center.
- TOP_LEFT - Enum constant in enum com.orsonpdf.util.TextAnchor
-
Top/left.
- TOP_RIGHT - Enum constant in enum com.orsonpdf.util.TextAnchor
-
Top/right.
- toPDFArray(boolean[]) - Static method in class com.orsonpdf.PDFUtils
-
A utility method to convert a boolean[] to a PDF array string.
- toPDFArray(double[]) - Static method in class com.orsonpdf.PDFUtils
-
A utility method to convert a double[] to a PDF array string.
- toPDFArray(float[]) - Static method in class com.orsonpdf.PDFUtils
-
A utility method to convert a float[] to a PDF array string.
- toPDFBytes() - Method in class com.orsonpdf.Dictionary
-
Returns a byte array containing the ASCII encoding of the dictionary.
- toPDFBytes() - Method in class com.orsonpdf.PDFObject
-
Returns the PDF bytes representing this object.
- toPDFDateFormat(Calendar) - Static method in class com.orsonpdf.PDFUtils
-
Returns a string in standard PDF date format representing the date contained by the specified calendar.
- toPDFString() - Method in class com.orsonpdf.Dictionary
-
Returns a string containing the PDF text describing the dictionary.
- toString() - Method in class com.orsonpdf.FontKey
-
Returns a string representation of this instance, primarily for debugging purposes.
- toString() - Method in enum com.orsonpdf.util.TextAnchor
-
Returns a string representing the object.
- transform(AffineTransform) - Method in class com.orsonpdf.PDFGraphics2D
-
Applies this transform to the existing transform by concatenating it.
- transformToPDF(AffineTransform) - Static method in class com.orsonpdf.PDFUtils
-
Returns a Java2D AffineTransform in PDF matrix format.
- translate(double, double) - Method in class com.orsonpdf.PDFGraphics2D
-
Applies the translation
(tx, ty). - translate(int, int) - Method in class com.orsonpdf.PDFGraphics2D
-
Applies the translation
(tx, ty).
V
- VALUE_DRAW_STRING_TYPE_STANDARD - Static variable in class com.orsonpdf.PDFHints
-
Hint value for
KEY_DRAW_STRING_TYPEto specify that strings should be written to the output using standard PDF text primitives. - VALUE_DRAW_STRING_TYPE_VECTOR - Static variable in class com.orsonpdf.PDFHints
-
Hint value for
KEY_DRAW_STRING_TYPEto say that strings should be written to the output using vector graphics primitives. - valueOf(String) - Static method in enum com.orsonpdf.filter.FilterType
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.orsonpdf.FunctionType
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.orsonpdf.shading.ShadingType
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.orsonpdf.util.TextAnchor
-
Returns the enum constant of this type with the specified name.
- values() - Static method in enum com.orsonpdf.filter.FilterType
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum com.orsonpdf.FunctionType
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum com.orsonpdf.shading.ShadingType
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum com.orsonpdf.util.TextAnchor
-
Returns an array containing the constants of this enum type, in the order they are declared.
W
- write(int) - Method in class com.orsonpdf.filter.Ascii85OutputStream
-
Writes a single byte to the stream.
- writeToFile(File) - Method in class com.orsonpdf.PDFDocument
-
Writes the PDF document to a file.
- writeUnencoded(byte[]) - Method in class com.orsonpdf.filter.Ascii85OutputStream
-
Writes bytes to the underlying output stream, unencoded.
- writeUnencoded(byte[], int, int) - Method in class com.orsonpdf.filter.Ascii85OutputStream
-
Writes bytes to the underlying output stream, unencoded.
- writeUnencoded(int) - Method in class com.orsonpdf.filter.Ascii85OutputStream
-
Writes a single byte to the underlying output stream, unencoded.
All Classes and Interfaces|All Packages|Constant Field Values