PCL Python 的文件查看器

在浏览器中查看 PCL 文档,无需使用 Adobe Acrobat 或 Python 自动化。

如何使用 Python for .NET 库查看 PCL 个文件

为了查看 PCL 文件,我们将使用 Aspose.PDF for .NET API,这是一款适用于 python-net 平台的功能丰富、强大且易于使用的文档处理 API。打开 NuGet 软件包管理器,搜索 Aspose.pdf 然后安装。你也可以使用软件包管理器控制台中的以下命令。

Python Package Manager Console

pip install aspose-pdf

通过 Python 查看 PCL 个文件


你需要 Aspose.PDF for .NET 才能在你的环境中试用代码。

1.在 PCL 中加载一个文档实例。 1.查看生成的文件。

Python-查看 PCL 文件的示例代码。

<% viewer-files.code-block.subtitle %>

    # load PCL with an instance of Document
    document = Document("template.pcl", PclLoadOptions())

    # save document in HTML format
    document.Save("output.html", Aspose.Pdf.SaveFormat.Html)