Hi Dom,
It's been a while since I have worked with PoDoFo, but found myself into it
again in the past day or so. For the most part the latest version of PoDoFo is
working really well. Of course, I have a document that is completely throwing
an exception and I am looking at a way to correct the problem.
Before I describe the problem, I wanted to give you a heads up on a piece of
code that I don't think should be throwing an exception but is.
PdfDestination::PdfDestination( PdfObject* pObject )
{
if ( pObject->GetDataType() == ePdfDataType_Array )
{
m_array = pObject->GetArray();
}
else if( pObject->GetDataType() == ePdfDataType_String )
{
PdfDocument* pDoc = pObject->GetOwner()->GetParentDocument();
if( pDoc )
{
If you use a PdfMemDocument and pass a valid pObject (let's say an array
destination "D") into this creator it throws an exception. It can't resolve
PdfDocument* pDoc = pObject->GetOwner()->GetParentDocument();
Now I can understand that the parent document is a PdfMemDocument and not
PdfDocument, however should this throw an exception?
Now onto the real issue at hand. I have a large 7 meg PDF that the XRef
parsing section of the code is choking on. I am using CosEdit to look at the
file and see that it is full of nonsensical free objects with types that are
undefined. However, the document renders and is read fine by everything else.
This is a bit like fixing something that isn't truly broken, but there must be
a way to create the XRef table correctly avoiding this rogue objects.
I am trying to make a simplified version of the problem to see if I can
reproduce it, but again it seems clearly related to the amount of extraneous
malformed objects that exist in the XRef table.
David
------------------------------------------------------------------------------
This SF.net email is sponsored by
Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev
_______________________________________________
Podofo-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/podofo-users