PDF viewing over network?

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. I am afraid Document() object only support file or stream parameters. You can read PDF from url and load to Document() object as following, hopefully it will resolve the issue.

URL url = new URL(http://www.urartuuniversity.com/content_images/pdf-sample.pdf);<o:p></o:p>

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,