PDF Viewer

Skip Navigation LinksHome  /  Support  /  Forums  /  DynamicPDF Viewer (v2)  /  PDF Viewer

DynamicPDF Viewer (v2) Forum

 Apr 12 2017 7:01 AM
How to use PDFDocumentinfo object with Dynamic PDF Viewer
 Apr 12 2017 10:48 AM
Posted by a ceTe Software moderator
Hello,

You can retrieve created date, modified date. creator, title author, subject and producer information of a PDF which is opened with the Viewer control using the PDFDocumentInfo object. You can refer to the documentation on PDFDocumentInfo object members here. Below is the code sample for it.


            axDynamicPDFViewer1.OpenFile("Path of an input PDF", string.Empty);
            DynamicPDFViewer.PDFDocumentInfo pdfinfo = axDynamicPDFViewer1.DocumentInfo;
            string createdDate=pdfinfo.CreatedDate;
            string modifiedDate = pdfinfo.ModifiedDate;
            string author = pdfinfo.Author;
            string creator = pdfinfo.Creator;
            string keyword = pdfinfo.Keywords;
            string producer = pdfinfo.Producer;
            string subject = pdfinfo.Subject;
            string title = pdfinfo.Title;

Thanks,
ceTe Software Support Team.


All times are US Eastern Standard time. The time now is 5:56 AM.