Skip to Content

Contributors

Re: Embed existing PDF into QWeb report

Check the usage of this Odoo examples
or

The idea is to be able of generate the PDF from the Qweb report and merge it with the static PDF Pages from another file content
I think that It's simpler than the SVG way

On Thu, Oct 1, 2020 at 10:27 AM Peter Hahn <peter.hahn@initos.com> wrote:
I had a look into the code to check how it’s working, but thought it’s
not exactly what I’m looking for, because I had to trick around with the
placement.

I there is nothing obvious to try frirst out there I think I’ll try out
the SVG approach first.

Am 01.10.20 um 14:47 schrieb Sergio Corato:


> Hi Peter, did you try report_qweb_pdf_watermark?          Sergio Corato

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


by Axel Mendoza - 05:41 - 1 Oct 2020

Reference

  • Embed existing PDF into QWeb report
    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.
    

    by Pete Hahn - 02:10 - 1 Oct 2020