Package com.itextpdf.text.pdf.parser
Class ContentByteUtils
java.lang.Object
com.itextpdf.text.pdf.parser.ContentByteUtils
- Since:
- 5.0.1
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic byte[]
getContentBytesForPage
(PdfReader reader, int pageNum) Gets the content bytes of a page from a readerstatic byte[]
getContentBytesFromContentObject
(PdfObject contentObject) Gets the content bytes from a content object, which may be a reference a stream or an array.
-
Constructor Details
-
ContentByteUtils
private ContentByteUtils()
-
-
Method Details
-
getContentBytesFromContentObject
Gets the content bytes from a content object, which may be a reference a stream or an array.- Parameters:
contentObject
- the object to read bytes from- Returns:
- the content bytes
- Throws:
IOException
-
getContentBytesForPage
Gets the content bytes of a page from a reader- Parameters:
reader
- the reader to get content bytes frompageNum
- the page number of page you want get the content stream from- Returns:
- a byte array with the effective content stream of a page
- Throws:
IOException
- Since:
- 5.0.1
-