Greek Characters are not Displayed in PDF Doc

Community Beginner ,
May 24, 2018

Copy link to clipboard

Copied

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..

TOPICS
Acrobat SDK and JavaScript

Views

290

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

Greek Characters are not Displayed in PDF Doc

Community Beginner ,
May 24, 2018

Copy link to clipboard

Copied

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..

TOPICS
Acrobat SDK and JavaScript

Views

291

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
May 24, 2018 0
Most Valuable Participant ,
May 24, 2018

Copy link to clipboard

Copied

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

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
May 24, 2018 0
Community Beginner ,
May 24, 2018

Copy link to clipboard

Copied

Sorry for Posting it again...

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

Thanks..

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
May 24, 2018 0
Most Valuable Participant ,
May 24, 2018

Copy link to clipboard

Copied

No, I will not support this incredibly rude behaviour.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
May 24, 2018 1