|
static PdfFileSpecification | Url (PdfWriter writer, String url) |
|
static PdfFileSpecification | FileEmbedded (PdfWriter writer, String filePath, String fileDisplay, byte[] fileStore) |
|
static PdfFileSpecification | FileEmbedded (PdfWriter writer, String filePath, String fileDisplay, byte[] fileStore, int compressionLevel) |
|
static PdfFileSpecification | FileEmbedded (PdfWriter writer, String filePath, String fileDisplay, byte[] fileStore, bool compress) |
|
static PdfFileSpecification | FileEmbedded (PdfWriter writer, String filePath, String fileDisplay, byte[] fileStore, bool compress, String mimeType, PdfDictionary fileParameter) |
|
static PdfFileSpecification | FileEmbedded (PdfWriter writer, String filePath, String fileDisplay, byte[] fileStore, String mimeType, PdfDictionary fileParameter, int compressionLevel) |
|
static PdfFileSpecification | FileExtern (PdfWriter writer, String filePath) |
|
Specifies a file or an URL. The file can be extern or embedded.
- Author
- Paulo Soares (psoar.nosp@m.es@c.nosp@m.onsis.nosp@m.te.p.nosp@m.t)
◆ PdfFileSpecification()
iTextSharp.text.pdf.PdfFileSpecification.PdfFileSpecification |
( |
| ) |
|
◆ AddCollectionItem()
void iTextSharp.text.pdf.PdfFileSpecification.AddCollectionItem |
( |
PdfCollectionItem |
ci | ) |
|
Adds the Collection item dictionary.
◆ AddDescription()
void iTextSharp.text.pdf.PdfFileSpecification.AddDescription |
( |
String |
description, |
|
|
bool |
unicode |
|
) |
| |
Adds a description for the file that is specified here.
- Parameters
-
description | some text |
unicode | if true, the text is added as a unicode string |
◆ FileEmbedded() [1/5]
static PdfFileSpecification iTextSharp.text.pdf.PdfFileSpecification.FileEmbedded |
( |
PdfWriter |
writer, |
|
|
String |
filePath, |
|
|
String |
fileDisplay, |
|
|
byte[] |
fileStore |
|
) |
| |
|
static |
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.
- Parameters
-
writer | the PdfWriter |
filePath | the file path |
fileDisplay | the file information that is presented to the user |
fileStore | the byte array with the file. If it is not null it takes precedence over filePath |
- Exceptions
-
- Returns
- the file specification
◆ FileEmbedded() [2/5]
static PdfFileSpecification iTextSharp.text.pdf.PdfFileSpecification.FileEmbedded |
( |
PdfWriter |
writer, |
|
|
String |
filePath, |
|
|
String |
fileDisplay, |
|
|
byte[] |
fileStore, |
|
|
bool |
compress |
|
) |
| |
|
static |
Creates a file specification with the file embedded. The file may come from the file system or from a byte array.
- Parameters
-
writer | the PdfWriter |
filePath | the file path |
fileDisplay | the file information that is presented to the user |
fileStore | the byte array with the file. If it is not null it takes precedence over filePath |
compress | sets the compression on the data. Multimedia content will benefit little from compression |
- Exceptions
-
- Returns
- the file specification
◆ FileEmbedded() [3/5]
static PdfFileSpecification iTextSharp.text.pdf.PdfFileSpecification.FileEmbedded |
( |
PdfWriter |
writer, |
|
|
String |
filePath, |
|
|
String |
fileDisplay, |
|
|
byte[] |
fileStore, |
|
|
bool |
compress, |
|
|
String |
mimeType, |
|
|
PdfDictionary |
fileParameter |
|
) |
| |
|
static |
Creates a file specification with the file embedded. The file may come from the file system or from a byte array.
- Parameters
-
writer | the PdfWriter |
filePath | the file path |
fileDisplay | the file information that is presented to the user |
fileStore | the byte array with the file. If it is not null it takes precedence over filePath |
compress | sets the compression on the data. Multimedia content will benefit little from compression |
mimeType | the optional mimeType |
fileParameter | the optional extra file parameters such as the creation or modification date |
- Exceptions
-
- Returns
- the file specification
◆ FileEmbedded() [4/5]
static PdfFileSpecification iTextSharp.text.pdf.PdfFileSpecification.FileEmbedded |
( |
PdfWriter |
writer, |
|
|
String |
filePath, |
|
|
String |
fileDisplay, |
|
|
byte[] |
fileStore, |
|
|
int |
compressionLevel |
|
) |
| |
|
static |
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.
- Parameters
-
writer | the PdfWriter |
filePath | the file path |
fileDisplay | the file information that is presented to the user |
fileStore | the byte array with the file. If it is not null it takes precedence over filePath |
compressionLevel | the compression level to be used for compressing the file it takes precedence over filePath |
- Exceptions
-
- Returns
- the file specification
- Since
- 2.1.3
◆ FileEmbedded() [5/5]
static PdfFileSpecification iTextSharp.text.pdf.PdfFileSpecification.FileEmbedded |
( |
PdfWriter |
writer, |
|
|
String |
filePath, |
|
|
String |
fileDisplay, |
|
|
byte[] |
fileStore, |
|
|
String |
mimeType, |
|
|
PdfDictionary |
fileParameter, |
|
|
int |
compressionLevel |
|
) |
| |
|
static |
Creates a file specification with the file embedded. The file may come from the file system or from a byte array.
- Parameters
-
writer | the PdfWriter |
filePath | the file path |
fileDisplay | the file information that is presented to the user |
fileStore | the byte array with the file. If it is not null it takes precedence over filePath |
mimeType | the optional mimeType |
fileParameter | the optional extra file parameters such as the creation or modification date |
compressionLevel | the level of compression |
- Exceptions
-
- Returns
- the file specification
- Since
- 2.1.3
◆ FileExtern()
Creates a file specification for an external file.
- Parameters
-
- Returns
- the file specification
◆ SetUnicodeFileName()
void iTextSharp.text.pdf.PdfFileSpecification.SetUnicodeFileName |
( |
String |
filename, |
|
|
bool |
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.
- Parameters
-
filename | the filename |
unicode | if true, the filename is UTF-16BE encoded; otherwise PDFDocEncoding is used; |
◆ Url()
Creates a file specification of type URL.
- Parameters
-
- Returns
- the file specification
◆ refi
◆ writer
PdfWriter iTextSharp.text.pdf.PdfFileSpecification.writer |
|
protected |
◆ MultiByteFileName
byte [] iTextSharp.text.pdf.PdfFileSpecification.MultiByteFileName |
|
set |
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
- Parameters
-
fileName | the file name as a byte array |
◆ Reference
Gets the indirect reference to this file specification. Multiple invocations will retrieve the same value.
- Exceptions
-
- Returns
- the indirect reference
◆ Volatile
bool iTextSharp.text.pdf.PdfFileSpecification.Volatile |
|
set |
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.
- Parameters
-
volatile_file | if true, the external file should not be cached |
The documentation for this class was generated from the following file: