unpdf 1.3.0 → 1.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -131,11 +131,16 @@ function getResolvedPDFJS(): Promise<PDFJS>
131
131
 
132
132
  ### `getMeta`
133
133
 
134
+ Extracts metadata from a PDF. If `parseDates` is set to `true`, the date properties will be parsed into `Date` objects.
135
+
134
136
  **Type Declaration**
135
137
 
136
138
  ```ts
137
139
  function getMeta(
138
140
  data: DocumentInitParameters['data'] | PDFDocumentProxy,
141
+ options?: {
142
+ parseDates?: boolean
143
+ },
139
144
  ): Promise<{
140
145
  info: Record<string, any>
141
146
  metadata: Record<string, any>