Knowledge Base - How to use OpenMem method (Android)

This article shows how to use OpenMem method to open pdf with data (note: the pdf will be readonly).

int it;
for(it = 0; it < 512; it++) {
try {
InputStream str = getAssets().open("test.PDF");
byte data[] = new byte[115557];
str.read(data);
Document doc1 = new Document();
doc1.OpenMem(data, null);
doc1.Close();
str.close();
} catch (IOException e) {
e.printStackTrace();
}
}

For more info check this : http://www.radaeepdf.com/documentation/javadocs/com/radaee/pdf/Document.html#OpenMem-byte:A-java.lang.String- 

 

Applies To

RadaeePDF SDK for Android, RadaeePDF Master SDK

Details

Created : 2016-06-22 10:36:05, Last Modified : 2018-02-07 09:33:29