Skip to content

Support for landscape page orientation #1127

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

Open
benjamindehli opened this issue Feb 24, 2025 · 4 comments
Open

Support for landscape page orientation #1127

benjamindehli opened this issue Feb 24, 2025 · 4 comments
Labels

Comments

@benjamindehli
Copy link

Description

Option to change page orientation from portrait to landscape. In our case, this is most important for PDF documents, but it would be nice if the GUI adapted to the page orientation as well.

Additional Information

No response

@bjosttveit
Copy link
Member

bjosttveit commented Feb 24, 2025

Support for landscape PDF belongs in https://github.com/Altinn/app-lib-dotnet/, should I transfer the issue?
Edit: Are you talking about all pages in landscape or just some? If only some it probably belongs here.

I'm not sure exactly what you mean by having a "landscape" orientation in the GUI, what we have now is a toggle that allows the user to expand the width to fill the browser window

@benjamindehli
Copy link
Author

Yes, all pages within each PDF will have the same orientation.
If support for multiple PDFs is added, some PDFs will need to be in landscape orientation and others in portrait within the same app. However, every page within an individual PDF will maintain the same orientation.

By "landscape" orientation in the GUI, I'm referring to the width of the content container, which resembles a printed page. This helps provide a rough preview of how the content will fit on paper. However, since the styling and sizing of components in PDFs differs from the Summary2 components in the GUI, the toggle button would be a better solution.

Please transfer the issue if it belongs to a different repo :)

@bjosttveit
Copy link
Member

bjosttveit commented Feb 24, 2025

Ait, this sounds like it should be handled by some PDF service task configuration, I'll transfer the issue.

As for the GUI part, check out showExpandWidthButton here: https://docs.altinn.studio//altinn-studio/reference/ux/pages/#settings. If you have something else in mind you can create a separate feature request for that in the app-frontend-react repo

@bjosttveit bjosttveit transferred this issue from Altinn/app-frontend-react Feb 24, 2025
@benjamindehli
Copy link
Author

Nice! Thanks a lot :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: No status
Development

No branches or pull requests

2 participants