diegomura / diegomura/react-pdf

How to disable the rounded pixels ?

Open
#3,095 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
16.8k
Forks
1.3k
Avg merge
5h 6m
Merged PRs (30d)
52

Description

Is there a way to prevent pixel values from being rounded to the nearest whole number? I noticed that while 'mm' values remain precise, pixels are rounded. For example, in the image, the first group (in mm) consists of [20mm, 20.49mm, 20.7mm, 21mm], while the second group (in pixels) is [20px, 20.49px, 20.7px, 21px]. The first two pixel values round down to 20, while values above 20.49 round up to 21.

Image

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.