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

Add Folio page size support #1818

Closed
dccaceres opened this issue Feb 23, 2023 · 4 comments
Closed

Add Folio page size support #1818

dccaceres opened this issue Feb 23, 2023 · 4 comments
Labels
CSS Questions about how to do something with CSS

Comments

@dccaceres
Copy link

Hi, you can add support for page size Folio, they dimension are 216mm x 330mm. Thanks!

@grewn0uille
Copy link
Member

Hello!

We support page sizes proposed to be supported in the specification, and Folio isn’t one of them.

But you can directly define the size of your page with the same property:

@page { 
  size: 216mm 330mm;
}

@dccaceres
Copy link
Author

I try add that but return me default value A4.

@liZe
Copy link
Member

liZe commented Feb 27, 2023

Here’s a very simple HTML sample:

<style>@page { size: 216mm 330mm }</style>
<body>abc</body>

It gives this PDF, with the correct page size.

@liZe liZe added the CSS Questions about how to do something with CSS label Mar 6, 2023
@liZe
Copy link
Member

liZe commented Mar 6, 2023

Don’t hesitate to add a comment if there’s anything more we can do for you!

@liZe liZe closed this as completed Mar 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CSS Questions about how to do something with CSS
Projects
None yet
Development

No branches or pull requests

3 participants