Skip to content

Upgrade to 4.06#26

Open
Bladieblah wants to merge 10 commits intomainfrom
Upgrade-to-4.06
Open

Upgrade to 4.06#26
Bladieblah wants to merge 10 commits intomainfrom
Upgrade-to-4.06

Conversation

@Bladieblah
Copy link
Copy Markdown
Owner

Fixes #25

@Bladieblah
Copy link
Copy Markdown
Owner Author

@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?

@ReMiOS
Copy link
Copy Markdown
Contributor

ReMiOS commented Apr 2, 2026

Thanks for updating the sources!

I will do some testing and report back to you

Copy link
Copy Markdown
Contributor

@ReMiOS ReMiOS left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update to xpdf 4.06 source

2 participants