public class ContentByteUtils
extends java.lang.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 java.io.IOException
contentObject - the object to read bytes fromjava.io.IOExceptionpublic static byte[] getContentBytesForPage(PdfReader reader, int pageNum) throws java.io.IOException
reader - the reader to get content bytes frompageNum - the page number of page you want get the content stream fromjava.io.IOExceptionCopyright © 2013. All Rights Reserved.