View Single Post
Old 12-04-2022, 02:56 AM   #450
gensuke
Junior Member
gensuke began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Dec 2022
Device: PC
Quote:
Originally Posted by gviacc View Post
Hi, this worked for me

substitute pdfinfo.exe included in calibre's msi installation with xpdf-tools-win-4.03\bin64

Directory ..\Calibre Portable\Calibre\app\bin

27/01/2021 23:23 1.225.216 pdfinfo.exe
17/02/2022 19:29 1.440.192 pdfinfo.exe_old
Thanks for the info.
On my windows 11 pro (japanese), I found a difference.
the pdfinfo.exe comes with Calibre returns "CreationDate" and "ModDate" with some location info and time zone info written in Japanese characters. While xpdfreader version of pdfinfo.exe doesn't include location and time zone info.
The pdfinfo.exe comes with Calibre has a commandline option "-isodates" which prevents japanese character. So I added this option to get_page_count function in pdf.py
>raw = subprocess.check_output([pdfinfo, '-enc', 'UTF-8', pdf_name, '-isodates'])
This worked for me. But I'm not sure if this modification will cause problem on other platforms.
gensuke is offline   Reply With Quote