Seems like a reasonable acid test, but I can't load the official spec from
here:
http://www.adobe.com/devnet/acrobat/pdfs/adobe_supplement_iso32000.pdf
int _tmain(int argc, _TCHAR* argv[])
{
try
{
const char* pszInFileName = "Docs\\PDF32000_2008.pdf";
const char* pszOutFileName = "Docs\\PDF32000_2008
(Modified).pdf";
PdfMemDocument* pDoc = new PdfMemDocument( pszInFileName );
PdfInfo* pInfo = pDoc->GetInfo();
std::string author = pInfo->GetAuthor().GetString();
if ( pDoc->IsEditAllowed() )
{
author.append( "Foo" );
pInfo->SetAuthor( author );
pDoc->Write(pszOutFileName);
}
delete pDoc;
}
catch ( const PdfError & eCode )
{
eCode.PrintErrorMsg();
return eCode.GetError();
}
return 0;
}
The specific error is ePdfError_NoObject. Does this work for anyone else?
Or have I screwed up my build somehow?
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Podofo-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/podofo-users