How to find out number of pages in a PDF file?
12 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Kevin
am 15 Mär. 2022
Beantwortet: Sivakumar Kaliyappan
am 9 Jan. 2024
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?
0 Kommentare
Akzeptierte Antwort
Christopher Creutzig
am 18 Okt. 2023
pdfinfo returns this information, starting in 23a.
0 Kommentare
Weitere Antworten (2)
Sivakumar Kaliyappan
am 9 Jan. 2024
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
0 Kommentare
Siehe auch
Kategorien
Mehr zu Characters and Strings finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!