Documentation
¶
Overview ¶
Package xps 通过 xpstopdf 命令把 XPS 文档转换为 PDF。
Index ¶
Constants ¶
View Source
const ( // EnvXpstopdf 是覆盖 xpstopdf 可执行文件路径的环境变量名。 EnvXpstopdf = "OFD_XPSTOPDF" // DefaultTimeout 是单次 XPS 转换的默认超时时间。 DefaultTimeout = 2 * time.Minute )
Variables ¶
This section is empty.
Functions ¶
func ConvertToPDF ¶
ConvertToPDF 把 XPS 文件转换为 PDF 并返回 PDF 字节。输入必须是可读的本地文件。
func FindXpstopdf ¶
FindXpstopdf 定位 xpstopdf。查找顺序为显式路径、OFD_XPSTOPDF 和 PATH。
Types ¶
Click to show internal directories.
Click to hide internal directories.