Hi!
I have a problem with erasing outlines.
My project is compiled in VC + + 2010 under Windows 7 (x86)
I need to remove existing bookmarks, and then write other bookmarks.
Doing it this way:
PdfMemDocument doc;
doc.Load(srcFile);
PdfOutlines* outlines = doc.GetOutlines();
outlines->Erase(); // <- ERROR in PdfVariant.h (line 526)
PdfVariant::DelayedLoad(). 0xC0000005: Access violation reading location
0xfeeeff06.
The stack trace of the error is listed below;
This problem is similar to
http://www.mail-archive.com/[email protected]/msg01424.html
.
I also tried to erase OutlineItems separately.
PdfOutlineItem* pFirst = outlines->First();
if (pFirst)
{
pFirst->Erase(); // <- ERROR as above
}
In this case, if pFirst has no child nodes, the method Erase() isucceeds.
if pFirst ihas child nodes, Erase () fails with the error described above.
Are there any suggestions how to solve this problem?
I would be grateful for any advice.
Thanks!
Alex.
PdfOutline.exe!PoDoFo::PdfVariant::DelayedLoad() Line 526 + 0x3 bytes C++
PdfOutline.exe!PoDoFo::PdfVariant::GetDictionary() Line 804 C++
PdfOutline.exe!PoDoFo::PdfOutlineItem::SetNext() Line 175 + 0x4a bytes
C++
PdfOutline.exe!PoDoFo::PdfOutlineItem::Erase() Line 208 C++
PdfOutline.exe!PoDoFo::PdfOutlineItem::Erase() Line 203 C++
PdfOutline.exe!PoDoFo::PdfOutlineItem::Erase() Line 203 C++
PdfOutline.exe!PoDoFo::PdfOutlineItem::Erase() Line 203 C++
PdfOutline.exe!PdfSource::XmlToPdf(const char * srcFile, const char *
dstFile) Line 93 C++
------------------------------------------------------------------------------
Download new Adobe(R) Flash(R) Builder(TM) 4
The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly
Flex(R) Builder(TM)) enable the development of rich applications that run
across multiple browsers and platforms. Download your free trials today!
http://p.sf.net/sfu/adobe-dev2dev
_______________________________________________
Podofo-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/podofo-users