PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Tue Mar 19, 2024 9:41 am

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: RTF special characters
PostPosted: Mon Feb 15, 2021 10:10 pm 
Offline

Joined: Mon Feb 15, 2021 9:58 pm
Posts: 1
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.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 81 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Privacy Policy, Data Protection Declaration, Impressum
Powered by phpBB® Forum Software © phpBB Group