iTextSharp.text.pdf.PdfArray.GetAsName C# (CSharp) Метод

GetAsName() публичный Метод

public GetAsName ( int idx ) : PdfName
idx int
Результат PdfName
    public PdfName GetAsName(int idx) {
        PdfName name = null;
        PdfObject orig = GetDirectObject(idx);
        if (orig != null && orig.IsName())
            name = (PdfName) orig;
        return name;
    }
    

Usage Example

Пример #1
0
 virtual public void TransformDestination(float a, float b, float c, float d, float e, float f)
 {
     if (!IsInternal())
     {
         throw new ArgumentException(MessageLocalization.GetComposedMessage("cannot.change.destination.of.external.link"));
     }
     if (destination.GetAsName(1).Equals(PdfName.XYZ))
     {
         float x  = destination.GetAsNumber(2).FloatValue;
         float y  = destination.GetAsNumber(3).FloatValue;
         float xx = x * a + y * c + e;
         float yy = x * b + y * d + f;
         destination.ArrayList[2] = new PdfNumber(xx);
         destination.ArrayList[3] = new PdfNumber(yy);
     }
 }
All Usage Examples Of iTextSharp.text.pdf.PdfArray::GetAsName