odooplm icon indicating copy to clipboard operation
odooplm copied to clipboard

Document - print not working for PDF documents

Open duplomatic-anava opened this issue 4 years ago • 1 comments

If a PDF is stored in the Documents, the print button generates an empty page.

I see here we are concatenating: byteString = b"data:application/pdf;base64," + base64.b64encode(documentContent[0])

but I think this function should be only used for PDFs generated during the upload of 2D drawings.

Please correct me if I am wrong. I am willing to help if you point me in the right direction.

Alessio

duplomatic-anava avatar Dec 11 '19 13:12 duplomatic-anava

@OmniaGit any update on this?

Thanks!

Alessio

duplomatic-anava avatar Jan 16 '20 13:01 duplomatic-anava