Hello again,

Thanks for the last answer.

I tried running the encrypt.cpp, but encountered compile, link and runtime
errors (bad alloc). With the help of a collegue we started from scratch and
rebuilt podofo and all dependent libraries. Now it's working, my example
code as well as encrypt.cpp.
When using CMake to generate the vs project files, however, we encountered
an minor issue with the generation. Although we specified everything needed
for OpenSSL (-DCMAKE_INCLUDE_PATH / -DCMAKE_LIBRARY_PATH /
-DLIBCRYPTO_LIBRARY_NAMES_DEBUG / -DLIBCRYPTO_LIBRARY_NAMES_RELEASE) and
OpenSSL got enabled in podofo_config.h, the include directories were not
added to the projects. That resulted in a compile error (missing header in
PDFEncrypt.cpp). We checked CMakeLists.txt and found that there was no
INCLUDE_DIRECTORIES call for the OpenSSl include dir (line 322ff.), unlike
with other libraries like libjpeg. We added that call and it generated the
project files correctly. But we're not sure if that solution is correct.

Is there a reason the INCLUDE_DIRECTORIES are not set for OpenSSL or is it
just a bug?

Best regards,
F.E.


2016-05-04 19:52 GMT+02:00 zyx <z...@litepdf.cz>:

> On Wed, 2016-05-04 at 09:45 +0200, Max Müller wrote:
> > when playing around with Podofo I stumbled upon an issue that I'm not
> > able to load password protected PDFs.
>
>         Hi,
> could you try to compile and run the encrypt.cpp attached at
> https://sourceforge.net/p/podofo/mailman/message/34065834/
> please? That works for me fine. It uses the same method (way of loading
> the files it created) as you outlined here. There might also be related
> whether you compiled with the openssl and the encryption/decryption
> method the PDF file is encrypted supported.
>
> With respect of PDF file sharing, if you can make a very simple and
> small example PDF which fails for you, with no confidential data, then
> there's no problem to send it to this mailing list, I believe.
>         Bye,
>         zyx
>
> --
> http://www.litePDF.cz                                 i...@litepdf.cz
>
>
> ------------------------------------------------------------------------------
> Find and fix application performance issues faster with Applications
> Manager
> Applications Manager provides deep performance insights into multiple
> tiers of
> your business applications. It resolves application problems quickly and
> reduces your MTTR. Get your free trial!
> https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
> _______________________________________________
> Podofo-users mailing list
> Podofo-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/podofo-users
>
------------------------------------------------------------------------------
Mobile security can be enabling, not merely restricting. Employees who
bring their own devices (BYOD) to work are irked by the imposition of MDM
restrictions. Mobile Device Manager Plus allows you to control only the
apps on BYO-devices by containerizing them, leaving personal data untouched!
https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
_______________________________________________
Podofo-users mailing list
Podofo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/podofo-users

Reply via email to