Changes

Jump to: navigation, search

Display Additional File Attributes for PDF Documents

78 bytes removed, 21:08, 23 August 2018
no edit summary
* This feature allows you to display extra information (called Meta Data) extracted from PDF files that are stored in [[Custom Field Type: Link – Upload - Single FileStorage|Single File]] or [[Custom Field Type: Link – Upload - Multiple FilesStorage|Multiple Files]] field.
* Only PDF files will display this information.
* The additional attributes that can be extracted and displayed are:  :{| border="1"|-|'''Meta Data Field Name'''|'''Field Code'''|-|Author|author|-|Creator|creator|-|Producer|producer|-|Keywords|keywords|-|Subject|subject|-|Title|title|-|Number AuthorauthorCreatorcreatorProducerproducerKeywordskeywordsSubjectsubjectTitletitleNumber of Pages|numofpages|-|Creation Date|creationdate|-|Modified Date|modifieddate|-|Is Encrypted|encrypted|}PagesnumofpagesCreation DatecreationdateModified DatemodifieddateIs Encryptedencrypted
''Is Encrypted'': Returns the word '''Encrypted''' if the document has the '''"Content Copying"''' or '''"Content Copying or Extraction"'''
* You can use html to format the output:
:[[Image:PDFDetails.PNG|link=]]
* In the above example '''Contract Document''' is the name of the [[Custom Field Type: Link – Single File|Single File]] field that contains the PDF document.
* The [[Custom Field Type: Read Only – System Variables|Read Only - System Variables]] field will display:
:[[Image:PDFDetails2.PNG|link=]]
: [[Image:PDFDetails2.PNG|link=]]
'''Note''': if you wish to use the value (ie: ''numofpages'') as part of [[Submit Logic]] or a [[Browser Script]] you must use a [[Custom Field Type: Store Values – System Variables|Store Values - System Variables]] field type.
 
@''fieldname''.numofpages@
::or
@#''fieldid''.numofpages#@
 
Some techniques on validating PDF file attributes such as the number of pages are described in [[Validating File Attributes]].
==Notes==
* These additional fields are embedded properties of the file. Accordingly the ''Modified Date'' and ''Creation Date'' will be displayed in the format in which they are stored in the file, and will not necessarily reflect the format you have selected for Date and Time display in your [[Personal Settings]].
 
Smartstaff, administrator
421
edits

Navigation menu