ConvertAPI / convertapi-library-python

A Python library for the ConvertAPI
https://www.convertapi.com
Other
77 stars 22 forks source link

Unable to parse pdf to csv using convertapi #17

Closed cvsanthosh closed 4 years ago

cvsanthosh commented 4 years ago

The code is below. Each of the pages have different orientation and hence it does not convert properly. However I am able to parse the same file successfully to csv file using the converter from Adobe and others. Please let me know if there is any setting which will help to fix the issue. thanks.

import convertapi convertapi.api_secret = 'xx' convertapi.convert('csv', { 'File': 'D:\Delme\List-of-Criminally-Charged-Providers.pdf' }, from_format = 'pdf').save_files('D:\Delme')

The file is List-of-Criminally-Charged-Providers.pdf

cvsanthosh commented 4 years ago

'AutoRotate': 'true' fixed the issue and hence all good. Closing.