PDFGenerator icon indicating copy to clipboard operation
PDFGenerator copied to clipboard

After generate pdf from tableview, tableview disappears.

Open wiliam-toney opened this issue 8 years ago • 4 comments

var pdfData: Data! do { let view = PDFPage.view(self.tableView) pdfData = try PDFGenerator.generated(by: [view]) } catch let error { self.showAlert(withTitle: "PDF Gererator Error", withMessage: error.localizedDescription, okayButton: "OK", onCompletion: nil) print(error) }

This is my code. After this i am presenting UIPrintInteractionController to print the pdf. When i am back and try again to generate pdf from this tableview, then tableview disappears forever. Any help would be appreciate.

wiliam-toney avatar Dec 14 '17 20:12 wiliam-toney

Hi even I am facing something similar to this, When trying to render a view as pdf from ContainerViewController, after the pdf is generated the view is becoming blank, did you find any solution?

kikukiran avatar Apr 23 '18 12:04 kikukiran

Having similar issue with UIVIew that has many subviews. PDF renders perfectly but screws up all my constraints in the superview. Wish I was smart enough to fix this :(

jmsargent9 avatar Jun 16 '18 04:06 jmsargent9

I am having that same issue, did anyone find a solution?

willptswan avatar Jan 20 '19 22:01 willptswan

Hello,

I also facing the same issue but with scroll view while call generate method my scroll view lost its constrains.

Any Idea how to solve that ?

dhaneshgosai avatar Mar 18 '19 10:03 dhaneshgosai