TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: Why PDF generation is so hard?

1 点作者 betimd大约 8 年前
I was working w/ PDF generation in the past, but once I finished that task I wiped everything from memory, bad experience, hacks etc. Back then I thought, hah it's .Net such a crappy environment and tools are not great for this kind of tasks. But, now I work w/ Python and surprisingly I have even worse experience. Finally got weasprint package but it's already impossible to make it work in AWS Lambda because of environment differences (I use mac to develop), I do not really understand why that library has tons of reference libs, such as cairo, cffi or that or that. Is PDF generation such a complex tasks, or generation in backend, or ...

1 comment

spboyer大约 8 年前
You can run this node project in an Azure function can convert HTML to PDF. Easy peasy - <a href="https:&#x2F;&#x2F;github.com&#x2F;marcbachmann&#x2F;node-html-pdf" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;marcbachmann&#x2F;node-html-pdf</a>
评论 #14053504 未加载