Class ParseRunOutputMetadataPagesItem.Builder
- java.lang.Object
-
- ai.extend.types.ParseRunOutputMetadataPagesItem.Builder
-
- All Implemented Interfaces:
ParseRunOutputMetadataPagesItem._FinalStage,ParseRunOutputMetadataPagesItem.DpiStage,ParseRunOutputMetadataPagesItem.NumberStage,ParseRunOutputMetadataPagesItem.OriginalPageHeightStage,ParseRunOutputMetadataPagesItem.OriginalPageWidthStage
- Enclosing class:
- ParseRunOutputMetadataPagesItem
public static final class ParseRunOutputMetadataPagesItem.Builder extends java.lang.Object implements ParseRunOutputMetadataPagesItem.NumberStage, ParseRunOutputMetadataPagesItem.OriginalPageWidthStage, ParseRunOutputMetadataPagesItem.OriginalPageHeightStage, ParseRunOutputMetadataPagesItem.DpiStage, ParseRunOutputMetadataPagesItem._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ParseRunOutputMetadataPagesItembuild()ParseRunOutputMetadataPagesItem._FinalStagedpi(double dpi)The DPI thatboundingBox/polygoncoordinates on this page are scaled to.ParseRunOutputMetadataPagesItem.Builderfrom(ParseRunOutputMetadataPagesItem other)ParseRunOutputMetadataPagesItem.OriginalPageWidthStagenumber(int number)The page number this entry describes.ParseRunOutputMetadataPagesItem.DpiStageoriginalPageHeight(double originalPageHeight)The file's true page height, independent of rendering resolution.ParseRunOutputMetadataPagesItem.OriginalPageHeightStageoriginalPageWidth(double originalPageWidth)The file's true page width, independent of rendering resolution.ParseRunOutputMetadataPagesItem._FinalStagerotationApplied(Nullable<java.lang.Integer> rotationApplied)Degrees Extend rotated the page clockwise to make it upright.ParseRunOutputMetadataPagesItem._FinalStagerotationApplied(java.lang.Integer rotationApplied)Degrees Extend rotated the page clockwise to make it upright.ParseRunOutputMetadataPagesItem._FinalStagerotationApplied(java.util.Optional<java.lang.Integer> rotationApplied)Degrees Extend rotated the page clockwise to make it upright.
-
-
-
Method Detail
-
from
public ParseRunOutputMetadataPagesItem.Builder from(ParseRunOutputMetadataPagesItem other)
- Specified by:
fromin interfaceParseRunOutputMetadataPagesItem.NumberStage
-
number
public ParseRunOutputMetadataPagesItem.OriginalPageWidthStage number(int number)
The page number this entry describes.
The page number this entry describes.
- Specified by:
numberin interfaceParseRunOutputMetadataPagesItem.NumberStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
originalPageWidth
public ParseRunOutputMetadataPagesItem.OriginalPageHeightStage originalPageWidth(double originalPageWidth)
The file's true page width, independent of rendering resolution.
The file's true page width, independent of rendering resolution.
- Specified by:
originalPageWidthin interfaceParseRunOutputMetadataPagesItem.OriginalPageWidthStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
originalPageHeight
public ParseRunOutputMetadataPagesItem.DpiStage originalPageHeight(double originalPageHeight)
The file's true page height, independent of rendering resolution.
The file's true page height, independent of rendering resolution.
- Specified by:
originalPageHeightin interfaceParseRunOutputMetadataPagesItem.OriginalPageHeightStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
dpi
public ParseRunOutputMetadataPagesItem._FinalStage dpi(double dpi)
The DPI that
boundingBox/polygoncoordinates on this page are scaled to. MultiplyoriginalPageWidth/originalPageHeightbydpi / 72to convert them into that same coordinate space.The DPI that
boundingBox/polygoncoordinates on this page are scaled to. MultiplyoriginalPageWidth/originalPageHeightbydpi / 72to convert them into that same coordinate space.- Specified by:
dpiin interfaceParseRunOutputMetadataPagesItem.DpiStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
rotationApplied
public ParseRunOutputMetadataPagesItem._FinalStage rotationApplied(Nullable<java.lang.Integer> rotationApplied)
Degrees Extend rotated the page clockwise to make it upright.
0if rotation detection ran and the page was already upright;nullif rotation detection was disabled for this run.- Specified by:
rotationAppliedin interfaceParseRunOutputMetadataPagesItem._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
rotationApplied
public ParseRunOutputMetadataPagesItem._FinalStage rotationApplied(java.lang.Integer rotationApplied)
Degrees Extend rotated the page clockwise to make it upright.
0if rotation detection ran and the page was already upright;nullif rotation detection was disabled for this run.- Specified by:
rotationAppliedin interfaceParseRunOutputMetadataPagesItem._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
rotationApplied
public ParseRunOutputMetadataPagesItem._FinalStage rotationApplied(java.util.Optional<java.lang.Integer> rotationApplied)
Degrees Extend rotated the page clockwise to make it upright.
0if rotation detection ran and the page was already upright;nullif rotation detection was disabled for this run.- Specified by:
rotationAppliedin interfaceParseRunOutputMetadataPagesItem._FinalStage
-
build
public ParseRunOutputMetadataPagesItem build()
- Specified by:
buildin interfaceParseRunOutputMetadataPagesItem._FinalStage
-
-