public class EmbeddedFile
extends java.lang.Object
the document as a whole
, or
with annotations
that are located on a single page in a particular
location. Files in PDF documents may be concretely embedded — in which case their content
will be carried in full within the source PDF and be available via EmbeddedFile.getContent()
— or
they may be referentially "embedded", in which case the files' contents will only be available
via a URL provided by EmbeddedFile.getFileLocation()
.Modifier and Type | Method and Description |
---|---|
byte[] |
getContent()
Returns the data associated with this file, as embedded in the source document.
|
java.lang.String |
getDescription()
Returns the user-specified description of this file.
|
java.lang.String |
getFileLocation()
Returns a "specification" of the location of the file.
|
boolean |
isContentVolatile()
Returns true if the contents of this file should be expected to change over time.
|
public java.lang.String getDescription()
public boolean isContentVolatile()
EmbeddedFile.getFileLocation()
is a remote URL,
indicating that this "embedded file" is really just a reference.public java.lang.String getFileLocation()
"data.csv"
"C:\directory\ data.csv"
http://youtube.com/...
EmbeddedFile.getContent()
will likely return null
.public byte[] getContent()
null
if the file's data is not actually carried by the source document
(e.g. as when file's location
is a remote URL).java.io.IOException
- if an error occurs reading the file's content