Page Index Toggle Pages: 1 Send TopicPrint
Hot Topic (More than 10 Replies) pdf export charset problem (Read 9125 times)
lue
YaBB Newbies
*
Offline


I love NetDiagram!

Posts: 43
Location: Austria
Joined: Jan 9th, 2008
pdf export charset problem
Jun 28th, 2010 at 5:23am
Print Post  
Hi all!
Using the sample "pdfExporter" of the latest netdiagram version: instead of german Umlaute (öäü ...) the pdf-file shows only "?". Whats wrong?
We tested it under windows7, german language version.
Thanks!
Chris
  
Back to top
WWW  
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: pdf export charset problem
Reply #1 - Jun 28th, 2010 at 8:43am
Print Post  
Hi,

That seems to work fine for me, on an English-language Windows 7. Can you see umlauts in this PDF?
http://mindfusion.eu/_samples/umlauts.pdf

What happens if you export from an English language Windows too? Also do you have a DefaultEncoding property in your version of PdfExporter?

Stoyan
  
Back to top
 
IP Logged
 
lue
YaBB Newbies
*
Offline


I love NetDiagram!

Posts: 43
Location: Austria
Joined: Jan 9th, 2008
Re: pdf export charset problem
Reply #2 - Jun 28th, 2010 at 11:58am
Print Post  
Hi,
in your pdf i can see the umlaute correctly.
English Windows 7 Version is not available, i cannot test this.
I not found a DefaultEncoding-Property in my netdiagram version (3.1, including patch from download area; \bin contains mindfusion.diagramming 5.3.3.26418 and mindfusion.pdf.dll 1.0.3687.22785 and pdfexport.dll 5.1.1.25773 and mindfusion.diagramming.export.pdf.dll 5.3.3.26420).
thanks
Chris
  
Back to top
WWW  
IP Logged
 
lue
YaBB Newbies
*
Offline


I love NetDiagram!

Posts: 43
Location: Austria
Joined: Jan 9th, 2008
Re: pdf export charset problem
Reply #3 - Jun 28th, 2010 at 12:36pm
Print Post  
Hi,
i tried this example with windows7 ultimate with changed display language english: umlaute are not correct. I use asp.net 4.0 ... (is this a problem?).
regards chris
  
Back to top
WWW  
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: pdf export charset problem
Reply #4 - Jun 28th, 2010 at 2:17pm
Print Post  
I think we added this DefaultEncoding recently because of similar problems when the auto-detection fails, but it seems it's not yet available in an official release. Check the PM page for a download link for a newer version. Now if PdfExporter cannot detect the text encoding, it uses the DefaultEncoding value. By default it is set to Windows-1250 encoding, which should work fine with umlauts anyway.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
lue
YaBB Newbies
*
Offline


I love NetDiagram!

Posts: 43
Location: Austria
Joined: Jan 9th, 2008
Re: pdf export charset problem
Reply #5 - Jul 9th, 2010 at 5:15pm
Print Post  
When do you plan a patch or a new version of netdiagram with pdf default property?
best regards
chris
  
Back to top
WWW  
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: pdf export charset problem
Reply #6 - Jul 10th, 2010 at 1:33pm
Print Post  
By the end of July.

Best regards,
Stoyan
  
Back to top
 
IP Logged
 
bkernan
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 37
Joined: May 28th, 2009
Re: pdf export charset problem
Reply #7 - Jul 12th, 2010 at 7:18pm
Print Post  
Stoyan, this update you mention that will be available in July, will it allow the diagram with PDF exporting to run in a custom medium trust, since the pdf encoding code will not require the unmanaged code permission to run?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: pdf export charset problem
Reply #8 - Jul 13th, 2010 at 5:45am
Print Post  
The .NET 2 version won't allow that, but we'll try to make this work through the 'transparent security' system in .NET 4.
  
Back to top
 
IP Logged
 
dmitri
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 1
Joined: Jul 26th, 2018
Re: pdf export charset problem
Reply #9 - Jul 26th, 2018 at 7:16am
Print Post  
Hi guys, I am not sure if this forum is still alive but still will try to ask my question here.

I am trying to export umlauts to pdf but don't succeed, tried different combinations of properties but still no luck. 

CO�PERATIEV - is what I get in pdf
COÖPERATIEVE - is what I expect to get (and also what I see in the svg and visio exports).

Any clue?
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3152
Joined: Oct 19th, 2005
Re: pdf export charset problem
Reply #10 - Jul 26th, 2018 at 7:33am
Print Post  
Hi,

It exported correctly in my test with all default settings -

Code
Select All
diagram.Factory.CreateShapeNode(10, 10, 40, 25).
	Text = "COÖPERATIEVE";

var pdfex = new PdfExporter();
pdfex.Export(diagram, @"D:\test.pdf"); 



Automatic detection could be regional-settings dependent, I'm not sure. If it's not working on your system, try overriding encoding like this -

Code
Select All
pdfex.AutoDetectEncoding = false;
pdfex.DefaultEncoding = System.Text.Encoding.Unicode; 



Regards,
Slavcho
Mindfusion
  

test_001.pdf ( 15 KB | 249 Downloads )
Back to top
 
IP Logged
 
Khatri
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 1
Joined: Nov 24th, 2018
Re: pdf export charset problem
Reply #11 - Nov 24th, 2018 at 7:32am
Print Post  
Sounds like the font information is not embedded and Reader is substituting an incorrect font. You can confirm this by opening the PDF and going to File>Properties>Fonts. If they are embedded, you will see that next to the font names.



The best answer would be to have the person that created the PDF embed all font information (or at least the subsets).
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint