Dev Helpers
← Back

Signature rounding estimator

Import and render <SignatureRoundingEstimator /> in a React project.

Open this example in the interactive library

Live preview

Source code

// components/SignatureRoundingEstimator.tsx

export default function SignatureRoundingEstimator({
  pages = 28,
}: { pages?: number } = {}) {
  return (
    <output>
      {Math.ceil(pages / 4) * 4 - pages} blank pages required for saddle stitching
    </output>
  );
}