Closed MaxHasADHD closed 10 years ago
Hi Max,
What was your resolution? I've having the same issue.
Thanks!
I don't think I had one, hmmm. I was adding support in my app to save web page to PDF, It may be working but i commented it out for now. I think i changed some lines of code from a long time ago.
Ok thanks Max. I appreciate the response.
On Sun, Aug 17, 2014 at 11:59 PM, Maximilian Litteral < notifications@github.com> wrote:
I don't think I had one, hmmm. I was adding support in my app to save web page to PDF, It may be working but i commented it out for now. I think i changed some lines of code from a long time ago.
— Reply to this email directly or view it on GitHub https://github.com/brentnycum/BNHtmlPdfKit/issues/6#issuecomment-52452312 .
Hi, same problem here... any solution?
It seems like it's all related to retaining the reference. See SO: http://stackoverflow.com/questions/24338560/bnhtmlpdfkit-code-not-doing-anything-on-ios
I put breakpoints into the web view delegate and added webViewDidStartLoad and nothing is being called for some reason. heres my code.
NSString documentDirectory = [[NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) objectAtIndex:0] stringByAppendingPathComponent:@"google.pdf"]; BNHtmlPdfKit pdfKit = [BNHtmlPdfKit saveUrlAsPdf:webView.request.URL toFile:documentDirectory pageSize:BNPageSizeA4 success:^(NSString filename) { NSLog(@"Saved PDF"); } failure:^(NSError error) { NSLog(@"Faield to save with error: %@",error); }];