/** * This is the name used to draw the type of attachment. See the ATTACHMENT_NAME_XXX constants. * * @return The name that describes the visual cue for the attachment. */ public String getAttachmentName() { return getCOSObject().getNameAsString(COSName.NAME, ATTACHMENT_NAME_PUSH_PIN); }
/** * Set the attached file. * * @param file The file that is attached. */ public void setFile(PDFileSpecification file) { getCOSObject().setItem("FS", file); }
/** * Constructor. */ public PDAnnotationFileAttachment() { getCOSObject().setName(COSName.SUBTYPE, SUB_TYPE); }
/** * Set the name used to draw the attachment icon. See the ATTACHMENT_NAME_XXX constants. * * @param name The name of the visual icon to draw. */ public void setAttachmentName(String name) { getCOSObject().setName(COSName.NAME, name); } }
/** * Return the attached file. * * @return The attached file. * * @throws IOException If there is an error creating the file spec. */ public PDFileSpecification getFile() throws IOException { return PDFileSpecification.createFS(getCOSObject().getDictionaryObject("FS")); }
/** * Set the name used to draw the attachment icon. See the ATTACHMENT_NAME_XXX constants. * * @param name The name of the visual icon to draw. * @deprecated use {@link #setAttachmentName(java.lang.String)}. */ @Deprecated public void setAttachementName(String name) { getCOSObject().setName(COSName.NAME, name); }
/** * Constructor. */ public PDAnnotationFileAttachment() { getCOSObject().setName(COSName.SUBTYPE, SUB_TYPE); }
/** * Set the name used to draw the attachement icon. See the ATTACHMENT_NAME_XXX constants. * * @param name The name of the visual icon to draw. */ public void setAttachementName(String name) { getCOSObject().setName("Name", name); } }
/** * Set the attached file. * * @param file The file that is attached. */ public void setFile(PDFileSpecification file) { getCOSObject().setItem("FS", file); }
/** * This is the name used to draw the type of attachment. See the ATTACHMENT_NAME_XXX constants. * * @return The name that describes the visual cue for the attachment. */ public String getAttachmentName() { return getCOSObject().getNameAsString(COSName.NAME, ATTACHMENT_NAME_PUSH_PIN); }
/** * Set the name used to draw the attachment icon. See the ATTACHMENT_NAME_XXX constants. * * @param name The name of the visual icon to draw. */ public void setAttachmentName(String name) { getCOSObject().setName(COSName.NAME, name); } }
/** * Set the attached file. * * @param file The file that is attached. */ public void setFile(PDFileSpecification file) { getCOSObject().setItem("FS", file); }
/** * This is the name used to draw the type of attachment. See the ATTACHMENT_NAME_XXX constants. * * @return The name that describes the visual cue for the attachment. */ public String getAttachmentName() { return getCOSObject().getNameAsString("Name", ATTACHMENT_NAME_PUSH_PIN); }
/** * Return the attached file. * * @return The attached file. * * @throws IOException If there is an error creating the file spec. */ public PDFileSpecification getFile() throws IOException { return PDFileSpecification.createFS(getCOSObject().getDictionaryObject("FS")); }
/** * Return the attached file. * * @return The attached file. * * @throws IOException If there is an error creating the file spec. */ public PDFileSpecification getFile() throws IOException { return PDFileSpecification.createFS(getCOSObject().getDictionaryObject("FS")); }
/** * Constructor. */ public PDAnnotationFileAttachment() { getCOSObject().setItem(COSName.SUBTYPE, COSName.getPDFName(SUB_TYPE)); }