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