Save This Page
Home » iText-src-2.1.3 » com.lowagie » text » pdf » [javadoc | source]
com.lowagie.text.pdf
public class: PdfFileSpecification [javadoc | source]
java.lang.Object
   com.lowagie.text.pdf.PdfObject
      com.lowagie.text.pdf.PdfDictionary
         com.lowagie.text.pdf.PdfFileSpecification
Specifies a file or an URL. The file can be extern or embedded.
Field Summary
protected  PdfWriter writer     
protected  PdfIndirectReference ref     
Fields inherited from com.lowagie.text.pdf.PdfDictionary:
FONT,  OUTLINES,  PAGE,  PAGES,  CATALOG,  hashMap
Fields inherited from com.lowagie.text.pdf.PdfObject:
BOOLEAN,  NUMBER,  STRING,  NAME,  ARRAY,  DICTIONARY,  STREAM,  NULL,  INDIRECT,  NOTHING,  TEXT_PDFDOCENCODING,  TEXT_UNICODE,  bytes,  type,  indRef
Constructor:
 public PdfFileSpecification() 
Method from com.lowagie.text.pdf.PdfFileSpecification Summary:
addCollectionItem,   addDescription,   fileEmbedded,   fileEmbedded,   fileEmbedded,   fileEmbedded,   fileEmbedded,   fileExtern,   getReference,   setMultiByteFileName,   setUnicodeFileName,   setVolatile,   url
Methods from com.lowagie.text.pdf.PdfDictionary:
contains,   get,   getAsArray,   getAsBoolean,   getAsDict,   getAsIndirectObject,   getAsName,   getAsNumber,   getAsStream,   getAsString,   getDirectObject,   getKeys,   isCatalog,   isFont,   isOutlineTree,   isPage,   isPages,   merge,   mergeDifferent,   put,   putAll,   putEx,   remove,   size,   toPdf,   toString
Methods from com.lowagie.text.pdf.PdfObject:
canBeInObjStm,   getBytes,   getIndRef,   isArray,   isBoolean,   isDictionary,   isIndirect,   isName,   isNull,   isNumber,   isStream,   isString,   length,   setContent,   setIndRef,   toPdf,   toString,   type
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from com.lowagie.text.pdf.PdfFileSpecification Detail:
 public  void addCollectionItem(PdfCollectionItem ci) 
    Adds the Collection item dictionary.
 public  void addDescription(String description,
    boolean unicode) 
    Adds a description for the file that is specified here.
 public static PdfFileSpecification fileEmbedded(PdfWriter writer,
    String filePath,
    String fileDisplay,
    byte[] fileStore) throws IOException 
    Creates a file specification with the file embedded. The file may come from the file system or from a byte array. The data is flate compressed.
 public static PdfFileSpecification fileEmbedded(PdfWriter writer,
    String filePath,
    String fileDisplay,
    byte[] fileStore,
    int compressionLevel) throws IOException 
    Creates a file specification with the file embedded. The file may come from the file system or from a byte array. The data is flate compressed.
 public static PdfFileSpecification fileEmbedded(PdfWriter writer,
    String filePath,
    String fileDisplay,
    byte[] fileStore,
    boolean compress) throws IOException 
    Creates a file specification with the file embedded. The file may come from the file system or from a byte array.
 public static PdfFileSpecification fileEmbedded(PdfWriter writer,
    String filePath,
    String fileDisplay,
    byte[] fileStore,
    boolean compress,
    String mimeType,
    PdfDictionary fileParameter) throws IOException 
    Creates a file specification with the file embedded. The file may come from the file system or from a byte array.
 public static PdfFileSpecification fileEmbedded(PdfWriter writer,
    String filePath,
    String fileDisplay,
    byte[] fileStore,
    String mimeType,
    PdfDictionary fileParameter,
    int compressionLevel) throws IOException 
    Creates a file specification with the file embedded. The file may come from the file system or from a byte array.
 public static PdfFileSpecification fileExtern(PdfWriter writer,
    String filePath) 
    Creates a file specification for an external file.
 public PdfIndirectReference getReference() throws IOException 
    Gets the indirect reference to this file specification. Multiple invocations will retrieve the same value.
 public  void setMultiByteFileName(byte[] fileName) 
    Sets the file name (the key /F) string as an hex representation to support multi byte file names. The name must have the slash and backslash escaped according to the file specification rules
 public  void setUnicodeFileName(String filename,
    boolean unicode) 
    Adds the unicode file name (the key /UF). This entry was introduced in PDF 1.7. The filename must have the slash and backslash escaped according to the file specification rules.
 public  void setVolatile(boolean volatile_file) 
    Sets a flag that indicates whether an external file referenced by the file specification is volatile. If the value is true, applications should never cache a copy of the file.
 public static PdfFileSpecification url(PdfWriter writer,
    String url) 
    Creates a file specification of type URL.