Re: Downloading html as pdf using popen, headless chrome option

2022-02-01 Thread Aadil Rashid
*@Jisson Varghese Thank you very much it worked completely fine now* On Tuesday, February 1, 2022 at 11:39:22 PM UTC+5:30 jis...@gmail.com wrote: > Check whether FileResponse instead of StreamingHttpResponse helps to solve > the issue , >

Re: Downloading html as pdf using popen, headless chrome option

2022-02-01 Thread Jisson Varghese
Check whether FileResponse instead of StreamingHttpResponse helps to solve the issue , https://docs.djangoproject.com/en/4.0/ref/request-response/#fileresponse-objects On Tue, Feb 1, 2022 at 11:26 PM Aadil Rashid wrote: > I am trying to generating pdf from webpages, using popen , but when i

Downloading html as pdf using popen, headless chrome option

2022-02-01 Thread Aadil Rashid
I am trying to generating pdf from webpages, using popen , but when i call this view it generates UnicodeDecodeError: 'utf-8' codec can't decode byte 0xd3 in position 10: invalid continuation byte This is my view from projName.settings import BASE_DIR from subprocess import Popen, PIPE, STDOUT