PDFsharp & MigraDoc Foundation http://forum.pdfsharp.com/ |
|
RTF special characters http://forum.pdfsharp.com/viewtopic.php?f=2&t=4234 |
Page 1 of 1 |
Author: | warriorfenix [ Mon Feb 15, 2021 10:10 pm ] |
Post subject: | RTF special characters |
Hi i try to make a RTF but the accent mark or "ñ" character is not show good but in PDF yes. Code: Dim rtfRenderer As MigraDoc.RtfRendering.RtfDocumentRenderer = New MigraDoc.RtfRendering.RtfDocumentRenderer() Dim myRenderer As PdfDocumentRenderer = New PdfDocumentRenderer(True) With { .Document = myDoc } myRenderer.RenderDocument() Dim options As XPdfFontOptions = New PdfSharp.Drawing.XPdfFontOptions(PdfFontEncoding.Unicode) 'web/temp path myRenderer.PdfDocument.Save(Path.Combine(offerValues.webPath, String.Format("{0}{1}", offerValues.idProject, ".pdf"))) rtfRenderer.Render(myDoc.Clone(), offerValues.idProject + ".rft", offerValues.webPath) End Sub Im not sure where is the problem. |
Page 1 of 1 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |