I have a bug where my portrait orientated app, loads blank pages for landscape PDF's
Here is a screenshot
This is landscape, it will load if i click the share button and save the PDF, but currently its just blank. If i send the PDF as portrait, it will load fine, so this is a landscape related issue
Is this a library bug? surely it should be able to show a pdf in landscape without issue?
Appreciate help with a resolution, i create my PDF like so:
let docString = document.replacingOccurrences(of: "data:application/pdf;base64,", with: "") if let documentURL = self.saveBase64StringToPDF(base64String: docString, title: documentTitle) { if let document = PDFDocument(url: documentURL) { let myBackButton = UIBarButtonItem(title: NSLocalizedString("Close", comment: ""), style: .done, target: self, action: #selector(self.closeView)) let readerController = PDFViewController.createNew(with: document, actionStyle: .activitySheet, backButton: myBackButton) self.navigationController?.pushViewController(readerController, animated: true) } }
I have a bug where my portrait orientated app, loads blank pages for landscape PDF's
Here is a screenshot
This is landscape, it will load if i click the share button and save the PDF, but currently its just blank. If i send the PDF as portrait, it will load fine, so this is a landscape related issue
Is this a library bug? surely it should be able to show a pdf in landscape without issue?
Appreciate help with a resolution, i create my PDF like so:
let docString = document.replacingOccurrences(of: "data:application/pdf;base64,", with: "") if let documentURL = self.saveBase64StringToPDF(base64String: docString, title: documentTitle) { if let document = PDFDocument(url: documentURL) { let myBackButton = UIBarButtonItem(title: NSLocalizedString("Close", comment: ""), style: .done, target: self, action: #selector(self.closeView)) let readerController = PDFViewController.createNew(with: document, actionStyle: .activitySheet, backButton: myBackButton) self.navigationController?.pushViewController(readerController, animated: true) } }