PDF4Java Reference Documentation
com.o2sol.pdf4java.spatial Package / PDFRectilinearMeasure Class / setDistance Method
A number format collection for measurement of distance in any direction.
Collapse All Expand All
In This Topic

setDistance Method
In This Topic
Sets the number formats for distance.
The first element in the collection shall specify the conversion to the largest distance unit from units represented by the first element in . The scale factors from , (if present) and (if is present) shall be used to convert from default PDF units to the appropriate units before applying the distance function.
Syntax

    public void setDistance(
       PDFNumberFormatCollection distanceNumberFormats
    )

#### Parameters

distanceNumberFormats
  A number format collection for measurement of distance in any direction.

Exceptions

Exception | Description
--- | ---
java.lang.IllegalArgumentException | When distanceNumberFormats is null.

See Also

#### Reference

PDFRectilinearMeasure Class
PDFRectilinearMeasure Members

© 2025 O2 Solutions All Rights Reserved.

Send comments on this topic.