Foxit PDF SDK

类 | 命名空间 | 类型定义 | 枚举 | 函数
fs_basictypes.h 文件参考

基本类型定义的头文件。 更多...

浏览源代码.

## 类
class | foxit::Base
class | foxit::DateTime
class | foxit::Exception
class | foxit::StringArray
class | foxit::WStringArray

## 命名空间
| foxit
| Foxit命名空间。

## 类型定义
typedef uint32 | foxit::ARGB
| ARGB 颜色类型，32 位，((b) | ((g) << 8) | ((r) << 16)) | ((a) << 24)
typedef FX_INT64 | foxit::FILESIZE
| 文件大小。直接支持大文件
typedef CFX_ArrayTemplate< float > | foxit::FloatArray
| 浮点值数组。
typedef void * | foxit::FS_HANDLE
| 句柄类型。
typedef FX_INT16 | foxit::int16
| 有符号 16 位整数。
typedef FX_INT32 | foxit::int32
| 有符号 32 位整数。
typedef CFX_ArrayTemplate< int32 > | foxit::Int32Array
| 有符号整数值数组。
typedef FX_INT64 | foxit::int64
| 有符号 64 位整数。
typedef FX_INT8 | foxit::int8
| 有符号 8 位整数。
typedef CFX_Matrix | foxit::Matrix
| 矩阵信息，浮点型。
typedef CFX_Object | foxit::Object
| 对象类型。
typedef PointF | foxit::Offset
| 偏移信息，浮点型。
typedef CFX_PointF | foxit::PointF
| 点信息，浮点型。
typedef CFX_ArrayTemplate< PointF > | foxit::PointFArray
| PointF对象数组。
typedef FX_POSITION | foxit::POSITION
| 用于表示集合中元素位置的值。
typedef CFX_FloatRect | foxit::RectF
| 矩形，浮点型。
typedef CFX_ArrayTemplate< RectF > | foxit::RectFArray
| RectF对象数组。
typedef FX_RECT | foxit::RectI
| 矩形，整数型。
typedef uint32 | foxit::RGB
| RGB 颜色类型，24 位，((b) | ((g) << 8) | ((r) << 16)))
typedef CFX_ByteString | foxit::String
| 字节字符串。
typedef FX_UINT16 | foxit::uint16
| 无符号 16 位整数。
typedef FX_UINT32 | foxit::uint32
| 无符号 32 位整数。
typedef CFX_ArrayTemplate< uint32 > | foxit::UInt32Array
| An array of unsigned integer values.
typedef FX_UINT64 | foxit::uint64
| 无符号 64 位整数。
typedef FX_UINT8 | foxit::uint8
| 无符号 8 位整数。
typedef CFX_WideString | foxit::WString
| 宽字符串。

## 枚举
enum | foxit::ErrorCode { foxit::e_ErrSuccess = 0, foxit::e_ErrFile = 1, foxit::e_ErrFormat = 2, foxit::e_ErrPassword = 3, foxit::e_ErrHandle = 4, foxit::e_ErrCertificate = 5, foxit::e_ErrUnknown = 6, foxit::e_ErrInvalidLicense = 7, foxit::e_ErrParam = 8, foxit::e_ErrUnsupported = 9, foxit::e_ErrOutOfMemory = 10, foxit::e_ErrSecurityHandler = 11, foxit::e_ErrNotParsed = 12, foxit::e_ErrNotFound = 13, foxit::e_ErrInvalidType = 14, foxit::e_ErrConflict = 15, foxit::e_ErrUnknownState = 16, foxit::e_ErrDataNotReady = 17, foxit::e_ErrInvalidData = 18, foxit::e_ErrXFALoadError = 19, foxit::e_ErrNotLoaded = 20, foxit::e_ErrInvalidState = 21, foxit::e_ErrNotCDRM = 22, foxit::e_ErrCanNotConnectToServer = 23, foxit::e_ErrInvalidUserToken = 24, foxit::e_ErrNoRights = 25, foxit::e_ErrRightsExpired = 26, foxit::e_ErrDeviceLimitation = 27, foxit::e_ErrCanNotRemoveSecurityFromServer = 28, foxit::e_ErrCanNotGetACL = 29, foxit::e_ErrCanNotSetACL = 30, foxit::e_ErrIsAlreadyCPDF = 31, foxit::e_ErrIsAlreadyCDRM = 32, foxit::e_ErrCanNotUploadDocInfo = 33, foxit::e_ErrCanNotUploadCDRMInfo = 34, foxit::e_ErrInvalidWrapper = 35, foxit::e_ErrCanNotGetClientID = 36, foxit::e_ErrCanNotGetUserToken = 37, foxit::e_ErrInvalidACL = 38, foxit::e_ErrInvalidClientID = 39, foxit::e_ErrOCREngineNotInit = 40, foxit::e_ErrDiskFull = 41, foxit::e_ErrOCRTrialIsEnd = 42, foxit::e_ErrFilePathNotExist = 43, foxit::e_ErrComplianceEngineNotInit = 44, foxit::e_ErrComplianceEngineInvalidUnlockCode = 45, foxit::e_ErrComplianceEngineInitFailed = 46, foxit::e_ErrTimeStampServerMgrNotInit = 47, foxit::e_ErrLTVVerifyModeNotSet = 48, foxit::e_ErrLTVRevocationCallbackNotSet = 49, foxit::e_ErrLTVCannotSwitchVersion = 50, foxit::e_ErrLTVCannotCheckDTS = 51, foxit::e_ErrLTVCannotLoadDSS = 52, foxit::e_ErrLTVCannotLoadDTS = 53, foxit::e_ErrNeedSigned = 54, foxit::e_ErrComplianceResourceFile = 55, foxit::e_ErrTimeStampServerMgrNoDefaltServer = 56, foxit::e_ErrDefaultTimeStampServer = 57, foxit::e_ErrNoConnectedPDFModuleRight = 58, foxit::e_ErrNoXFAModuleRight = 59, foxit::e_ErrNoRedactionModuleRight = 60, foxit::e_ErrNoRMSModuleRight = 61, foxit::e_ErrNoOCRModuleRight = 62, foxit::e_ErrNoComparisonModuleRight = 63, foxit::e_ErrNoComplianceModuleRight = 64, foxit::e_ErrNoOptimizerModuleRight = 65, foxit::e_ErrNoConversionModuleRight = 66, foxit::e_ErrOfficeComNotInit = 67, foxit::e_ErrNoMicroOfficeInstalled = 68, foxit::e_ErrExcelHasNoContent = 69, foxit::e_ErrNoLayoutRecognitionModuleRight = 70, foxit::e_ErrWPSEngineNotFound = 71, foxit::e_ErrLibreofficeEngineNotFound = 72, foxit::e_ErrNoAccessibilityModuleRight = 73, foxit::e_ErrODAEngineNotFound = 74, foxit::e_ErrNoTableMakerModuleRight = 75, foxit::e_ErrNoDWG2PDFModuleRight = 76, foxit::e_ErrNoAdvEditModuleRight = 77, foxit::e_ErrNoPDF2OfficeModuleRight = 78, foxit::e_ErrURLInBlackList = 79, foxit::e_ErrOFDEngineNotInit = 80, foxit::e_ErrNoOFDModuleRight = 81, foxit::e_ErrNo3DModuleRight = 82, foxit::e_ErrInvalidRegex = 83, foxit::e_ErrNoDocumentPermission = 84, foxit::e_ErrNoOffice2PDFModuleRight = 85, foxit::e_ErrMIPUPEEngineInitFailed = 86, foxit::e_ErrMIPProtectionEngineInitFailed = 87, foxit::e_ErrMIPCreateProtectionHandlerFailed = 88, foxit::e_ErrMIPGetExtendedLabelInfoByIdFailed = 89, foxit::e_ErrNoPrint2PDFModuleRight = 90, foxit::e_ErrResponseDataError = 91, foxit::e_ErrTimeout = 92, foxit::e_ErrNoImageObject = 93, foxit::e_ErrFXOCREngineNotInit = 94, foxit::e_ErrOFDCreateWriteContentObject = 95, foxit::e_ErrNullPointer = 96, foxit::e_ErrPathCountFailed = 97, foxit::e_ErrNoAttachment = 98, foxit::e_ErrGetAttachmentFile = 99, foxit::e_ErrCountTemplatePages = 100, foxit::e_ErrLoadLibrary = 101 }
| 错误代码的枚举。 更多...

## 函数
CFX_ByteString | FX_UTF8Encode (const wchar_t *wstr)
| Convert wide string to UTF-8 encoding byte string. 更多...
bool | operator!= (const char *str1, const CFX_ByteString &str2)
| 检查两个字节字符串是否不相等。 更多...
std::ostream & | operator<< (std::ostream &os, const CFX_ByteString &str)
| 将字节字符串输出到 std::ostream。 更多...
std::wostream & | operator<< (std::wostream &os, const CFX_WideString &str)
| 将宽字符串输出到 std::wostream。 更多...
bool | operator== (const char *str1, const CFX_ByteString &str2)
| 检查两个字节字符串是否相等。 更多...

## 详细描述

基本类型定义的头文件。

Copyright (C) 2003-2026, Foxit Software Inc.. All Rights Reserved.

http://www.foxitsoftware.com

The following code is copyrighted and is the proprietary of Foxit Software Inc.. It is not allowed to distribute any parts of Foxit PDF SDK to third party or public without permission unless an agreement is signed between Foxit Software Inc. and customers to explicitly grant customers permissions.

## 函数说明

## ◆ FX_UTF8Encode()

CFX_ByteString FX_UTF8Encode | ( | const wchar_t * | wstr | ) |
| inline

Convert wide string to UTF-8 encoding byte string.

参数

  [in] | wstr | Wide string.

返回
  A UTF-8 encoding byte string.

## ◆ operator!=()

bool operator!= | ( | const char * | str1,
|  | const CFX_ByteString & | str2
| ) |  |
| inline

检查两个字节字符串是否不相等。

参数

  [in] | str1 | 字节字符串。
  [in] | str2 | CFX_ByteString 对象。

返回
  true 表示不相等，false 表示相等。

## ◆ operator<<() [1/2]

std::ostream& operator<< | ( | std::ostream & | os,
|  | const CFX_ByteString & | str
| ) |  |
| inline

将字节字符串输出到 std::ostream。

参数

  [in] | os | std::ostream 对象。
  [in] | str | CFX_ByteString 对象。

返回
  输入 std::ostream 的引用。

## ◆ operator<<() [2/2]

std::wostream& operator<< | ( | std::wostream & | os,
|  | const CFX_WideString & | str
| ) |  |
| inline

将宽字符串输出到 std::wostream。

参数

  [in] | os | std::wostream 对象。
  [in] | str | CFX_WideString 对象。

返回
  输入 std::wostream 的引用。

## ◆ operator==()

bool operator== | ( | const char * | str1,
|  | const CFX_ByteString & | str2
| ) |  |
| inline

检查两个字节字符串是否相等。

参数

  [in] | str1 | 字节字符串。
  [in] | str2 | CFX_ByteString 对象。

返回
  true 表示相等，false 表示不相等。