public class ContentByteUtils extends Object
Modifier | Constructor and Description |
---|---|
private |
ContentByteUtils() |
Modifier and Type | Method and Description |
---|---|
static byte[] |
getContentBytesForPage(PdfReader reader,
int pageNum)
Gets the content bytes of a page from a reader
|
static byte[] |
getContentBytesFromContentObject(PdfObject contentObject)
Gets the content bytes from a content object, which may be a reference
a stream or an array.
|
private ContentByteUtils()
public static byte[] getContentBytesFromContentObject(PdfObject contentObject) throws IOException
contentObject
- the object to read bytes fromIOException
public static byte[] getContentBytesForPage(PdfReader reader, int pageNum) throws IOException
reader
- the reader to get content bytes frompageNum
- the page number of page you want get the content stream fromIOException
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses