Hi Radaeepdf team,
I am using following code for draw text at pdf . I modified the code as suggested in
www.radaeepdf.com/forum/roadmap-and-rele...-box-at-pdf?start=12
method of OnPDFBlankTapped but when i try to add the text at tap location . text is not added at there its vary from tap location. one more point how can i add the underline style in text please help
method of
PageContent content = new PageContent();
content.Create();//create content, do not forget.
content.GSSave();
Matrix mat = new Matrix( 1, 1, X, Y);
content.GSSetMatrix(mat);
mat.Destroy();
Page page = doc.GetPage(currentpage_num);
Document.DocFont dfont = doc.NewFontCID("Roboto-Regular", 1);//bold and embed in horizontal writing
ResFont rfont = page.AddResFont(dfont);
content.TextBegin();
content.TextSetFont(rfont, p2);//set font and size
content.SetFillColor(colorcode);
content.SetStrokeColor(0xD50321);
content.TextSetCharSpace(0);
content.TextSetRenderMode(0);//fill and stroke
content.DrawText(textstr);
content.TextEnd();
content.GSRestore();
//add content to page
page.AddContent(content, true);
content.Destroy();