I have 1 PDF file available, please see picture 1
I use the code to add text to the pdf file as follows:
// Code
string pdffile = @ "C: \ 201908291055.pdf";
PdfDocument doc = new PdfDocument ();
doc.LoadFromFile (pdffile);
string HeaderStr = "Im OK ADD TEXT";
PdfTrueTypeFont font = new PdfTrueTypeFont (new Font ("Arial", 13f, FontStyle.Regular), true);
PdfBrush brush = PdfBrushes.Blue;
float postx = 371.33963f;
float posty = 320.942139f;
string HeaderStr = "Im OK ADD TEXT";
RectangleF rectf = new RectangleF (postx, posty, 0, 0);
doc.Pages [0] .Canvas.DrawString (HeaderStr, font, brush, rectf);
string result = @ "C: \ itemok.pdf";
doc.SaveToFile (result);
doc.Close ();
// end code.
but the end result did not work as expected.
Please help me, I am thinking the pdf file is PdfPageRotateAngle.RotateAngle270. make it affect adding text,
Help me
tks,
MR THUY