Skip to content

Commit 91942de

Browse files
Update README.md
1 parent fc6c222 commit 91942de

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,12 @@ PDFPage page = doc.pageAt(pageNumber);
7777
String pageText = await page.text;
7878
```
7979

80+
*Read the information of the document:*
81+
82+
```dart
83+
PDFDocInfo info = doc.info;
84+
```
85+
8086
Optionally, you can delete the file of a document when you no longer need it.
8187
This can be useful when you import a PDF document from outside the local
8288
file 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

0 commit comments

Comments
 (0)