{
  "method": {
    "corpus": "GovDocs1, the same 4,840 extracted PDFs as the metadata, redaction and split studies",
    "sampleRule": "every file with 3 to 40 pages and at most 3 MB",
    "operations": "reverse the page order (every page kept), and delete the middle page (page floor(n/2) + 1)",
    "herepdf": "HerePDF's Organize code (lib/pdfPages.js organizePdf: copyPagesFrom + isolateCopiedPages, outline remapped, saved with savePdf)",
    "removePage": "pdf-lib's removePage on the loaded document, saved with the same savePdf (how a page-tree editor deletes)",
    "copyPages": "the kept pages copied into a new document with pdf-lib's own copyPages and saved with the same savePdf, nothing else",
    "deletedPageStreams": "streams under the deleted page's /Contents and /Resources that no kept page uses (by object and by content hash) and that are at least 64 bytes; 'still in the file' means a stream with the same bytes is in the saved file, reachable or not",
    "internalLink": "a link annotation whose /Dest or GoTo /D is an explicit destination naming a page object; named destinations are not followed",
    "outline": "bookmarks counted by walking /Outlines through /First and /Next",
    "sampleIdsSha256": "ade77e5d50db53abe64c3f3a04838ba9fa55eee80575014d3aaacded9b915331",
    "tool": {
      "pdfLib": "2.11.1"
    },
    "generatedOn": "2026-10-18",
    "commit": "48f1275"
  },
  "tried": 2995,
  "completed": 2894,
  "notCompleted": {
    "failed": 101
  },
  "encrypted": 99,
  "sample": {
    "withInternalLinks": 172,
    "withOutline": 520,
    "pagesMedian": 10,
    "originalBytesMedian": 124820.5
  },
  "reverse": {
    "herepdf": {
      "pageOrderWrong": 0,
      "sizeRatio": {
        "median": 0.8706152587942464,
        "max": 0.9989576693261977
      },
      "links": {
        "filesWithLinks": 172,
        "total": 3109,
        "reachingRightPage": 3109,
        "pointingOutsidePageTree": 0,
        "filesWithABrokenLink": 0
      },
      "outline": {
        "filesWithOutline": 520,
        "allItemsKept": 460,
        "someItemsKept": 51,
        "outlineLost": 9
      }
    },
    "copyPages": {
      "pageOrderWrong": 0,
      "sizeRatio": {
        "median": 0.8695665540519208,
        "max": 0.9989506644157554
      },
      "links": {
        "filesWithLinks": 172,
        "total": 3109,
        "reachingRightPage": 0,
        "pointingOutsidePageTree": 3109,
        "filesWithABrokenLink": 172
      },
      "outline": {
        "filesWithOutline": 520,
        "allItemsKept": 0,
        "someItemsKept": 0,
        "outlineLost": 520
      }
    }
  },
  "deletePage": {
    "eligible": 2889,
    "notEligible": 5,
    "herepdf": {
      "files": 2889,
      "filesStillHoldingTheDeletedPage": 0,
      "deletedPageStreams": 8015,
      "streamsStillInFile": 0,
      "medianBytesLeft": 0,
      "sizeRatio": {
        "median": 0.7893227879387049,
        "max": 0.995902283998091
      },
      "pageCountWrong": 0
    },
    "removePage": {
      "files": 2889,
      "filesStillHoldingTheDeletedPage": 2889,
      "deletedPageStreams": 8015,
      "streamsStillInFile": 8015,
      "medianBytesLeft": 3586,
      "sizeRatio": {
        "median": 0.9002111003606298,
        "max": 1.1086470980512537
      },
      "pageCountWrong": 0
    },
    "copyPages": {
      "files": 2889,
      "filesStillHoldingTheDeletedPage": 80,
      "deletedPageStreams": 8015,
      "streamsStillInFile": 213,
      "medianBytesLeft": 5911.5,
      "sizeRatio": {
        "median": 0.7919583705304704,
        "max": 0.9958842117452241
      },
      "pageCountWrong": 0
    }
  }
}
