estimatePdfTokens method

int estimatePdfTokens(
  1. int pageCount
)

Estimates tokens for a PDF with the given pageCount.

Rough heuristic: ~1500 tokens per page of text-heavy content.

Implementation

int estimatePdfTokens(int pageCount) => pageCount * 1500;