Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

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

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

Comments

@WebWeWantBot
Copy link
Collaborator

WebWeWantBot commented Apr 4, 2021

I have developed HTML-based report generation library. Some documents always need to be printed in landscape mode, others have portrait style. For Internet Explorer, 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 the HTML layout. It would be great if such functionality have been embedded in the browser already, maybe through some API.

@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

@WebWeWant WebWeWant locked and limited conversation to collaborators Apr 11, 2025
@aarongustafson aarongustafson converted this issue into discussion #737 Apr 11, 2025

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants