ConvertTextToPathsA
Contentstreambewerking, lettertypen
Beschrijving
ANSI variant of ConvertTextToPaths
Accepteert string-parameters als ANSI-tekst en gedraagt zich verder identiek aan het wide-string-entrypoint
Syntaxis
Delphi
Function TPDFlib.ConvertTextToPaths(Const PageRange: WideString= ''; Options: Integer= PDF_TEXT_PATH_DEFAULT): Integer;
ActiveX
Function PDFlib::ConvertTextToPaths(PageRange As String, Options As Long) As Long
DLL
int DLConvertTextToPaths(int InstanceID, const wchar_t *PageRange, int Options);
int DLConvertTextToPathsA(int InstanceID, const char *PageRange, int Options);
Retourwaarden
| 1 of meer | Aantal omgezette tekstweergave-instructies |
|---|---|
| 0 | Er is geen in aanmerking komende tekst gevonden, het bereik of de opties waren ongeldig, of de conversie mislukte. Bekijk LastErrorCode om fouten te onderscheiden |
Foutcodes
| 506 | Het bronfont levert geen ondersteund vector-glyph-programma |
|---|---|
| 507 | Een tekst-clipping-rendermodus vereist een clipping path die niet als onafhankelijke glyph-Form kan worden weergegeven |
| 508 | Het tekstprogramma, de fontstatus of de recursieve Form-resourcescope is misvormd of ambigu |
Voorbeeld
Converted := PDF.ConvertTextToPaths('1-3,5', PDF_TEXT_PATH_DEFAULT);
If (Converted= 0)and (PDF.LastErrorCode<> 0) Then
raise Exception.Create(PDF.LastError);