Advertisement
overwater

Untitled

Dec 28th, 2017
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.24 KB | None | 0 0
  1. //----------AP----------------------------------------------------------------------
  2.             PdfStream nDict = new PdfStream();
  3.             nDict.Put(PdfName.BBox, bbox);
  4.             nDict.Put(PdfName.Matrix, new PdfArray(new[] {anno.I1, anno.I2, anno.I3, anno.I4, anno.I5, anno.I6}));
  5.             nDict.Put(PdfName.Subtype, PdfName.Form);
  6.             nDict.Put(PdfName.Type, PdfName.XObject);
  7.  
  8.             tempDict2.Clear();
  9.             tempDict2.Add(PdfName.K, new PdfBoolean(false));
  10.             tempDict2.Add(PdfName.S, new PdfName("Transparency"));
  11.             tempDict2.Add(PdfName.Type, PdfName.Group);
  12.             nDict.Put(PdfName.Group, new PdfDictionary(tempDict2));
  13.  
  14.             tempDict2.Clear();
  15.  
  16.             PdfDictionary resDictionary = new PdfDictionary();
  17.             resDictionary.Put(new PdfName("Im0"), anno.Image.GetPdfObject());
  18.             tempDict2.Add(PdfName.XObject, resDictionary);
  19.  
  20.             tempDict2.Add(PdfName.ProcSet, new PdfArray(new PdfObject[] {new PdfName("PDF"), new PdfName("ImageC")}));
  21.             nDict.Put(PdfName.Resources, new PdfDictionary(tempDict2));
  22.  
  23.             tempDict.Clear();
  24.             tempDict.Add(PdfName.N, nDict);
  25.             annoDict.Put(PdfName.AP, new PdfDictionary(tempDict));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement