-
async filePath() → {string}
-
Get local file path of the document, in utf8
Throws:
If document is not valid
Returns:
string
- local file path
- Since:
-
async getAnnotations() → {Array.<Annotation>}
-
Get Annotations that is shown for current document
Only the annotation set by your web-component will be returned.
- Since:
-
async getClusterNodeID() → {ClusterNodeID}
-
Get cluster node ID of the document
Throws:
if document is not valid
- Since:
-
async getPlacedSDFilePaths() → {Array.<String>}
-
Get the file paths of the placed structural design files
Returns:
Array.<String>
- The placed SD file paths.
- Since:
-
async hasPDFAnnotation() → {bool}
-
Return whether current document has any native PDF annotation
Returns:
bool
- Since:
-
async isDirty() → {bool}
-
Return whether the current document is dirty or not
Returns:
bool
- Since:
-
async pageNumber() → {int}
-
Get active page number of the document
Throws:
if document is not valid
Returns:
int
- Since:
-
async pagesInfo() → {Array.<PageInfo>}
-
Get pages info for the current document
- Since:
-
async readFileBinary(params) → {Uint8Array}
-
Get File as Binary
Parameters:
Name |
Type |
Description |
params |
object
|
optional
Properties
Name |
Type |
Description |
clusterNodeID |
ClusterNodeID
|
optional parameter, the clusterNodeID to be written in the temp exported binary file. This doesn't affect the current working document. |
|
Returns:
Uint8Array
- Uint8Array of the file binary
- Since:
-
async readPlacedSDFileBinary(filePath) → {Uint8Array}
-
Get the file byte stream of the placed structural design file
Parameters:
Name |
Type |
Description |
filePath |
String
|
SD file path |
Returns:
Uint8Array
- Uint8Array of the file binary
- Since:
-
async saveDocument(params)
-
Save the current document
Parameters:
Name |
Type |
Description |
params |
object
|
optional
Properties
Name |
Type |
Description |
silent |
bool
|
save file silently |
|
- Since:
-
async setAnnotations(annotations) → {undefined}
-
Set Annotations that should be shown for current document
Parameters:
Name |
Type |
Description |
annotations |
Array.<Annotation>
|
|
Returns:
undefined
- Since:
-
async setClusterNodeID(clusterNodeID) → {undefined}
-
Set cluster node ID to the document
(This will not trigger a file save operation)
Parameters:
Name |
Type |
Description |
clusterNodeID |
ClusterNodeID
|
document cluster nodeID |
Throws:
if document is not valid
Returns:
undefined
- Since:
-
async title() → {string}
-
Get Title of the document, in utf8
Throws:
if document is not valid
Returns:
string
- Since: