|
Foxit PDF SDK
|
Public 成员函数 | |
| def | GetFileSpec () |
| 获取指定要启动的应用程序或要打开或打印的文档的文件规范。 更多... | |
| def | GetNewWindowFlag () |
| 获取用于决定是否在新窗口中打开目标文档的标志。 更多... | |
| def | GetWinAppOperation () |
| (Windows特定启动参数) 获取操作名称。 更多... | |
| def | GetWinAppParameter () |
| (Windows特定启动参数) 获取传递给指定应用程序的参数字符串。 更多... | |
| def | GetWinDefaultDirectory () |
| (Windows特定启动参数) 获取标准DOS语法的默认目录。 更多... | |
| def | GetWinFileName () |
| (Windows特定启动参数) 获取要启动的应用程序或 要打开或打印的文档的文件名。 更多... | |
| def | SetFileSpec (file_specification) |
| 设置指定要启动的应用程序或要打开或打印的文档的文件规范。 更多... | |
| def | SetNewWindowFlag (flag) |
| 设置用于决定是否在新窗口中打开目标文档的标志。 更多... | |
| def | SetWinLaunchParameter (file_name, default_directory, operation, app_parameter) |
| (Windows特定启动参数)设置Windows特定启动参数。 更多... | |
启动动作是启动应用程序,通常用于打开文件。 类fsdk.LaunchAction 派生自Action ,提供用于 获取/设置启动动作数据的函数。
| def fsdk.LaunchAction.GetFileSpec | ( | ) |
获取指定要启动的应用程序或要打开或打印的文档的文件规范。
| def fsdk.LaunchAction.GetNewWindowFlag | ( | ) |
获取用于决定是否在新窗口中打开目标文档的标志。
fsdk.ActionE_NewWindowFlagTrue 表示 在新窗口中打开目标文档。
fsdk.ActionE_NewWindowFlagFalse 表示 目标文档在同一窗口中替换当前文档。
fsdk.ActionE_NewWindowFlagNone 表示 没有此类标志,查看器应用程序应根据 当前用户首选项行为。
| def fsdk.LaunchAction.GetWinAppOperation | ( | ) |
(Windows特定启动参数) 获取操作名称。
操作名称的标准字符串为:
"open":打开文档。
"print":打印文档
如果Windows特定启动参数的文件名表示应用程序, 操作名称对当前动作将无用。
| def fsdk.LaunchAction.GetWinAppParameter | ( | ) |
(Windows特定启动参数) 获取传递给指定应用程序的参数字符串。
如果Windows特定启动参数的文件名表示文档, 应用程序参数字符串将被忽略。
| def fsdk.LaunchAction.GetWinDefaultDirectory | ( | ) |
(Windows特定启动参数) 获取标准DOS语法的默认目录。
| def fsdk.LaunchAction.GetWinFileName | ( | ) |
(Windows特定启动参数) 获取要启动的应用程序或 要打开或打印的文档的文件名。
| def fsdk.LaunchAction.SetFileSpec | ( | file_specification | ) |
设置指定要启动的应用程序或要打开或打印的文档的文件规范。
| [in] | file_specification | 有效的文件规范对象。此对象应与当前动作对象 在同一个文档中。 |
| def fsdk.LaunchAction.SetNewWindowFlag | ( | flag | ) |
设置用于决定是否在新窗口中打开目标文档的标志。
| [in] | flag | 新窗口标志。应为以下值之一:
|
| def fsdk.LaunchAction.SetWinLaunchParameter | ( | file_name, | |
| default_directory, | |||
| operation, | |||
| app_parameter | |||
| ) |
(Windows特定启动参数)设置Windows特定启动参数。
此函数用于设置Windows特定启动参数。 参数file_name是必需的,可以表示应用程序或文档。 当参数file_name表示应用程序时,参数operation和 app_parameter无用。
| [in] | file_name | 要启动的应用程序或要打开或打印的文档的文件名。 不应为空字符串。 |
| [in] | default_directory | 标准DOS语法的默认目录。 |
| [in] | operation | 操作名称。这可以是空字符串。如果不是空字符串, 应为以下字符串之一:
|
| [in] | app_parameter | 传递给指定应用程序的参数字符串。 |