4 ms·
how do a client break a pdf into 10 page chunks? can a pdf file be uploaded, or we are expected to upload rasterized images? I also feel that token is not a co
by billconan 2y ago
how do a client break a pdf into 10 page chunks? can a pdf file be uploaded, or we are expected to upload rasterized images?
I also feel that token is not a comprehensible unit for many customers. "page" is better.
- apichar 2y agoYou can upload a PDF directly, and the vOCR API supports a page_range parameter so you can specify which pages to process in a single request (e.g., [1,10]). If your PDF has more than 10 pages, you can make multiple requests, each specifying a different page range (e.g., [1,10], [11,20], etc.). No need to manually split the file. Also, I totally get that tokens can feel abstract. However by making this shift we can focus on processing time. In doing so the token-based pricing model allows us to be more flexible and provide more at a cheaper cost. For example, instead of $0.05 per invocation it could be as low as $0.0014–$0.0035 per page depending on factors like the amount of text extracted and formatting. We do appreciate the feedback and will continue make this approach as transparent as possible.