Microsoft Windows Phone 8.1 support ends (13 Jul 2017)

Microsoft has ended support for Windows Phone 8.1

Questions about Android development and PDF

Combine Two PDF Documents in Memory

More
IP: 192.168.0.71 8 years 6 months ago #12889 by jersaw
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.
More
IP: 192.168.0.71 8 years 6 months ago - 8 years 6 months ago #12899 by Davide
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 :
Code:
PDFMemStream m_mem_stream = new PDFMemStream(YOUR_BYTE_ARRAY); int ret = doc_dst.OpenStream(m_mem_stream, "");
Last edit: 8 years 6 months ago by Davide.
Time to create page: 0.397 seconds
Powered by Kunena Forum