PDF Creator Pilot documentation |
Download CHM version of this manual. |
|
![]() ![]() Collapse AllTranslates the string with glyph indexes array to an unicode string.
|
| BSTR GlyphsToUnicodeStr ( BSTR glyphs ) |
Parameters
glyphs
Text string representing an array of glyph indexes.
Return value
Unicode string containing current font's symbols which glyph indexes were passed in glyphs parameter.
Remarks
This function uses current font selected in PDF file. Call PDFPAGE_SetActiveFont before calling this function.
Example
Using GlyphsToUnicodeStr method
Delphi
[copy to clipboard]
{ PDF object is supposed to be created }
PDF.BeginDoc;
PDF.PDFPAGE_SetActiveFont('Arial', False, False, False, False, 16.0, 0);
uString := PDF.GlyphsToUnicodeStr('$%&''()*+,-');
{ now uString = "ABCDEFGHIJ" }
PDF.EndDoc;
C/C++
[copy to clipboard]
// PDF object is supposed to be created
PDF->BeginDoc();
PDF->PDFPAGE_SetActiveFont("Arial", FALSE, FALSE, FALSE, FALSE, 16.0, 0);
CString uString = PDF->GlyphsToUnicodeStr("$%&'()*+,-");
// now uString = "ABCDEFGHIJ";
PDF.EndDoc();
C#
[copy to clipboard]
// PDF object is supposed to be created
PDF.BeginDoc();
PDF.PDFPAGE_SetActiveFont("Arial", false, false, false, false, 16.0, 0);
string uString = PDF.GlyphsToUnicodeStr("$%&'()*+,-");
// now uString = "ABCDEFGHIJ"
PDF.EndDoc();
Visual Basic
[copy to clipboard]
' PDF object is supposed to be created
PDF.BeginDoc
PDF.PDFPAGE_SetActiveFont "Arial", False, False, False, False, 16.0, 0
uString = PDF.GlyphsToUnicodeStr("$%&'()*+,-")
' now uString = "ABCDEFGHIJ"
PDF.EndDoc
See Also
Reference


