PdfMediaClipData(String file, PdfFileSpecification fs, String mimeType) throws IOException { put(PdfName.TYPE, new PdfName("MediaClip")); put(PdfName.S, new PdfName("MCD")); put(PdfName.N, new PdfString("Media clip for " + file)); put(new PdfName("CT"), new PdfString(mimeType)); PdfDictionary dic = new PdfDictionary(); dic.put(new PdfName("TF"), new PdfString("TEMPACCESS")); put(new PdfName("P"), dic); put(PdfName.D, fs.getReference()); }
public void addFileAttachment( String description, byte fileStore[], String file, String fileDisplay) throws IOException { addFileAttachment( description, PdfFileSpecification.fileEmbedded(stamper, file, fileDisplay, fileStore)); }