Hi Jeremy,

Am Thursday 23 August 2007 schrieben Sie:
> Hey Dom,
>
> On 8/23/07, Dominik Seichter <[EMAIL PROTECTED]> wrote:
> > Hmm, I cannot reproduce this behaviour with podofopdfinfo, which does
> > almost
> > the excactly the same. Do you have any example PDF?
>m folgendem
> Yeah I'll attach a PDF I use for testing. Still, this happens with *any*
> PDF I've used. Also I don't see where in podofopdfinfo they ever call
> GetEncrypted... 
Sorry, I did not commit the change to podofopdfinfo so that it calls 
GetEncrypted. I did this now and it reports your example PDF correctly as 
unencrypted.

> Still, I'm assuming the problem is on my end, I've seen 
> some really weird and hard to explain stuff! Been making sure compiler
> options match (between podofo and my other libs), podofo is using the same
> libjpeg the rest of my code is, etc. but still haven't isolated the issue
> yet. On Linux when I delete a PdfMemDocument it crashes. Something to do
> with fontconfig I think. I don't have this problem on FreeBSD (which is my
> immediate target platform anyways), so it isn't a show stopper. Setting
> LIBFONTCONFIG_FOUND:STRING=FALSE in the CMakeCache.txt makes the build fail
> with:
> .../podofo-build/src/libpodofo.so: undefined reference to
> `FcInitLoadConfigAndFonts'
> .../podofo-build/src/libpodofo.so: undefined reference to `FcPatternGet'
> .../podofo-build/src/libpodofo.so: undefined reference to `FcConfigDestroy'
> .../podofo-build/src/libpodofo.so: undefined reference to
> `FcConfigSubstitute'
> .../podofo-build/src/libpodofo.so: undefined reference to
> `FcPatternDestroy' .../podofo-build/src/libpodofo.so: undefined reference
> to `FcPatternBuild' .../podofo-build/src/libpodofo.so: undefined reference
> to `FcFontMatch' .../podofo-build/src/libpodofo.so: undefined reference to
> `FcDefaultSubstitute'
Do you have a backtrace of the crash on linux? Might be worth debugging. That 
the build fails in the latter case is fine. PoDoFo currently definitly 
requires Fontconfig. I don't think you need font support though for your 
problem. So it might be an option to add preprocessor defines to make 
fontconfig or font support in general an optional feature so that you can 
compile PoDoFo without fontconfig if needed.

>
> Also I noticed a memory leak in PdfMemDocument. Actually valgrind did.
> Seems the pTrailer alloc'ed in PdfMemDocument.cpp on line 87 never gets
> cleaned up.
Ah, I think you are right. It should get deleted in the destructor of 
PdfDocument.

>
> Should I start mailing this stuff to the podofo-users list? I don't want to
> spam the list with a bunch of stuff no one cares about, but I don't want to
> burden you with everything either!
I think it is better if you send these important issues to the mailinglist. So 
maybe Craig and Leonard can have a look on your stuff and issues, too. They 
are more experienced especially regarding the fontconfig/font issues.
In general chances are higher that we can help faster if more people can read 
your questions.

best regards
        Dom


-- 
**********************************************************************
Dominik Seichter - [EMAIL PROTECTED]
KRename  - http://www.krename.net  - Powerful batch renamer for KDE
KBarcode - http://www.kbarcode.net - Barcode and label printing
PoDoFo - http://podofo.sf.net - PDF generation and parsing library
SchafKopf - http://schafkopf.berlios.de - Schafkopf, a card game,  for KDE
Alan - http://alan.sf.net - A Turing Machine in Java
**********************************************************************

Attachment: pgpjG809O2YOi.pgp
Description: PGP signature

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Podofo-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/podofo-users

Reply via email to