---
Product: Aspose.PDF
Platform: java
Page Type: docs
Canonical URL: https://docs.aspose.org/pdf/java/developer-guide/pattern
---

# Patterns

PDF pattern resources in Aspose.PDF FOSS for Java.

## PDF Patterns

PDF patterns (ISO 32000-1:2008, §8.7) define repeating graphical forms used as
fill colors for shapes and text. There are two pattern types: tiling patterns that
repeat a graphical cell, and shading patterns that define smooth color gradients.

`PdfPattern` represents a pattern resource in the PDF object model. Patterns are
defined in the page or document resource dictionary and referenced from content
stream operators.

## Tiling Patterns

A tiling pattern defines a graphical cell that repeats at a fixed interval across
the coordinate space. The cell is defined by a content stream inside the pattern
dictionary.

## Shading Patterns

A shading pattern applies a smooth color fill defined by a shading dictionary,
supporting axial, radial, and free-form mesh shadings.

## See Also

- [Aspose.PDF for Java — Enterprise Documentation](https://docs.aspose.com/pdf/java/)