Related Topics
DocumentObject Class
This object represents a Document.
This object is derived from the ContentObject class. All properties and methods from the ContentObject are supported for the Document object, plus the properties below.
Properties
PROPERTY NAME |
DATA TYPE |
DESCRIPTION |
---|---|---|
FileType |
String |
The file extension of the document |
DOS_FileName |
String |
The DOS “friendly” file name of the document |
CheckedOut |
Boolean |
Is the document currently checked out? |
CheckedOutUID |
String |
If this document is checked out, the UID of the user |
FilePath |
String |
This property will return the physical file path of an attachment that is stored on the file system. This property will return no value if the document is stored in the Process Director database. |
WebViewableOID |
String |
The OID of the optional web viewable object |
ManagedOID |
String |
The OID of the actual document object |
Methods


This method implements a simple routine that creates a thumbnail image of the first page of a document.
Parameters
BP: The Process Director BP Object.
DID: The ID of the document to retrieve.
Returns
N/A
Example
BPLogix.WorkflowDirector.SDK.Document.CreateThumbnail(bp, "DID");


This method implements a simple routine that removes a thumbnail image.
Parameters
BP: The Process Director BP Object.
DID: The ID of the document to retrieve.
Returns
N/A
Example
BPLogix.WorkflowDirector.SDK.Document.RemoveThumbnail(bp, "DID");


This API enables you to set or replace the contents of a documen.
Parameters
pData: The Stream object to be updated.
Description (Optional): The String description of the new document data.
Returns
Boolean: True if the operation succeeds.
Example
This example overwrites a document in the Content List from a document stored in a local file system.
Document doc = Document.GetDocumentByDID(bp, "DID")
Stream pData = File.Open("C:\Filepath\file.txt", FileMode.Open);
doc.UpdateDocData(pData);
Documentation Feedback and Questions
If you notice some way that this document can be improved, we're happy to hear your suggestions. Similarly, if you can't find an answer you're looking for, ask it via feedback. Simply click on the button below to provide us with your feedback or ask a question. Please remember, though, that not every issue can be addressed through documentation. So, if you have a specific technical issue with Process Director, please open a support ticket.