How to trim a dark scanner edge without cutting off handwritten notes
Measure the narrowest usable margin across the document. A uniform crop that fits the cover can cut off writing on a later sheet.
Check a page with a margin note and one with a page number near the edge. Start with a small crop on a copy and inspect both pages at full size. For sheets with different borders, split them into groups and crop separately.
Record the crop in points for each edge. One inch is 72 PDF points under the ordinary page scale, so a quarter-inch border corresponds to about 18 points.