我需要创建使用Vue呈现的页面的可下载pdfs。我们使用的html到template API是DocRaptor。使用Rails构建的API
将url传入页面,然后将其呈现为PDF。问题.- Page is calling our API, meaning the above wouldn't even matter...I assume you the page will only fetchthe raw html,
我读过一些关于这个问题的文章,但大多数都没有帮助我的情况,我试图将一个编码的pdf保存在一个zip文件中(我使用Docraptor来生成pdf,它返回编码的pdf)。response = docraptor_api_call() #api call to generate pdf (encoded pdf)
with open('creation.pdf', 'wb'