PdfMargins.cm constructor

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

Implementation

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