TilingPattern

TilingPattern

Overview

TilingPattern is a class in Aspose.Pdf FOSS for Java. Inherits from: PdfPattern.

Tiling pattern (ISO 32000-1:2008, §8.7.3).

Properties

NameTypeAccessDescription
paintTypeintReadReturns the paint type: 1 = colored, 2 = uncolored.
tilingTypeintReadReturns the tiling type: 1, 2, or 3.
bBoxRectangleReadReturns the pattern cell bounding box.
xStepdoubleReadReturns the horizontal tile spacing.
yStepdoubleReadReturns the vertical tile spacing.
resourcesResourcesReadReturns the pattern’s own resources dictionary.
contentsOperatorCollectionReadParses the tiling pattern’s content stream into operators.
PAINT_COLOREDintReadColored pattern: defines its own colors.
PAINT_UNCOLOREDintReadUncolored pattern: uses current non-pattern color.
TILING_CONSTANT_SPACINGintReadConstant spacing: tiles are evenly spaced.
TILING_NO_DISTORTIONintReadNo distortion: tile spacing may be altered to maintain appearance.
TILING_FASTERintReadFaster tiling: distortion and uneven spacing allowed.
patternTypeintReadReturns the pattern type: 1 for tiling, 2 for shading.
matrixMatrixReadReturns the pattern matrix that maps pattern space to user space.
cOSDictionaryCOSDictionaryReadReturns the underlying COS dictionary.

Methods

SignatureDescription
TilingPattern(dict: COSDictionary, parser: PDFParser)Creates a TilingPattern from its dictionary/stream.
getPaintType()intReturns the paint type: 1 = colored, 2 = uncolored.
getTilingType()intReturns the tiling type: 1, 2, or 3.
getBBox()RectangleReturns the pattern cell bounding box.
getXStep()doubleReturns the horizontal tile spacing.
getYStep()doubleReturns the vertical tile spacing.
getResources()ResourcesReturns the pattern’s own resources dictionary.
getContents()OperatorCollectionParses the tiling pattern’s content stream into operators.
getPatternType()intReturns the pattern type: 1 for tiling, 2 for shading.
getMatrix()MatrixReturns the pattern matrix that maps pattern space to user space.
getCOSDictionary()COSDictionaryReturns the underlying COS dictionary.
parse(obj: COSBase, parser: PDFParser)PdfPatternFactory: parses a pattern from a COS object.

See Also