public class ContentByteUtils extends Object
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.
|
public static byte[] getContentBytesFromContentObject(PdfObject contentObject) throws IOException
contentObject
- the object to read bytes from
IOException
public static byte[] getContentBytesForPage(PdfReader reader, int pageNum) throws IOException
reader
- the reader to get content bytes from
pageNum
- the page number of page you want get the content stream from
IOException
Copyright © 1998–2016. All rights reserved.