如何将 S5 演示文稿转换为 PDF?

发布于 2024-08-11 09:00:57 字数 450 浏览 3 评论 0原文

我正在使用 reStructuredText & rst2s5 创建S5 幻灯片演示。太棒了,但我也想要 PDF 格式的演示文稿。如何将 S5 文件转换为 PDF 文件?

S5 基于 HTML...S5 的功能之一是创建演示文稿的打印输出。因此,当我尝试从浏览器使用 PDF 打印机时,我只会得到打印输出。我想要一个包含幻灯片的 PDF,每页 1 张幻灯片以及原始演示文稿中的所有格式、颜色和字体大小。

I am using reStructuredText & rst2s5 to create S5 slide presentations. It is great but I also want to have the presentation in PDF. How can I convert S5 to PDF?

S5 are HTML based... one of S5 features is to create print-outs of your presentation. So when I try to use a PDF printer from the browser I just get print-outs. I want to a PDF with the slides, 1 slide per page and all the formatting, colors and font-size from the original presentation.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

柠檬色的秋千 2024-08-18 09:00:57

如果您只想创建 pdf 或者不介意为 pdf 获取不同的主题,您也可以使用以下之一:

http://pypi.python.org/pypi/rst2beamer/0.6.6

http://pypi.python.org/pypi/rst2odp/0.2.3

http://web.archive.org/web/20130718071252/http://later.netmanagers.com.ar/stories /BBS52.html

也可以对它们进行主题化以获得与 S5 演示文稿相同的主题,但这需要更多的工作。我目前正在使用 rst2pdf 和我自己的自定义主题。

例如,后一个链接建议使用以下命令行:

rst2pdf slides.txt -b1 -s slides.style

其中 Slides.style 包含:

{"pageSetup": {
    "width": "16cm",
    "height": "9cm",
    "margin-top": "0cm",
    "margin-bottom": "0cm",
    "margin-left": "0cm",
    "margin-right": "0cm",
    "margin-gutter": "0cm",
    "spacing-header": "5mm",
    "spacing-footer": "5mm",
    "firstTemplate": "cutePage"
},
"pageTemplates" : {
    "cutePage": {
        "frames": [
            ["10%", "10%", "80%", "80%"]
        ],
        "background" : "background.svg"
    }
}
}

If you just want to create pdf or don't mind getting a different theme for the pdf, you could also use one these:

http://pypi.python.org/pypi/rst2beamer/0.6.6

http://pypi.python.org/pypi/rst2odp/0.2.3

http://web.archive.org/web/20130718071252/http://lateral.netmanagers.com.ar/stories/BBS52.html

It is also possible to theme these to get the same theme as for the S5 presentation, but it takes a bit more work. I'm currently using rst2pdf with my own custom theme.

The latter link, for example, suggests using the following commandline:

rst2pdf slides.txt -b1 -s slides.style

with slides.style containing:

{"pageSetup": {
    "width": "16cm",
    "height": "9cm",
    "margin-top": "0cm",
    "margin-bottom": "0cm",
    "margin-left": "0cm",
    "margin-right": "0cm",
    "margin-gutter": "0cm",
    "spacing-header": "5mm",
    "spacing-footer": "5mm",
    "firstTemplate": "cutePage"
},
"pageTemplates" : {
    "cutePage": {
        "frames": [
            ["10%", "10%", "80%", "80%"]
        ],
        "background" : "background.svg"
    }
}
}
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文