tag:blogger.com,1999:blog-8227451082901531762.post7685946125308996431..comments2024-03-27T09:55:46.072+02:00Comments on Programmer blog: Python converting PDF to Imagegarmoncheghttp://www.blogger.com/profile/01374837358090129603noreply@blogger.comBlogger11125tag:blogger.com,1999:blog-8227451082901531762.post-86231803255780828002018-07-24T12:06:30.783+03:002018-07-24T12:06:30.783+03:00yes you can do a virtual hugyes you can do a virtual hugAnonymoushttps://www.blogger.com/profile/15480285630379067080noreply@blogger.comtag:blogger.com,1999:blog-8227451082901531762.post-84494534671937084922016-12-18T11:11:58.664+02:002016-12-18T11:11:58.664+02:00Dude I want to hug you :).... Dude I want to hug you :).... Anonymoushttps://www.blogger.com/profile/12426119524634911976noreply@blogger.comtag:blogger.com,1999:blog-8227451082901531762.post-58447362190981600382016-04-01T14:39:58.549+03:002016-04-01T14:39:58.549+03:00Awesome thanksAwesome thanksAnonymoushttps://www.blogger.com/profile/13600329659007980040noreply@blogger.comtag:blogger.com,1999:blog-8227451082901531762.post-86617953565518274212016-02-13T05:21:52.600+02:002016-02-13T05:21:52.600+02:00What the response will do? What the response will do? vijayanandrphttps://www.blogger.com/profile/13912991534826764913noreply@blogger.comtag:blogger.com,1999:blog-8227451082901531762.post-3580115524306136672015-12-15T06:26:44.918+02:002015-12-15T06:26:44.918+02:00okay i solved the problem, sometimes the pdf is in...okay i solved the problem, sometimes the pdf is in binary form so we need to give commands like this.<br /><br />from wand.image import Image<br /># Converting first page into JPG<br />with Image(filename="/thumbnail.pdf[0]") as img:<br /> img.save(blob=response.rendered_content)<br /># Resizing this image<br />with Image(filename="/temp.jpg") as img:<br /> img.resize(200, 150)<br /> img.save(filename="/thumbnail_resize.jpg")<br /><br />response = PDFTemplateResponse(<br /> request,<br /> template='reports/report_email.html',<br /> filename='weekly_report.pdf',<br /> context=render_data,<br /> cmd_options={'load-error-handling': 'ignore'})Anonymoushttps://www.blogger.com/profile/03998383936445051350noreply@blogger.comtag:blogger.com,1999:blog-8227451082901531762.post-71941332869879080722015-12-14T18:58:28.532+02:002015-12-14T18:58:28.532+02:00PDFDelegateFailed `The system cannot find the file...PDFDelegateFailed `The system cannot find the file specified.<br />' @ error/pdf.c/ReadPDFImage/800<br /><br />i am getting some path error , how should i solve this ???Anonymoushttps://www.blogger.com/profile/03998383936445051350noreply@blogger.comtag:blogger.com,1999:blog-8227451082901531762.post-22267571947782931262015-12-14T18:57:59.203+02:002015-12-14T18:57:59.203+02:00PDFDelegateFailed `The system cannot find the file...PDFDelegateFailed `The system cannot find the file specified.<br />' @ error/pdf.c/ReadPDFImage/800<br /><br />this error is coming !! what should i do man !?Anonymoushttps://www.blogger.com/profile/03998383936445051350noreply@blogger.comtag:blogger.com,1999:blog-8227451082901531762.post-43246525008871274562015-07-30T19:25:42.981+03:002015-07-30T19:25:42.981+03:00I had a problem with quality as well converting a ...I had a problem with quality as well converting a multi-page pdf to a bunch of PNGs. Try this:<br /><br />Image(filename="/thumbnail.pdf[0]", resolution=300) as img:<br /><br />300 worked fine for me since I'm just using OCR on the images, you may need to bump resolution up.<br />Anonymoushttps://www.blogger.com/profile/07214865945065521455noreply@blogger.comtag:blogger.com,1999:blog-8227451082901531762.post-7925544360055415712015-06-10T18:56:13.196+03:002015-06-10T18:56:13.196+03:00on some systems you will also need to install ghos...on some systems you will also need to install ghostscript in order to read pdf in imagemagicAnonymoushttps://www.blogger.com/profile/14129994343749535948noreply@blogger.comtag:blogger.com,1999:blog-8227451082901531762.post-26863805794174983582015-06-01T22:53:00.369+03:002015-06-01T22:53:00.369+03:00Thanks for the post! I noticed that when I did thi...Thanks for the post! I noticed that when I did this, the image quality was rather poor. I tried resizing the image before saving it, but that ruined the image. It basically looked like a blank white page, with just a few specks here and there. Do yo have any advice? Thanks!Veechyhttps://www.blogger.com/profile/12104080066658413452noreply@blogger.comtag:blogger.com,1999:blog-8227451082901531762.post-395889101669152142015-05-31T08:37:01.795+03:002015-05-31T08:37:01.795+03:00Hey Lurii! Thanks for sharing this incredible piec...Hey Lurii! Thanks for sharing this incredible piece of information. Let me tell you about my experience. I have been using this <a href="http://www.pdfonline.com/convert-jpg-to-pdf/" rel="nofollow"> JPG to PDF </a> converter. It is quite nice and moreover, its free and cool.Mark Henryhttps://www.blogger.com/profile/15727405421630893371noreply@blogger.com