PdfMargins.cm constructor

PdfMargins.cm({
  1. num top = 0,
  2. num bottom = 0,
  3. num left = 0,
  4. num right = 0,
})

PdfMargins.cm then return in Inches

Implementation

factory PdfMargins.cm(
    {num top = 0, num bottom = 0, num left = 0, num right = 0}) {
  return PdfMargins.inches(
    top: _cmToInches(top),
    bottom: _cmToInches(bottom),
    left: _cmToInches(left),
    right: _cmToInches(right),
  );
}