I would like to get the date of creation of a PDF using iText7.
I am running into various problems doing so, so I would like to ask for a working solution.
So far, I have not found one.
Thank you.
@mkl wrote the answer to my question. Thank you very much!
Dim pdfDoc As iText.Kernel.Pdf.PdfDocument
pdfDoc = New iText.Kernel.Pdf.PdfDocument(New iText.Kernel.Pdf.PdfReader(uPath))
Dim documentinfo As iText.Kernel.Pdf.PdfDocumentInfo = pdfDoc.GetDocumentInfo
Dim author As String = documentinfo.GetAuthor
Dim creator As String = documentinfo.GetCreator
Dim creationDate = documentinfo.GetMoreInfo("CreationDate")
Dim modificationDate = documentinfo.GetMoreInfo("ModDate")
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.