I’m new to this. So how should I display PDF that’s coming from remote server, for example if i have a PDF link that goes to http://x.y.z/hello.pdf
I need to display this. All the examples I see in Android PDF framework are all retrieving/saving PDF locally on the device.
Basically what i want to check is:
com.aspose.pdf.Document pdfdocument= new Document(“http://www.google.com/reaklrjel/.pdf”)
is this possible with this framework?
thanks in advance.
Hi there,
Thanks for your inquiry. Unfortunately, the Document() object only supports file or stream parameters. You can read a PDF from a URL and load it into the Document() object as follows. Hopefully, this will resolve the issue.
URL url = new URL("http://www.urartuuniversity.com/content_images/pdf-sample.pdf");
InputStream inputStream = url.openStream();
com.aspose.pdf.Document pdf1 = new com.aspose.pdf.Document(inputStream);
Please feel free to contact us for any further assistance.
Best Regards,