Hello,
I want to merge two documents into one single document. Therefore I've developed this method:
public static boolean mergeDocuments(Document doc1, Document doc2) {
Document.ImportContext importContext = doc1.ImportStart(doc2);
if (importContext != null) {
doc1.ImportPage(importContext, 1, 2);
importContext.Destroy();
return true;
}
return false;
}
Unfortunally, the method returns always false, because importContext is null. I have debugged the project and go into the method "ImportStart()". The variable "hand" is 0.
public ImportContext ImportStart( Document src )
{
if( src == null ) return null;
int hand = importStart( hand_val, src.hand_val );
if( hand != 0 ) return new ImportContext(this, hand);
else return null;
}
Seems like it is a bug in the library. Can anybody help me?
Thank you!