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 gfile.cc
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\goo\gfile.cc":
#ifdef _WIN32
# undef WIN32_LEAN_AND_MEAN
# include <windows.h>
# include <time.h>
# include <direct.h>
# include <shobjidl.h>
# include <shlguid.h>
++ # define fseeko _fseeki64
++ # define ftello _ftelli64
#else
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>
Changing the "\src\xpdf-4.06\aconf.h" also works (but will probably not work on Linux or Mac systems):
#define HAVE_FSEEKO 1 --> 0
#define HAVE_FSEEK64 0
#define HAVE_FSEEKI64 0 --> 1
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