Exemplo n.º 1
0
 /// <summary>Sets a target dictionary specifying additional path information to the target document.</summary>
 /// <remarks>
 /// Sets a target dictionary specifying additional path information to the target document.
 /// If this entry is absent, the current document is the target file containing the destination.
 /// </remarks>
 /// <param name="target">the additional path target dictionary</param>
 /// <returns>this object wrapper</returns>
 public virtual iText.Kernel.Pdf.Action.PdfTarget SetTarget(iText.Kernel.Pdf.Action.PdfTarget target)
 {
     return(Put(PdfName.T, target.GetPdfObject()));
 }
Exemplo n.º 2
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);
 }