Microsoft Windows Phone 8.1 support ends (13 Jul 2017)

Microsoft has ended support for Windows Phone 8.1

Questions about Android development and PDF

how to use DrawText for multiline text

More
10 years 5 months ago #10005 by gabmor
Hi, I successfully use the draw text method por a single but when the text has two or more lines draw the text on the same line how can I do this?.

this is my code
Code:
Document.DocFont docFont = m_doc.NewFontCID("Roboto-Regular", 8);//embed font to PDF file Page page = m_doc.GetPage(0); page.ObjsStart(); ResFont resFont = page.AddResFont(docFont); PageContent content = new PageContent(); content.Create(); content.TextBegin(); content.TextSetFont(resFont, 15); content.SetFillColor(Color.BLACK); content.TextSetRenderMode(0); // fill content.TextMove(50, 700); content.DrawText(largeText); content.TextEnd(); page.AddContent(content, false); PDFVPage vpage = m_reader.getLayout().vGetPage(0); m_reader.getLayout().vRenderSync(vpage); content.Destroy(); page.Close();
More
10 years 5 months ago #10024 by radaee
plz try string like "line1 \n line2."
Time to create page: 3.613 seconds
Powered by Kunena Forum