I am a C++ beginner using Dev C++ to build a basic PDF analysis/modification program. The idea is to use user input to merge one PDF file over another to create a watermark effect. I read that podofo is a good choice for this, but I am having a lot of trouble just getting the plugin to work past the import stage and it clearly has to do with the installation of the program on the computer where the file compilation takes place.
I don't want to "install" the podofo plugin on my computer. I only want to keep it "portable" inside the directory where the Dev C++ project file is. Can someone give me some advice on how to do this? When I tried, I kept getting missing files, likely due to directory structure.
PoDoFo doesn't look like a plugin. Looks like a library.
You download the PoDoFo source code, then you build it. That gives you a library. You then include the PoDoFo headers in your code, and when you build your code, you link to the library you built. "Install" doesn't make any sense in this context. You get a library, you link to it. You make sure the library is always accessible to the executable.
So I downloaded podofo-0.9.3 and extracted the contents of the directory to c:\podofo. What do I do then? Can I just put those files in my project directory? Is there a built file I can download and use?
You have to build it yourself. That creates the library file(s). I see that it has a number of dependencies; other libraries that you will have to ensure are available on your system before you can build this.
This being a cross-platform library, it provides a CMake file for building. You're going to have to use CMake if you want to build this.
I keep getting errors while installing it. Is there an alternative way of doing this that doesn't require a separate programming project just to watermark a pdf in an automated way using a C++ program? I had something similar working using a Python program I wrote using pdfrw and reportlab, but it all stopped working after I changed hard drives. Even though I cloned the OS image, I just couldn't get the dependencies to install correctly on my computer. It seemed that for every hour I spent actually programming, I spent 20 hours getting the buggy, unreliable dependencies to work.