MacGapProject / MacGap1

Desktop WebKit wrapper for HTML/CSS/JS applications.
Other
3.55k stars 209 forks source link

Printing to a physical printer #109

Open zerosix opened 10 years ago

zerosix commented 10 years ago

It seems that printing doesn't match up with how safari prints. For example, i get a margin on all sides of the page that safari doesn't have and there is no way to adjust any of this in the dialog.

jeff-h commented 10 years ago

Printing at the moment is all given to us "for free" — there's no code in MacGap that actually provides it.

To modify this default behaviour, it sounds like we'd need to provide some methods to modify our NSPrintInfo object (see https://developer.apple.com/library/mac/documentation/cocoa/reference/applicationkit/classes/NSPrintInfo_Class/Reference/Reference.html#//apple_ref/occ/instm/NSPrintInfo/initWithDictionary:)

May not be too difficult... any takers?

rawcreative commented 10 years ago

Does a 'print' stylesheet have any effect on the layout?