Skip to main content
Vijaykumar L S
Known Participant
May 24, 2018
Question

Greek Characters are not Displayed in PDF Doc

  • May 24, 2018
  • 3 replies
  • 856 views

Hi

I want to stamp greek characters into the pdf doc..but after stamping junk charactres are displayed..

I used the following code for creating PDEFont

pdeFontAttrs.name = ASAtomFromString(strFontName.c_str()); /* font name */

pdeFontAttrs.type = ASAtomFromString("Type1");       /* font type */

pdeFont = PDEFontCreate(&pdeFontAttrs, sizeof(pdeFontAttrs), 0, 255, 0, /* Widths*/ 0, PDFDocEncoding,/* Encoding*/ 0, 0, 0, 0);/* Font embedding */

PDSysEncoding sysEncoding;// = PDSysEncodingCreateFromCMapName(ASAtomFromString("Identity-H"));

sysEncoding = PDSysEncodingCreateFromCMapName(ASAtomFromString("Identity-V"));

PDEFontCreateFlags fontCreateFlags = (PDEFontCreateFlags)(kPDEFontCreateToUnicode | kPDEFontCreateEmbedded | kPDEFontWillSubset);

PDSysFont sysFont = PDFindSysFont(&pdeFontAttrs, sizeof(pdeFontAttrs), 0);

pdeFont = PDEFontCreateFromSysFontAndEncoding(sysFont, sysEncoding, pdeFontAttrs.name, fontCreateFlags);

pdeFont = PDEFontCreateFromSysFont(sysFont, kPDEFontCreateEmbedded);

for adding text into pdf I used PDEText Object.

Please help me...

Thanks..

This topic has been closed for replies.

3 replies

Legend
May 24, 2018

No, I will not support this incredibly rude behaviour.

Vijaykumar L S
Known Participant
May 24, 2018

Sorry for Posting it again...

I struck here....please give me some solution...

Thanks..

Legend
May 24, 2018

Multiple post. This is very annoying, I will no longer help you.