• Resolved bibjcis

    (@bibjcis)


    Hello! I’ve been trying to make the file upload field be able to count the amount of pages the uploaded file by the user has. For example, I only allow pdfs, and with this an user sends a pdf file, and he will be redirected for another page that tells how many pages it has (for printing purposes). How can i achieve this? Thank you

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Saurabh – WPMU DEV Support

    (@wpmudev-support7)

    Hello @bibjcis

    Hope you’re doing well today! Thank you for reaching out to us.

    As of now, there is no out-of-the-box way to show the number of pages that the uploaded PDF file could have. I also checked with our Development team about this, however, I am afraid this would require a lot of custom development within the plugin core hence it will be out of our support scope.

    In this case, it will be better to hire a developer to achieve this custom functionality.

    Hope you understand. ??

    Kind Regards,
    Saurabh

    Thread Starter bibjcis

    (@bibjcis)

    Okay, thanks. However, isn’t there some external way to do it? Like using FDPI or something, because im trying to do a online printing website, and without such a feature i cannot launch it for my client. Thanks for the help.

    Kind regards

    Hi @bibjcis,

    Hope this message finds you well.

    As explained by Saurabh, no workaround or snippet might count the pages, not even using an external service like FPDI, counting the pages might require accessing the file and a library to read the PDF, which is not currently possible and might require a lot of custom code and it is out from our support scope.

    Let us know if you require additional information.

    Best regards,
    Laura

    Plugin Support Dmytro – WPMU DEV Support

    (@wpmudevsupport16)

    Hello @bibjcis,

    I hope you’re doing good today!

    We’ll be marking this thread as resolved. Please feel free to reply if you need our assistance, or still have any further questions.

    Best Regards,
    Dmytro

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘File upload to count the pages’ is closed to new replies.