【发布时间】:2020-05-25 09:05:20
【问题描述】:
我有一份报告 (qweb-pdf)。如何从另一个 pdf 向此报告添加新页面?
<template id="report_commercial_offer">
<t t-call="web.html_container">
<t t-foreach="docs"
t-as="doc">
... some code
<p style="page-break-after:always;"> </p>
<p> Test New Page </p>
<div class="t">
<span t-esc="doc.test_func()" />
</div>
</t>
</t>
</template>
在这个函数test_func()我想从另一个pdf(例如D:\file1.pdf)添加一个页面到这个pdf。我尝试使用库:PyPDF2、slate3k 但失败了...
【问题讨论】: