I'm trying to set up Podofo to Combining two PDF files from a vector std::vector<const wchar_t*> inputfiles;
here are my steps in detail (maybe it's very basic to many people but not to me):
- download [podofo-0.9.7]
- In vs2019, add #include "..podofo.h" and general/linker to COPYING.LIB settings (I'm not sure this)
- build project i got error
podofo_config.h not foundso i changed file's name frompodofo_config.h.in - on build, I got the following error:
I have read some post but there is very little information. I seem to need CMake, zlib,.. (I'm very new to building this type of project)
I have downloaded CMake3.30.3 and zlib1211
use CMake.exe to build zlib.lib but I can't find the exported library :
Also what do I need to do to link zlib.lib with podofo? because when using Cmake to build podofo I get this error:
Could NOT find ZLIB (missing: ZLIB_LIBRARY ZLIB_INCLUDE_DIR) (do I need to copy-paste into that directory)
How do I get over this problem?
Thanks a ton!


Since it's better late than never, let me share what I found about building a Static version of the library with Visual Studio.
Download the PoDoFo project from GitHub
Download the precompiled 3rd party Dependencies from GitHub
I personally placed both folders in C:\PoDoFoProj, so if you use another directory, make the required adjustments when building later. The structure we have so far is
Now there is one little adjustmet that has to be made - Copy the 4 lib files from
to
This is a workaround for the problem I have reported here - https://github.com/podofo/podofo/issues/57
Make a "build" dir in the podofo-master dir (the path should be C:\PoDoFoProj\podofo-master\build)
Using the command prompt navigate to that directory, and type:
Then the Visual Studio solution will appear here - C:\PoDoFoProj\podofo-master\build\PoDoFo.sln
Open it to build the HelloWorld example. (Optionally set the projects 'podofo_private' and 'podofo_static' to use /MP - they are pretty big and multi-processor compilation would speed up the process significantly)
Edit, May 2023