Token Estimation for Processing PDFs

What is a good way of estimating the amount of tokens it would cost to extract tables from a complex PDF with 50 pages?

Hi @ask2tony,

Welcome to forum, You can refer count tokens document: Understand and count tokens  |  Gemini API  |  Google AI for Developers for counting tokens for different scenarios. You can count tokens before sending to the model.

Thank you