I am trying to combine two PDF documents in memory on Android. I have a premium license, but when I call Document.ImportStart(), it always returns null for the ImportContext.
Both documents I am trying to combine are opened using the OpenMem() function. They are still both open when I call ImportStart(). Both documents open correctly; it is only when trying to combine them that I have this issue.
Hi,
you can't import documents using OpenMem() because it's read only, that's why ImportStart always returns null ImportContext.
I suggest you to open them using OpenStream and PDFMemStream.
Something like that :
PDFMemStream m_mem_stream = new PDFMemStream(YOUR_BYTE_ARRAY);
int ret = doc_dst.OpenStream(m_mem_stream, "");