Skip to main content
Version: API v2 Preview

PdfAffineTransform

Kind: class
Module/package: com.pdfdancer.common.model
SDK: com.pdfdancer.client:pdfdancer-client-java 2.0.0

Immutable two-dimensional affine transformation using the PDF six-number matrix convention [a, b, c, d, e, f].

The transform maps a point (x, y) to: x' = a * x + c * y + e y' = b * x + d * y + f

The fluent builder starts with the identity transform. Operations are applied to points in invocation order.

Declaration

public final class com.pdfdancer.common.model.PdfAffineTransform

Members

a

public double a()

b

public double b()

builder

public static com.pdfdancer.common.model.PdfAffineTransform$Builder builder()

c

public double c()

d

public double d()

e

public double e()

equals

public boolean equals(java.lang.Object)

f

public double f()

fromPdfMatrix

public static com.pdfdancer.common.model.PdfAffineTransform fromPdfMatrix(double[])

Creates a transform from coefficients in PDF [a,b,c,d,e,f] order.

hashCode

public int hashCode()

toPdfMatrix

public double[] toPdfMatrix()

Returns a defensive copy in PDF [a,b,c,d,e,f] order.

toString

public java.lang.String toString()

View source at 9c04036fe114