Knowledge Base - How to open pdf from url?

Knowledge Base - How to open pdf from url?

This article shows how to open a pdf from a specific url.

It possible to open a pdf with PDFHTTPStream class in this way:


    RDPDFViewController *pdf = [[RDPDFViewController alloc] initWithNibName:@"RDPDFViewController" bundle:nil];   

    NSString *cachefile = [[NSTemporaryDirectory() stringByAppendingString:@""] stringByAppendingString:@"cache.pdf"];

    PDFHttpStream *stream = [[PDFHttpStream alloc] init];

    [stream open:@"http://pdf_url" :cachefile];

    [pdf PDFOpenStream:stream :@""];

    [self.navigationController pushViewController:pdf animated:YES];


To allow all connection add "App Transport Security Settings" key into info.plist and set "Allow Arbitrary Loads" to YES.

Applies To

RadaeePDF SDK for iOS

Related Articles

How to open pdf from url?


Created : 2015-10-09 11:54:09, Last Modified : 2017-10-13 08:10:41