简体   繁体   English

在 Google App Engine 中使用 python 将.docx 转换为.pdf

[英]Convert .docx to .pdf using python within Google App Engine

I am trying to convert a.docx file i have in my /tmp directory to.pdf using python within Google App Engine.我正在尝试使用 Google App Engine 中的 python 将我在/tmp目录中的 .docx 文件转换为 .pdf 。 I have used docx2pdf before, but google app engine or Linux doesnt support this module.我以前用过docx2pdf ,但是 google app engine 或者 Linux 不支持这个模块。 I have seen people use Libreoffice to convert the file, but i dont know how to install Libreoffice within Google app engine.我见过人们使用Libreoffice来转换文件,但我不知道如何在 Google 应用引擎中安装 Libreoffice I could really use some help.我真的可以使用一些帮助。

In order to be able to install 3rd party tools or binaries, you could try using App Engine Flex, this is because in the Google App Engine Standard runtime is not possible to install packages.为了能够安装 3rd 方工具或二进制文件,您可以尝试使用 App Engine Flex,这是因为在 Google App Engine 标准运行时中无法安装软件包。

Here you can see more differences between the Standard and Flexible environment. 在这里,您可以看到标准环境和灵活环境之间的更多差异。 In a few words, Standard is a sandbox were you are only responsible about the code, and in Flexible you have the power of containers to configure the environment through a Dockerfile.简而言之,Standard 是一个沙箱,您只对代码负责,而在 Flexible 中,您拥有容器的能力,可以通过 Dockerfile 配置环境。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM