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.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
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.
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
Maak vandaag nog een account aan om te profiteren van exclusieve functies en deel uit te maken van onze geweldige community!
Aanmelden| Gerelateerde posts | Antwoorden | Weergaven | Activiteit | |
|---|---|---|---|---|
|
2
okt. 25
|
3182 | |||
|
1
sep. 25
|
3114 | |||
|
3
jul. 25
|
4423 | |||
|
1
mei 25
|
2545 | |||
|
4
mei 25
|
3927 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.