python-course icon indicating copy to clipboard operation
python-course copied to clipboard

pdftotext does not support -htmlmeta anymore (chapter 8 metadata extraction)

Open flothesof opened this issue 6 years ago • 0 comments

Hi,

This issue concerns chapter 8 of your tutorial. It seems that pdftotext does not support the -htmlmeta flag anymore, so the metadata extraction you describe in the tutorial is broken when using the latest xpdf 4.0.0 version, see current documentation for pdftotext. According to my tests, you can still access that information but you have to use the pdfinfo command for that. Another point regarding that notebook: the Python library reference recommends using subprocess.run for everything. Is there a specific reason why you're using subprocess.call in the tutorial instead?

Thanks for these great tutorials. Best regards,

Florian

flothesof avatar Jan 17 '18 12:01 flothesof