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-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-11 Thread Georg Funk
erence The failing step seems to be the check of IsReference(). Regards, Georg Am Donnerstag, den 10.05.2018, 17:42 +0200 schrieb Joerg Sonnenberger: > On Thu, May 10, 2018 at 02:14:18PM +0000, Georg Funk wrote: > > Program received signal SIGSEGV, Segmentation fault. > > 0x55ba2342486e

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

2018-05-10 Thread Georg Funk
object by calling PdfObject::GetReference(). Is this the correct use case? Thanks in advance! Georg Am Donnerstag, den 10.05.2018, 17:42 +0200 schrieb Joerg Sonnenberger: > On Thu, May 10, 2018 at 02:14:18PM +0000, Georg Funk wrote: > > Program received signal SIGSEGV, Segmentat

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 +0000, 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/

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

2018-05-10 Thread Georg Funk
Hi, Matthew, Am Donnerstag, den 10.05.2018, 18:26 +0200 schrieb Matthew Brincke: > [typos fixed and code re-wrapped in quote] > > Hello Georg, hello all, > > On 10 May 2018 at 16:14 Georg Funk <georgf...@hotmail.de> wrote: > > > > > > Dear developers, &g

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

2018-05-10 Thread Georg Funk
Dear developers, I'am getting a segmentation fault in the following code snippet when resolving IsReference()): if (objectVector.GetObject(currentReference)->IsReference()) { currentReference = objectVector.GetObject(currentReference)- >GetReference(); } else {} pbjectVector is a global

Re: [Podofo-users] Difference between PdfObject::GetReference() and PdfObject::Reference()

2018-01-16 Thread Georg Funk
t;XObject"))) { xobj_dict = pResources->GetIndirectKey(PdfName("XObject")); if (xobj_dict != NULL && xobj_dict->IsDictionary()) { return xobj_dict->GetIndirectKey(*xobjname); } } return NULL; } Regards, - Dmitry On Fri, J

[Podofo-users] Difference between PdfObject::GetReference() and PdfObject::Reference()

2018-01-12 Thread Georg Funk
Dear podofo-developers, could you please describe the difference between PdfObject::GetReference() and PdfObject::Reference()? I need a way to access PdfObjects from within a PfVecObjects vector by their object and generation number. Further I need a function to follow indirect references of