| Constructor and Description |
|---|
ByteArrayPDFSource(byte[] content)
Constructs a source that uses a byte array to hold the PDF content.
|
ByteArrayPDFSource(byte[] content,
String name,
String path)
Constructs a source that uses a byte array to hold the PDF content.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(PDFSource other)
Tests if this source is equal to another source.
|
byte[] |
getBytes()
Returns the array of bytes that backs this PDF source.
|
PDFContent |
getContent()
Returns an object that implements PDFContent, that contains and can deliver the contents of the PDF document.
|
String |
getName()
Returns the name of the document.
|
String |
getPath()
Returns the full path to the document.
|
public ByteArrayPDFSource(byte[] content)
content - The byte array that holds the PDF content.public ByteArrayPDFSource(byte[] content,
String name,
String path)
content - The byte array that holds the PDF content.name - THe name of the source, returned by the getName() methodpath - THe path to the source, returned by the getPath() method.public boolean equals(PDFSource other)
PDFSourcepublic byte[] getBytes()
public PDFContent getContent()
PDFSourcegetContent in interface PDFSourcepublic String getPath()
PDFSource