import mql from '@microlink/mql' const { data } = await mql('https://basecamp.com/shapeup/0.3-chapter-01', { pdf: { margin: "4mm" } })
margin
Type:
Default: '0.35cm'
<string> | <object
Default: '0.35cm'
All possible units are:
- 'px' for pixel.
- 'in' for inches.
- 'cm' for centimeters.
- 'mm' for millimeters.
You can pass an <object> specifing each corner side of the paper:
Or, in case you pass an <string>, it will be used for all the sides: