Bug 1872249 Comment 3 Edit History

Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.

Thank you for reporting this bug! 

In bug 1770971 we are tracking long term options/ideas for print settings, so I'll connect it to that bug. 

For this bug., we could probably do something  to intervene during [`onLayout`](https://searchfox.org/mozilla-central/rev/9137f80064364a41a1de394af4ce05dffdbf68e6/mobile/android/geckoview/src/main/java/org/mozilla/geckoview/GeckoViewPrintDocumentAdapter.java#131) in the print adapter when we detect a landscape print request and request Gecko to make a landscape PDF with the appropriate constraints. ([Android `onLayout` docs](https://developer.android.com/reference/android/print/PrintDocumentAdapter#onLayout(android.print.PrintAttributes,%20android.print.PrintAttributes,%20android.os.CancellationSignal,%20android.print.PrintDocumentAdapter.LayoutResultCallback,%20android.os.Bundle)).) However, this idea is still likely dependent on having a way to make Gecko print settings in Java and an API to request Gecko to perform the operation as described in bug 1770971.
Thank you for reporting this bug! 

In bug 1770971, we are tracking long term options/ideas for print settings, so I'll connect it to that bug. 

For this bug., we could probably do something  to intervene during [`onLayout`](https://searchfox.org/mozilla-central/rev/9137f80064364a41a1de394af4ce05dffdbf68e6/mobile/android/geckoview/src/main/java/org/mozilla/geckoview/GeckoViewPrintDocumentAdapter.java#131) in the print adapter when we detect a landscape print request and request Gecko to make a landscape PDF with the appropriate constraints. ([Android `onLayout` docs](https://developer.android.com/reference/android/print/PrintDocumentAdapter#onLayout(android.print.PrintAttributes,%20android.print.PrintAttributes,%20android.os.CancellationSignal,%20android.print.PrintDocumentAdapter.LayoutResultCallback,%20android.os.Bundle)).) However, this idea is still likely dependent on having a way to make Gecko print settings in Java and an API to request Gecko to perform the operation as described in bug 1770971.

Back to Bug 1872249 Comment 3