the android sdk how to load a xod file?

35 views
Skip to first unread message

Sang Hyeok Cho

unread,
Jul 4, 2014, 4:53:20 AM7/4/14
to pdfne...@googlegroups.com

InputStream fis = rs.openRawResource(R.raw.sample); //sample is sample.xod
doc = new PDFDoc(fis);

the android sdk how to load a xod  file?

Aaron

unread,
Jul 4, 2014, 12:45:17 PM7/4/14
to pdfne...@googlegroups.com
PDFDoc can only load PDF documents.  If you'd like to load the document from PDFNet, you would need to convert the document from XOD to PDF. You can do so with Convert.ToPdf() or Convert.FromXps() (since every XOD file is also a valid XPS file):

http://www.pdftron.com/pdfnet/mobile/docs/Android/pdftron/PDF/Convert.html

Reply all
Reply to author
Forward
0 new messages