- Welcome, Guest. Please Login or Register
MindFusion  
  We have released initial version of MindFusion.JavaScript pack. It includes chart, diagram, calendar, map, virtual keyboard, gauge and UI components. Here are [url=https://mindfusion.eu/Forum/YaBB.pl?num=1564066903]more details[/url] and [url=https://mindfusion.eu/javascript-demo.html?sample=Activities]live demo[/url] for anyone interested.  
  HomeHelpSearchLoginRegister   
     
     
   
 
Page Index Toggle Pages: 1 Send Topic Print  
pdf export charset problem
Read 2793 times

lue   Offline
YaBB Newbies
*
Posts: 43
Gender: male
Austria
I love NetDiagram!


   
     
 
pdf export charset problem
Jun 28th, 2010 at 6:23am
 
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
 
 
  WWW
IP Logged    
 
     

Stoyo   Offline
YaBB Moderator
*****
Posts: 13230
MindFusion support


   
     
 
Re: pdf export charset problem
Reply #1 - Jun 28th, 2010 at 9:43am
 
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
 
 
 
IP Logged    
 
     

lue   Offline
YaBB Newbies
*
Posts: 43
Gender: male
Austria
I love NetDiagram!


   
     
 
Re: pdf export charset problem
Reply #2 - Jun 28th, 2010 at 12:58pm
 
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
 
 
  WWW
IP Logged    
 
     

lue   Offline
YaBB Newbies
*
Posts: 43
Gender: male
Austria
I love NetDiagram!


   
     
 
Re: pdf export charset problem
Reply #3 - Jun 28th, 2010 at 1:36pm
 
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
 
 
  WWW
IP Logged    
 
     

Stoyo   Offline
YaBB Moderator
*****
Posts: 13230
MindFusion support


   
     
 
Re: pdf export charset problem
Reply #4 - Jun 28th, 2010 at 3:17pm
 
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
 
 
 
IP Logged    
 
     

lue   Offline
YaBB Newbies
*
Posts: 43
Gender: male
Austria
I love NetDiagram!


   
     
 
Re: pdf export charset problem
Reply #5 - Jul 9th, 2010 at 6:15pm
 
When do you plan a patch or a new version of netdiagram with pdf default property?
best regards
chris
 
 
  WWW
IP Logged    
 
     

Stoyo   Offline
YaBB Moderator
*****
Posts: 13230
MindFusion support


   
     
 
Re: pdf export charset problem
Reply #6 - Jul 10th, 2010 at 2:33pm
 
By the end of July.

Best regards,
Stoyan
 
 
 
IP Logged    
 
     

bkernan   Offline
YaBB Newbies
*
Posts: 37
I love YaBB 1G - SP1!


   
     
 
Re: pdf export charset problem
Reply #7 - Jul 12th, 2010 at 8:18pm
 
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?
 
 
 
IP Logged    
 
     

Stoyo   Offline
YaBB Moderator
*****
Posts: 13230
MindFusion support


   
     
 
Re: pdf export charset problem
Reply #8 - Jul 13th, 2010 at 6:45am
 
The .NET 2 version won't allow that, but we'll try to make this work through the 'transparent security' system in .NET 4.
 
 
 
IP Logged    
 
     

dmitri   Offline
YaBB Newbies
*
Posts: 1
I Love MindFusion!


   
     
 
Re: pdf export charset problem
Reply #9 - Jul 26th, 2018 at 8:16am
 
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?
 
 
 
IP Logged    
 
     

Slavcho   Offline
God Member
*****
Posts: 1746
Gender: male
tech.support


   
     
 
Re: pdf export charset problem
Reply #10 - Jul 26th, 2018 at 8:33am
 
Hi,

It exported correctly in my test with all default settings -

Code:
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:
pdfex.AutoDetectEncoding = false;
pdfex.DefaultEncoding = System.Text.Encoding.Unicode; 



Regards,
Slavcho
Mindfusion
 
 

test_001.pdf (15 KB | 75 )
 
IP Logged    
 
     

Khatri   Offline
YaBB Newbies
*
Posts: 1
I Love MindFusion!


   
     
 
Re: pdf export charset problem
Reply #11 - Nov 24th, 2018 at 7:32am
 
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).
 
 
 
IP Logged    
 
     
Page Index Toggle Pages: 1 Send Topic Print