RESOLVED FIXED169439
[iOS] Add SPI to print to a single tall PDF page
https://bugs.webkit.org/show_bug.cgi?id=169439
Summary [iOS] Add SPI to print to a single tall PDF page
Andy Estes
Reported 2017-03-09 13:44:56 PST
[iOS] Add SPI to print to a single tall PDF page
Attachments
Patch (9.46 KB, patch)
2017-03-09 13:50 PST, Andy Estes
no flags
Andy Estes
Comment 1 2017-03-09 13:46:05 PST
Andy Estes
Comment 2 2017-03-09 13:50:32 PST
Tim Horton
Comment 3 2017-03-09 13:55:26 PST
Comment on attachment 303982 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=303982&action=review > Source/WebKit2/UIProcess/_WKWebViewPrintFormatter.mm:38 > +@interface UIPrintPageRenderer () > +@property (nonatomic) CGRect paperRect; > +@property (nonatomic) CGRect printableRect; > +@end Should be in UIKitSPI. > Source/WebKit2/UIProcess/ios/WKContentView.mm:698 > + static const CGFloat maximumPDFHeight = 200 * 72; // maximum PDF height for a single page is 200 inches O... kay. Is that a PDF spec thing, or a CGPDF thing, or what? Can we (at some point) get it from somewhere isntead of hardcoding it?
Andy Estes
Comment 4 2017-03-09 13:56:34 PST
(In reply to comment #3) > Comment on attachment 303982 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=303982&action=review > > > Source/WebKit2/UIProcess/_WKWebViewPrintFormatter.mm:38 > > +@interface UIPrintPageRenderer () > > +@property (nonatomic) CGRect paperRect; > > +@property (nonatomic) CGRect printableRect; > > +@end > > Should be in UIKitSPI. It's not SPI :( > > > Source/WebKit2/UIProcess/ios/WKContentView.mm:698 > > + static const CGFloat maximumPDFHeight = 200 * 72; // maximum PDF height for a single page is 200 inches > > O... kay. Is that a PDF spec thing, or a CGPDF thing, or what? Can we (at > some point) get it from somewhere isntead of hardcoding it? I believe it's a PDF spec thing. I'll investigate whether we can get this elsewhere.
WebKit Commit Bot
Comment 5 2017-03-09 14:37:16 PST
Comment on attachment 303982 [details] Patch Clearing flags on attachment: 303982 Committed r213674: <http://trac.webkit.org/changeset/213674>
WebKit Commit Bot
Comment 6 2017-03-09 14:37:20 PST
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.