margin

Type:
<string> | <object

Default: '0.35cm'
It sets the paper margins.
<iframe width="650px" src="https://api.microlink.io/?url=https://basecamp.com/shapeup/0.3-chapter-01&pdf&embed=pdf.url&margin=4mm"></iframe>
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:
{
  margin: {
    top: '4mm',
    bottom: '4mm',
    left: '4mm',
    right: '4mm'
  }
}
Or, in case you pass an <string>, it will be used for all the sides:
{
  margin: '4mm'
}

margin

Type:
<string> | <object

Default: '0.35cm'
It sets the paper margins.
<iframe width="650px" src="https://api.microlink.io/?url=https://basecamp.com/shapeup/0.3-chapter-01&pdf&embed=pdf.url&margin=4mm"></iframe>
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:
{
  margin: {
    top: '4mm',
    bottom: '4mm',
    left: '4mm',
    right: '4mm'
  }
}
Or, in case you pass an <string>, it will be used for all the sides:
{
  margin: '4mm'
}
By using this website you agree to ourprivacy.