Print Pdf Character Encoding

Jul 22, 2015 at 9:16 AM
Hi,

I use Ghostscript.Net v1.2.0 for printing pdf files. It prints pdf documents which has only english characters very well but when I try print pdf document which has some turkish characters it doesn't print these characters. Do you have any suggestion for this situation ? My source code shown below;
using (GhostscriptProcessor processor = new GhostscriptProcessor())
                    {
                        List<string> switches = new List<string>();
                        switches.Add("-empty");
                        switches.Add("-dPrinted");
                        switches.Add("-dBATCH");
                        switches.Add("-dNOPAUSE");
                        switches.Add("-dNOSAFER");
                        switches.Add("-dNumCopies="+item.NumberOfCopies);
                        switches.Add("-sDEVICE=mswinpr2");
                        switches.Add("-sOutputFile=%printer%" + item.PrinterName);
                        switches.Add("-f");
                        switches.Add(destFile);
                        processor.StartProcessing(switches.ToArray(), null);
                    }
Coordinator
Jul 22, 2015 at 10:17 AM
Hi codeFortix,

Can you somehow send me that PDF so I can test it?

You can put it somewhere on the web or send it directly to me: habjan@gmail.com

Cheers,
Josip
Jul 22, 2015 at 11:12 AM
Edited Jul 22, 2015 at 11:13 AM
Hi Josip,

I write links below about pdf and print out files.




Print Out File
Original Pdf
Coordinator
Jul 22, 2015 at 1:32 PM
Hi,

The fonts aren't embedded, therefore you get the best guess ghostscript can manage. Especially with non-latin fonts, you must have the original font available to Ghostscript to have a any chance of consistent/correct output. And the best way to manage that is to embed the font in the PDF - as is strongly recommended by the PDF spec.

Cheers,
Josip