Contributors mailing list archives

contributors@odoo-community.org

Avatar

Re: Embed existing PDF into QWeb report

by
Sergio Corato
- 01/10/2020 14:44:37
Hi Peter,
did you try report_qweb_pdf_watermark?
Sergio Corato


Il giorno gio 1 ott 2020 alle ore 14:42 Axel Mendoza <aekroft@gmail.com> ha scritto:
Hi Peter

You could just merge the generated QWEB PDF pages with the static PDF pages with the terms and conditions. Odoo have some examples using pdfmerge

Best regards

On Thu 1 Oct 2020 at 7:11 Peter Hahn <peter.hahn@initos.com> wrote:
Dear contributors,



i have a client that requests to add their terms and conditions* as part

of the order report as the last page, but they have some order specific

data and specific styling around, so I can’t just append static pages at

the end of the report.



I am looking for a solution to embed PDF* into the QWeb report.

Quick search on the internet gave no result.



My best bet idea (not yet tested however) would be to convert the PDF to

embed into SVG and embed this and try out if wkhtmltopdf can handle this.



Any better ideas?



Bonus question:

Is there something readymade to append existing PDF to the PDF generated

by QWeb reports?



Thanks. Regards, Peter









* Terms and conditions is a PDF document I could store as attachment or

static file into the module in this case.



_______________________________________________
Mailing-List: https://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe


--

_______________________________________________
Mailing-List: https://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe

Reference