PDF Creator Pilot documentation |
Download CHM version of this manual. |
|
![]() ![]() Collapse AllThis method translates a string containing an array of glyph indexes to a unicode string.
|
| BSTR GlyphsToUnicodeStr ( BSTR glyphs ) |
Parameters
glyphs
Text string representing an array of glyph indexes
Return value
Unicode string containing the current font's symbols into which glyph indexes were passed by the glyphs parameter.
Remarks
This method uses the current font selected in PDF file. Call PDFPAGE_SetActiveFont before calling this method.
Example
Using the 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


