Upgrade to 4.06 - #26
Conversation
|
@ReMiOS I updated all the xpdf src with the new version, and updated the module code for the new headers signatures. The tests pass but I don't have any test data, could you check if it works for you? |
|
Thanks for updating the sources! I will do some testing and report back to you |
There was a problem hiding this comment.
I can confirm Upgrade-to-4.06 works on both Windows and Ubuntu
Tested:
Ubuntu 24.04.2 LTS / Python v3.12.3
Windows 11 25H2 26200.8117 / Python v3.9.13 & Python 3.14.2
(for reference i've used freetype v2.14.3 )
Building on Windows needs a small change on aconf.h or gfile.h
since functions fseeko en ftello does not exist on Microsoft Visual C++ (MSVC)
Build errors (only Windows):
src\xpdf-4.06\goo\gfile.cc(756): error C3861: 'fseeko': identifier not found
src\xpdf-4.06\goo\gfile.cc(768): error C3861: 'ftello': identifier not found
Add lines with ++ to the "src\xpdf-4.06\aconf.h":
++#if defined(_WIN32) || defined(_WIN64)
++#define HAVE_FSEEKO 0
++#define HAVE_FSEEK64 0
++#define HAVE_FSEEKI64 1
++#else
#define HAVE_FSEEKO 1
#define HAVE_FSEEK64 0
#define HAVE_FSEEKI64 0
++#endif
OR
Add lines with ++ to the "src\xpdf-4.06\goo\gfile.h":
#if defined(_WIN32)
++# define fseeko _fseeki64
++# define ftello _ftelli64
# include <sys/stat.h>
Note!
It appears the files in xpdf-python\xpdf-4.06\doc are from the 4.04 source
This will probably not affect anything
Fixes #25