-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
saveWebViewAsPdf doesn't generate the PDF #19
Comments
@Isuru-Nanayakkara did you get to fix it? |
@vinbhai4u Nope, I had to resort to saving via a HTML string. |
@Isuru-Nanayakkara even that doesn't work for me, generateBNHtmlPDF(){ is there something wrong? |
i also can not generate pdf from an webView, follow the code, i add the save method in the - (void)saveWebViewAsPdf:(UIWebView *)webView toFile:(NSString *)file; -(void)saveWebViewAsPdf:(UIWebView *)webView toFile:(NSString *)file { |
Hey, I have solved the issue while generating pdf file from webview --saveWebViewAsPdf(webView, toFile: pdfPath.absoluteString) and now delegates are being called properly with the path of saved pdf file. Actually I have done my changes after forking the project. Infact I have make a test project for this but unfortunately I don't know how to push my changes. |
I tried this first in a Swift project. I added the library via CocoaPods.
Here's the code.
When the save button is tapped, the PDF isn't generated. Nor any of the
BNHtmlPdfKitDelegate
methods get called.However other methods like
saveUrlAsPdf
andsaveHtmlAsPdf
do work. I tested this in Xcode 7.1 with iOS 8.4 and iOS 9.1 simulators.I've uploaded a demo project too.
Later I tested this in a Objective-C project as well. And it didn't work either. So I guess this isn't a language issue.
The text was updated successfully, but these errors were encountered: