PDFsharp & MigraDoc Foundation https://forum.pdfsharp.net/ |
|
Creating PDF file in wp7 https://forum.pdfsharp.net/viewtopic.php?f=2&t=1711 |
Page 1 of 1 |
Author: | ashwinikumar [ Tue Jul 05, 2011 10:02 am ] |
Post subject: | Creating PDF file in wp7 |
Hi , i am getting this error "Cannot allocate font data" in wp7 application . code is bellow. even i have trying for diffrent -diffrent font that is supported by wp7. can any one help me.It's urgent PdfDocument document = new PdfDocument(); PdfPage page = document.AddPage(); XGraphics gfx = XGraphics.FromPdfPage(page); string fm = FontFamily.Source; XFont ft = new XFont(fm, FontSize); XTextFormatter tf = new XTextFormatter(gfx); XRect rect = new XRect(40, 100, 250, 220); gfx.DrawRectangle(XBrushes.SeaShell, rect); tf.DrawString(text, ft, XBrushes.Black, rect, XStringFormats.TopLeft); |
Page 1 of 1 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |