Belval/pdf2image

pdf2image Increased text and border spacing

edgeTurbo opened this issue · 3 comments

Increased text and border spacing
the code:

pages = convert_from_path(inpath, 500, size=(1300, 1500))
    pagecount = 1
    for page in pages:
        outputname = '%s/%s.png' % (imgsdir, pagecount)
        m_ls.append(outputname)
        page.save(outputname, 'PNG')
        pagecount += 1

the result:
75961657190068_ pic

test2.pdf.zip
the pdf demo ,thanks

This issue is caused by the mediabox not being the same as the cropbox. If you always want to use the cropbox you can add use_cropbox=True to your function call.

Without:
without

With:

with