Hello,
I am using premium SDK, and tried to import page to destination pdf document as follows.
========================================================
PDF_ERR err = 0;
PDFDoc *doc = [[PDFDoc alloc] init];
err = [doc open:path1 :@""];
switch( err )
{
case err_ok:
break;
default:
return nil;
break;
}
PDFDoc *page2doc = [[PDFDoc alloc] init];
err = [page2doc open:path2 :@""];
switch( err )
{
case err_ok:
break;
default:
return nil;
break;
}
PDFImportCtx *ctx = [doc newImportCtx:page2doc];
bool ret = [ctx import:0 :1];
// PDF_IMPORTCTX ctx = Document_importStart(doc.handle, page2doc.handle);
// bool ret = Document_importPage(doc.handle, ctx, 0, 1 );
// Document_importEnd(doc.handle, ctx);
========================================================
Both of PDFDoc objects aren't nil and PDFImpoerCtx is not nil.
but "ret" is always false. (Both of two pdf files have only one page).
activePremium function returns true so I think there is no problem using premium SDK.
Can anybody help me?