• Hello! I am using a plugin (forminator, irelevant to the question) to receive a file for my wp page (online printing). After it recieves, I am trying to make it so it automaticly counts the pages the submited pdf has. I dont think there are plugins for it, so i think i need to make some sort of code or import (im not very experienced). I tried to use TCPDF and FPDI, with some code written on the “functions.php”, but i could not achieve this. Some help would literally save me here. Thank you!

Viewing 4 replies - 1 through 4 (of 4 total)
  • I don’t quite understand your concern. Is it about counting the number of files uploaded via the form? Or are you in some way concerned with the generation of PDF files, and what do page counters have to do with that?

    Thread Starter bibjcis

    (@bibjcis)

    Yes, it is about counter the number of pages a single pdf that a user sent has. Like he sent a pdf with 10 pages. The webpage has to know how much pages it has in order to make the pricing by amount of pages (and other atributes). Thank you

    I’m not aware of a WordPress plugin just for this. But you can implement it with individual PHP development. You can find several options described here: https://stackoverflow.com/questions/14644353/get-the-number-of-pages-in-a-pdf-document – you’ll have to figure out how to incorporate this into your PDF processing process yourself. If you need help with programming, you might be able to find someone here: https://jobs.wordpress.net/

    Thread Starter bibjcis

    (@bibjcis)

    Still trying to implement it, but thank you alot for the guideance!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Counting the pages a file has after user uploads’ is closed to new replies.