Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I want some API to control loaded document printing with specified orientation and size without any kind of hacky with CSS #339

Open
WebWeWantBot opened this issue Apr 4, 2021 · 1 comment
Assignees

Comments

@WebWeWantBot
Copy link


title: I want some API to control loaded document printing with specified orientation and size without any kind of hacky with CSS
date: 2021-04-04T18:12:24.736Z
submitter: Alexander Strelkov
number: 606a0188a153a9ee79f0a1e9
tags: [ ]
discussion: https://github.com/WebWeWant/webwewant.fyi/discussions/
status: [ discussing || in-progress || complete ]
related:

  • title:
    url:
    type: [ article || explainer || draft || spec || note || discussion ]

I have developed html-based report generation library. Some documents are ALWAYS need to be printed in landscape mode, others have portrait style. For Internet Browser we apply third party tool that can internally change print template to landscape before print and/or preview document by inserting some ActiveX component into html layout. It would be very great if such functionality have been embedded in Browser/WebView2 already, may be through some API.


If posted, this will appear at https://webwewant.fyi/wants/606a0188a153a9ee79f0a1e9/

@aarongustafson
Copy link
Member

It seems like the simplest solution here is for all browsers to implement CSS3’s @page size. Unfortunately, it looks like only Chromium projects support it right now (possibly because the module is still a draft).

https://developer.mozilla.org/en-US/docs/Web/CSS/@page/size#browser_compatibility

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants