Converting PDF to images automatically

前端 未结 6 1465
栀梦
栀梦 2020-12-08 02:46

So the state I\'m in released a bunch of data in PDF form, but to make matters worse, most (all?) of the PDFs appear to be letters typed in Office, printed/fax, and then sca

6条回答
  •  生来不讨喜
    2020-12-08 03:06

    in pdf_to_jpg(pdfPath)

          6     # 'pages' is the number of pages in the pdf
          7     filepath = pdfPath.rsplit('/', 1)[0]
    ----> 8     filename = pdfPath.rsplit('/', 1)[1]
          9 
         10     #print pdf to jpg using jpg printer
    

    IndexError: list index out of range

提交回复
热议问题