public class ContentDisposition
extends java.lang.Object
Remarks:
Note that the actual behavior on the client browser might be affected by security configuration of the browser.
Examples:
Shows how to perform a mail merge, and then save the document to the client browser.
Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);
builder.insertField(" MERGEFIELD FullName ");
builder.insertParagraph();
builder.insertField(" MERGEFIELD Company ");
builder.insertParagraph();
builder.insertField(" MERGEFIELD Address ");
builder.insertParagraph();
builder.insertField(" MERGEFIELD City ");
doc.getMailMerge().execute(new String[]{"FullName", "Company", "Address", "City"},
new Object[]{"James Bond", "MI5 Headquarters", "Milbank", "London"});
| Modifier and Type | Field and Description |
|---|---|
static int |
ATTACHMENT
Send the document to the browser and present an option to save the document to disk or open in the application associated with the document's extension.
|
static int |
INLINE
Send the document to the browser and presents an option to save the document to disk or open inside the browser.
|
static int |
length |
| Modifier and Type | Method and Description |
|---|---|
static int |
fromName(java.lang.String contentDispositionName) |
static java.lang.String |
getName(int contentDisposition) |
static int[] |
getValues() |
static java.lang.String |
toString(int contentDisposition) |
public static int ATTACHMENT
public static int INLINE
public static int length