Package com.itextpdf.io.codec
Class Jbig2SegmentReader.Jbig2Page
- java.lang.Object
-
- com.itextpdf.io.codec.Jbig2SegmentReader.Jbig2Page
-
- Enclosing class:
- Jbig2SegmentReader
public static class Jbig2SegmentReader.Jbig2Page extends java.lang.Object
Inner class that holds information about a JBIG2 page.
-
-
Field Summary
Fields Modifier and Type Field Description private int
page
private int
pageBitmapHeight
private int
pageBitmapWidth
private java.util.Map<java.lang.Integer,Jbig2SegmentReader.Jbig2Segment>
segs
private Jbig2SegmentReader
sr
-
Constructor Summary
Constructors Constructor Description Jbig2Page(int page, Jbig2SegmentReader sr)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addSegment(Jbig2SegmentReader.Jbig2Segment s)
byte[]
getData(boolean for_embedding)
return as a single byte array the header-data for each segment in segment number order, EMBEDDED organization, but I am putting the needed segments in SEQUENTIAL organization.int
getPage()
Retrieves the page number of the Jbig2Page object.int
getPageBitmapHeight()
Retrieves page bitmap height of the JBig2Page object.int
getPageBitmapWidth()
Retrieves page bitmap width of the Jbig2Page object.void
setPageBitmapHeight(int pageBitmapHeight)
Sets the height of the page bitmap of a Jbig2Page object.void
setPageBitmapWidth(int pageBitmapWidth)
Sets page bitmap width of the JBig2Page object.
-
-
-
Field Detail
-
page
private final int page
-
sr
private final Jbig2SegmentReader sr
-
segs
private final java.util.Map<java.lang.Integer,Jbig2SegmentReader.Jbig2Segment> segs
-
pageBitmapWidth
private int pageBitmapWidth
-
pageBitmapHeight
private int pageBitmapHeight
-
-
Constructor Detail
-
Jbig2Page
public Jbig2Page(int page, Jbig2SegmentReader sr)
-
-
Method Detail
-
getPage
public int getPage()
Retrieves the page number of the Jbig2Page object.- Returns:
- page number
-
getPageBitmapWidth
public int getPageBitmapWidth()
Retrieves page bitmap width of the Jbig2Page object.- Returns:
- width of page bitmap
-
setPageBitmapWidth
public void setPageBitmapWidth(int pageBitmapWidth)
Sets page bitmap width of the JBig2Page object.- Parameters:
pageBitmapWidth
- page bitmap width
-
getPageBitmapHeight
public int getPageBitmapHeight()
Retrieves page bitmap height of the JBig2Page object.- Returns:
- height of the page bitmap
-
setPageBitmapHeight
public void setPageBitmapHeight(int pageBitmapHeight)
Sets the height of the page bitmap of a Jbig2Page object.- Parameters:
pageBitmapHeight
- height of the page bitmap
-
getData
public byte[] getData(boolean for_embedding) throws java.io.IOException
return as a single byte array the header-data for each segment in segment number order, EMBEDDED organization, but I am putting the needed segments in SEQUENTIAL organization. if for_embedding, skip the segment types that are known to be not for acrobat.- Parameters:
for_embedding
- True if the bytes represents embedded data, false otherwise- Returns:
- a byte array
- Throws:
java.io.IOException
- if an I/O error occurs.
-
addSegment
public void addSegment(Jbig2SegmentReader.Jbig2Segment s)
-
-