Hello all,
Dom, love the product dude, great work. I want to create a pdf with multiple pages. I am successfully creating a single page pdf with all the fonts and graphics needed, but when adding a second page, it wants to throw exceptions, and subsequently crash. I use createpage for the first all the pages, hoping that it will just append a new one but something is awry. Here is some pseudocode: ;----------------------------------------------------------------------- New PdfStreamedDocument(xyz.pdf) pDocument New PdfPainter pPainter. CreateFont("Times New Roman"); SetFontSize(12.0); CreateFont("Arial"); SetFontSize(14.0); New PdfImage. A New PdfImage. B //Page1 pPage = CreatePage( PdfPage::CreateStandardPageSize( ePdfPageSize_Letter ); pPainter->SetPage(pPage); pPainter->DrawText (ABC); pPainter->DrawImage (A); pPainter->DrawImage(B); DrawLine(x,y,tx,ty); pPainter->FinishPage(); //Page2 pPage = CreatePage( PdfPage::CreateStandardPageSize( ePdfPageSize_Letter ); //throws exceptions in PdfPagesTree.cpp (line 126),if I uncomment the exception it throws it but crashes right after it. The line it crashes on: PdfVariant pgVar = kidsArray[ nPageNum ]; //where nPageNum = 1 pDocument->Close(); delete pDocument; delete pPainter; Exit; ;----------------------------------------------------------------------- Is there a better/ more proper way of doing this to avoid the kidsArray from accessing invalid memory? Are there different functions for creating second and third pages? Please advise. Regards, Bart McDonald
------------------------------------------------------------------------------ Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT is a gathering of tech-side developers & brand creativity professionals. Meet the minds behind Google Creative Lab, Visual Complexity, Processing, & iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian Group, R/GA, & Big Spaceship. http://www.creativitycat.com
_______________________________________________ Podofo-users mailing list Podofo-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/podofo-users