PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Fri Dec 14, 2018 2:26 pm

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 7 posts ] 
Author Message
PostPosted: Fri Mar 30, 2018 3:11 pm 
Offline

Joined: Fri Mar 30, 2018 3:01 pm
Posts: 3
Hi,
I'm writing an RTF document with the MigraDoc class RtfRendering.
When I add text with the method AddFormattedText and there're some accented chars (i.e.: àèìòù) I've a strange output.
Is there a solution?
Thanks in advance.
Bye


Top
 Profile  
Reply with quote  
PostPosted: Fri Mar 30, 2018 3:24 pm 
Online
PDFsharp Expert
User avatar

Joined: Sat Mar 14, 2015 10:15 am
Posts: 430
Location: CCAA
Hi!
alexanderthorn wrote:
[...] I've a strange output.
Make it replicable.
http://pdfsharp.net/wiki/IssueSubmissions.ashx

_________________
Best regards
Thomas
(Freelance Software Developer with several years of MigraDoc/PDFsharp experience)


Top
 Profile  
Reply with quote  
PostPosted: Fri Mar 30, 2018 3:38 pm 
Offline

Joined: Fri Mar 30, 2018 3:01 pm
Posts: 3
Sorry,

input chars:

àèéìòù
!"£$%&/()='ì?^

output chars:

������
!"�$%&/()='�?^


Thanks! :)


Top
 Profile  
Reply with quote  
PostPosted: Fri Mar 30, 2018 3:53 pm 
Online
PDFsharp Expert
User avatar

Joined: Sat Mar 14, 2015 10:15 am
Posts: 430
Location: CCAA
alexanderthorn wrote:
input chars: [...] output chars:
Which font? Which operating system? Which tool used to open RTF file? Which MigraDoc version?


Link:
viewtopic.php?f=2&t=832

Thanks! :lol:

_________________
Best regards
Thomas
(Freelance Software Developer with several years of MigraDoc/PDFsharp experience)


Top
 Profile  
Reply with quote  
PostPosted: Fri Mar 30, 2018 4:00 pm 
Offline

Joined: Fri Mar 30, 2018 3:01 pm
Posts: 3
Sorry for my approximation.

There's few code.

fnt = New DocumentObjectModel.Font
fnt.Size = 12
fnt.Bold = True
fnt.Color = DocumentObjectModel.Colors.Blue

hyperlink = New DocumentObjectModel.Hyperlink
hyperlink.Type = DocumentObjectModel.HyperlinkType.File
hyperlink.Name = "àèìòù"
hyperlink.AddFormattedText("àèìòù", fnt)

paragraph.Add(hyperlink)


PDFsharp-MigraDoc-GDI 1.32.4334.0
Windows 10 Pro

Thanks twice ;)


Top
 Profile  
Reply with quote  
PostPosted: Fri Mar 30, 2018 5:11 pm 
Online
PDFsharp Expert
User avatar

Joined: Sat Mar 14, 2015 10:15 am
Posts: 430
Location: CCAA
Today (Friday) and Monday are bank holidays in Germany.
I'll try the text in our application on Tuesday to see what MigraDoc 1.50 makes out of it.

_________________
Best regards
Thomas
(Freelance Software Developer with several years of MigraDoc/PDFsharp experience)


Top
 Profile  
Reply with quote  
PostPosted: Tue Apr 03, 2018 8:14 am 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 2897
Location: Cologne, Germany
Hi!

I made a test with our application.
Input data:
Code:
àèéìòù
!"£$%&/()='ì?^


Output data shown by MS Word 2016:
Code:
àèéìòù
!"£$%&/()='ì?^


Case closed, because not replicable with current version.

Maybe there is something wrong with your code. Maybe this is a problem of the old version 1.32 which was fixed sometime in the four or five years that elapsed since version 1.32 was published.

_________________
Regards
Thomas Hoevel
PDFsharp Team


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

All times are UTC


Who is online

Users browsing this forum: TH-Soft and 6 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