Page Index Toggle Pages: 1 ... 3 4 [5]  Send TopicPrint
Very Hot Topic (More than 25 Replies) how to set wpf spreadsheet export pdf font. (Read 22065 times)
Slavcho
God Member
*****
Online


tech.support

Posts: 3148
Joined: Oct 19th, 2005
Re: how to set wpf spreadsheet export pdf font.
Reply #60 - Jun 11th, 2020 at 9:33am
Print Post  
We'll need to bypass our FontFamily code then, and use the name we get from GlyphRun's en-US entry directly. We'll upload new assemblies when done.
  
Back to top
 
IP Logged
 
Slavcho
God Member
*****
Online


tech.support

Posts: 3148
Joined: Oct 19th, 2005
Re: how to set wpf spreadsheet export pdf font.
Reply #61 - Jun 12th, 2020 at 5:46am
Print Post  
This build should encode correct font name -
https://mindfusion.eu/_temp/pdf_font_name.zip

Regards,
Slavcho
  
Back to top
 
IP Logged
 
David Chiang
Junior Member
**
Offline


I Love MindFusion!

Posts: 75
Joined: Apr 15th, 2020
Re: how to set wpf spreadsheet export pdf font.
Reply #62 - Jun 12th, 2020 at 7:11am
Print Post  
Correct.

Thanks for your help Cheesy
  
Back to top
 
IP Logged
 
Slavcho
God Member
*****
Online


tech.support

Posts: 3148
Joined: Oct 19th, 2005
Re: how to set wpf spreadsheet export pdf font.
Reply #63 - Jun 12th, 2020 at 7:24am
Print Post  
Thanks for yours too! We did try export on our en-US Windows with Chinese language pack installed but it was still returning the English names, so that seems very different from all-Chinese version of Windows.
  
Back to top
 
IP Logged
 
David Chiang
Junior Member
**
Offline


I Love MindFusion!

Posts: 75
Joined: Apr 15th, 2020
Re: how to set wpf spreadsheet export pdf font.
Reply #64 - Jun 12th, 2020 at 10:56am
Print Post  
BTW I don't need to set following flags. It work in acrobat reader as well. It doesn't work before.

                       var activeSheet = workbookView.ActiveWorksheet;
                       PdfExporter pdfExporter = new PdfExporter();
                       //pdfExporter.FontCachePath = @"C:\ZZReport\pdflib-fontrecords.xml";
                       //pdfExporter.EnableLogging("log.txt");
                       //pdfExporter.AutoDetectEncoding = false;
                       //pdfExporter.DefaultEncoding = Encoding.Unicode;
                       pdfExporter.Export(activeSheet, dialog.FileName);


Thanks Cheesy
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1 ... 3 4 [5] 
Send TopicPrint