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);
        }
Exemplo n.º 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));
 }
Exemplo n.º 3
0
 public void Execute(PsContext context, IList <PdfObject> args)
 {
     context.SetTextMatrix(new Matrix());
     context.BeginText();
 }
Exemplo n.º 4
0
 public void Execute(PsContext context, IList <PdfObject> args)
 {
     context.SetTextMatrix(null);
     context.EndText();
 }