if (PDAnnotationFileAttachment.SUB_TYPE.equals(subtype)) annot = new PDAnnotationFileAttachment(annotDic);
/** * 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); }
PDComplexFileSpecification fileSpec = (PDComplexFileSpecification) fann.getFile(); try { AttributesImpl attributes = new AttributesImpl(); attributes.addAttribute("", "source", "source", "CDATA", "annotation"); extractMultiOSPDEmbeddedFiles(fann.getAttachmentName(), fileSpec, attributes); } catch (SAXException e) { throw new IOExceptionWithCause("file embedded in annotation sax exception", e);
PDFileSpecification fileSpec = annotationFileAttachment.getFile(); if (fileSpec instanceof PDComplexFileSpecification)
PDAnnotationFileAttachment txtLink = new PDAnnotationFileAttachment(); txtLink.setFile(fs); PDGamma blueColor = new PDGamma(); blueColor.setB(1); txtLink.setColour(blueColor); txtLink.setAnnotationFlags(PDAnnotationFileAttachment.FLAG_LOCKED); position.setUpperRightX(offsetX + 20); position.setUpperRightY(offsetY + 20); txtLink.setRectangle(position);
PDComplexFileSpecification fileSpec = (PDComplexFileSpecification) fann.getFile(); PDEmbeddedFile embeddedFile = fileSpec.getEmbeddedFile(); attachmentMetadata.setSubject(fann.getSubject()); attachmentMetadata.setName(fileSpec.getFilename()); attachmentMetadata.setCreationDate(embeddedFile.getCreationDate());
PDComplexFileSpecification fileSpec = (PDComplexFileSpecification) fann.getFile(); try { AttributesImpl attributes = new AttributesImpl(); attributes.addAttribute("", "source", "source", "CDATA", "annotation"); extractMultiOSPDEmbeddedFiles(fann.getAttachmentName(), fileSpec, attributes); } catch (SAXException e) { throw new IOExceptionWithCause("file embedded in annotation sax exception", e);
PDComplexFileSpecification fileSpec = (PDComplexFileSpecification) annotationFileAttachment.getFile(); PDEmbeddedFile embeddedFile = getEmbeddedFile(fileSpec); extractFile(filePath, fileSpec.getFilename(), embeddedFile);
PDComplexFileSpecification fileSpec = (PDComplexFileSpecification) fann.getFile(); try { AttributesImpl attributes = new AttributesImpl(); attributes.addAttribute("", "source", "source", "CDATA", "annotation"); extractMultiOSPDEmbeddedFiles(fann.getAttachmentName(), fileSpec, attributes); } catch (SAXException e) { throw new IOExceptionWithCause("file embedded in annotation sax exception", e);
PDComplexFileSpecification fileSpec = (PDComplexFileSpecification) annotationFileAttachment.getFile(); PDEmbeddedFile embeddedFile = getEmbeddedFile(fileSpec); extractFile(filePath, fileSpec.getFilename(), embeddedFile);
/** * Set the attached file. * * @param file The file that is attached. */ public void setFile(PDFileSpecification file) { getCOSObject().setItem("FS", file); }
if (PDAnnotationFileAttachment.SUB_TYPE.equals(subtype)) annot = new PDAnnotationFileAttachment(annotDic);
PDComplexFileSpecification fileSpec = (PDComplexFileSpecification) fann.getFile(); try { AttributesImpl attributes = new AttributesImpl(); attributes.addAttribute("", "source", "source", "CDATA", "annotation"); extractMultiOSPDEmbeddedFiles(fann.getAttachmentName(), fileSpec, attributes); } catch (SAXException e) { throw new IOExceptionWithCause("file embedded in annotation sax exception", e);
/** * Constructor. */ public PDAnnotationFileAttachment() { getCOSObject().setName(COSName.SUBTYPE, SUB_TYPE); }
if (PDAnnotationFileAttachment.SUB_TYPE.equals(subtype)) annot = new PDAnnotationFileAttachment(annotDic);
/** * 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 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); } }
/** * 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. * @deprecated use {@link #setAttachmentName(java.lang.String)}. */ @Deprecated public void setAttachementName(String name) { getCOSObject().setName(COSName.NAME, name); }