onlyoffice:转换后如何检索文档

onlyoffice : How to retrieve document after conversion

我正在使用 onlyoffice 将文件从 docx 转换为 pdf(此处的文档:https://api.onlyoffice.com/editors/conversionapi)。

我使用 curl 来执行这个例子,它工作了。我取回文件 url,但唯一的问题是,当我尝试使用此 url(在浏览器中或使用 file_get_contents 下载)时,出现 403 错误。

文档中没有任何关于后续步骤 post 转换的内容,所以我想知道是否有人可以给我提示。是否有未记录的 api 方法或类似的方法?

谢谢

I get the file url back, but the only issue is that when I try using this url

请确保将 link 与所有参数一起使用。 secure_link 也应包含在下载 link 中。如果这没有帮助,请将您收到的 link 发送给我们。

xml 返回的 url 返回 html 个字符。

htmlspecialchars_decode url 解决了我的问题。