Summary: | [iOS] Add SPI to print to a single tall PDF page | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Andy Estes <aestes> | ||||
Component: | New Bugs | Assignee: | Andy Estes <aestes> | ||||
Status: | RESOLVED FIXED | ||||||
Severity: | Normal | CC: | commit-queue, webkit-bug-importer | ||||
Priority: | P2 | Keywords: | InRadar | ||||
Version: | WebKit Nightly Build | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Attachments: |
|
Description
Andy Estes
2017-03-09 13:44:56 PST
Created attachment 303982 [details]
Patch
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? (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. Comment on attachment 303982 [details] Patch Clearing flags on attachment: 303982 Committed r213674: <http://trac.webkit.org/changeset/213674> All reviewed patches have been landed. Closing bug. |