appearanceName = "default";
}
Map<String, PDAppearanceStream> appearanceMap = appearDictionary.getNormalAppearance();
if (appearanceMap != null)
{
PDAppearanceStream appearance =
(PDAppearanceStream)appearanceMap.get( appearanceName );
if( appearance != null )
{
Point2D point = new Point2D.Float(rect.getLowerLeftX(), rect.getLowerLeftY());
Matrix matrix = appearance.getMatrix();
if (matrix != null)
{
// transform the rectangle using the given matrix
AffineTransform at = matrix.createAffineTransform();
at.transform(point, point);
}
g.translate( (int)point.getX(), -(int)point.getY() );
processSubStream( page, appearance.getResources(), appearance.getStream() );
g.translate( -(int)point.getX(), (int)point.getY() );
}
}
}
}