显示 Google 张表格的 PDF 版本

Display the PDF version of Google Sheets

我想显示 google sheet 的 PDF 版本。我试过

https://docs.google.com/viewer?url=https://docs.google.com/spreadsheets/d/1Yp55fNmcrPQ96eggHpVTEFDCSIUcxEFGnK-TTmv111o/export?format=pdf&embedded=true

这里的例子是https://gist.github.com/tzmartin/1cf85dc3d975f94cfddc04bc0dd399be

您有 3 种方法来获取 sheet 的 PDF。

有帮助。

然后就可以在iframe中打开了

编辑: 您应该在使用显示之前发布您的价差sheet。

在您的传播中sheet,select Menu > File > Publish 到网络。

您会看到这个 window。

Select 期望的发布范围和文件类型。

然后,他们提供link到share/embed等

您使用正确的语法将 public Spreadsheet 显示为 pdf

我的示例 sheet 如下所示:

https://docs.google.com/viewer?url=https://docs.google.com/spreadsheets/d/1hnx_EWPN3Djs9tOIjfOt0R7XC3bsn66uLdTBxmlQAx8/export?format=pdf&embedded=true

If it is not working for you, either

  • 文档未传播sheet

  • id不正确

  • 分享权限不够 - 尝试在网络上设置为Public