Hi makers, what would be the easiest way to read out / count the number of pages for any given PDF processed/upload?
Have you tried the PDF.co module > Get PDF Information?
Hello Zbulo,
At PDF.co, we provide tools that allow you to extract PDF information, such as the number of pages in the PDF document you are working with. For further details on this tool, please refer to our documentation available at the following link: API Docs.
Should you have any inquiries or require further assistance, please do not hesitate to contact us.
Thanks @swisloskislo for the suggestion and @PDF.co for the additional day.
Started using PDF.co and works sweet.
Will also start using it for PDF merging and other tasks.
@PDF.co I had a question regarding credit usage.
I’m using the “Get PDF Information”-module and Make’s history indicated that this action has consumed 2 credits.
When I’m checking PDF.co’s API Logs, the log indicates that the same run consumed 12 credits. Can you offer advise here or shall I reach out to the support via your page?
Hello Zbulo,
Our “Get PDF Information” feature has two API endpoints v1/pdf/info and v1/pdf/info/fields. The v1/pdf/info API endpoint deducts 7 credits per page and the v1/pdf/info/fields deducts 8 credits per page. The 2 credits that are shown in the “Make” module represent the job/check, which deducts 2 credits per API call. To simplify the calculation of credit costs, you can utilize our Credits Calculator. By inputting the API endpoint you wish to use and the number of pages you intend to process, the calculator will show the credit cost for that specific usage.
If you have any questions or require additional assistance, please let us know.
Thanks, I now also understand that the job/check used to check the job status of sync/async calls when the process takes time to complete. That was not immediately clear to me.