ScriptObject: PBinaryInfo

  • Updated

This object provides more detailed information about a Perfion binary (i.e. image or file).

Object Properties

Guid IDThe unique ID of the binary
string FileExtensionThe file-extension of the original file stored in Perfion
string FileNameThe File Name of the file stored in Perfion
bool IsImageReturns true if the binary is an image
bool CanMakePreviewReturns true if a preview can be made (this is possible for all images, but also other files like e.g. PDF-files)
DateTime ModifiedDateThe date the file was last modified. If a new file is loaded to Perfion, the modified date is taken from the file-system (since loading into Perfion does not mean that it was modified).
DateTime StoredDateThe date the file was stored / loaded to Perfion. Use this data to check if a new file was loaded, as it is possible to load a file with an older ModifiedDate.
int WidthThe width in pixels of the original-size image stored in Perfion.
int HeightThe height in pixels of the original-size image stored in Perfion.
float WidthDPIThe width in DPI of the original-size image stored in Perfion.
float HeightDPIThe height in DPI of the original-size image stored in Perfion.
int FileSizeThe file size in bytes, of the original file stored in Perfion.
int VersionThe version of the file stored in Perfion.
string OutFileName 

Object Properties (Special)

The following properties only has useful values when this object is returned from a call to the Perfion.WriteFile() method.

string OutFileNameThe file-name a file was saved as, by calling the Perfion.WriteFile() method.The file-name will be relative to the Root-path specified to the WriteFile() method, so it may contain a partial path.
string OutFilePathThe complete absolute file-path a file was saved to, by calling the Perfion.WriteFile() method.

Was this article helpful?

0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.