Re: [Podofo-users] Getting Segmentation fault when ttrying to access PdfVecObjects

2018-05-21 Thread zyx
On Mon, 2018-05-21 at 08:11 +, Georg Funk wrote: > I'm trying to build up a tree of all objects and want to walk them > afterwards to convert the document in epub format. Hi, you might need to know what each dictionary servers to, because each of them references its dependencies

Re: [Podofo-users] Getting Segmentation fault when ttrying to access PdfVecObjects

2018-05-21 Thread Georg Funk
Hi! Am Montag, den 21.05.2018, 09:19 +0200 schrieb zyx: > > Hi, > what are you trying to achieve exactly, please? I'm trying to build up a tree of all objects and want to walk them afterwards to convert the document in epub format. Best regards, Georg

Re: [Podofo-users] Getting Segmentation fault when ttrying to access PdfVecObjects

2018-05-21 Thread zyx
On Sat, 2018-05-19 at 17:30 +, Georg Funk wrote: > I now start from the root-Dictionary object for building up the tree, > and PdfObject::GetIndirectKey() seems to work quite well. But I think > I'm getting to few objects into the tree. Hi, what are you trying to achieve exactly,

Re: [Podofo-users] Getting Segmentation fault when ttrying to access PdfVecObjects

2018-05-19 Thread Georg Funk
Hi! Am Montag, den 14.05.2018, 09:06 +0200 schrieb zyx: > > There are quite few things you can do wrong, but you didn't give > enough > information to point to an exact place. > > Eventually see PdfObject::GetIndirectKey(), it does something similar > what you want to achieve and it surely

Re: [Podofo-users] Getting Segmentation fault when ttrying to access PdfVecObjects

2018-05-14 Thread zyx
On Fri, 2018-05-11 at 16:24 +, Georg Funk wrote: > 723 0 R Current Reference > > The failing step seems to be the check of IsReference(). Hi, does 723 0 object exist in your PDF document at all? Everything points to it does not exist. There is really nothing to fail (or better crash)

Re: [Podofo-users] Getting Segmentation fault when ttrying to access PdfVecObjects

2018-05-11 Thread Georg Funk
Hi, i printed out currentReference before the following section is called. if (objectVector.GetObject(currentReference)->IsReference()) { currentReference = objectVector. GetObject(currentReference)->GetReference(); } Output: 723 0 R Current Reference The

Re: [Podofo-users] Getting Segmentation fault when ttrying to access PdfVecObjects

2018-05-10 Thread Georg Funk
Hi Joerg, thanks for this hint. I thought maybe I'am misusing PdfObject::Reference() and PdfObject::GetReference() in my code This could explain the null pointer. I want to get a objects Reference number by calling PdfObject::Reference() and get a pointer to a eventually existing indirect

Re: [Podofo-users] Getting Segmentation fault when ttrying to access PdfVecObjects

2018-05-10 Thread Georg Funk
Hi, Am Donnerstag, den 10.05.2018, 18:09 +0200 schrieb zyx: > On Thu, 2018-05-10 at 14:14 +, Georg Funk wrote: > > Have you any idea for me? > > Hi, > what is your exact version of PoDoFo, please? Do your sources include > https://sourceforge.net/p/podofo/code/1825 ? > I am using

Re: [Podofo-users] Getting Segmentation fault when ttrying to access PdfVecObjects

2018-05-10 Thread zyx
On Thu, 2018-05-10 at 14:14 +, Georg Funk wrote: > Have you any idea for me? Hi, what is your exact version of PoDoFo, please? Do your sources include https://sourceforge.net/p/podofo/code/1825 ? I do not know whether it's related to your crash, but it sounds quite similar.

Re: [Podofo-users] Getting Segmentation fault when ttrying to access PdfVecObjects

2018-05-10 Thread Joerg Sonnenberger
On Thu, May 10, 2018 at 02:14:18PM +, Georg Funk wrote: > Program received signal SIGSEGV, Segmentation fault. > 0x55ba2342486e in PoDoFo::PdfVariant::DelayedLoad (this=0x0) at > /usr/local/include/podofo/base/PdfVariant.h:545 > 545 if( !m_bDelayedLoadDone) > > Have you any idea for