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

Question about Letter and Legal, Request for Tabloid #11

Open
scotthardwick opened this issue Apr 5, 2018 · 11 comments
Open

Question about Letter and Legal, Request for Tabloid #11

scotthardwick opened this issue Apr 5, 2018 · 11 comments

Comments

@scotthardwick
Copy link

Hi Nobuhito,

Thanks so much for your work on this extension, it is very useful!

I have a question and a feature request:

  1. I notice that for the Letter and Legal paper types your mm measurements are different than I am used to:
    Letter 216mm x 279mm (I notice you use 280)
    Legal 216mm x 356mm (I notiec you use 357)
    Is there a reason for this?

  2. Could you add support for Tabloid?
    279mm x 432mm

Much Thanks!
Scott

@janilahti
Copy link

janilahti commented Apr 6, 2018

When I first added Letter I used 279 mm, but later when adding a bunch of other sizes, I borrowed the measurements from here https://github.com/cognitom/paper-css . Using millimeters is always an approximation with North American sizes. Do you see problems with the current values? Should I change millimeters to inches where appropriate (browsers/css should support that, too)?

I'll add Tabloid in the next PR soon.

edit: Funny. Now that I look code in paper-css, I see these kind of irregularities:

body.letter           .sheet { width: 216mm; height: 279mm }
body.letter.landscape .sheet { width: 280mm; height: 215mm }
body.legal            .sheet { width: 216mm; height: 356mm }
body.legal.landscape  .sheet { width: 357mm; height: 215mm }

There might be some reason for that...

@scotthardwick
Copy link
Author

Jani,
Thanks so much for adding Tabloid!
I think keeping it as mm is fine.
I can't imagine what causes paper-css to alter the landscape version's sizing... interesting. I have google searched and not found any one else using those sizes, but they obviously must have had a use case that required it to be that way, just not sure what it might have been.

@janilahti janilahti mentioned this issue Sep 27, 2018
@nobuhito
Copy link
Owner

nobuhito commented Oct 1, 2018

Which of the final answers is 279 or 280?

As for the Tabloid size, I do not want to increase the size any more, so I will not add it.

@janilahti
Copy link

Both of the sizes are only approximations, but the measures @scotthardwick suggested seem to be the ones normally used: https://en.wikipedia.org/wiki/Paper_size#North_American_paper_sizes .

@nobuhito
Copy link
Owner

nobuhito commented Oct 1, 2018

So, shall we change it to 279 mm?

@janilahti
Copy link

janilahti commented Oct 1, 2018

Yes, Letter 279 mm and Legal 356 mm.

@scotthardwick
Copy link
Author

As for the Tabloid size, I do not want to increase the size any more, so I will not add it.

Nobuhito is there any logical reason not to? It should only be a few lines of code for those of us who have access to tabloid printers?

@nobuhito
Copy link
Owner

nobuhito commented Oct 2, 2018

Tabloid size is not available in any environment.

As in the picture there is not in the environment of Japan. However, there are many other sizes in Japan.

image

There are many other sizes. see https://www.princexml.com/doc/5.1/page-size/

@nobuhito
Copy link
Owner

nobuhito commented Oct 2, 2018

Additional Information

We are currently implementing a function to add arbitrary CSS.

When it's complete

  1. Add CSS
  2. Open Print dialog
  3. Change paper size

It may be possible to print with the flow.
(I can not test it here)

Please wait a while.

@nobuhito
Copy link
Owner

nobuhito commented Oct 2, 2018

@scotthardwick Fixed. Please update to version 3.0.0 and try it.
Please also try the above settings for tabloid.

@nobuhito
Copy link
Owner

nobuhito commented Oct 2, 2018

@janilahti Thank you very much for your advice!!

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

3 participants