{
  "benchmark": "Mizakii controlled PDF merge",
  "date": "2026-09-14",
  "library": "pdf-lib 1.17.1",
  "command": "npm run benchmark:pdf",
  "methodology": "Create three owned PDFs with four uniquely sized, visibly labeled pages; merge them with the same copyPages/addPage sequence as the browser tool; reopen the saved result; compare page count and ordered page dimensions.",
  "scope": "This verifies page count, file-level order, page dimensions, and visible fixture content for these unencrypted PDFs. It does not verify forms, signatures, bookmarks, attachments, encryption, every PDF feature, or every browser/device.",
  "inputs": [
    {
      "file": "/benchmarks/pdf-merge/01-cover.pdf",
      "bytes": 1829,
      "pages": 1,
      "sha256": "49f6bfaaec369d5cd7bc77d787237d4dda2f4d8cd404fac061ad79f6307fa6be"
    },
    {
      "file": "/benchmarks/pdf-merge/02-report.pdf",
      "bytes": 2653,
      "pages": 2,
      "sha256": "e78c6d876f6f761b531c7a9216310be0a2bf932601149e570edcf18580733475"
    },
    {
      "file": "/benchmarks/pdf-merge/03-appendix.pdf",
      "bytes": 1871,
      "pages": 1,
      "sha256": "016d75a074660b7442a667ed83a83b72697d102e49715ce7847c04b8dcb3f73c"
    }
  ],
  "expectedPageOrder": [
    "PAGE-01-COVER",
    "PAGE-02-REPORT-A",
    "PAGE-03-REPORT-B",
    "PAGE-04-APPENDIX"
  ],
  "expectedPageSizes": [
    {
      "width": 595.28,
      "height": 841.89
    },
    {
      "width": 612,
      "height": 792
    },
    {
      "width": 792,
      "height": 612
    },
    {
      "width": 419.53,
      "height": 595.28
    }
  ],
  "actualPageSizes": [
    {
      "width": 595.28,
      "height": 841.89
    },
    {
      "width": 612,
      "height": 792
    },
    {
      "width": 792,
      "height": 612
    },
    {
      "width": 419.53,
      "height": 595.28
    }
  ],
  "assertions": {
    "inputFiles": 3,
    "expectedPages": 4,
    "actualPages": 4,
    "pageCount": "pass",
    "orderedPageDimensions": "pass"
  },
  "output": {
    "file": "/benchmarks/pdf-merge/merged-result.pdf",
    "bytes": 4819,
    "sha256": "c5b286d2c9d0c1a8de20ac750272ac4d4c06c1d893b5d35651c9307a498be28f"
  }
}
