Exemplo n.º 1
0
 /// <summary>
 /// Creates a new
 /// <see cref="PdfTarget"/>
 /// object given its type.
 /// </summary>
 /// <remarks>
 /// Creates a new
 /// <see cref="PdfTarget"/>
 /// object given its type. The type must be either
 /// <see cref="iText.Kernel.Pdf.PdfName.P"/>
 /// , or
 /// <see cref="iText.Kernel.Pdf.PdfName.C"/>
 /// . If it is
 /// <see cref="iText.Kernel.Pdf.PdfName.C"/>
 /// , additional entries must be specified
 /// according to the spec.
 /// </remarks>
 /// <param name="r">the relationship between the current document and the target</param>
 private static iText.Kernel.Pdf.Action.PdfTarget Create(PdfName r)
 {
     iText.Kernel.Pdf.Action.PdfTarget pdfTarget = new iText.Kernel.Pdf.Action.PdfTarget(new PdfDictionary());
     pdfTarget.Put(PdfName.R, r);
     return(pdfTarget);
 }