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

@page size value ignores decimal numbers #432

Closed
MurakamiShinyu opened this issue May 10, 2018 · 2 comments
Closed

@page size value ignores decimal numbers #432

MurakamiShinyu opened this issue May 10, 2018 · 2 comments

Comments

@MurakamiShinyu
Copy link
Member

From @kmuto on August 29, 2016 13:43

@page {
  size: 419.528pt 595.276pt;
}

makes 419.00 x 595.00 pts PDF. Supporting decimal numbers is required for correct printing.

Copied from original issue: Trimmarks/versatype-issues#50

@MurakamiShinyu
Copy link
Member Author

From @kwkbtr on September 6, 2016 5:13

It seems that Skia rounds the specified width and height to integers:
https://cs.chromium.org/chromium/src/third_party/skia/src/pdf/SkPDFDocument.cpp?l=217

We want to find a solution, but it will take time to resolve this.

@MurakamiShinyu
Copy link
Member Author

This problem has been resolved in Vivliostyle CLI v4.12.0 (with Vivliostyle.js v2.15.0), that sets exact MediaBox size (and TrimBox and BleedBox when outputs crop marks).

PDF printing automation moved this from To do to Done May 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
PDF printing
  
Done
Development

No branches or pull requests

2 participants