| Method from com.lowagie.text.pdf.collection.PdfTargetDictionary Detail: |
public void setAdditionalPath(PdfTargetDictionary nested) {
put(PdfName.T, nested);
}
If this dictionary refers to an intermediate target, you can
add the next target in the sequence. |
public void setEmbeddedFileName(String target) {
put(PdfName.N, new PdfString(target, null));
}
If this dictionary refers to a child that is a document level attachment,
you need to specify the name that was used to attach the document. |
public void setFileAttachmentIndex(int annotation) {
put(PdfName.A, new PdfNumber(annotation));
}
If this dictionary refers to a child that is a file attachment added to a page,
you need to specify the page with setFileAttachmentPage or setFileAttachmentPageName,
and then specify the index of the attachment added to this page (or use setFileAttachmentName). |
public void setFileAttachmentName(String name) {
put(PdfName.A, new PdfString(name, PdfObject.TEXT_UNICODE));
}
If this dictionary refers to a child that is a file attachment added to a page,
you need to specify the page with setFileAttachmentPage or setFileAttachmentPageName,
and then specify the name of the attachment added to this page (or use setFileAttachmentIndex). |
public void setFileAttachmentPage(int page) {
put(PdfName.P, new PdfNumber(page));
}
If this dictionary refers to a child that is a file attachment added to a page,
you need to specify the page number (or use setFileAttachmentPagename to specify a named destination).
Once you have specified the page, you still need to specify the attachment using another method. |
public void setFileAttachmentPagename(String name) {
put(PdfName.P, new PdfString(name, null));
}
If this dictionary refers to a child that is a file attachment added to a page,
you need to specify the name of the page (or use setFileAttachmentPage to specify the page number).
Once you have specified the page, you still need to specify the attachment using another method. |