[Podofo-users] Viewing encrypted PDFs produces error

2017-11-04 Thread Alex
Hi,
I have two PDFs I'm trying to gather info from using podofopdfinfo and
having a problem on fedora25:

1) # /usr/bin/podofopdfinfo 10912823.pdf
...
Error: An error 19 ocurred during uncompressing the pdf file.
PoDoFo encounter an error. Error: 19 ePdfError_InvalidDataType
Callstack:
#0 Error Source:
/builddir/build/BUILD/podofo-0.9.1/podofo/base/../../src/base/PdfVariant.h:707

It says it's not encrypted, but I suspect it is. What causes error 19?
Download from here: https://mega.nz/#!ZzZF0AhI

2)
The second one doesn't produce an error, but also doesn't say it's
encrypted although I suspect it is.

These are both PDFs that I suspect are malicious, although the
location to which the link points has been disabled.
Download from here: https://mega.nz/#!g6QllSaZ

Would someone be able to download these and help me understand what's happening?

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Podofo-users mailing list
Podofo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/podofo-users


Re: [Podofo-users] Viewing encrypted PDFs produces error

2017-11-05 Thread Dmitry Salychev
Hi, Alex.

You're probably getting this error because of incorrect PDF files. You may
check it there: https://www.pdf-online.com/osa/validate.aspx (I wasn't able
to download your PDF files from that hosting for some reason).

It's also probably a good idea to retrieve the latest 0.9.5 version of
PoDoFo,
compile "podofopdfinfo" with debug symbols and run it under lldb or gdb.
Do not forget to place a breakpoint on a line where you're getting this
error from before running the program. When it stops, you'll be able to
get a callstack and guess what went wrong (or just post it here for further
investigation).

About the first question, it seems that "podofopdfinfo" tried to convert
a variable of common (variant) type into something specific and had no luck.
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot___
Podofo-users mailing list
Podofo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/podofo-users


Re: [Podofo-users] Viewing encrypted PDFs produces error

2017-11-05 Thread Alex
Hi,

On Sun, Nov 5, 2017 at 12:38 PM, Dmitry Salychev  wrote:
> Hi, Alex.
>
> You're probably getting this error because of incorrect PDF files. You may
> check it there: https://www.pdf-online.com/osa/validate.aspx (I wasn't able
> to download your PDF files from that hosting for some reason).

First time using new cloud service. Please try again:

# Error: An error 19 ocurred during uncompressing the pdf file.
https://mega.nz/#!ZzZF0AhI!DNwHcYNB2Gc8kXZLDqniFqcAIhyxBM8Z9eVwECtKKNs

# encrypted?
https://mega.nz/#!g6QllSaZ!buROhBiOUSNc4G3hBxKX6TXKX4HaNKHppMOSwQNqwF4

I think the PDFs are valid because I can open them and view its
contents. Perhaps not fully compliant, but accessible.

> It's also probably a good idea to retrieve the latest 0.9.5 version of
> PoDoFo,
> compile "podofopdfinfo" with debug symbols and run it under lldb or gdb.

I tried to compile the latest on fedora25 and having a problem:

CMake Error at CMakeLists.txt:396 (FIND_PACKAGE):
  By not providing "FindFREETYPE.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "FREETYPE",
  but CMake did not find one.

  Could not find a package configuration file provided by "FREETYPE" with any
  of the following names:

FREETYPEConfig.cmake
freetype-config.cmake

  Add the installation prefix of "FREETYPE" to CMAKE_PREFIX_PATH or set
  "FREETYPE_DIR" to a directory containing one of the above files.  If
  "FREETYPE" provides a separate development package or SDK, be sure it has
  been installed.

$ rpm -qva|grep freetype
freetype-2.6.5-9.fc25.x86_64
freetype-devel-2.6.5-9.fc25.x86_64

Is there another package I need? I don't see any indication of
freetype problems in the CMakeOutput or CMakeError log files.

Can you also confirm whether my two issues are solved with the latest,
or are not the result of the podofo version?

Thanks,
Alex


> Do not forget to place a breakpoint on a line where you're getting this
> error from before running the program. When it stops, you'll be able to
> get a callstack and guess what went wrong (or just post it here for further
> investigation).
>
> About the first question, it seems that "podofopdfinfo" tried to convert
> a variable of common (variant) type into something specific and had no luck.
>
>
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> ___
> Podofo-users mailing list
> Podofo-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/podofo-users
>

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Podofo-users mailing list
Podofo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/podofo-users