ConvertTextToPathsA
內容串流編輯、字型
描述
ConvertTextToPaths 的 ANSI 變體
字串參數接受 ANSI 文字,其餘行為與寬字元字串版本完全相同
語法
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);
傳回值
| 1 或以上 | 轉換的文字顯示指令數 |
|---|---|
| 0 | 找不到符合條件的文字、範圍或選項無效,或轉換失敗。請檢視 LastErrorCode 以區分錯誤 |
錯誤碼
| 506 | 來源字型無法提供受支援的向量字形程式 |
|---|---|
| 507 | 文字裁剪描繪模式需要裁剪路徑,而它無法用獨立的字形 Form 表示 |
| 508 | 文字程式、字型狀態或遞迴 Form 資源範圍格式錯誤或有歧義 |
範例
Converted := PDF.ConvertTextToPaths('1-3,5', PDF_TEXT_PATH_DEFAULT);
If (Converted= 0)and (PDF.LastErrorCode<> 0) Then
raise Exception.Create(PDF.LastError);