Pdfmake: Units of margins

Created on 23 Jun 2015  Â·  3Comments  Â·  Source: bpampuch/pdfmake

What units are the margins in- inches pixels or cms? And is there a way to convert them?

Most helpful comment

It looks like units are in points (https://en.wikipedia.org/wiki/Point_(typography).

There are 72 points in an inch (72 dpi):

var marginInPoints = marginInCentimeter / 2.54 * 72

All 3 comments

The margins are in inches.

To convert from centimeters to inches multiply by 0.393700787

Conversion to pixel don't make sense, as pixel are in relation to your
screen resolution.

SummerSonnet [email protected] schrieb am Di., 23. Juni 2015 01:37:

What units are the margins in- inches pixels or cms? And is there a way to
convert them?

—
Reply to this email directly or view it on GitHub
https://github.com/bpampuch/pdfmake/issues/334.

Thank you! Also, is there a way to change individual table row properties. I want the first header row's width to be more than the other rows.

It looks like units are in points (https://en.wikipedia.org/wiki/Point_(typography).

There are 72 points in an inch (72 dpi):

var marginInPoints = marginInCentimeter / 2.54 * 72
Was this page helpful?
0 / 5 - 0 ratings

Related issues

svenyonson picture svenyonson  Â·  3Comments

ValeSauer picture ValeSauer  Â·  3Comments

michaelqiji picture michaelqiji  Â·  3Comments

m-brudi picture m-brudi  Â·  3Comments

kumarandena picture kumarandena  Â·  3Comments