示例#1
0
 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());
 }
示例#2
0
 public void addFileAttachment(
     String description, byte fileStore[], String file, String fileDisplay) throws IOException {
   addFileAttachment(
       description, PdfFileSpecification.fileEmbedded(stamper, file, fileDisplay, fileStore));
 }