Re: [Podofo-users] Example of text removal or image extraction
A PDF parsing, modification and creation library.
Brought to you by:
domseichter
|
From: Jacob P. <Jac...@fo...> - 2019-11-25 18:19:53
|
Hi
Workaround found. Environment is Windows 10, x64, VS2017, PoDoFo 0.9.6 built with vcpkg. Not sure how to turn static on here...
If I create my own objects I can get it working, so now I'm extracting images, however these images are ppm and no viewer I can find is able to display them correctly. They look like Christmas lights 😊
I guess it does not matter if I can just create a new PDF and copy them over directly and skipping text from original. Basically I just need to make an identical PDF without the text. That's it.
Thanks
-----Oprindelig meddelelse-----
Fra: zyx <zy...@gm...>
Sendt: 25. november 2019 18:57
Til: pod...@li...
Emne: Re: [Podofo-users] Example of text removal or image extraction
On Mon, 2019-11-25 at 15:15 +0000, Jacob Pedersen wrote:
> I now see that rendering is not supported.
Hi,
rendering is supported, it's only called drawing/painting. See PdfPainter and the hello world example. Or do you mean anything else?
> I built previous and latest version of library but cannot get the
> image extractor code to build.
Which exact version, please? And what environment (Linux, Windows,...)?
I just tried here with Linux and revision 1999 (the current trunk) and it builds with no issue. I configure PoDoFo as this:
cmake -G "Unix Makefiles" \
-DCMAKE_INSTALL_PREFIX=/some/path/to/install/podofo \
-DCMAKE_BUILD_TYPE=Debug \
-DPODOFO_BUILD_SHARED=ON \
..
Even when I use:
-DPODOFO_BUILD_SHARED=OFF \
-DPODOFO_BUILD_STATIC=ON \
then it works fine here.
Bye,
zyx
_______________________________________________
Podofo-users mailing list
Pod...@li...
https://lists.sourceforge.net/lists/listinfo/podofo-users
|