Skip to Content
Menu
This question has been flagged
1 Reply
2133 Views

It tried to convert a url to pdf using pdfkit library.

But am getting the output as bytes, how to convert this bytes to binary for getting pdf file. 

Avatar
Discard
Best Answer

Hello Asha,
You can use _render_qweb_pdf method, it returns a pdf file

For Example:
pdf = self.env.ref('module_name.report_id')._render_qweb_pdf(self.ids)

Thanks & Regards,
Email: odoo@aktivsoftware.com
Skype: kalpeshmaheshwari

Avatar
Discard
Related Posts Replies Views Activity
2
Dec 24
3118
1
Dec 24
345
4
Nov 24
1363
1
Sep 24
1133
1
Sep 24
1198