public void Execute(PsContext context, IList <PdfObject> args)
        {
            Double tx = (args[0] as IPdfNumber).NumberValue;
            Double ty = (args[1] as IPdfNumber).NumberValue;

            var translate = new Matrix(tx, ty);
            var newMx     = translate * context.TextLineMatrix;

            context.SetTextMatrix(newMx);
        }
Пример #2
0
 public void Execute(PsContext context, IList <PdfObject> args)
 {
     Double[] mx = new Double[6];
     for (int i = 0; i < 6; i++)
     {
         if (args[i] is IPdfNumber pdfNumber)
         {
             mx[i] = pdfNumber.NumberValue;
         }
     }
     context.SetTextMatrix(new Matrix(mx));
 }
Пример #3
0
 public void Execute(PsContext context, IList <PdfObject> args)
 {
     context.SetTextMatrix(new Matrix());
     context.BeginText();
 }
Пример #4
0
 public void Execute(PsContext context, IList <PdfObject> args)
 {
     context.SetTextMatrix(null);
     context.EndText();
 }