如何让用户上载的.PDF的页数? [英] How to get the number of pages of a .PDF uploaded by user?

查看:193
本文介绍了如何让用户上载的.PDF的页数?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个文件输入,和上传之前,我需要计算的.PDF的JAVASCRIPT页数(如JQuery的...)

I have a file input, and before "uploading" i need to calculate the number of pages of that .pdf in JAVASCRIPT (eg. JQuery...)

推荐答案

您的也许的能做些什么用的 pdf.js 的,但还需要一些试验。

You might be able to do something using pdf.js, but it would take some experimentation.

这篇关于如何让用户上载的.PDF的页数?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆