edgeTurbo opened this issue 2 years ago · 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:
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.
use_cropbox=True
Without:
With: