How to find out number of pages in a PDF file?
古いコメントを表示
I use the matlab function extractFileText( ) (from the Text Analytics Toolbox) to read PDF file.
But how do I find out number of pages in a PDF file?
採用された回答
その他の回答 (2 件)
Richard Quist
2022 年 4 月 30 日
0 投票
Sivakumar Kaliyappan
2024 年 1 月 9 日
0 投票
filename = "file_Name.pdf";
info = pdfinfo(filename)
info = struct with fields:
NumPages: 5
PageSize: [47×4 double]
PDFVersion: "1.6"
Title: ""
Subject: ""
Language: "en-GB"
Keywords: ""
Author: "William Shakespeare"
Creator: "Microsoft® Word 2013"
Producer: "Microsoft® Word 2013"
CreationDate: 21-Jul-2017 11:53:33
ModificationDate: 28-Sep-2022 17:30:37
Encrypted: 0
AllowsTextExtraction: 1
Filename: "C:\TEMP\exampleSonnets.pdf"
This is possible on R2023a or b
If you do not have R2023b use MATLAB online
カテゴリ
ヘルプ センター および File Exchange で Encryption / Cryptography についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!