This represents a file specification.
Method from org.apache.pdfbox.pdmodel.common.filespecification.PDComplexFileSpecification Detail: |
public COSDictionary getCOSDictionary() {
return fs;
}
Convert this standard java object to a COS object. |
public COSBase getCOSObject() {
return fs;
}
Convert this standard java object to a COS object. |
public PDEmbeddedFile getEmbeddedFile() {
PDEmbeddedFile file = null;
COSStream stream = (COSStream)fs.getObjectFromPath( "EF/F" );
if( stream != null )
{
file = new PDEmbeddedFile( stream );
}
return file;
}
|
public PDEmbeddedFile getEmbeddedFileDos() {
PDEmbeddedFile file = null;
COSStream stream = (COSStream)fs.getObjectFromPath( "EF/DOS" );
if( stream != null )
{
file = new PDEmbeddedFile( stream );
}
return file;
}
Get the embedded dos file. |
public PDEmbeddedFile getEmbeddedFileMac() {
PDEmbeddedFile file = null;
COSStream stream = (COSStream)fs.getObjectFromPath( "EF/Mac" );
if( stream != null )
{
file = new PDEmbeddedFile( stream );
}
return file;
}
Get the embedded Mac file. |
public PDEmbeddedFile getEmbeddedFileUnix() {
PDEmbeddedFile file = null;
COSStream stream = (COSStream)fs.getObjectFromPath( "EF/Unix" );
if( stream != null )
{
file = new PDEmbeddedFile( stream );
}
return file;
}
Get the embedded Unix file. |
public String getFile() {
return fs.getString( "F" );
}
This will get the file name. |
public String getFileDos() {
return fs.getString( "DOS" );
}
This will get the name representing a Dos file. |
public String getFileMac() {
return fs.getString( "Mac" );
}
This will get the name representing a Mac file. |
public String getFileUnix() {
return fs.getString( "Unix" );
}
This will get the name representing a Unix file. |
public boolean isVolatile() {
return fs.getBoolean( "V", false );
}
Get if the file is volatile. Default: false |
public void setEmbeddedFile(PDEmbeddedFile file) {
COSDictionary ef = (COSDictionary)fs.getDictionaryObject( "EF" );
if( ef == null && file != null )
{
ef = new COSDictionary();
fs.setItem( "EF", ef );
}
if( ef != null )
{
ef.setItem( "F", file );
}
}
Set the embedded file for this spec. |
public void setEmbeddedFileDos(PDEmbeddedFile file) {
COSDictionary ef = (COSDictionary)fs.getDictionaryObject( "DOS" );
if( ef == null && file != null )
{
ef = new COSDictionary();
fs.setItem( "EF", ef );
}
if( ef != null )
{
ef.setItem( "DOS", file );
}
}
Set the embedded dos file for this spec. |
public void setEmbeddedFileMac(PDEmbeddedFile file) {
COSDictionary ef = (COSDictionary)fs.getDictionaryObject( "Mac" );
if( ef == null && file != null )
{
ef = new COSDictionary();
fs.setItem( "EF", ef );
}
if( ef != null )
{
ef.setItem( "Mac", file );
}
}
Set the embedded Mac file for this spec. |
public void setEmbeddedFileUnix(PDEmbeddedFile file) {
COSDictionary ef = (COSDictionary)fs.getDictionaryObject( "Unix" );
if( ef == null && file != null )
{
ef = new COSDictionary();
fs.setItem( "EF", ef );
}
if( ef != null )
{
ef.setItem( "Unix", file );
}
}
Set the embedded Unix file for this spec. |
public void setFile(String file) {
fs.setString( "F", file );
}
This will set the file name. |
public void setFileDos(String file) {
fs.setString( "DOS", file );
}
This will set name representing a dos file. |
public void setFileMac(String file) {
fs.setString( "Mac", file );
}
This will set name representing a Mac file. |
public void setFileUnix(String file) {
fs.setString( "Unix", file );
}
This will set name representing a Unix file. |
public void setVolatile(boolean fileIsVolatile) {
fs.setBoolean( "V", fileIsVolatile );
}
Tell if the underlying file is volatile and should not be cached by the
reader application. Default: false |