File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -77,6 +77,12 @@ PDFPage page = doc.pageAt(pageNumber);
7777String pageText = await page.text;
7878```
7979
80+ * Read the information of the document:*
81+
82+ ``` dart
83+ PDFDocInfo info = doc.info;
84+ ```
85+
8086Optionally, you can delete the file of a document when you no longer need it.
8187This can be useful when you import a PDF document from outside the local
8288file system (e.g using a URL), since it is automatically stored in the temporary
@@ -126,6 +132,18 @@ class PDFPage {
126132 int number; // Number of the page in the document
127133 Future<String> text; // Text of the page
128134}
135+
136+ class PDFDocInfo {
137+ String author; // Author string of the document
138+ List<String> authors; // Authors of the document
139+ DateTime creationDate; // Creation date of the document
140+ DateTime modificationDate; // Modification date of the document
141+ String creator; // Creator of the document
142+ String producer; // Producer of the document
143+ List<String> keywords; // Keywords of the document
144+ String title; // Title of the document
145+ String subject; // Subject of the document
146+ }
129147```
130148
131149## Contribute
You can’t perform that action at this time.
0 commit comments