diff --git a/README.md b/README.md
index bb48883e..c0b9eeb2 100644
--- a/README.md
+++ b/README.md
@@ -56,14 +56,19 @@ All URIs are relative to *https://api.aspose.cloud/v2.0/*
Class | Method | HTTP request | Description
------------ | ------------- | ------------- | -------------
+*PdfApi* | [**copyFile**](docs/PdfApi.md#copyFile) | **PUT** /pdf/storage/file/copy/\{srcPath} | Copy file
+*PdfApi* | [**copyFolder**](docs/PdfApi.md#copyFolder) | **PUT** /pdf/storage/folder/copy/\{srcPath} | Copy folder
+*PdfApi* | [**createFolder**](docs/PdfApi.md#createFolder) | **PUT** /pdf/storage/folder/\{path} | Create the folder
*PdfApi* | [**deleteAnnotation**](docs/PdfApi.md#deleteAnnotation) | **DELETE** /pdf/\{name}/annotations/\{annotationId} | Delete document annotation by ID
+*PdfApi* | [**deleteBookmark**](docs/PdfApi.md#deleteBookmark) | **DELETE** /pdf/\{name}/bookmarks/bookmark/\{bookmarkPath} | Delete document bookmark by ID.
*PdfApi* | [**deleteDocumentAnnotations**](docs/PdfApi.md#deleteDocumentAnnotations) | **DELETE** /pdf/\{name}/annotations | Delete all annotations from the document
+*PdfApi* | [**deleteDocumentBookmarks**](docs/PdfApi.md#deleteDocumentBookmarks) | **DELETE** /pdf/\{name}/bookmarks/tree | Delete all document bookmarks.
*PdfApi* | [**deleteDocumentLinkAnnotations**](docs/PdfApi.md#deleteDocumentLinkAnnotations) | **DELETE** /pdf/\{name}/links | Delete all link annotations from the document
*PdfApi* | [**deleteDocumentStamps**](docs/PdfApi.md#deleteDocumentStamps) | **DELETE** /pdf/\{name}/stamps | Delete all stamps from the document
*PdfApi* | [**deleteDocumentTables**](docs/PdfApi.md#deleteDocumentTables) | **DELETE** /pdf/\{name}/tables | Delete all tables from the document
*PdfApi* | [**deleteField**](docs/PdfApi.md#deleteField) | **DELETE** /pdf/\{name}/fields/\{fieldName} | Delete document field by name.
-*PdfApi* | [**deleteFile**](docs/PdfApi.md#deleteFile) | **DELETE** /storage/file | Remove a specific file
-*PdfApi* | [**deleteFolder**](docs/PdfApi.md#deleteFolder) | **DELETE** /storage/folder | Remove a specific folder
+*PdfApi* | [**deleteFile**](docs/PdfApi.md#deleteFile) | **DELETE** /pdf/storage/file/\{path} | Delete file
+*PdfApi* | [**deleteFolder**](docs/PdfApi.md#deleteFolder) | **DELETE** /pdf/storage/folder/\{path} | Delete folder
*PdfApi* | [**deleteImage**](docs/PdfApi.md#deleteImage) | **DELETE** /pdf/\{name}/images/\{imageId} | Delete image from document page.
*PdfApi* | [**deleteLinkAnnotation**](docs/PdfApi.md#deleteLinkAnnotation) | **DELETE** /pdf/\{name}/links/\{linkId} | Delete document page link annotation by ID
*PdfApi* | [**deletePage**](docs/PdfApi.md#deletePage) | **DELETE** /pdf/\{name}/pages/\{pageNumber} | Delete document page by its number.
@@ -75,13 +80,17 @@ Class | Method | HTTP request | Description
*PdfApi* | [**deleteProperty**](docs/PdfApi.md#deleteProperty) | **DELETE** /pdf/\{name}/documentproperties/\{propertyName} | Delete document property.
*PdfApi* | [**deleteStamp**](docs/PdfApi.md#deleteStamp) | **DELETE** /pdf/\{name}/stamps/\{stampId} | Delete document stamp by ID
*PdfApi* | [**deleteTable**](docs/PdfApi.md#deleteTable) | **DELETE** /pdf/\{name}/tables/\{tableId} | Delete document table by ID
+*PdfApi* | [**downloadFile**](docs/PdfApi.md#downloadFile) | **GET** /pdf/storage/file/\{path} | Download file
+*PdfApi* | [**getBookmark**](docs/PdfApi.md#getBookmark) | **GET** /pdf/\{name}/bookmarks/bookmark/\{bookmarkPath} | Read document bookmark.
+*PdfApi* | [**getBookmarks**](docs/PdfApi.md#getBookmarks) | **GET** /pdf/\{name}/bookmarks/list/\{bookmarkPath} | Read document bookmarks node list.
*PdfApi* | [**getCaretAnnotation**](docs/PdfApi.md#getCaretAnnotation) | **GET** /pdf/\{name}/annotations/caret/\{annotationId} | Read document page caret annotation by ID.
*PdfApi* | [**getCircleAnnotation**](docs/PdfApi.md#getCircleAnnotation) | **GET** /pdf/\{name}/annotations/circle/\{annotationId} | Read document page circle annotation by ID.
-*PdfApi* | [**getDiscUsage**](docs/PdfApi.md#getDiscUsage) | **GET** /storage/disc | Check the disk usage of the current account
+*PdfApi* | [**getDiscUsage**](docs/PdfApi.md#getDiscUsage) | **GET** /pdf/storage/disc | Get disc usage
*PdfApi* | [**getDocument**](docs/PdfApi.md#getDocument) | **GET** /pdf/\{name} | Read common document info.
*PdfApi* | [**getDocumentAnnotations**](docs/PdfApi.md#getDocumentAnnotations) | **GET** /pdf/\{name}/annotations | Read documant page annotations. Returns only FreeTextAnnotations, TextAnnotations, other annotations will implemented next releases.
*PdfApi* | [**getDocumentAttachmentByIndex**](docs/PdfApi.md#getDocumentAttachmentByIndex) | **GET** /pdf/\{name}/attachments/\{attachmentIndex} | Read document attachment info by its index.
*PdfApi* | [**getDocumentAttachments**](docs/PdfApi.md#getDocumentAttachments) | **GET** /pdf/\{name}/attachments | Read document attachments info.
+*PdfApi* | [**getDocumentBookmarks**](docs/PdfApi.md#getDocumentBookmarks) | **GET** /pdf/\{name}/bookmarks/tree | Read document bookmarks tree.
*PdfApi* | [**getDocumentCaretAnnotations**](docs/PdfApi.md#getDocumentCaretAnnotations) | **GET** /pdf/\{name}/annotations/caret | Read document caret annotations.
*PdfApi* | [**getDocumentCircleAnnotations**](docs/PdfApi.md#getDocumentCircleAnnotations) | **GET** /pdf/\{name}/annotations/circle | Read document circle annotations.
*PdfApi* | [**getDocumentFileAttachmentAnnotations**](docs/PdfApi.md#getDocumentFileAttachmentAnnotations) | **GET** /pdf/\{name}/annotations/fileattachment | Read document FileAttachment annotations.
@@ -107,13 +116,14 @@ Class | Method | HTTP request | Description
*PdfApi* | [**getDocumentTables**](docs/PdfApi.md#getDocumentTables) | **GET** /pdf/\{name}/tables | Read document tables.
*PdfApi* | [**getDocumentTextAnnotations**](docs/PdfApi.md#getDocumentTextAnnotations) | **GET** /pdf/\{name}/annotations/text | Read document text annotations.
*PdfApi* | [**getDocumentUnderlineAnnotations**](docs/PdfApi.md#getDocumentUnderlineAnnotations) | **GET** /pdf/\{name}/annotations/underline | Read document underline annotations.
-*PdfApi* | [**getDownload**](docs/PdfApi.md#getDownload) | **GET** /storage/file | Download a specific file
*PdfApi* | [**getDownloadDocumentAttachmentByIndex**](docs/PdfApi.md#getDownloadDocumentAttachmentByIndex) | **GET** /pdf/\{name}/attachments/\{attachmentIndex}/download | Download document attachment content by its index.
*PdfApi* | [**getEpubInStorageToPdf**](docs/PdfApi.md#getEpubInStorageToPdf) | **GET** /pdf/create/epub | Convert EPUB file (located on storage) to PDF format and return resulting file in response.
*PdfApi* | [**getField**](docs/PdfApi.md#getField) | **GET** /pdf/\{name}/fields/\{fieldName} | Get document field by name.
*PdfApi* | [**getFields**](docs/PdfApi.md#getFields) | **GET** /pdf/\{name}/fields | Get document fields.
*PdfApi* | [**getFileAttachmentAnnotation**](docs/PdfApi.md#getFileAttachmentAnnotation) | **GET** /pdf/\{name}/annotations/fileattachment/\{annotationId} | Read document page FileAttachment annotation by ID.
*PdfApi* | [**getFileAttachmentAnnotationData**](docs/PdfApi.md#getFileAttachmentAnnotationData) | **GET** /pdf/\{name}/annotations/fileattachment/\{annotationId}/data | Read document page FileAttachment annotation by ID.
+*PdfApi* | [**getFilesList**](docs/PdfApi.md#getFilesList) | **GET** /pdf/storage/folder/\{path} | Get all files and folders within a folder
+*PdfApi* | [**getFileVersions**](docs/PdfApi.md#getFileVersions) | **GET** /pdf/storage/version/\{path} | Get file versions
*PdfApi* | [**getFreeTextAnnotation**](docs/PdfApi.md#getFreeTextAnnotation) | **GET** /pdf/\{name}/annotations/freetext/\{annotationId} | Read document page free text annotation by ID.
*PdfApi* | [**getHighlightAnnotation**](docs/PdfApi.md#getHighlightAnnotation) | **GET** /pdf/\{name}/annotations/highlight/\{annotationId} | Read document page highlight annotation by ID.
*PdfApi* | [**getHtmlInStorageToPdf**](docs/PdfApi.md#getHtmlInStorageToPdf) | **GET** /pdf/create/html | Convert HTML file (located on storage) to PDF format and return resulting file in response.
@@ -124,13 +134,9 @@ Class | Method | HTTP request | Description
*PdfApi* | [**getImageExtractAsTiff**](docs/PdfApi.md#getImageExtractAsTiff) | **GET** /pdf/\{name}/images/\{imageId}/extract/tiff | Extract document image in TIFF format
*PdfApi* | [**getImages**](docs/PdfApi.md#getImages) | **GET** /pdf/\{name}/pages/\{pageNumber}/images | Read document images.
*PdfApi* | [**getInkAnnotation**](docs/PdfApi.md#getInkAnnotation) | **GET** /pdf/\{name}/annotations/ink/\{annotationId} | Read document page ink annotation by ID.
-*PdfApi* | [**getIsExist**](docs/PdfApi.md#getIsExist) | **GET** /storage/exist | Check if a specific file or folder exists
-*PdfApi* | [**getIsStorageExist**](docs/PdfApi.md#getIsStorageExist) | **GET** /storage/\{name}/exist | Check if storage exists
*PdfApi* | [**getLaTeXInStorageToPdf**](docs/PdfApi.md#getLaTeXInStorageToPdf) | **GET** /pdf/create/latex | Convert LaTeX file (located on storage) to PDF format and return resulting file in response.
*PdfApi* | [**getLineAnnotation**](docs/PdfApi.md#getLineAnnotation) | **GET** /pdf/\{name}/annotations/line/\{annotationId} | Read document page line annotation by ID.
*PdfApi* | [**getLinkAnnotation**](docs/PdfApi.md#getLinkAnnotation) | **GET** /pdf/\{name}/links/\{linkId} | Read document link annotation by ID.
-*PdfApi* | [**getListFiles**](docs/PdfApi.md#getListFiles) | **GET** /storage/folder | Get the file listing of a specific folder
-*PdfApi* | [**getListFileVersions**](docs/PdfApi.md#getListFileVersions) | **GET** /storage/version | Get the file's versions list
*PdfApi* | [**getMhtInStorageToPdf**](docs/PdfApi.md#getMhtInStorageToPdf) | **GET** /pdf/create/mht | Convert MHT file (located on storage) to PDF format and return resulting file in response.
*PdfApi* | [**getMovieAnnotation**](docs/PdfApi.md#getMovieAnnotation) | **GET** /pdf/\{name}/annotations/movie/\{annotationId} | Read document page movie annotation by ID.
*PdfApi* | [**getPage**](docs/PdfApi.md#getPage) | **GET** /pdf/\{name}/pages/\{pageNumber} | Read document page info.
@@ -207,7 +213,11 @@ Class | Method | HTTP request | Description
*PdfApi* | [**getXmlInStorageToPdf**](docs/PdfApi.md#getXmlInStorageToPdf) | **GET** /pdf/create/xml | Convert XML file (located on storage) to PDF format and return resulting file in response.
*PdfApi* | [**getXpsInStorageToPdf**](docs/PdfApi.md#getXpsInStorageToPdf) | **GET** /pdf/create/xps | Convert XPS file (located on storage) to PDF format and return resulting file in response.
*PdfApi* | [**getXslFoInStorageToPdf**](docs/PdfApi.md#getXslFoInStorageToPdf) | **GET** /pdf/create/xslfo | Convert XslFo file (located on storage) to PDF format and return resulting file in response.
+*PdfApi* | [**moveFile**](docs/PdfApi.md#moveFile) | **PUT** /pdf/storage/file/move/\{srcPath} | Move file
+*PdfApi* | [**moveFolder**](docs/PdfApi.md#moveFolder) | **PUT** /pdf/storage/folder/move/\{srcPath} | Move folder
+*PdfApi* | [**objectExists**](docs/PdfApi.md#objectExists) | **GET** /pdf/storage/exist/\{path} | Check if file or folder exists
*PdfApi* | [**postAppendDocument**](docs/PdfApi.md#postAppendDocument) | **POST** /pdf/\{name}/appendDocument | Append document to existing one.
+*PdfApi* | [**postBookmark**](docs/PdfApi.md#postBookmark) | **POST** /pdf/\{name}/bookmarks/bookmark/\{bookmarkPath} | Add document bookmarks.
*PdfApi* | [**postChangePasswordDocumentInStorage**](docs/PdfApi.md#postChangePasswordDocumentInStorage) | **POST** /pdf/\{name}/changepassword | Change document password in storage.
*PdfApi* | [**postCreateField**](docs/PdfApi.md#postCreateField) | **POST** /pdf/\{name}/fields | Create field.
*PdfApi* | [**postDecryptDocumentInStorage**](docs/PdfApi.md#postDecryptDocumentInStorage) | **POST** /pdf/\{name}/decrypt | Decrypt document in storage.
@@ -220,8 +230,6 @@ Class | Method | HTTP request | Description
*PdfApi* | [**postEncryptDocumentInStorage**](docs/PdfApi.md#postEncryptDocumentInStorage) | **POST** /pdf/\{name}/encrypt | Encrypt document in storage.
*PdfApi* | [**postFlattenDocument**](docs/PdfApi.md#postFlattenDocument) | **POST** /pdf/\{name}/flatten | Flatten the document.
*PdfApi* | [**postInsertImage**](docs/PdfApi.md#postInsertImage) | **POST** /pdf/\{name}/pages/\{pageNumber}/images | Insert image to document page.
-*PdfApi* | [**postMoveFile**](docs/PdfApi.md#postMoveFile) | **POST** /storage/file | Move a specific file
-*PdfApi* | [**postMoveFolder**](docs/PdfApi.md#postMoveFolder) | **POST** /storage/folder | Move a specific folder
*PdfApi* | [**postMovePage**](docs/PdfApi.md#postMovePage) | **POST** /pdf/\{name}/pages/\{pageNumber}/movePage | Move page to new position.
*PdfApi* | [**postOptimizeDocument**](docs/PdfApi.md#postOptimizeDocument) | **POST** /pdf/\{name}/optimize | Optimize document.
*PdfApi* | [**postPageCaretAnnotations**](docs/PdfApi.md#postPageCaretAnnotations) | **POST** /pdf/\{name}/pages/\{pageNumber}/annotations/caret | Add document page caret annotations.
@@ -256,12 +264,11 @@ Class | Method | HTTP request | Description
*PdfApi* | [**putAddNewPage**](docs/PdfApi.md#putAddNewPage) | **PUT** /pdf/\{name}/pages | Add new page to end of the document.
*PdfApi* | [**putAddText**](docs/PdfApi.md#putAddText) | **PUT** /pdf/\{name}/pages/\{pageNumber}/text | Add text to PDF document page.
*PdfApi* | [**putAnnotationsFlatten**](docs/PdfApi.md#putAnnotationsFlatten) | **PUT** /pdf/\{name}/annotations/flatten | Flattens the annotations of the specified types
+*PdfApi* | [**putBookmark**](docs/PdfApi.md#putBookmark) | **PUT** /pdf/\{name}/bookmarks/bookmark/\{bookmarkPath} | Update document bookmark.
*PdfApi* | [**putCaretAnnotation**](docs/PdfApi.md#putCaretAnnotation) | **PUT** /pdf/\{name}/annotations/caret/\{annotationId} | Replace document caret annotation
*PdfApi* | [**putChangePasswordDocument**](docs/PdfApi.md#putChangePasswordDocument) | **PUT** /pdf/changepassword | Change document password from content.
*PdfApi* | [**putCircleAnnotation**](docs/PdfApi.md#putCircleAnnotation) | **PUT** /pdf/\{name}/annotations/circle/\{annotationId} | Replace document circle annotation
-*PdfApi* | [**putCreate**](docs/PdfApi.md#putCreate) | **PUT** /storage/file | Upload a specific file
*PdfApi* | [**putCreateDocument**](docs/PdfApi.md#putCreateDocument) | **PUT** /pdf/\{name} | Create empty document.
-*PdfApi* | [**putCreateFolder**](docs/PdfApi.md#putCreateFolder) | **PUT** /storage/folder | Create the folder
*PdfApi* | [**putDecryptDocument**](docs/PdfApi.md#putDecryptDocument) | **PUT** /pdf/decrypt | Decrypt document from content.
*PdfApi* | [**putEncryptDocument**](docs/PdfApi.md#putEncryptDocument) | **PUT** /pdf/encrypt | Encrypt document from content.
*PdfApi* | [**putEpubInStorageToPdf**](docs/PdfApi.md#putEpubInStorageToPdf) | **PUT** /pdf/\{name}/create/epub | Convert EPUB file (located on storage) to PDF format and upload resulting file to storage.
@@ -351,6 +358,8 @@ Class | Method | HTTP request | Description
*PdfApi* | [**putXmlInStorageToPdf**](docs/PdfApi.md#putXmlInStorageToPdf) | **PUT** /pdf/\{name}/create/xml | Convert XML file (located on storage) to PDF format and upload resulting file to storage.
*PdfApi* | [**putXpsInStorageToPdf**](docs/PdfApi.md#putXpsInStorageToPdf) | **PUT** /pdf/\{name}/create/xps | Convert XPS file (located on storage) to PDF format and upload resulting file to storage.
*PdfApi* | [**putXslFoInStorageToPdf**](docs/PdfApi.md#putXslFoInStorageToPdf) | **PUT** /pdf/\{name}/create/xslfo | Convert XslFo file (located on storage) to PDF format and upload resulting file to storage.
+*PdfApi* | [**storageExists**](docs/PdfApi.md#storageExists) | **GET** /pdf/storage/\{storageName}/exist | Check if storage exists
+*PdfApi* | [**uploadFile**](docs/PdfApi.md#uploadFile) | **PUT** /pdf/storage/file/\{path} | Upload file
## Documentation for Models
@@ -364,12 +373,15 @@ Class | Description
[**AnnotationState**](docs/AnnotationState.md) | The enumeration of states to which the original annotation can be set.
[**AnnotationType**](docs/AnnotationType.md) |
[**AntialiasingProcessingType**](docs/AntialiasingProcessingType.md) | This enum describes possible antialiasing measures during conversion
-[**AppendDocument**](docs/AppendDocument.md) | Class for appendDocument service request building.
[**AsposeResponse**](docs/AsposeResponse.md) | Base class for all responses.
[**Attachment**](docs/Attachment.md) | Provides link to attachment.
[**AttachmentResponse**](docs/AttachmentResponse.md) | Represents response containing single attachment info
[**Attachments**](docs/Attachments.md) | Represents list of attachment.
[**AttachmentsResponse**](docs/AttachmentsResponse.md) | Represents response containing multiple attachments info
+[**Bookmark**](docs/Bookmark.md) | Provides link to bookmark.
+[**BookmarkResponse**](docs/BookmarkResponse.md) | Represents response containing single bookmark info
+[**Bookmarks**](docs/Bookmarks.md) | Represents list of bookmark.
+[**BookmarksResponse**](docs/BookmarksResponse.md) | Represents response containing multiple bookmarks info
[**BorderCornerStyle**](docs/BorderCornerStyle.md) | Enumerates the border corner styles for border.
[**BorderInfo**](docs/BorderInfo.md) | This class represents border for graphics elements.
[**CapStyle**](docs/CapStyle.md) | Style of line ending of Ink annotation line.
@@ -391,36 +403,35 @@ Class | Description
[**CommonFigureAnnotation**](docs/CommonFigureAnnotation.md) | Provides CommonFigureAnnotation.
[**CompressionType**](docs/CompressionType.md) | Used to specify the parameter value passed to a Tiff image device.
[**CryptoAlgorithm**](docs/CryptoAlgorithm.md) | Represent type of cryptographic algorithm that used in encryption/decryption routines.
-[**DiscUsage**](docs/DiscUsage.md) |
-[**DiscUsageResponse**](docs/DiscUsageResponse.md) |
+[**DiscUsage**](docs/DiscUsage.md) | Class for disc space information.
[**DocFormat**](docs/DocFormat.md) | Allows to specify .doc or .docx file format.
[**DocRecognitionMode**](docs/DocRecognitionMode.md) | Allows to control how a PDF document is converted into a word processing document.
[**Document**](docs/Document.md) | Represents document DTO.
[**DocumentPageResponse**](docs/DocumentPageResponse.md) | Represents response containing single page info
[**DocumentPagesResponse**](docs/DocumentPagesResponse.md) | Represents response containing multiple pages info
-[**DocumentPrivilege**](docs/DocumentPrivilege.md) | Represents the privileges for accessing Pdf file./>.
+[**DocumentPrivilege**](docs/DocumentPrivilege.md) | Represents the privileges for accessing Pdf file.
[**DocumentProperties**](docs/DocumentProperties.md) | Represents list of PDF document properties.
[**DocumentPropertiesResponse**](docs/DocumentPropertiesResponse.md) | Represents response containing multiple document properties info
[**DocumentProperty**](docs/DocumentProperty.md) | Pdf document property.
[**DocumentPropertyResponse**](docs/DocumentPropertyResponse.md) | Represents response containing single document property info
[**DocumentResponse**](docs/DocumentResponse.md) | Represents response containing document info
[**EpubRecognitionMode**](docs/EpubRecognitionMode.md) | When PDF file (that usually has fixed layout) is being converted, the conversion engine tries to perform grouping and multi-level analysis to restore the original document author's intent and produce result in flow layout. This property tunes that conversion for this or that desirable method of recognition of content.
+[**Error**](docs/Error.md) | Error
+[**ErrorDetails**](docs/ErrorDetails.md) | The error details
[**Field**](docs/Field.md) | Represents form field.
[**FieldResponse**](docs/FieldResponse.md) | Represents response containing single field info
[**Fields**](docs/Fields.md) | Represents list of form fields.
[**FieldsResponse**](docs/FieldsResponse.md) | Represents response containing multiple fields info
[**FieldType**](docs/FieldType.md) | Represents an enumeration of available field types.
-[**File**](docs/File.md) | Represents file DTO.
[**FileAttachmentAnnotation**](docs/FileAttachmentAnnotation.md) | Provides FileAttachmentAnnotation.
[**FileAttachmentAnnotationResponse**](docs/FileAttachmentAnnotationResponse.md) | Represents response containing single FileAttachment annotation object
[**FileAttachmentAnnotations**](docs/FileAttachmentAnnotations.md) | Object representing a list of FileAttachment annotations.
[**FileAttachmentAnnotationsResponse**](docs/FileAttachmentAnnotationsResponse.md) | Represents response containing multiple FileAttachment annotation objects
-[**FileExist**](docs/FileExist.md) |
-[**FileExistResponse**](docs/FileExistResponse.md) |
[**FileIcon**](docs/FileIcon.md) | An icon to be used in displaying the annotation.
-[**FilesResponse**](docs/FilesResponse.md) |
-[**FileVersion**](docs/FileVersion.md) |
-[**FileVersionsResponse**](docs/FileVersionsResponse.md) |
+[**FilesList**](docs/FilesList.md) | Files list
+[**FilesUploadResult**](docs/FilesUploadResult.md) | File upload result
+[**FileVersion**](docs/FileVersion.md) | File Version
+[**FileVersions**](docs/FileVersions.md) | File versions FileVersion.
[**FontEncodingRules**](docs/FontEncodingRules.md) | This enumeration defines rules which tune encoding logic
[**FontSavingModes**](docs/FontSavingModes.md) | Enumerates modes that can be used for saving of fonts referenced in saved PDF
[**FontStyles**](docs/FontStyles.md) | Specifies style information applied to text.
@@ -475,6 +486,7 @@ Class | Description
[**MovieAnnotationResponse**](docs/MovieAnnotationResponse.md) | Represents response containing single movie annotation object
[**MovieAnnotations**](docs/MovieAnnotations.md) | Object representing a list of movie annotations.
[**MovieAnnotationsResponse**](docs/MovieAnnotationsResponse.md) | Represents response containing multiple movie annotation objects
+[**ObjectExist**](docs/ObjectExist.md) | Object exists
[**OptimizeOptions**](docs/OptimizeOptions.md) | Represents Pdf optimize options.
[**Page**](docs/Page.md) | Provides link to page.
[**PageNumberStamp**](docs/PageNumberStamp.md) | Represents Pdf stamps.
@@ -548,7 +560,8 @@ Class | Description
[**StampsInfo**](docs/StampsInfo.md) | Object representing a list of stamps.
[**StampsInfoResponse**](docs/StampsInfoResponse.md) | Represents multiple stamps info reponse
[**StampType**](docs/StampType.md) | Represents enumeration of the stamp types.
-[**StorageExistResponse**](docs/StorageExistResponse.md) |
+[**StorageExist**](docs/StorageExist.md) | Storage exists
+[**StorageFile**](docs/StorageFile.md) | File or folder information
[**StrikeOutAnnotation**](docs/StrikeOutAnnotation.md) | Provides StrikeOutAnnotation.
[**StrikeOutAnnotationResponse**](docs/StrikeOutAnnotationResponse.md) | Represents response containing single strikeout annotation object
[**StrikeOutAnnotations**](docs/StrikeOutAnnotations.md) | Object representing a list of strikeout annotations.
diff --git a/docs/Bookmark.md b/docs/Bookmark.md
new file mode 100644
index 00000000..2266c717
--- /dev/null
+++ b/docs/Bookmark.md
@@ -0,0 +1,27 @@
+# Bookmark
+Provides link to bookmark.
+
+*Inherited from [LinkElement](LinkElement.md)*
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**title** | **string** | Get the Title; | [optional]
+**italic** | **boolean** | Is bookmark italic. | [optional]
+**bold** | **boolean** | Is bookmark bold. | [optional]
+**color** | [**Color**](Color.md) | Get the color | [optional]
+**action** | **string** | Gets or sets the action bound with the bookmark. If PageNumber is presented the action can not be specified. The action type includes: "GoTo", "GoToR", "Launch", "Named". | [optional]
+**level** | **number** | Gets or sets bookmark's hierarchy level. | [optional]
+**destination** | **string** | Gets or sets bookmark's destination page. Required if action is set as string.Empty. | [optional]
+**pageDisplay** | **string** | Gets or sets the type of display bookmark's destination page. | [optional]
+**pageDisplay_Bottom** | **number** | Gets or sets the bottom coordinate of page display. | [optional]
+**pageDisplay_Left** | **number** | Gets or sets the left coordinate of page display. | [optional]
+**pageDisplay_Right** | **number** | Gets or sets the right coordinate of page display. | [optional]
+**pageDisplay_Top** | **number** | Gets or sets the top coordinate of page display. | [optional]
+**pageDisplay_Zoom** | **number** | Gets or sets the zoom factor of page display. | [optional]
+**pageNumber** | **number** | Gets or sets the number of bookmark's destination page. | [optional]
+**remoteFile** | **string** | Gets or sets the file (path) which is required for "GoToR" action of bookmark. | [optional]
+**bookmarks** | [**Bookmarks**](Bookmarks.md) | The children bookmarks. | [optional]
+**links** | [**Array<Link>**](Link.md) | Link to the document.
*Inherited from [LinkElement](LinkElement.md)* | [optional]
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) [[View Source]](../src/models/bookmark.ts)
+
diff --git a/docs/FileExistResponse.md b/docs/BookmarkResponse.md
similarity index 77%
rename from docs/FileExistResponse.md
rename to docs/BookmarkResponse.md
index bf3c945e..cae91fab 100644
--- a/docs/FileExistResponse.md
+++ b/docs/BookmarkResponse.md
@@ -1,13 +1,13 @@
-# FileExistResponse
-
+# BookmarkResponse
+Represents response containing single bookmark info
*Inherited from [AsposeResponse](AsposeResponse.md)*
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**fileExist** | [**FileExist**](FileExist.md) | | [optional]
+**bookmark** | [**Bookmark**](Bookmark.md) | Bookmark object | [optional]
**code** | **number** | Response status code.
*Inherited from [AsposeResponse](AsposeResponse.md)* |
**status** | **string** | Response status.
*Inherited from [AsposeResponse](AsposeResponse.md)* | [optional]
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) [[View Source]](../src/models/fileExistResponse.ts)
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) [[View Source]](../src/models/bookmarkResponse.ts)
diff --git a/docs/Bookmarks.md b/docs/Bookmarks.md
new file mode 100644
index 00000000..bcca6d2f
--- /dev/null
+++ b/docs/Bookmarks.md
@@ -0,0 +1,12 @@
+# Bookmarks
+Represents list of bookmark.
+
+*Inherited from [LinkElement](LinkElement.md)*
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**list** | [**Array<Bookmark>**](Bookmark.md) | List of bookmarks. | [optional]
+**links** | [**Array<Link>**](Link.md) | Link to the document.
*Inherited from [LinkElement](LinkElement.md)* | [optional]
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) [[View Source]](../src/models/bookmarks.ts)
+
diff --git a/docs/DiscUsageResponse.md b/docs/BookmarksResponse.md
similarity index 76%
rename from docs/DiscUsageResponse.md
rename to docs/BookmarksResponse.md
index 75c79655..d7846e7a 100644
--- a/docs/DiscUsageResponse.md
+++ b/docs/BookmarksResponse.md
@@ -1,13 +1,13 @@
-# DiscUsageResponse
-
+# BookmarksResponse
+Represents response containing multiple bookmarks info
*Inherited from [AsposeResponse](AsposeResponse.md)*
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**discUsage** | [**DiscUsage**](DiscUsage.md) | | [optional]
+**bookmarks** | [**Bookmarks**](Bookmarks.md) | Bookmarks object | [optional]
**code** | **number** | Response status code.
*Inherited from [AsposeResponse](AsposeResponse.md)* |
**status** | **string** | Response status.
*Inherited from [AsposeResponse](AsposeResponse.md)* | [optional]
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) [[View Source]](../src/models/discUsageResponse.ts)
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) [[View Source]](../src/models/bookmarksResponse.ts)
diff --git a/docs/CellRecognized.md b/docs/CellRecognized.md
index adfbbe7b..0dc5fe44 100644
--- a/docs/CellRecognized.md
+++ b/docs/CellRecognized.md
@@ -4,7 +4,7 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**textRects** | [**TextRects**](TextRects.md) | Gets collection of objects that describes text containing in the cell | [optional]
+**textRects** | [**TextRects**](TextRects.md) | Gets collection of TextRect objects that describes text containing in the cell | [optional]
**rectangle** | [**Rectangle**](Rectangle.md) | Gets rectangle that describes position of the cell on page | [optional]
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) [[View Source]](../src/models/cellRecognized.ts)
diff --git a/docs/DiscUsage.md b/docs/DiscUsage.md
index 858be9a5..70af0fe8 100644
--- a/docs/DiscUsage.md
+++ b/docs/DiscUsage.md
@@ -1,11 +1,11 @@
# DiscUsage
-
+Class for disc space information.
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**usedSize** | **number** | |
-**totalSize** | **number** | |
+**usedSize** | **number** | Application used disc space. |
+**totalSize** | **number** | Total disc space. |
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) [[View Source]](../src/models/discUsage.ts)
diff --git a/docs/DocumentPrivilege.md b/docs/DocumentPrivilege.md
index fc8ae5bc..ac30d041 100644
--- a/docs/DocumentPrivilege.md
+++ b/docs/DocumentPrivilege.md
@@ -1,5 +1,5 @@
# DocumentPrivilege
-Represents the privileges for accessing Pdf file./>.
+Represents the privileges for accessing Pdf file.
## Properties
Name | Type | Description | Notes
diff --git a/docs/AppendDocument.md b/docs/Error.md
similarity index 53%
rename from docs/AppendDocument.md
rename to docs/Error.md
index f0284a18..02f9d231 100644
--- a/docs/AppendDocument.md
+++ b/docs/Error.md
@@ -1,12 +1,13 @@
-# AppendDocument
-Class for appendDocument service request building.
+# Error
+Error
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**document** | **string** | Document to append (server path). |
-**startPage** | **number** | Appending start page. |
-**endPage** | **number** | Appending end page. |
+**code** | **string** | Code | [optional]
+**message** | **string** | Message | [optional]
+**description** | **string** | Description | [optional]
+**innerError** | [**ErrorDetails**](ErrorDetails.md) | Inner Error | [optional]
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) [[View Source]](../src/models/appendDocument.ts)
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) [[View Source]](../src/models/error.ts)
diff --git a/docs/File.md b/docs/ErrorDetails.md
similarity index 57%
rename from docs/File.md
rename to docs/ErrorDetails.md
index 6c51bbe7..d3654a32 100644
--- a/docs/File.md
+++ b/docs/ErrorDetails.md
@@ -1,14 +1,11 @@
-# File
-Represents file DTO.
+# ErrorDetails
+The error details
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**name** | **string** | | [optional]
-**isFolder** | **boolean** | |
-**modifiedDate** | **string** | | [optional]
-**size** | **number** | |
-**path** | **string** | | [optional]
+**requestId** | **string** | The request id | [optional]
+**date** | **string** | Date |
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) [[View Source]](../src/models/file.ts)
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) [[View Source]](../src/models/errorDetails.ts)
diff --git a/docs/FileVersion.md b/docs/FileVersion.md
index dd30eb34..296fa595 100644
--- a/docs/FileVersion.md
+++ b/docs/FileVersion.md
@@ -1,17 +1,17 @@
# FileVersion
+File Version
-
-*Inherited from [File](File.md)*
+*Inherited from [StorageFile](StorageFile.md)*
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**versionId** | **string** | | [optional]
-**isLatest** | **boolean** | |
-**name** | **string** |
*Inherited from [File](File.md)* | [optional]
-**isFolder** | **boolean** |
*Inherited from [File](File.md)* |
-**modifiedDate** | **string** |
*Inherited from [File](File.md)* | [optional]
-**size** | **number** |
*Inherited from [File](File.md)* |
-**path** | **string** |
*Inherited from [File](File.md)* | [optional]
+**versionId** | **string** | File Version ID. | [optional]
+**isLatest** | **boolean** | Specifies whether the file is (true) or is not (false) the latest version of an file. |
+**name** | **string** | File or folder name.
*Inherited from [StorageFile](StorageFile.md)* | [optional]
+**isFolder** | **boolean** | True if it is a folder.
*Inherited from [StorageFile](StorageFile.md)* |
+**modifiedDate** | **string** | File or folder last modified DateTime.
*Inherited from [StorageFile](StorageFile.md)* | [optional]
+**size** | **number** | File or folder size.
*Inherited from [StorageFile](StorageFile.md)* |
+**path** | **string** | File or folder path.
*Inherited from [StorageFile](StorageFile.md)* | [optional]
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) [[View Source]](../src/models/fileVersion.ts)
diff --git a/docs/FileVersions.md b/docs/FileVersions.md
new file mode 100644
index 00000000..084669a1
--- /dev/null
+++ b/docs/FileVersions.md
@@ -0,0 +1,10 @@
+# FileVersions
+File versions FileVersion.
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**value** | [**Array<FileVersion>**](FileVersion.md) | File versions FileVersion. | [optional]
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) [[View Source]](../src/models/fileVersions.ts)
+
diff --git a/docs/FileVersionsResponse.md b/docs/FileVersionsResponse.md
deleted file mode 100644
index 3f38a6a1..00000000
--- a/docs/FileVersionsResponse.md
+++ /dev/null
@@ -1,13 +0,0 @@
-# FileVersionsResponse
-
-
-*Inherited from [AsposeResponse](AsposeResponse.md)*
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**fileVersions** | [**Array<FileVersion>**](FileVersion.md) | | [optional]
-**code** | **number** | Response status code.
*Inherited from [AsposeResponse](AsposeResponse.md)* |
-**status** | **string** | Response status.
*Inherited from [AsposeResponse](AsposeResponse.md)* | [optional]
-
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) [[View Source]](../src/models/fileVersionsResponse.ts)
-
diff --git a/docs/FilesList.md b/docs/FilesList.md
new file mode 100644
index 00000000..52302c25
--- /dev/null
+++ b/docs/FilesList.md
@@ -0,0 +1,10 @@
+# FilesList
+Files list
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**value** | [**Array<StorageFile>**](StorageFile.md) | Files and folders contained by folder StorageFile. | [optional]
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) [[View Source]](../src/models/filesList.ts)
+
diff --git a/docs/FilesResponse.md b/docs/FilesResponse.md
deleted file mode 100644
index 1fd62dbf..00000000
--- a/docs/FilesResponse.md
+++ /dev/null
@@ -1,13 +0,0 @@
-# FilesResponse
-
-
-*Inherited from [AsposeResponse](AsposeResponse.md)*
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**files** | [**Array<File>**](File.md) | | [optional]
-**code** | **number** | Response status code.
*Inherited from [AsposeResponse](AsposeResponse.md)* |
-**status** | **string** | Response status.
*Inherited from [AsposeResponse](AsposeResponse.md)* | [optional]
-
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) [[View Source]](../src/models/filesResponse.ts)
-
diff --git a/docs/FilesUploadResult.md b/docs/FilesUploadResult.md
new file mode 100644
index 00000000..068b707a
--- /dev/null
+++ b/docs/FilesUploadResult.md
@@ -0,0 +1,11 @@
+# FilesUploadResult
+File upload result
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**uploaded** | **Array<string>** | List of uploaded file names | [optional]
+**errors** | [**Array<Error>**](Error.md) | List of errors. | [optional]
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) [[View Source]](../src/models/filesUploadResult.ts)
+
diff --git a/docs/GraphInfo.md b/docs/GraphInfo.md
index 95018be8..92081f4e 100644
--- a/docs/GraphInfo.md
+++ b/docs/GraphInfo.md
@@ -5,10 +5,10 @@ Represents graphics info.
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**lineWidth** | **number** | Gets or sets a float value that indicates the line width of the graph. | [optional]
-**color** | [**Color**](Color.md) | Gets or sets a object that indicates the color of the graph. | [optional]
+**color** | [**Color**](Color.md) | Gets or sets a Color object that indicates the color of the graph. | [optional]
**dashArray** | **Array<number>** | Gets or sets a dash array. | [optional]
**dashPhase** | **number** | Gets or sets a dash phase. | [optional]
-**fillColor** | [**Color**](Color.md) | Gets or sets a object that indicates the fill color of the graph. | [optional]
+**fillColor** | [**Color**](Color.md) | Gets or sets a Color object that indicates the fill color of the graph. | [optional]
**isDoubled** | **boolean** | Gets or sets is border doubled. | [optional]
**skewAngleX** | **number** | Gets or sets a float value that indicates the skew angle of the x-coordinate when transforming a coordinate system. | [optional]
**skewAngleY** | **number** | Gets or sets a float value that indicates the skew angle of the y-coordinate when transforming a coordinate system. | [optional]
diff --git a/docs/ImageFooter.md b/docs/ImageFooter.md
index 792f4dd5..d93fed42 100644
--- a/docs/ImageFooter.md
+++ b/docs/ImageFooter.md
@@ -14,7 +14,7 @@ Name | Type | Description | Notes
**background** | **boolean** | Sets or gets a bool value that indicates the content is stamped as background. If the value is true, the stamp content is layed at the bottom. By defalt, the value is false, the stamp content is layed at the top.
*Inherited from [StampBase](StampBase.md)* | [optional]
**horizontalAlignment** | [**HorizontalAlignment**](HorizontalAlignment.md) | Gets or sets Horizontal alignment of stamp on the page.
*Inherited from [StampBase](StampBase.md)* | [optional]
**opacity** | **number** | Gets or sets a value to indicate the stamp opacity. The value is from 0.0 to 1.0. By default the value is 1.0.
*Inherited from [StampBase](StampBase.md)* | [optional]
-**rotate** | [**Rotation**](Rotation.md) | Sets or gets the rotation of stamp content according values. Note. This property is for set angles which are multiples of 90 degrees (0, 90, 180, 270 degrees). To set arbitrary angle use RotateAngle property. If angle set by ArbitraryAngle is not multiple of 90 then Rotate property returns Rotation.None.
*Inherited from [StampBase](StampBase.md)* | [optional]
+**rotate** | [**Rotation**](Rotation.md) | Sets or gets the rotation of stamp content according Rotation values. Note. This property is for set angles which are multiples of 90 degrees (0, 90, 180, 270 degrees). To set arbitrary angle use RotateAngle property. If angle set by ArbitraryAngle is not multiple of 90 then Rotate property returns Rotation.None.
*Inherited from [StampBase](StampBase.md)* | [optional]
**rotateAngle** | **number** | Gets or sets rotate angle of stamp in degrees. This property allows to set arbitrary rotate angle.
*Inherited from [StampBase](StampBase.md)* | [optional]
**xIndent** | **number** | Horizontal stamp coordinate, starting from the left.
*Inherited from [StampBase](StampBase.md)* | [optional]
**yIndent** | **number** | Vertical stamp coordinate, starting from the bottom.
*Inherited from [StampBase](StampBase.md)* | [optional]
diff --git a/docs/ImageHeader.md b/docs/ImageHeader.md
index 497fc740..ff535a6b 100644
--- a/docs/ImageHeader.md
+++ b/docs/ImageHeader.md
@@ -14,7 +14,7 @@ Name | Type | Description | Notes
**background** | **boolean** | Sets or gets a bool value that indicates the content is stamped as background. If the value is true, the stamp content is layed at the bottom. By defalt, the value is false, the stamp content is layed at the top.
*Inherited from [StampBase](StampBase.md)* | [optional]
**horizontalAlignment** | [**HorizontalAlignment**](HorizontalAlignment.md) | Gets or sets Horizontal alignment of stamp on the page.
*Inherited from [StampBase](StampBase.md)* | [optional]
**opacity** | **number** | Gets or sets a value to indicate the stamp opacity. The value is from 0.0 to 1.0. By default the value is 1.0.
*Inherited from [StampBase](StampBase.md)* | [optional]
-**rotate** | [**Rotation**](Rotation.md) | Sets or gets the rotation of stamp content according values. Note. This property is for set angles which are multiples of 90 degrees (0, 90, 180, 270 degrees). To set arbitrary angle use RotateAngle property. If angle set by ArbitraryAngle is not multiple of 90 then Rotate property returns Rotation.None.
*Inherited from [StampBase](StampBase.md)* | [optional]
+**rotate** | [**Rotation**](Rotation.md) | Sets or gets the rotation of stamp content according Rotation values. Note. This property is for set angles which are multiples of 90 degrees (0, 90, 180, 270 degrees). To set arbitrary angle use RotateAngle property. If angle set by ArbitraryAngle is not multiple of 90 then Rotate property returns Rotation.None.
*Inherited from [StampBase](StampBase.md)* | [optional]
**rotateAngle** | **number** | Gets or sets rotate angle of stamp in degrees. This property allows to set arbitrary rotate angle.
*Inherited from [StampBase](StampBase.md)* | [optional]
**xIndent** | **number** | Horizontal stamp coordinate, starting from the left.
*Inherited from [StampBase](StampBase.md)* | [optional]
**yIndent** | **number** | Vertical stamp coordinate, starting from the bottom.
*Inherited from [StampBase](StampBase.md)* | [optional]
diff --git a/docs/ImageStamp.md b/docs/ImageStamp.md
index c56ca8ad..7e40cc99 100644
--- a/docs/ImageStamp.md
+++ b/docs/ImageStamp.md
@@ -16,7 +16,7 @@ Name | Type | Description | Notes
**background** | **boolean** | Sets or gets a bool value that indicates the content is stamped as background. If the value is true, the stamp content is layed at the bottom. By defalt, the value is false, the stamp content is layed at the top.
*Inherited from [StampBase](StampBase.md)* | [optional]
**horizontalAlignment** | [**HorizontalAlignment**](HorizontalAlignment.md) | Gets or sets Horizontal alignment of stamp on the page.
*Inherited from [StampBase](StampBase.md)* | [optional]
**opacity** | **number** | Gets or sets a value to indicate the stamp opacity. The value is from 0.0 to 1.0. By default the value is 1.0.
*Inherited from [StampBase](StampBase.md)* | [optional]
-**rotate** | [**Rotation**](Rotation.md) | Sets or gets the rotation of stamp content according values. Note. This property is for set angles which are multiples of 90 degrees (0, 90, 180, 270 degrees). To set arbitrary angle use RotateAngle property. If angle set by ArbitraryAngle is not multiple of 90 then Rotate property returns Rotation.None.
*Inherited from [StampBase](StampBase.md)* | [optional]
+**rotate** | [**Rotation**](Rotation.md) | Sets or gets the rotation of stamp content according Rotation values. Note. This property is for set angles which are multiples of 90 degrees (0, 90, 180, 270 degrees). To set arbitrary angle use RotateAngle property. If angle set by ArbitraryAngle is not multiple of 90 then Rotate property returns Rotation.None.
*Inherited from [StampBase](StampBase.md)* | [optional]
**rotateAngle** | **number** | Gets or sets rotate angle of stamp in degrees. This property allows to set arbitrary rotate angle.
*Inherited from [StampBase](StampBase.md)* | [optional]
**xIndent** | **number** | Horizontal stamp coordinate, starting from the left.
*Inherited from [StampBase](StampBase.md)* | [optional]
**yIndent** | **number** | Vertical stamp coordinate, starting from the bottom.
*Inherited from [StampBase](StampBase.md)* | [optional]
diff --git a/docs/ObjectExist.md b/docs/ObjectExist.md
new file mode 100644
index 00000000..e93ec5a1
--- /dev/null
+++ b/docs/ObjectExist.md
@@ -0,0 +1,11 @@
+# ObjectExist
+Object exists
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**exists** | **boolean** | Indicates that the file or folder exists. |
+**isFolder** | **boolean** | True if it is a folder, false if it is a file. |
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) [[View Source]](../src/models/objectExist.ts)
+
diff --git a/docs/PageNumberStamp.md b/docs/PageNumberStamp.md
index 360d632e..fa3025fc 100644
--- a/docs/PageNumberStamp.md
+++ b/docs/PageNumberStamp.md
@@ -15,7 +15,7 @@ Name | Type | Description | Notes
**background** | **boolean** | Sets or gets a bool value that indicates the content is stamped as background. If the value is true, the stamp content is layed at the bottom. By defalt, the value is false, the stamp content is layed at the top.
*Inherited from [StampBase](StampBase.md)* | [optional]
**horizontalAlignment** | [**HorizontalAlignment**](HorizontalAlignment.md) | Gets or sets Horizontal alignment of stamp on the page.
*Inherited from [StampBase](StampBase.md)* | [optional]
**opacity** | **number** | Gets or sets a value to indicate the stamp opacity. The value is from 0.0 to 1.0. By default the value is 1.0.
*Inherited from [StampBase](StampBase.md)* | [optional]
-**rotate** | [**Rotation**](Rotation.md) | Sets or gets the rotation of stamp content according values. Note. This property is for set angles which are multiples of 90 degrees (0, 90, 180, 270 degrees). To set arbitrary angle use RotateAngle property. If angle set by ArbitraryAngle is not multiple of 90 then Rotate property returns Rotation.None.
*Inherited from [StampBase](StampBase.md)* | [optional]
+**rotate** | [**Rotation**](Rotation.md) | Sets or gets the rotation of stamp content according Rotation values. Note. This property is for set angles which are multiples of 90 degrees (0, 90, 180, 270 degrees). To set arbitrary angle use RotateAngle property. If angle set by ArbitraryAngle is not multiple of 90 then Rotate property returns Rotation.None.
*Inherited from [StampBase](StampBase.md)* | [optional]
**rotateAngle** | **number** | Gets or sets rotate angle of stamp in degrees. This property allows to set arbitrary rotate angle.
*Inherited from [StampBase](StampBase.md)* | [optional]
**xIndent** | **number** | Horizontal stamp coordinate, starting from the left.
*Inherited from [StampBase](StampBase.md)* | [optional]
**yIndent** | **number** | Vertical stamp coordinate, starting from the bottom.
*Inherited from [StampBase](StampBase.md)* | [optional]
diff --git a/docs/PdfApi.md b/docs/PdfApi.md
index 2fe33f62..f31a7e1b 100644
--- a/docs/PdfApi.md
+++ b/docs/PdfApi.md
@@ -4,14 +4,19 @@ All URIs are relative to *https://api.aspose.cloud/v2.0/*
Method | HTTP request | Description
------------- | ------------- | -------------
+*PdfApi* | [**copyFile**](PdfApi.md#copyFile) | **PUT** /pdf/storage/file/copy/\{srcPath} | Copy file
+*PdfApi* | [**copyFolder**](PdfApi.md#copyFolder) | **PUT** /pdf/storage/folder/copy/\{srcPath} | Copy folder
+*PdfApi* | [**createFolder**](PdfApi.md#createFolder) | **PUT** /pdf/storage/folder/\{path} | Create the folder
*PdfApi* | [**deleteAnnotation**](PdfApi.md#deleteAnnotation) | **DELETE** /pdf/\{name}/annotations/\{annotationId} | Delete document annotation by ID
+*PdfApi* | [**deleteBookmark**](PdfApi.md#deleteBookmark) | **DELETE** /pdf/\{name}/bookmarks/bookmark/\{bookmarkPath} | Delete document bookmark by ID.
*PdfApi* | [**deleteDocumentAnnotations**](PdfApi.md#deleteDocumentAnnotations) | **DELETE** /pdf/\{name}/annotations | Delete all annotations from the document
+*PdfApi* | [**deleteDocumentBookmarks**](PdfApi.md#deleteDocumentBookmarks) | **DELETE** /pdf/\{name}/bookmarks/tree | Delete all document bookmarks.
*PdfApi* | [**deleteDocumentLinkAnnotations**](PdfApi.md#deleteDocumentLinkAnnotations) | **DELETE** /pdf/\{name}/links | Delete all link annotations from the document
*PdfApi* | [**deleteDocumentStamps**](PdfApi.md#deleteDocumentStamps) | **DELETE** /pdf/\{name}/stamps | Delete all stamps from the document
*PdfApi* | [**deleteDocumentTables**](PdfApi.md#deleteDocumentTables) | **DELETE** /pdf/\{name}/tables | Delete all tables from the document
*PdfApi* | [**deleteField**](PdfApi.md#deleteField) | **DELETE** /pdf/\{name}/fields/\{fieldName} | Delete document field by name.
-*PdfApi* | [**deleteFile**](PdfApi.md#deleteFile) | **DELETE** /storage/file | Remove a specific file
-*PdfApi* | [**deleteFolder**](PdfApi.md#deleteFolder) | **DELETE** /storage/folder | Remove a specific folder
+*PdfApi* | [**deleteFile**](PdfApi.md#deleteFile) | **DELETE** /pdf/storage/file/\{path} | Delete file
+*PdfApi* | [**deleteFolder**](PdfApi.md#deleteFolder) | **DELETE** /pdf/storage/folder/\{path} | Delete folder
*PdfApi* | [**deleteImage**](PdfApi.md#deleteImage) | **DELETE** /pdf/\{name}/images/\{imageId} | Delete image from document page.
*PdfApi* | [**deleteLinkAnnotation**](PdfApi.md#deleteLinkAnnotation) | **DELETE** /pdf/\{name}/links/\{linkId} | Delete document page link annotation by ID
*PdfApi* | [**deletePage**](PdfApi.md#deletePage) | **DELETE** /pdf/\{name}/pages/\{pageNumber} | Delete document page by its number.
@@ -23,13 +28,17 @@ Method | HTTP request | Description
*PdfApi* | [**deleteProperty**](PdfApi.md#deleteProperty) | **DELETE** /pdf/\{name}/documentproperties/\{propertyName} | Delete document property.
*PdfApi* | [**deleteStamp**](PdfApi.md#deleteStamp) | **DELETE** /pdf/\{name}/stamps/\{stampId} | Delete document stamp by ID
*PdfApi* | [**deleteTable**](PdfApi.md#deleteTable) | **DELETE** /pdf/\{name}/tables/\{tableId} | Delete document table by ID
+*PdfApi* | [**downloadFile**](PdfApi.md#downloadFile) | **GET** /pdf/storage/file/\{path} | Download file
+*PdfApi* | [**getBookmark**](PdfApi.md#getBookmark) | **GET** /pdf/\{name}/bookmarks/bookmark/\{bookmarkPath} | Read document bookmark.
+*PdfApi* | [**getBookmarks**](PdfApi.md#getBookmarks) | **GET** /pdf/\{name}/bookmarks/list/\{bookmarkPath} | Read document bookmarks node list.
*PdfApi* | [**getCaretAnnotation**](PdfApi.md#getCaretAnnotation) | **GET** /pdf/\{name}/annotations/caret/\{annotationId} | Read document page caret annotation by ID.
*PdfApi* | [**getCircleAnnotation**](PdfApi.md#getCircleAnnotation) | **GET** /pdf/\{name}/annotations/circle/\{annotationId} | Read document page circle annotation by ID.
-*PdfApi* | [**getDiscUsage**](PdfApi.md#getDiscUsage) | **GET** /storage/disc | Check the disk usage of the current account
+*PdfApi* | [**getDiscUsage**](PdfApi.md#getDiscUsage) | **GET** /pdf/storage/disc | Get disc usage
*PdfApi* | [**getDocument**](PdfApi.md#getDocument) | **GET** /pdf/\{name} | Read common document info.
*PdfApi* | [**getDocumentAnnotations**](PdfApi.md#getDocumentAnnotations) | **GET** /pdf/\{name}/annotations | Read documant page annotations. Returns only FreeTextAnnotations, TextAnnotations, other annotations will implemented next releases.
*PdfApi* | [**getDocumentAttachmentByIndex**](PdfApi.md#getDocumentAttachmentByIndex) | **GET** /pdf/\{name}/attachments/\{attachmentIndex} | Read document attachment info by its index.
*PdfApi* | [**getDocumentAttachments**](PdfApi.md#getDocumentAttachments) | **GET** /pdf/\{name}/attachments | Read document attachments info.
+*PdfApi* | [**getDocumentBookmarks**](PdfApi.md#getDocumentBookmarks) | **GET** /pdf/\{name}/bookmarks/tree | Read document bookmarks tree.
*PdfApi* | [**getDocumentCaretAnnotations**](PdfApi.md#getDocumentCaretAnnotations) | **GET** /pdf/\{name}/annotations/caret | Read document caret annotations.
*PdfApi* | [**getDocumentCircleAnnotations**](PdfApi.md#getDocumentCircleAnnotations) | **GET** /pdf/\{name}/annotations/circle | Read document circle annotations.
*PdfApi* | [**getDocumentFileAttachmentAnnotations**](PdfApi.md#getDocumentFileAttachmentAnnotations) | **GET** /pdf/\{name}/annotations/fileattachment | Read document FileAttachment annotations.
@@ -55,13 +64,14 @@ Method | HTTP request | Description
*PdfApi* | [**getDocumentTables**](PdfApi.md#getDocumentTables) | **GET** /pdf/\{name}/tables | Read document tables.
*PdfApi* | [**getDocumentTextAnnotations**](PdfApi.md#getDocumentTextAnnotations) | **GET** /pdf/\{name}/annotations/text | Read document text annotations.
*PdfApi* | [**getDocumentUnderlineAnnotations**](PdfApi.md#getDocumentUnderlineAnnotations) | **GET** /pdf/\{name}/annotations/underline | Read document underline annotations.
-*PdfApi* | [**getDownload**](PdfApi.md#getDownload) | **GET** /storage/file | Download a specific file
*PdfApi* | [**getDownloadDocumentAttachmentByIndex**](PdfApi.md#getDownloadDocumentAttachmentByIndex) | **GET** /pdf/\{name}/attachments/\{attachmentIndex}/download | Download document attachment content by its index.
*PdfApi* | [**getEpubInStorageToPdf**](PdfApi.md#getEpubInStorageToPdf) | **GET** /pdf/create/epub | Convert EPUB file (located on storage) to PDF format and return resulting file in response.
*PdfApi* | [**getField**](PdfApi.md#getField) | **GET** /pdf/\{name}/fields/\{fieldName} | Get document field by name.
*PdfApi* | [**getFields**](PdfApi.md#getFields) | **GET** /pdf/\{name}/fields | Get document fields.
*PdfApi* | [**getFileAttachmentAnnotation**](PdfApi.md#getFileAttachmentAnnotation) | **GET** /pdf/\{name}/annotations/fileattachment/\{annotationId} | Read document page FileAttachment annotation by ID.
*PdfApi* | [**getFileAttachmentAnnotationData**](PdfApi.md#getFileAttachmentAnnotationData) | **GET** /pdf/\{name}/annotations/fileattachment/\{annotationId}/data | Read document page FileAttachment annotation by ID.
+*PdfApi* | [**getFilesList**](PdfApi.md#getFilesList) | **GET** /pdf/storage/folder/\{path} | Get all files and folders within a folder
+*PdfApi* | [**getFileVersions**](PdfApi.md#getFileVersions) | **GET** /pdf/storage/version/\{path} | Get file versions
*PdfApi* | [**getFreeTextAnnotation**](PdfApi.md#getFreeTextAnnotation) | **GET** /pdf/\{name}/annotations/freetext/\{annotationId} | Read document page free text annotation by ID.
*PdfApi* | [**getHighlightAnnotation**](PdfApi.md#getHighlightAnnotation) | **GET** /pdf/\{name}/annotations/highlight/\{annotationId} | Read document page highlight annotation by ID.
*PdfApi* | [**getHtmlInStorageToPdf**](PdfApi.md#getHtmlInStorageToPdf) | **GET** /pdf/create/html | Convert HTML file (located on storage) to PDF format and return resulting file in response.
@@ -72,13 +82,9 @@ Method | HTTP request | Description
*PdfApi* | [**getImageExtractAsTiff**](PdfApi.md#getImageExtractAsTiff) | **GET** /pdf/\{name}/images/\{imageId}/extract/tiff | Extract document image in TIFF format
*PdfApi* | [**getImages**](PdfApi.md#getImages) | **GET** /pdf/\{name}/pages/\{pageNumber}/images | Read document images.
*PdfApi* | [**getInkAnnotation**](PdfApi.md#getInkAnnotation) | **GET** /pdf/\{name}/annotations/ink/\{annotationId} | Read document page ink annotation by ID.
-*PdfApi* | [**getIsExist**](PdfApi.md#getIsExist) | **GET** /storage/exist | Check if a specific file or folder exists
-*PdfApi* | [**getIsStorageExist**](PdfApi.md#getIsStorageExist) | **GET** /storage/\{name}/exist | Check if storage exists
*PdfApi* | [**getLaTeXInStorageToPdf**](PdfApi.md#getLaTeXInStorageToPdf) | **GET** /pdf/create/latex | Convert LaTeX file (located on storage) to PDF format and return resulting file in response.
*PdfApi* | [**getLineAnnotation**](PdfApi.md#getLineAnnotation) | **GET** /pdf/\{name}/annotations/line/\{annotationId} | Read document page line annotation by ID.
*PdfApi* | [**getLinkAnnotation**](PdfApi.md#getLinkAnnotation) | **GET** /pdf/\{name}/links/\{linkId} | Read document link annotation by ID.
-*PdfApi* | [**getListFiles**](PdfApi.md#getListFiles) | **GET** /storage/folder | Get the file listing of a specific folder
-*PdfApi* | [**getListFileVersions**](PdfApi.md#getListFileVersions) | **GET** /storage/version | Get the file's versions list
*PdfApi* | [**getMhtInStorageToPdf**](PdfApi.md#getMhtInStorageToPdf) | **GET** /pdf/create/mht | Convert MHT file (located on storage) to PDF format and return resulting file in response.
*PdfApi* | [**getMovieAnnotation**](PdfApi.md#getMovieAnnotation) | **GET** /pdf/\{name}/annotations/movie/\{annotationId} | Read document page movie annotation by ID.
*PdfApi* | [**getPage**](PdfApi.md#getPage) | **GET** /pdf/\{name}/pages/\{pageNumber} | Read document page info.
@@ -155,7 +161,11 @@ Method | HTTP request | Description
*PdfApi* | [**getXmlInStorageToPdf**](PdfApi.md#getXmlInStorageToPdf) | **GET** /pdf/create/xml | Convert XML file (located on storage) to PDF format and return resulting file in response.
*PdfApi* | [**getXpsInStorageToPdf**](PdfApi.md#getXpsInStorageToPdf) | **GET** /pdf/create/xps | Convert XPS file (located on storage) to PDF format and return resulting file in response.
*PdfApi* | [**getXslFoInStorageToPdf**](PdfApi.md#getXslFoInStorageToPdf) | **GET** /pdf/create/xslfo | Convert XslFo file (located on storage) to PDF format and return resulting file in response.
+*PdfApi* | [**moveFile**](PdfApi.md#moveFile) | **PUT** /pdf/storage/file/move/\{srcPath} | Move file
+*PdfApi* | [**moveFolder**](PdfApi.md#moveFolder) | **PUT** /pdf/storage/folder/move/\{srcPath} | Move folder
+*PdfApi* | [**objectExists**](PdfApi.md#objectExists) | **GET** /pdf/storage/exist/\{path} | Check if file or folder exists
*PdfApi* | [**postAppendDocument**](PdfApi.md#postAppendDocument) | **POST** /pdf/\{name}/appendDocument | Append document to existing one.
+*PdfApi* | [**postBookmark**](PdfApi.md#postBookmark) | **POST** /pdf/\{name}/bookmarks/bookmark/\{bookmarkPath} | Add document bookmarks.
*PdfApi* | [**postChangePasswordDocumentInStorage**](PdfApi.md#postChangePasswordDocumentInStorage) | **POST** /pdf/\{name}/changepassword | Change document password in storage.
*PdfApi* | [**postCreateField**](PdfApi.md#postCreateField) | **POST** /pdf/\{name}/fields | Create field.
*PdfApi* | [**postDecryptDocumentInStorage**](PdfApi.md#postDecryptDocumentInStorage) | **POST** /pdf/\{name}/decrypt | Decrypt document in storage.
@@ -168,8 +178,6 @@ Method | HTTP request | Description
*PdfApi* | [**postEncryptDocumentInStorage**](PdfApi.md#postEncryptDocumentInStorage) | **POST** /pdf/\{name}/encrypt | Encrypt document in storage.
*PdfApi* | [**postFlattenDocument**](PdfApi.md#postFlattenDocument) | **POST** /pdf/\{name}/flatten | Flatten the document.
*PdfApi* | [**postInsertImage**](PdfApi.md#postInsertImage) | **POST** /pdf/\{name}/pages/\{pageNumber}/images | Insert image to document page.
-*PdfApi* | [**postMoveFile**](PdfApi.md#postMoveFile) | **POST** /storage/file | Move a specific file
-*PdfApi* | [**postMoveFolder**](PdfApi.md#postMoveFolder) | **POST** /storage/folder | Move a specific folder
*PdfApi* | [**postMovePage**](PdfApi.md#postMovePage) | **POST** /pdf/\{name}/pages/\{pageNumber}/movePage | Move page to new position.
*PdfApi* | [**postOptimizeDocument**](PdfApi.md#postOptimizeDocument) | **POST** /pdf/\{name}/optimize | Optimize document.
*PdfApi* | [**postPageCaretAnnotations**](PdfApi.md#postPageCaretAnnotations) | **POST** /pdf/\{name}/pages/\{pageNumber}/annotations/caret | Add document page caret annotations.
@@ -204,12 +212,11 @@ Method | HTTP request | Description
*PdfApi* | [**putAddNewPage**](PdfApi.md#putAddNewPage) | **PUT** /pdf/\{name}/pages | Add new page to end of the document.
*PdfApi* | [**putAddText**](PdfApi.md#putAddText) | **PUT** /pdf/\{name}/pages/\{pageNumber}/text | Add text to PDF document page.
*PdfApi* | [**putAnnotationsFlatten**](PdfApi.md#putAnnotationsFlatten) | **PUT** /pdf/\{name}/annotations/flatten | Flattens the annotations of the specified types
+*PdfApi* | [**putBookmark**](PdfApi.md#putBookmark) | **PUT** /pdf/\{name}/bookmarks/bookmark/\{bookmarkPath} | Update document bookmark.
*PdfApi* | [**putCaretAnnotation**](PdfApi.md#putCaretAnnotation) | **PUT** /pdf/\{name}/annotations/caret/\{annotationId} | Replace document caret annotation
*PdfApi* | [**putChangePasswordDocument**](PdfApi.md#putChangePasswordDocument) | **PUT** /pdf/changepassword | Change document password from content.
*PdfApi* | [**putCircleAnnotation**](PdfApi.md#putCircleAnnotation) | **PUT** /pdf/\{name}/annotations/circle/\{annotationId} | Replace document circle annotation
-*PdfApi* | [**putCreate**](PdfApi.md#putCreate) | **PUT** /storage/file | Upload a specific file
*PdfApi* | [**putCreateDocument**](PdfApi.md#putCreateDocument) | **PUT** /pdf/\{name} | Create empty document.
-*PdfApi* | [**putCreateFolder**](PdfApi.md#putCreateFolder) | **PUT** /storage/folder | Create the folder
*PdfApi* | [**putDecryptDocument**](PdfApi.md#putDecryptDocument) | **PUT** /pdf/decrypt | Decrypt document from content.
*PdfApi* | [**putEncryptDocument**](PdfApi.md#putEncryptDocument) | **PUT** /pdf/encrypt | Encrypt document from content.
*PdfApi* | [**putEpubInStorageToPdf**](PdfApi.md#putEpubInStorageToPdf) | **PUT** /pdf/\{name}/create/epub | Convert EPUB file (located on storage) to PDF format and upload resulting file to storage.
@@ -299,6 +306,76 @@ Method | HTTP request | Description
*PdfApi* | [**putXmlInStorageToPdf**](PdfApi.md#putXmlInStorageToPdf) | **PUT** /pdf/\{name}/create/xml | Convert XML file (located on storage) to PDF format and upload resulting file to storage.
*PdfApi* | [**putXpsInStorageToPdf**](PdfApi.md#putXpsInStorageToPdf) | **PUT** /pdf/\{name}/create/xps | Convert XPS file (located on storage) to PDF format and upload resulting file to storage.
*PdfApi* | [**putXslFoInStorageToPdf**](PdfApi.md#putXslFoInStorageToPdf) | **PUT** /pdf/\{name}/create/xslfo | Convert XslFo file (located on storage) to PDF format and upload resulting file to storage.
+*PdfApi* | [**storageExists**](PdfApi.md#storageExists) | **GET** /pdf/storage/\{storageName}/exist | Check if storage exists
+*PdfApi* | [**uploadFile**](PdfApi.md#uploadFile) | **PUT** /pdf/storage/file/\{path} | Upload file
+
+## **copyFile**
+> copyFile(srcPath, destPath, srcStorageName, destStorageName, versionId)
+
+Copy file
+
+### Parameters
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+**srcPath** | **string** | Source file path e.g. '/folder/file.ext' |
+**destPath** | **string** | Destination file path |
+**srcStorageName** | **string** | Source storage name | [optional]
+**destStorageName** | **string** | Destination storage name | [optional]
+**versionId** | **string** | File version ID to copy | [optional]
+
+### Return type
+
+****
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+
+## **copyFolder**
+> copyFolder(srcPath, destPath, srcStorageName, destStorageName)
+
+Copy folder
+
+### Parameters
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+**srcPath** | **string** | Source folder path e.g. '/src' |
+**destPath** | **string** | Destination folder path e.g. '/dst' |
+**srcStorageName** | **string** | Source storage name | [optional]
+**destStorageName** | **string** | Destination storage name | [optional]
+
+### Return type
+
+****
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+
+## **createFolder**
+> createFolder(path, storageName)
+
+Create the folder
+
+### Parameters
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+**path** | **string** | Folder path to create e.g. 'folder_1/folder_2/' |
+**storageName** | **string** | Storage name | [optional]
+
+### Return type
+
+****
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
## **deleteAnnotation**
> deleteAnnotation(name, annotationId, storage, folder)
@@ -317,6 +394,29 @@ Name | Type | Description | Notes
[**AsposeResponse**](AsposeResponse.md)
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+
+## **deleteBookmark**
+> deleteBookmark(name, bookmarkPath, folder, storage)
+
+Delete document bookmark by ID.
+
+### Parameters
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+**name** | **string** | The document name. |
+**bookmarkPath** | **string** | The bookmark path. |
+**folder** | **string** | The document folder. | [optional]
+**storage** | **string** | The document storage. | [optional]
+
+### Return type
+
+[**AsposeResponse**](AsposeResponse.md)
+
### HTTP request headers
- **Content-Type**: application/json
@@ -339,6 +439,28 @@ Name | Type | Description | Notes
[**AsposeResponse**](AsposeResponse.md)
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+
+## **deleteDocumentBookmarks**
+> deleteDocumentBookmarks(name, folder, storage)
+
+Delete all document bookmarks.
+
+### Parameters
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+**name** | **string** | The document name. |
+**folder** | **string** | The document folder. | [optional]
+**storage** | **string** | The document storage. | [optional]
+
+### Return type
+
+[**AsposeResponse**](AsposeResponse.md)
+
### HTTP request headers
- **Content-Type**: application/json
@@ -435,20 +557,20 @@ Name | Type | Description | Notes
## **deleteFile**
-> deleteFile(path, versionId, storage)
+> deleteFile(path, storageName, versionId)
-Remove a specific file
+Delete file
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**path** | **string** | Path of the file including file name and extension e.g. /Folder1/file.ext |
-**versionId** | **string** | File's version | [optional]
-**storage** | **string** | User's storage name | [optional]
+**path** | **string** | File path e.g. '/folder/file.ext' |
+**storageName** | **string** | Storage name | [optional]
+**versionId** | **string** | File version ID to delete | [optional]
### Return type
-[**AsposeResponse**](AsposeResponse.md)
+****
### HTTP request headers
@@ -457,20 +579,20 @@ Name | Type | Description | Notes
## **deleteFolder**
-> deleteFolder(path, storage, recursive)
+> deleteFolder(path, storageName, recursive)
-Remove a specific folder
+Delete folder
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**path** | **string** | Folder path e.g. /Folder1 |
-**storage** | **string** | User's storage name | [optional]
-**recursive** | **boolean** | Remove recursivelly inner folder/files. If false and folder contains data than exception is raised. | [optional]
+**path** | **string** | Folder path e.g. '/folder' |
+**storageName** | **string** | Storage name | [optional]
+**recursive** | **boolean** | Enable to delete folders, subfolders and files | [optional]
### Return type
-[**AsposeResponse**](AsposeResponse.md)
+****
### HTTP request headers
@@ -724,6 +846,74 @@ Name | Type | Description | Notes
[**AsposeResponse**](AsposeResponse.md)
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+
+## **downloadFile**
+> downloadFile(path, storageName, versionId)
+
+Download file
+
+### Parameters
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+**path** | **string** | File path e.g. '/folder/file.ext' |
+**storageName** | **string** | Storage name | [optional]
+**versionId** | **string** | File version ID to download | [optional]
+
+### Return type
+
+**Buffer**
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: multipart/form-data
+
+
+## **getBookmark**
+> getBookmark(name, bookmarkPath, folder, storage)
+
+Read document bookmark.
+
+### Parameters
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+**name** | **string** | The document name. |
+**bookmarkPath** | **string** | The bookmark path. |
+**folder** | **string** | The document folder. | [optional]
+**storage** | **string** | The document storage. | [optional]
+
+### Return type
+
+[**BookmarkResponse**](BookmarkResponse.md)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+
+## **getBookmarks**
+> getBookmarks(name, bookmarkPath, folder, storage)
+
+Read document bookmarks node list.
+
+### Parameters
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+**name** | **string** | The document name. |
+**bookmarkPath** | **string** | The bookmark path. |
+**folder** | **string** | The document folder. | [optional]
+**storage** | **string** | The document storage. | [optional]
+
+### Return type
+
+[**BookmarksResponse**](BookmarksResponse.md)
+
### HTTP request headers
- **Content-Type**: application/json
@@ -777,18 +967,18 @@ Name | Type | Description | Notes
## **getDiscUsage**
-> getDiscUsage(storage)
+> getDiscUsage(storageName)
-Check the disk usage of the current account
+Get disc usage
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**storage** | **string** | User's storage name | [optional]
+**storageName** | **string** | Storage name | [optional]
### Return type
-[**DiscUsageResponse**](DiscUsageResponse.md)
+[**DiscUsage**](DiscUsage.md)
### HTTP request headers
@@ -879,6 +1069,28 @@ Name | Type | Description | Notes
[**AttachmentsResponse**](AttachmentsResponse.md)
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+
+## **getDocumentBookmarks**
+> getDocumentBookmarks(name, folder, storage)
+
+Read document bookmarks tree.
+
+### Parameters
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+**name** | **string** | The document name. |
+**folder** | **string** | The document folder. | [optional]
+**storage** | **string** | The document storage. | [optional]
+
+### Return type
+
+[**BookmarksResponse**](BookmarksResponse.md)
+
### HTTP request headers
- **Content-Type**: application/json
@@ -1436,28 +1648,6 @@ Name | Type | Description | Notes
- **Content-Type**: application/json
- **Accept**: application/json
-
-## **getDownload**
-> getDownload(path, versionId, storage)
-
-Download a specific file
-
-### Parameters
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
-**path** | **string** | Path of the file including the file name and extension e.g. /file.ext |
-**versionId** | **string** | File's version | [optional]
-**storage** | **string** | User's storage name | [optional]
-
-### Return type
-
-**Buffer**
-
-### HTTP request headers
-
- - **Content-Type**: application/json
- - **Accept**: multipart/form-data
-
## **getDownloadDocumentAttachmentByIndex**
> getDownloadDocumentAttachmentByIndex(name, attachmentIndex, storage, folder)
@@ -1568,7 +1758,7 @@ Name | Type | Description | Notes
### HTTP request headers
- **Content-Type**: application/json
- - **Accept**: multipart/form-data
+ - **Accept**: application/json
## **getFileAttachmentAnnotationData**
@@ -1593,6 +1783,48 @@ Name | Type | Description | Notes
- **Content-Type**: application/json
- **Accept**: multipart/form-data
+
+## **getFilesList**
+> getFilesList(path, storageName)
+
+Get all files and folders within a folder
+
+### Parameters
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+**path** | **string** | Folder path e.g. '/folder' |
+**storageName** | **string** | Storage name | [optional]
+
+### Return type
+
+[**FilesList**](FilesList.md)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+
+## **getFileVersions**
+> getFileVersions(path, storageName)
+
+Get file versions
+
+### Parameters
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+**path** | **string** | File path e.g. '/file.ext' |
+**storageName** | **string** | Storage name | [optional]
+
+### Return type
+
+[**FileVersions**](FileVersions.md)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
## **getFreeTextAnnotation**
> getFreeTextAnnotation(name, annotationId, storage, folder)
@@ -1689,7 +1921,7 @@ Name | Type | Description | Notes
### HTTP request headers
- **Content-Type**: application/json
- - **Accept**: multipart/form-data
+ - **Accept**: application/json
## **getImageExtractAsGif**
@@ -1832,48 +2064,6 @@ Name | Type | Description | Notes
[**InkAnnotationResponse**](InkAnnotationResponse.md)
-### HTTP request headers
-
- - **Content-Type**: application/json
- - **Accept**: application/json
-
-
-## **getIsExist**
-> getIsExist(path, versionId, storage)
-
-Check if a specific file or folder exists
-
-### Parameters
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
-**path** | **string** | File or folder path e.g. /file.ext or /Folder1 |
-**versionId** | **string** | File's version | [optional]
-**storage** | **string** | User's storage name | [optional]
-
-### Return type
-
-[**FileExistResponse**](FileExistResponse.md)
-
-### HTTP request headers
-
- - **Content-Type**: application/json
- - **Accept**: application/json
-
-
-## **getIsStorageExist**
-> getIsStorageExist(name)
-
-Check if storage exists
-
-### Parameters
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
-**name** | **string** | Storage name |
-
-### Return type
-
-[**StorageExistResponse**](StorageExistResponse.md)
-
### HTTP request headers
- **Content-Type**: application/json
@@ -1941,48 +2131,6 @@ Name | Type | Description | Notes
[**LinkAnnotationResponse**](LinkAnnotationResponse.md)
-### HTTP request headers
-
- - **Content-Type**: application/json
- - **Accept**: application/json
-
-
-## **getListFiles**
-> getListFiles(path, storage)
-
-Get the file listing of a specific folder
-
-### Parameters
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
-**path** | **string** | Start with name of storage e.g. root folder '/'or some folder '/folder1/..' | [optional]
-**storage** | **string** | User's storage name | [optional]
-
-### Return type
-
-[**FilesResponse**](FilesResponse.md)
-
-### HTTP request headers
-
- - **Content-Type**: application/json
- - **Accept**: application/json
-
-
-## **getListFileVersions**
-> getListFileVersions(path, storage)
-
-Get the file's versions list
-
-### Parameters
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
-**path** | **string** | File path e.g. /file.ext or /Folder1/file.ext |
-**storage** | **string** | User's storage name | [optional]
-
-### Return type
-
-[**FileVersionsResponse**](FileVersionsResponse.md)
-
### HTTP request headers
- **Content-Type**: application/json
@@ -2053,7 +2201,7 @@ Name | Type | Description | Notes
### HTTP request headers
- **Content-Type**: application/json
- - **Accept**: multipart/form-data
+ - **Accept**: application/json
## **getPageAnnotations**
@@ -3339,7 +3487,7 @@ Name | Type | Description | Notes
### HTTP request headers
- **Content-Type**: application/json
- - **Accept**: multipart/form-data
+ - **Accept**: application/json
## **getScreenAnnotationData**
@@ -3385,7 +3533,7 @@ Name | Type | Description | Notes
### HTTP request headers
- **Content-Type**: application/json
- - **Accept**: multipart/form-data
+ - **Accept**: application/json
## **getSoundAnnotationData**
@@ -3811,9 +3959,78 @@ Name | Type | Description | Notes
- **Content-Type**: application/json
- **Accept**: multipart/form-data
+
+## **moveFile**
+> moveFile(srcPath, destPath, srcStorageName, destStorageName, versionId)
+
+Move file
+
+### Parameters
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+**srcPath** | **string** | Source file path e.g. '/src.ext' |
+**destPath** | **string** | Destination file path e.g. '/dest.ext' |
+**srcStorageName** | **string** | Source storage name | [optional]
+**destStorageName** | **string** | Destination storage name | [optional]
+**versionId** | **string** | File version ID to move | [optional]
+
+### Return type
+
+****
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+
+## **moveFolder**
+> moveFolder(srcPath, destPath, srcStorageName, destStorageName)
+
+Move folder
+
+### Parameters
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+**srcPath** | **string** | Folder path to move e.g. '/folder' |
+**destPath** | **string** | Destination folder path to move to e.g '/dst' |
+**srcStorageName** | **string** | Source storage name | [optional]
+**destStorageName** | **string** | Destination storage name | [optional]
+
+### Return type
+
+****
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+
+## **objectExists**
+> objectExists(path, storageName, versionId)
+
+Check if file or folder exists
+
+### Parameters
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+**path** | **string** | File or folder path e.g. '/file.ext' or '/folder' |
+**storageName** | **string** | Storage name | [optional]
+**versionId** | **string** | File version ID | [optional]
+
+### Return type
+
+[**ObjectExist**](ObjectExist.md)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
## **postAppendDocument**
-> postAppendDocument(name, appendDocument, appendFile, startPage, endPage, storage, folder)
+> postAppendDocument(name, appendFile, startPage, endPage, storage, folder)
Append document to existing one.
@@ -3821,8 +4038,7 @@ Append document to existing one.
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**name** | **string** | The original document name. |
-**appendDocument** | [**AppendDocument**](AppendDocument.md) | with the append document data. | [optional]
-**appendFile** | **string** | Append file server path. | [optional]
+**appendFile** | **string** | Append file server path. |
**startPage** | **number** | Appending start page. | [optional]
**endPage** | **number** | Appending end page. | [optional]
**storage** | **string** | The documents storage. | [optional]
@@ -3832,6 +4048,30 @@ Name | Type | Description | Notes
[**DocumentResponse**](DocumentResponse.md)
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+
+## **postBookmark**
+> postBookmark(name, bookmarkPath, bookmarks, folder, storage)
+
+Add document bookmarks.
+
+### Parameters
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+**name** | **string** | The document name. |
+**bookmarkPath** | **string** | The bookmark path. |
+**bookmarks** | [**Array<Bookmark>**](Bookmark.md) | The array of bookmark. |
+**folder** | **string** | The document folder. | [optional]
+**storage** | **string** | The document storage. | [optional]
+
+### Return type
+
+[**BookmarksResponse**](BookmarksResponse.md)
+
### HTTP request headers
- **Content-Type**: application/json
@@ -3873,7 +4113,7 @@ Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**name** | **string** | The document name. |
**page** | **number** | Document page number. |
-**field** | [**Field**](Field.md) | with the field data. | [optional]
+**field** | [**Field**](Field.md) | Field with the field data. |
**storage** | **string** | The document storage. | [optional]
**folder** | **string** | The document folder. | [optional]
@@ -4069,8 +4309,8 @@ Name | Type | Description | Notes
**name** | **string** | Document name. |
**userPassword** | **string** | User password (encrypted Base64). |
**ownerPassword** | **string** | Owner password (encrypted Base64). |
-**cryptoAlgorithm** | [**CryptoAlgorithm**](CryptoAlgorithm.md) | Cryptographic algorithm, see for details. |
-**permissionsFlags** | **Array<>** | Array of document permissions, see for details. | [optional]
+**cryptoAlgorithm** | [**CryptoAlgorithm**](CryptoAlgorithm.md) | Cryptographic algorithm, see CryptoAlgorithm for details. |
+**permissionsFlags** | **Array<>** | Array of document permissions, see PermissionsFlags for details. | [optional]
**usePdf20** | **boolean** | Support for revision 6 (Extension 8). | [optional]
**storage** | **string** | The document storage. | [optional]
**folder** | **string** | The document folder. | [optional]
@@ -4138,53 +4378,6 @@ Name | Type | Description | Notes
- **Content-Type**: multipart/form-data
- **Accept**: application/json
-
-## **postMoveFile**
-> postMoveFile(src, dest, versionId, storage, destStorage)
-
-Move a specific file
-
-### Parameters
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
-**src** | **string** | Source file path e.g. /fileSource.ext |
-**dest** | **string** | Destination file path e.g. /fileDestination.ext |
-**versionId** | **string** | Source file's version, | [optional]
-**storage** | **string** | User's source storage name | [optional]
-**destStorage** | **string** | User's destination storage name | [optional]
-
-### Return type
-
-[**AsposeResponse**](AsposeResponse.md)
-
-### HTTP request headers
-
- - **Content-Type**: multipart/form-data
- - **Accept**: application/json
-
-
-## **postMoveFolder**
-> postMoveFolder(src, dest, storage, destStorage)
-
-Move a specific folder
-
-### Parameters
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
-**src** | **string** | Source folder path e.g. /Folder1 |
-**dest** | **string** | Destination folder path e.g. /Folder2 |
-**storage** | **string** | User's source storage name | [optional]
-**destStorage** | **string** | User's destination storage name | [optional]
-
-### Return type
-
-[**AsposeResponse**](AsposeResponse.md)
-
-### HTTP request headers
-
- - **Content-Type**: application/json
- - **Accept**: application/json
-
## **postMovePage**
> postMovePage(name, pageNumber, newIndex, storage, folder)
@@ -4219,7 +4412,7 @@ Optimize document.
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**name** | **string** | The document name. |
-**options** | [**OptimizeOptions**](OptimizeOptions.md) | The optimization options. | [optional]
+**options** | [**OptimizeOptions**](OptimizeOptions.md) | The optimization options. |
**storage** | **string** | The document storage. | [optional]
**folder** | **string** | The document folder. | [optional]
@@ -4858,7 +5051,7 @@ Name | Type | Description | Notes
## **postSignDocument**
-> postSignDocument(name, signature, storage, folder)
+> postSignDocument(name, sign, storage, folder)
Sign document.
@@ -4866,7 +5059,7 @@ Sign document.
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**name** | **string** | The document name. |
-**signature** | [**Signature**](Signature.md) | Signature object containing signature data. | [optional]
+**sign** | [**Signature**](Signature.md) | Signature object containing signature data. |
**storage** | **string** | The document storage. | [optional]
**folder** | **string** | The document folder. | [optional]
@@ -4881,7 +5074,7 @@ Name | Type | Description | Notes
## **postSignPage**
-> postSignPage(name, pageNumber, signature, storage, folder)
+> postSignPage(name, pageNumber, sign, storage, folder)
Sign page.
@@ -4890,7 +5083,7 @@ Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**name** | **string** | The document name. |
**pageNumber** | **number** | The page number. |
-**signature** | [**Signature**](Signature.md) | Signature object containing signature data. | [optional]
+**sign** | [**Signature**](Signature.md) | Signature object containing signature data. |
**storage** | **string** | The document storage. | [optional]
**folder** | **string** | The document folder. | [optional]
@@ -4961,7 +5154,7 @@ Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**name** | **string** | The document name. |
**pageNumber** | **number** | Number of page (starting from 1). |
-**paragraph** | [**Paragraph**](Paragraph.md) | Paragraph data. | [optional]
+**paragraph** | [**Paragraph**](Paragraph.md) | Paragraph data. |
**folder** | **string** | Document folder. | [optional]
**storage** | **string** | The document storage. | [optional]
@@ -4994,6 +5187,30 @@ Name | Type | Description | Notes
[**AsposeResponse**](AsposeResponse.md)
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+
+## **putBookmark**
+> putBookmark(name, bookmarkPath, bookmark, folder, storage)
+
+Update document bookmark.
+
+### Parameters
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+**name** | **string** | The document name. |
+**bookmarkPath** | **string** | The bookmark path. |
+**bookmark** | [**Bookmark**](Bookmark.md) | The bookmark. |
+**folder** | **string** | The document folder. | [optional]
+**storage** | **string** | The document storage. | [optional]
+
+### Return type
+
+[**BookmarkResponse**](BookmarkResponse.md)
+
### HTTP request headers
- **Content-Type**: application/json
@@ -5072,29 +5289,6 @@ Name | Type | Description | Notes
- **Content-Type**: application/json
- **Accept**: application/json
-
-## **putCreate**
-> putCreate(path, File, versionId, storage)
-
-Upload a specific file
-
-### Parameters
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
-**path** | **string** | Path where to upload including filename and extension e.g. /file.ext or /Folder 1/file.ext |
-**File** | **Buffer** | File to upload |
-**versionId** | **string** | Source file's version | [optional]
-**storage** | **string** | User's storage name | [optional]
-
-### Return type
-
-[**AsposeResponse**](AsposeResponse.md)
-
-### HTTP request headers
-
- - **Content-Type**: multipart/form-data
- - **Accept**: application/json
-
## **putCreateDocument**
> putCreateDocument(name, storage, folder)
@@ -5112,28 +5306,6 @@ Name | Type | Description | Notes
[**DocumentResponse**](DocumentResponse.md)
-### HTTP request headers
-
- - **Content-Type**: application/json
- - **Accept**: application/json
-
-
-## **putCreateFolder**
-> putCreateFolder(path, storage, destStorage)
-
-Create the folder
-
-### Parameters
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
-**path** | **string** | Target folder's path e.g. Folder1/Folder2/. The folders will be created recursively |
-**storage** | **string** | User's source storage name | [optional]
-**destStorage** | **string** | User's destination storage name | [optional]
-
-### Return type
-
-[**AsposeResponse**](AsposeResponse.md)
-
### HTTP request headers
- **Content-Type**: application/json
@@ -5174,8 +5346,8 @@ Name | Type | Description | Notes
**outPath** | **string** | Full resulting filename (ex. /folder1/folder2/result.doc) |
**userPassword** | **string** | User password (encrypted Base64). |
**ownerPassword** | **string** | Owner password (encrypted Base64). |
-**cryptoAlgorithm** | [**CryptoAlgorithm**](CryptoAlgorithm.md) | Cryptographic algorithm, see for details. |
-**permissionsFlags** | **Array<>** | Array of document permissions, see for details. | [optional]
+**cryptoAlgorithm** | [**CryptoAlgorithm**](CryptoAlgorithm.md) | Cryptographic algorithm, see CryptoAlgorithm for details. |
+**permissionsFlags** | **Array<>** | Array of document permissions, see PermissionsFlags for details. | [optional]
**usePdf20** | **boolean** | Support for revision 6 (Extension 8). | [optional]
**storage** | **string** | The document storage. | [optional]
**file** | **Buffer** | A file to be encrypted. | [optional]
@@ -5475,7 +5647,7 @@ Convert image file (located on storage) to PDF format and upload resulting file
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**name** | **string** | The document name. |
-**imageTemplates** | [**ImageTemplatesRequest**](ImageTemplatesRequest.md) | Image templates |
+**imageTemplates** | [**ImageTemplatesRequest**](ImageTemplatesRequest.md) | ImageTemplatesRequestImage templates |
**dstFolder** | **string** | The destination document folder. | [optional]
**storage** | **string** | The document storage. | [optional]
@@ -5527,7 +5699,7 @@ Name | Type | Description | Notes
**pageNumber** | **number** | The page number. |
**width** | **number** | The converted image width. | [optional]
**height** | **number** | The converted image height. | [optional]
-**storage** | **string** | | [optional]
+**storage** | **string** | The document storage. | [optional]
**folder** | **string** | The document folder. | [optional]
**destFolder** | **string** | The document folder. | [optional]
@@ -5697,7 +5869,7 @@ Merge a list of documents.
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**name** | **string** | Resulting documen name. |
-**mergeDocuments** | [**MergeDocuments**](MergeDocuments.md) | with a list of documents. | [optional]
+**mergeDocuments** | [**MergeDocuments**](MergeDocuments.md) | MergeDocuments with a list of documents. |
**storage** | **string** | Resulting document storage. | [optional]
**folder** | **string** | Resulting document folder. | [optional]
@@ -5768,7 +5940,7 @@ Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**name** | **string** | The document name. |
**pageNumber** | **number** | The page number. |
-**stamp** | [**Stamp**](Stamp.md) | with data. |
+**stamp** | [**Stamp**](Stamp.md) | Stamp with data. |
**storage** | **string** | The document storage. | [optional]
**folder** | **string** | The document folder. | [optional]
@@ -6755,7 +6927,7 @@ Update privilege document.
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**name** | **string** | The document name. |
-**privileges** | [**DocumentPrivilege**](DocumentPrivilege.md) | Document privileges. | [optional]
+**privileges** | [**DocumentPrivilege**](DocumentPrivilege.md) | Document privileges. DocumentPrivilege |
**storage** | **string** | The document storage. | [optional]
**folder** | **string** | The document folder. | [optional]
@@ -7217,7 +7389,7 @@ Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**name** | **string** | The document name. |
**fieldName** | **string** | The name of a field to be updated. |
-**field** | [**Field**](Field.md) | with the field data. | [optional]
+**field** | [**Field**](Field.md) | Field with the field data. |
**storage** | **string** | The document storage. | [optional]
**folder** | **string** | The document folder. | [optional]
@@ -7240,7 +7412,7 @@ Update fields.
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**name** | **string** | The document name. |
-**fields** | [**Fields**](Fields.md) | with the fields data. | [optional]
+**fields** | [**Fields**](Fields.md) | Fields with the fields data. |
**storage** | **string** | The document storage. | [optional]
**folder** | **string** | The document folder. | [optional]
@@ -7398,4 +7570,46 @@ Name | Type | Description | Notes
- **Content-Type**: application/json
- **Accept**: application/json
+
+## **storageExists**
+> storageExists(storageName)
+
+Check if storage exists
+
+### Parameters
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+**storageName** | **string** | Storage name |
+
+### Return type
+
+[**StorageExist**](StorageExist.md)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+
+## **uploadFile**
+> uploadFile(path, File, storageName)
+
+Upload file
+
+### Parameters
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+**path** | **string** | Path where to upload including filename and extension e.g. /file.ext or /Folder 1/file.ext If the content is multipart and path does not contains the file name it tries to get them from filename parameter from Content-Disposition header. |
+**File** | **Buffer** | File to upload |
+**storageName** | **string** | Storage name | [optional]
+
+### Return type
+
+[**FilesUploadResult**](FilesUploadResult.md)
+
+### HTTP request headers
+
+ - **Content-Type**: multipart/form-data
+ - **Accept**: application/json
+
diff --git a/docs/PdfPageStamp.md b/docs/PdfPageStamp.md
index f6c33bee..75f7187d 100644
--- a/docs/PdfPageStamp.md
+++ b/docs/PdfPageStamp.md
@@ -15,7 +15,7 @@ Name | Type | Description | Notes
**background** | **boolean** | Sets or gets a bool value that indicates the content is stamped as background. If the value is true, the stamp content is layed at the bottom. By defalt, the value is false, the stamp content is layed at the top.
*Inherited from [StampBase](StampBase.md)* | [optional]
**horizontalAlignment** | [**HorizontalAlignment**](HorizontalAlignment.md) | Gets or sets Horizontal alignment of stamp on the page.
*Inherited from [StampBase](StampBase.md)* | [optional]
**opacity** | **number** | Gets or sets a value to indicate the stamp opacity. The value is from 0.0 to 1.0. By default the value is 1.0.
*Inherited from [StampBase](StampBase.md)* | [optional]
-**rotate** | [**Rotation**](Rotation.md) | Sets or gets the rotation of stamp content according values. Note. This property is for set angles which are multiples of 90 degrees (0, 90, 180, 270 degrees). To set arbitrary angle use RotateAngle property. If angle set by ArbitraryAngle is not multiple of 90 then Rotate property returns Rotation.None.
*Inherited from [StampBase](StampBase.md)* | [optional]
+**rotate** | [**Rotation**](Rotation.md) | Sets or gets the rotation of stamp content according Rotation values. Note. This property is for set angles which are multiples of 90 degrees (0, 90, 180, 270 degrees). To set arbitrary angle use RotateAngle property. If angle set by ArbitraryAngle is not multiple of 90 then Rotate property returns Rotation.None.
*Inherited from [StampBase](StampBase.md)* | [optional]
**rotateAngle** | **number** | Gets or sets rotate angle of stamp in degrees. This property allows to set arbitrary rotate angle.
*Inherited from [StampBase](StampBase.md)* | [optional]
**xIndent** | **number** | Horizontal stamp coordinate, starting from the left.
*Inherited from [StampBase](StampBase.md)* | [optional]
**yIndent** | **number** | Vertical stamp coordinate, starting from the bottom.
*Inherited from [StampBase](StampBase.md)* | [optional]
diff --git a/docs/Signature.md b/docs/Signature.md
index b89a5d0f..ca65b4fd 100644
--- a/docs/Signature.md
+++ b/docs/Signature.md
@@ -11,7 +11,7 @@ Name | Type | Description | Notes
**reason** | **string** | Gets or sets the reason of the signature. | [optional]
**contact** | **string** | Gets or sets the contact of the signature. | [optional]
**location** | **string** | Gets or sets the location of the signature. | [optional]
-**visible** | **boolean** | Gets or sets a value indicating whether this is visible. Supports only when signing particular page. |
+**visible** | **boolean** | Gets or sets a value indicating whether this Signature is visible. Supports only when signing particular page. |
**rectangle** | [**Rectangle**](Rectangle.md) | Gets or sets the visible rectangle of the signature. Supports only when signing particular page. | [optional]
**formFieldName** | **string** | Gets or sets the name of the signature field. Supports only when signing document with particular form field. | [optional]
**authority** | **string** | Gets or sets the name of the person or authority signing the document.. | [optional]
diff --git a/docs/Stamp.md b/docs/Stamp.md
index de1125b9..1566cd4d 100644
--- a/docs/Stamp.md
+++ b/docs/Stamp.md
@@ -11,7 +11,7 @@ Name | Type | Description | Notes
**leftMargin** | **number** | Gets or sets left margin of stamp. | [optional]
**opacity** | **number** | Gets or sets a value to indicate the stamp opacity. The value is from 0.0 to 1.0. By default the value is 1.0. | [optional]
**rightMargin** | **number** | Gets or sets right margin of stamp. | [optional]
-**rotate** | [**Rotation**](Rotation.md) | Sets or gets the rotation of stamp content according values. Note. This property is for set angles which are multiples of 90 degrees (0, 90, 180, 270 degrees). To set arbitrary angle use RotateAngle property. If angle set by ArbitraryAngle is not multiple of 90 then Rotate property returns Rotation.None. | [optional]
+**rotate** | [**Rotation**](Rotation.md) | Sets or gets the rotation of stamp content according Rotation values. Note. This property is for set angles which are multiples of 90 degrees (0, 90, 180, 270 degrees). To set arbitrary angle use RotateAngle property. If angle set by ArbitraryAngle is not multiple of 90 then Rotate property returns Rotation.None. | [optional]
**rotateAngle** | **number** | Gets or sets rotate angle of stamp in degrees. This property allows to set arbitrary rotate angle. | [optional]
**topMargin** | **number** | Gets or sets top margin of stamp. | [optional]
**verticalAlignment** | [**VerticalAlignment**](VerticalAlignment.md) | Gets or sets vertical alignment of stamp on page. | [optional]
@@ -20,7 +20,7 @@ Name | Type | Description | Notes
**zoom** | **number** | Zooming factor of the stamp. Allows to scale stamp. | [optional]
**textAlignment** | [**HorizontalAlignment**](HorizontalAlignment.md) | Alignment of the text inside the stamp. | [optional]
**value** | **string** | Gets or sets string value which is used as stamp on the page. | [optional]
-**textState** | [**TextState**](TextState.md) | Gets text properties of the stamp. See for details. | [optional]
+**textState** | [**TextState**](TextState.md) | Gets text properties of the stamp. See TextState for details. | [optional]
**fileName** | **string** | Gets or sets the file name. | [optional]
**width** | **number** | Gets or sets image width. Setting this property allos to scal image horizontally. | [optional]
**height** | **number** | Gets or sets image height. Setting this image allows to scale image vertically. | [optional]
diff --git a/docs/StampBase.md b/docs/StampBase.md
index 4b3c8712..7a800ad1 100644
--- a/docs/StampBase.md
+++ b/docs/StampBase.md
@@ -8,7 +8,7 @@ Name | Type | Description | Notes
**background** | **boolean** | Sets or gets a bool value that indicates the content is stamped as background. If the value is true, the stamp content is layed at the bottom. By defalt, the value is false, the stamp content is layed at the top. | [optional]
**horizontalAlignment** | [**HorizontalAlignment**](HorizontalAlignment.md) | Gets or sets Horizontal alignment of stamp on the page. | [optional]
**opacity** | **number** | Gets or sets a value to indicate the stamp opacity. The value is from 0.0 to 1.0. By default the value is 1.0. | [optional]
-**rotate** | [**Rotation**](Rotation.md) | Sets or gets the rotation of stamp content according values. Note. This property is for set angles which are multiples of 90 degrees (0, 90, 180, 270 degrees). To set arbitrary angle use RotateAngle property. If angle set by ArbitraryAngle is not multiple of 90 then Rotate property returns Rotation.None. | [optional]
+**rotate** | [**Rotation**](Rotation.md) | Sets or gets the rotation of stamp content according Rotation values. Note. This property is for set angles which are multiples of 90 degrees (0, 90, 180, 270 degrees). To set arbitrary angle use RotateAngle property. If angle set by ArbitraryAngle is not multiple of 90 then Rotate property returns Rotation.None. | [optional]
**rotateAngle** | **number** | Gets or sets rotate angle of stamp in degrees. This property allows to set arbitrary rotate angle. | [optional]
**xIndent** | **number** | Horizontal stamp coordinate, starting from the left. | [optional]
**yIndent** | **number** | Vertical stamp coordinate, starting from the bottom. | [optional]
diff --git a/docs/FileExist.md b/docs/StorageExist.md
similarity index 73%
rename from docs/FileExist.md
rename to docs/StorageExist.md
index 30c3f336..abaeaa81 100644
--- a/docs/FileExist.md
+++ b/docs/StorageExist.md
@@ -1,11 +1,10 @@
-# FileExist
-
+# StorageExist
+Storage exists
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**isExist** | **boolean** | |
-**isFolder** | **boolean** | |
+**exists** | **boolean** | Shows that the storage exists. |
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) [[View Source]](../src/models/fileExist.ts)
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) [[View Source]](../src/models/storageExist.ts)
diff --git a/docs/StorageExistResponse.md b/docs/StorageExistResponse.md
deleted file mode 100644
index 90a7d9ba..00000000
--- a/docs/StorageExistResponse.md
+++ /dev/null
@@ -1,13 +0,0 @@
-# StorageExistResponse
-
-
-*Inherited from [AsposeResponse](AsposeResponse.md)*
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**isExist** | **boolean** | |
-**code** | **number** | Response status code.
*Inherited from [AsposeResponse](AsposeResponse.md)* |
-**status** | **string** | Response status.
*Inherited from [AsposeResponse](AsposeResponse.md)* | [optional]
-
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) [[View Source]](../src/models/storageExistResponse.ts)
-
diff --git a/docs/StorageFile.md b/docs/StorageFile.md
new file mode 100644
index 00000000..a1595306
--- /dev/null
+++ b/docs/StorageFile.md
@@ -0,0 +1,14 @@
+# StorageFile
+File or folder information
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**name** | **string** | File or folder name. | [optional]
+**isFolder** | **boolean** | True if it is a folder. |
+**modifiedDate** | **string** | File or folder last modified DateTime. | [optional]
+**size** | **number** | File or folder size. |
+**path** | **string** | File or folder path. | [optional]
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) [[View Source]](../src/models/storageFile.ts)
+
diff --git a/docs/TextFooter.md b/docs/TextFooter.md
index 320f89ea..e76bed05 100644
--- a/docs/TextFooter.md
+++ b/docs/TextFooter.md
@@ -7,14 +7,14 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**textAlignment** | [**HorizontalAlignment**](HorizontalAlignment.md) | Alignment of the text inside the stamp. | [optional]
**value** | **string** | Gets or sets string value which is used as stamp on the page. | [optional]
-**textState** | [**TextState**](TextState.md) | Gets text properties of the stamp. See for details. | [optional]
+**textState** | [**TextState**](TextState.md) | Gets text properties of the stamp. See TextState for details. | [optional]
**bottomMargin** | **number** | Gets or sets bottom margin of stamp. | [optional]
**leftMargin** | **number** | Gets or sets left margin of stamp. | [optional]
**rightMargin** | **number** | Gets or sets right margin of stamp. | [optional]
**background** | **boolean** | Sets or gets a bool value that indicates the content is stamped as background. If the value is true, the stamp content is layed at the bottom. By defalt, the value is false, the stamp content is layed at the top.
*Inherited from [StampBase](StampBase.md)* | [optional]
**horizontalAlignment** | [**HorizontalAlignment**](HorizontalAlignment.md) | Gets or sets Horizontal alignment of stamp on the page.
*Inherited from [StampBase](StampBase.md)* | [optional]
**opacity** | **number** | Gets or sets a value to indicate the stamp opacity. The value is from 0.0 to 1.0. By default the value is 1.0.
*Inherited from [StampBase](StampBase.md)* | [optional]
-**rotate** | [**Rotation**](Rotation.md) | Sets or gets the rotation of stamp content according values. Note. This property is for set angles which are multiples of 90 degrees (0, 90, 180, 270 degrees). To set arbitrary angle use RotateAngle property. If angle set by ArbitraryAngle is not multiple of 90 then Rotate property returns Rotation.None.
*Inherited from [StampBase](StampBase.md)* | [optional]
+**rotate** | [**Rotation**](Rotation.md) | Sets or gets the rotation of stamp content according Rotation values. Note. This property is for set angles which are multiples of 90 degrees (0, 90, 180, 270 degrees). To set arbitrary angle use RotateAngle property. If angle set by ArbitraryAngle is not multiple of 90 then Rotate property returns Rotation.None.
*Inherited from [StampBase](StampBase.md)* | [optional]
**rotateAngle** | **number** | Gets or sets rotate angle of stamp in degrees. This property allows to set arbitrary rotate angle.
*Inherited from [StampBase](StampBase.md)* | [optional]
**xIndent** | **number** | Horizontal stamp coordinate, starting from the left.
*Inherited from [StampBase](StampBase.md)* | [optional]
**yIndent** | **number** | Vertical stamp coordinate, starting from the bottom.
*Inherited from [StampBase](StampBase.md)* | [optional]
diff --git a/docs/TextHeader.md b/docs/TextHeader.md
index 9b4c24a6..0f1bbb4e 100644
--- a/docs/TextHeader.md
+++ b/docs/TextHeader.md
@@ -7,14 +7,14 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**textAlignment** | [**HorizontalAlignment**](HorizontalAlignment.md) | Alignment of the text inside the stamp. | [optional]
**value** | **string** | Gets or sets string value which is used as stamp on the page. | [optional]
-**textState** | [**TextState**](TextState.md) | Gets text properties of the stamp. See for details. | [optional]
+**textState** | [**TextState**](TextState.md) | Gets text properties of the stamp. See TextState for details. | [optional]
**leftMargin** | **number** | Gets or sets left margin of stamp. | [optional]
**topMargin** | **number** | Gets or sets top margin of stamp. | [optional]
**rightMargin** | **number** | Gets or sets right margin of stamp. | [optional]
**background** | **boolean** | Sets or gets a bool value that indicates the content is stamped as background. If the value is true, the stamp content is layed at the bottom. By defalt, the value is false, the stamp content is layed at the top.
*Inherited from [StampBase](StampBase.md)* | [optional]
**horizontalAlignment** | [**HorizontalAlignment**](HorizontalAlignment.md) | Gets or sets Horizontal alignment of stamp on the page.
*Inherited from [StampBase](StampBase.md)* | [optional]
**opacity** | **number** | Gets or sets a value to indicate the stamp opacity. The value is from 0.0 to 1.0. By default the value is 1.0.
*Inherited from [StampBase](StampBase.md)* | [optional]
-**rotate** | [**Rotation**](Rotation.md) | Sets or gets the rotation of stamp content according values. Note. This property is for set angles which are multiples of 90 degrees (0, 90, 180, 270 degrees). To set arbitrary angle use RotateAngle property. If angle set by ArbitraryAngle is not multiple of 90 then Rotate property returns Rotation.None.
*Inherited from [StampBase](StampBase.md)* | [optional]
+**rotate** | [**Rotation**](Rotation.md) | Sets or gets the rotation of stamp content according Rotation values. Note. This property is for set angles which are multiples of 90 degrees (0, 90, 180, 270 degrees). To set arbitrary angle use RotateAngle property. If angle set by ArbitraryAngle is not multiple of 90 then Rotate property returns Rotation.None.
*Inherited from [StampBase](StampBase.md)* | [optional]
**rotateAngle** | **number** | Gets or sets rotate angle of stamp in degrees. This property allows to set arbitrary rotate angle.
*Inherited from [StampBase](StampBase.md)* | [optional]
**xIndent** | **number** | Horizontal stamp coordinate, starting from the left.
*Inherited from [StampBase](StampBase.md)* | [optional]
**yIndent** | **number** | Vertical stamp coordinate, starting from the bottom.
*Inherited from [StampBase](StampBase.md)* | [optional]
diff --git a/docs/TextRect.md b/docs/TextRect.md
index d6b586df..ab740f32 100644
--- a/docs/TextRect.md
+++ b/docs/TextRect.md
@@ -9,9 +9,9 @@ Name | Type | Description | Notes
**rect** | [**Rectangle**](Rectangle.md) | Rectangle of the occurrence. | [optional]
**horizontalAlignment** | [**HorizontalAlignment**](HorizontalAlignment.md) | Gets or sets a horizontal alignment of text fragment. | [optional]
**verticalAlignment** | [**VerticalAlignment**](VerticalAlignment.md) | Gets or sets a vertical alignment of text fragment. | [optional]
-**position** | [**Position**](Position.md) | Gets or sets text position for text, represented with object. | [optional]
-**baselinePosition** | [**Position**](Position.md) | Gets text position for text, represented with object. The YIndent of the Position structure represents baseline coordinate of the text fragment. | [optional]
-**textState** | [**TextState**](TextState.md) | Gets or sets text state for the text that object represents. | [optional]
+**position** | [**Position**](Position.md) | Gets or sets text position for text, represented with TextRect object. | [optional]
+**baselinePosition** | [**Position**](Position.md) | Gets text position for text, represented with TextRect object. The YIndent of the Position structure represents baseline coordinate of the text fragment. | [optional]
+**textState** | [**TextState**](TextState.md) | Gets or sets text state for the text that TextRect object represents. | [optional]
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) [[View Source]](../src/models/textRect.ts)
diff --git a/docs/TextReplaceListRequest.md b/docs/TextReplaceListRequest.md
index 1958be7d..384371d8 100644
--- a/docs/TextReplaceListRequest.md
+++ b/docs/TextReplaceListRequest.md
@@ -5,7 +5,7 @@ Multiple text replacements request.
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**textReplaces** | [**Array<TextReplace>**](TextReplace.md) | A list of text replacement settings. |
-**defaultFont** | **string** | | [optional]
+**defaultFont** | **string** | Name of font to use if requested font is not embedded into document. | [optional]
**startIndex** | **number** | The index of first match to be replaced. | [optional]
**countReplace** | **number** | The number of matches to be replaced. | [optional]
diff --git a/docs/TextStamp.md b/docs/TextStamp.md
index 3a6dc69c..fef60ead 100644
--- a/docs/TextStamp.md
+++ b/docs/TextStamp.md
@@ -7,7 +7,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**textAlignment** | [**HorizontalAlignment**](HorizontalAlignment.md) | Alignment of the text inside the stamp. | [optional]
**value** | **string** | Gets or sets string value which is used as stamp on the page. | [optional]
-**textState** | [**TextState**](TextState.md) | Gets text properties of the stamp. See for details. | [optional]
+**textState** | [**TextState**](TextState.md) | Gets text properties of the stamp. See TextState for details. | [optional]
**verticalAlignment** | [**VerticalAlignment**](VerticalAlignment.md) | Gets or sets vertical alignment of stamp on page. | [optional]
**bottomMargin** | **number** | Gets or sets bottom margin of stamp. | [optional]
**leftMargin** | **number** | Gets or sets left margin of stamp. | [optional]
@@ -16,7 +16,7 @@ Name | Type | Description | Notes
**background** | **boolean** | Sets or gets a bool value that indicates the content is stamped as background. If the value is true, the stamp content is layed at the bottom. By defalt, the value is false, the stamp content is layed at the top.
*Inherited from [StampBase](StampBase.md)* | [optional]
**horizontalAlignment** | [**HorizontalAlignment**](HorizontalAlignment.md) | Gets or sets Horizontal alignment of stamp on the page.
*Inherited from [StampBase](StampBase.md)* | [optional]
**opacity** | **number** | Gets or sets a value to indicate the stamp opacity. The value is from 0.0 to 1.0. By default the value is 1.0.
*Inherited from [StampBase](StampBase.md)* | [optional]
-**rotate** | [**Rotation**](Rotation.md) | Sets or gets the rotation of stamp content according values. Note. This property is for set angles which are multiples of 90 degrees (0, 90, 180, 270 degrees). To set arbitrary angle use RotateAngle property. If angle set by ArbitraryAngle is not multiple of 90 then Rotate property returns Rotation.None.
*Inherited from [StampBase](StampBase.md)* | [optional]
+**rotate** | [**Rotation**](Rotation.md) | Sets or gets the rotation of stamp content according Rotation values. Note. This property is for set angles which are multiples of 90 degrees (0, 90, 180, 270 degrees). To set arbitrary angle use RotateAngle property. If angle set by ArbitraryAngle is not multiple of 90 then Rotate property returns Rotation.None.
*Inherited from [StampBase](StampBase.md)* | [optional]
**rotateAngle** | **number** | Gets or sets rotate angle of stamp in degrees. This property allows to set arbitrary rotate angle.
*Inherited from [StampBase](StampBase.md)* | [optional]
**xIndent** | **number** | Horizontal stamp coordinate, starting from the left.
*Inherited from [StampBase](StampBase.md)* | [optional]
**yIndent** | **number** | Vertical stamp coordinate, starting from the bottom.
*Inherited from [StampBase](StampBase.md)* | [optional]
diff --git a/docs/WordCountResponse.md b/docs/WordCountResponse.md
index 82acac48..33f88297 100644
--- a/docs/WordCountResponse.md
+++ b/docs/WordCountResponse.md
@@ -5,7 +5,7 @@ Number of words per document pages.
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**wordsPerPage** | [**WordCount**](WordCount.md) | with words per page info. | [optional]
+**wordsPerPage** | [**WordCount**](WordCount.md) | WordCount with words per page info. | [optional]
**code** | **number** | Response status code.
*Inherited from [AsposeResponse](AsposeResponse.md)* |
**status** | **string** | Response status.
*Inherited from [AsposeResponse](AsposeResponse.md)* | [optional]
diff --git a/package-lock.json b/package-lock.json
index b77c3914..252aed40 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,6 +1,6 @@
{
"name": "asposepdfcloud",
- "version": "19.5.0",
+ "version": "19.6.0",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
diff --git a/package.json b/package.json
index 91db31b8..47bd8f90 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "asposepdfcloud",
- "version": "19.5.0",
+ "version": "19.6.0",
"description": "Aspose.PDF Cloud SDK",
"homepage": "https://products.aspose.cloud/pdf/cloud",
"author": {
diff --git a/src/api/api.ts b/src/api/api.ts
index a1612ee4..1dac7421 100644
--- a/src/api/api.ts
+++ b/src/api/api.ts
@@ -23,7 +23,6 @@ import { AnnotationFlags } from "../models/annotationFlags";
import { AnnotationState } from "../models/annotationState";
import { AnnotationType } from "../models/annotationType";
import { AntialiasingProcessingType } from "../models/antialiasingProcessingType";
-import { AppendDocument } from "../models/appendDocument";
import { AsposeResponse } from "../models/asposeResponse";
import { BorderCornerStyle } from "../models/borderCornerStyle";
import { BorderInfo } from "../models/borderInfo";
@@ -42,10 +41,12 @@ import { DocFormat } from "../models/docFormat";
import { DocRecognitionMode } from "../models/docRecognitionMode";
import { DocumentPrivilege } from "../models/documentPrivilege";
import { EpubRecognitionMode } from "../models/epubRecognitionMode";
+import { ErrorDetails } from "../models/errorDetails";
import { FieldType } from "../models/fieldType";
-import { File } from "../models/file";
-import { FileExist } from "../models/fileExist";
import { FileIcon } from "../models/fileIcon";
+import { FileVersions } from "../models/fileVersions";
+import { FilesList } from "../models/filesList";
+import { FilesUploadResult } from "../models/filesUploadResult";
import { FontEncodingRules } from "../models/fontEncodingRules";
import { FontSavingModes } from "../models/fontSavingModes";
import { FontStyles } from "../models/fontStyles";
@@ -68,6 +69,8 @@ import { LinkElement } from "../models/linkElement";
import { LinkHighlightingMode } from "../models/linkHighlightingMode";
import { MarginInfo } from "../models/marginInfo";
import { MergeDocuments } from "../models/mergeDocuments";
+import { ModelError } from "../models/modelError";
+import { ObjectExist } from "../models/objectExist";
import { OptimizeOptions } from "../models/optimizeOptions";
import { PageWordCount } from "../models/pageWordCount";
import { Paragraph } from "../models/paragraph";
@@ -92,6 +95,8 @@ import { SplitResult } from "../models/splitResult";
import { Stamp } from "../models/stamp";
import { StampIcon } from "../models/stampIcon";
import { StampType } from "../models/stampType";
+import { StorageExist } from "../models/storageExist";
+import { StorageFile } from "../models/storageFile";
import { TableBroken } from "../models/tableBroken";
import { TextHorizontalAlignment } from "../models/textHorizontalAlignment";
import { TextIcon } from "../models/textIcon";
@@ -112,13 +117,16 @@ import { Attachment } from "../models/attachment";
import { AttachmentResponse } from "../models/attachmentResponse";
import { Attachments } from "../models/attachments";
import { AttachmentsResponse } from "../models/attachmentsResponse";
+import { Bookmark } from "../models/bookmark";
+import { BookmarkResponse } from "../models/bookmarkResponse";
+import { Bookmarks } from "../models/bookmarks";
+import { BookmarksResponse } from "../models/bookmarksResponse";
import { CaretAnnotationResponse } from "../models/caretAnnotationResponse";
import { CaretAnnotations } from "../models/caretAnnotations";
import { CaretAnnotationsResponse } from "../models/caretAnnotationsResponse";
import { CircleAnnotationResponse } from "../models/circleAnnotationResponse";
import { CircleAnnotations } from "../models/circleAnnotations";
import { CircleAnnotationsResponse } from "../models/circleAnnotationsResponse";
-import { DiscUsageResponse } from "../models/discUsageResponse";
import { Document } from "../models/document";
import { DocumentPageResponse } from "../models/documentPageResponse";
import { DocumentPagesResponse } from "../models/documentPagesResponse";
@@ -134,10 +142,7 @@ import { FieldsResponse } from "../models/fieldsResponse";
import { FileAttachmentAnnotationResponse } from "../models/fileAttachmentAnnotationResponse";
import { FileAttachmentAnnotations } from "../models/fileAttachmentAnnotations";
import { FileAttachmentAnnotationsResponse } from "../models/fileAttachmentAnnotationsResponse";
-import { FileExistResponse } from "../models/fileExistResponse";
import { FileVersion } from "../models/fileVersion";
-import { FileVersionsResponse } from "../models/fileVersionsResponse";
-import { FilesResponse } from "../models/filesResponse";
import { FreeTextAnnotationResponse } from "../models/freeTextAnnotationResponse";
import { FreeTextAnnotations } from "../models/freeTextAnnotations";
import { FreeTextAnnotationsResponse } from "../models/freeTextAnnotationsResponse";
@@ -197,7 +202,6 @@ import { StampBase } from "../models/stampBase";
import { StampInfo } from "../models/stampInfo";
import { StampsInfo } from "../models/stampsInfo";
import { StampsInfoResponse } from "../models/stampsInfoResponse";
-import { StorageExistResponse } from "../models/storageExistResponse";
import { StrikeOutAnnotationResponse } from "../models/strikeOutAnnotationResponse";
import { StrikeOutAnnotations } from "../models/strikeOutAnnotations";
import { StrikeOutAnnotationsResponse } from "../models/strikeOutAnnotationsResponse";
@@ -256,7 +260,7 @@ import localVarRequest = require('request');
import http = require('http');
import { invokeApiMethod } from "../requestHelper";
-let defaultBasePath = 'https://api.aspose.cloud/v2.0';
+let defaultBasePath = 'https://api.aspose.cloud/v3.0';
@@ -298,6 +302,182 @@ export class PdfApi {
+ /**
+ *
+ * @summary Copy file
+ * @param srcPath Source file path e.g. '/folder/file.ext'
+ * @param destPath Destination file path
+ * @param srcStorageName Source storage name
+ * @param destStorageName Destination storage name
+ * @param versionId File version ID to copy
+ */
+ public async copyFile (srcPath: string, destPath: string, srcStorageName?: string, destStorageName?: string, versionId?: string) : Promise<{ response: http.IncomingMessage; body?: any; }> {
+ const localVarPath = this.basePath + '/pdf/storage/file/copy/{srcPath}'
+ .replace('{' + 'srcPath' + '}', encodeURIComponent(String(srcPath)));
+ let localVarQueryParameters: any = {};
+ let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders);
+ let localVarFormParams: any = {};
+
+ // verify required parameter 'srcPath' is not null or undefined
+ if (srcPath === null || srcPath === undefined) {
+ throw new Error('Required parameter srcPath was null or undefined when calling copyFile.');
+ }
+
+ // verify required parameter 'destPath' is not null or undefined
+ if (destPath === null || destPath === undefined) {
+ throw new Error('Required parameter destPath was null or undefined when calling copyFile.');
+ }
+
+ if (destPath !== undefined && null !== destPath) {
+ localVarQueryParameters['destPath'] = ObjectSerializer.serialize(destPath, "string");
+ }
+
+ if (srcStorageName !== undefined && null !== srcStorageName) {
+ localVarQueryParameters['srcStorageName'] = ObjectSerializer.serialize(srcStorageName, "string");
+ }
+
+ if (destStorageName !== undefined && null !== destStorageName) {
+ localVarQueryParameters['destStorageName'] = ObjectSerializer.serialize(destStorageName, "string");
+ }
+
+ if (versionId !== undefined && null !== versionId) {
+ localVarQueryParameters['versionId'] = ObjectSerializer.serialize(versionId, "string");
+ }
+
+
+ let localVarUseFormData = false;
+ let fileData = null;
+ let localVarRequestOptions: localVarRequest.Options = {
+ method: 'PUT',
+ qs: localVarQueryParameters,
+ headers: localVarHeaderParams,
+ uri: localVarPath,
+ useQuerystring: this._useQuerystring,
+ json: true,
+ };
+
+ if (Object.keys(localVarFormParams).length) {
+ if (localVarUseFormData) {
+ (localVarRequestOptions).formData = localVarFormParams;
+ } else {
+ localVarRequestOptions.form = localVarFormParams;
+ }
+ }
+ const response = await invokeApiMethod(localVarRequestOptions, this.configuration, false, fileData);
+ const result = ObjectSerializer.deserialize(response.body, "");
+ return Promise.resolve({body: result, response});
+ }
+
+
+ /**
+ *
+ * @summary Copy folder
+ * @param srcPath Source folder path e.g. '/src'
+ * @param destPath Destination folder path e.g. '/dst'
+ * @param srcStorageName Source storage name
+ * @param destStorageName Destination storage name
+ */
+ public async copyFolder (srcPath: string, destPath: string, srcStorageName?: string, destStorageName?: string) : Promise<{ response: http.IncomingMessage; body?: any; }> {
+ const localVarPath = this.basePath + '/pdf/storage/folder/copy/{srcPath}'
+ .replace('{' + 'srcPath' + '}', encodeURIComponent(String(srcPath)));
+ let localVarQueryParameters: any = {};
+ let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders);
+ let localVarFormParams: any = {};
+
+ // verify required parameter 'srcPath' is not null or undefined
+ if (srcPath === null || srcPath === undefined) {
+ throw new Error('Required parameter srcPath was null or undefined when calling copyFolder.');
+ }
+
+ // verify required parameter 'destPath' is not null or undefined
+ if (destPath === null || destPath === undefined) {
+ throw new Error('Required parameter destPath was null or undefined when calling copyFolder.');
+ }
+
+ if (destPath !== undefined && null !== destPath) {
+ localVarQueryParameters['destPath'] = ObjectSerializer.serialize(destPath, "string");
+ }
+
+ if (srcStorageName !== undefined && null !== srcStorageName) {
+ localVarQueryParameters['srcStorageName'] = ObjectSerializer.serialize(srcStorageName, "string");
+ }
+
+ if (destStorageName !== undefined && null !== destStorageName) {
+ localVarQueryParameters['destStorageName'] = ObjectSerializer.serialize(destStorageName, "string");
+ }
+
+
+ let localVarUseFormData = false;
+ let fileData = null;
+ let localVarRequestOptions: localVarRequest.Options = {
+ method: 'PUT',
+ qs: localVarQueryParameters,
+ headers: localVarHeaderParams,
+ uri: localVarPath,
+ useQuerystring: this._useQuerystring,
+ json: true,
+ };
+
+ if (Object.keys(localVarFormParams).length) {
+ if (localVarUseFormData) {
+ (localVarRequestOptions).formData = localVarFormParams;
+ } else {
+ localVarRequestOptions.form = localVarFormParams;
+ }
+ }
+ const response = await invokeApiMethod(localVarRequestOptions, this.configuration, false, fileData);
+ const result = ObjectSerializer.deserialize(response.body, "");
+ return Promise.resolve({body: result, response});
+ }
+
+
+ /**
+ *
+ * @summary Create the folder
+ * @param path Folder path to create e.g. 'folder_1/folder_2/'
+ * @param storageName Storage name
+ */
+ public async createFolder (path: string, storageName?: string) : Promise<{ response: http.IncomingMessage; body?: any; }> {
+ const localVarPath = this.basePath + '/pdf/storage/folder/{path}'
+ .replace('{' + 'path' + '}', encodeURIComponent(String(path)));
+ let localVarQueryParameters: any = {};
+ let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders);
+ let localVarFormParams: any = {};
+
+ // verify required parameter 'path' is not null or undefined
+ if (path === null || path === undefined) {
+ throw new Error('Required parameter path was null or undefined when calling createFolder.');
+ }
+
+ if (storageName !== undefined && null !== storageName) {
+ localVarQueryParameters['storageName'] = ObjectSerializer.serialize(storageName, "string");
+ }
+
+
+ let localVarUseFormData = false;
+ let fileData = null;
+ let localVarRequestOptions: localVarRequest.Options = {
+ method: 'PUT',
+ qs: localVarQueryParameters,
+ headers: localVarHeaderParams,
+ uri: localVarPath,
+ useQuerystring: this._useQuerystring,
+ json: true,
+ };
+
+ if (Object.keys(localVarFormParams).length) {
+ if (localVarUseFormData) {
+ (localVarRequestOptions).formData = localVarFormParams;
+ } else {
+ localVarRequestOptions.form = localVarFormParams;
+ }
+ }
+ const response = await invokeApiMethod(localVarRequestOptions, this.configuration, false, fileData);
+ const result = ObjectSerializer.deserialize(response.body, "");
+ return Promise.resolve({body: result, response});
+ }
+
+
/**
*
* @summary Delete document annotation by ID
@@ -357,6 +537,65 @@ export class PdfApi {
}
+ /**
+ *
+ * @summary Delete document bookmark by ID.
+ * @param name The document name.
+ * @param bookmarkPath The bookmark path.
+ * @param folder The document folder.
+ * @param storage The document storage.
+ */
+ public async deleteBookmark (name: string, bookmarkPath: string, folder?: string, storage?: string) : Promise<{ response: http.IncomingMessage; body: AsposeResponse; }> {
+ const localVarPath = this.basePath + '/pdf/{name}/bookmarks/bookmark/{bookmarkPath}'
+ .replace('{' + 'name' + '}', encodeURIComponent(String(name)))
+ .replace('{' + 'bookmarkPath' + '}', encodeURIComponent(String(bookmarkPath)));
+ let localVarQueryParameters: any = {};
+ let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders);
+ let localVarFormParams: any = {};
+
+ // verify required parameter 'name' is not null or undefined
+ if (name === null || name === undefined) {
+ throw new Error('Required parameter name was null or undefined when calling deleteBookmark.');
+ }
+
+ // verify required parameter 'bookmarkPath' is not null or undefined
+ if (bookmarkPath === null || bookmarkPath === undefined) {
+ throw new Error('Required parameter bookmarkPath was null or undefined when calling deleteBookmark.');
+ }
+
+ if (folder !== undefined && null !== folder) {
+ localVarQueryParameters['folder'] = ObjectSerializer.serialize(folder, "string");
+ }
+
+ if (storage !== undefined && null !== storage) {
+ localVarQueryParameters['storage'] = ObjectSerializer.serialize(storage, "string");
+ }
+
+
+ let localVarUseFormData = false;
+ let fileData = null;
+ let localVarRequestOptions: localVarRequest.Options = {
+ method: 'DELETE',
+ qs: localVarQueryParameters,
+ headers: localVarHeaderParams,
+ uri: localVarPath,
+ useQuerystring: this._useQuerystring,
+ json: true,
+ };
+
+ if (Object.keys(localVarFormParams).length) {
+ if (localVarUseFormData) {
+ (localVarRequestOptions).formData = localVarFormParams;
+ } else {
+ localVarRequestOptions.form = localVarFormParams;
+ }
+ }
+ const response = await invokeApiMethod(localVarRequestOptions, this.configuration, false, fileData);
+ const result = ObjectSerializer.deserialize(response.body, "AsposeResponse");
+ return Promise.resolve({body: result, response});
+ }
+
+
/**
*
* @summary Delete all annotations from the document
@@ -409,6 +648,58 @@ export class PdfApi {
}
+ /**
+ *
+ * @summary Delete all document bookmarks.
+ * @param name The document name.
+ * @param folder The document folder.
+ * @param storage The document storage.
+ */
+ public async deleteDocumentBookmarks (name: string, folder?: string, storage?: string) : Promise<{ response: http.IncomingMessage; body: AsposeResponse; }> {
+ const localVarPath = this.basePath + '/pdf/{name}/bookmarks/tree'
+ .replace('{' + 'name' + '}', encodeURIComponent(String(name)));
+ let localVarQueryParameters: any = {};
+ let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders);
+ let localVarFormParams: any = {};
+
+ // verify required parameter 'name' is not null or undefined
+ if (name === null || name === undefined) {
+ throw new Error('Required parameter name was null or undefined when calling deleteDocumentBookmarks.');
+ }
+
+ if (folder !== undefined && null !== folder) {
+ localVarQueryParameters['folder'] = ObjectSerializer.serialize(folder, "string");
+ }
+
+ if (storage !== undefined && null !== storage) {
+ localVarQueryParameters['storage'] = ObjectSerializer.serialize(storage, "string");
+ }
+
+
+ let localVarUseFormData = false;
+ let fileData = null;
+ let localVarRequestOptions: localVarRequest.Options = {
+ method: 'DELETE',
+ qs: localVarQueryParameters,
+ headers: localVarHeaderParams,
+ uri: localVarPath,
+ useQuerystring: this._useQuerystring,
+ json: true,
+ };
+
+ if (Object.keys(localVarFormParams).length) {
+ if (localVarUseFormData) {
+ (localVarRequestOptions).formData = localVarFormParams;
+ } else {
+ localVarRequestOptions.form = localVarFormParams;
+ }
+ }
+ const response = await invokeApiMethod(localVarRequestOptions, this.configuration, false, fileData);
+ const result = ObjectSerializer.deserialize(response.body, "AsposeResponse");
+ return Promise.resolve({body: result, response});
+ }
+
+
/**
*
* @summary Delete all link annotations from the document
@@ -626,13 +917,14 @@ export class PdfApi {
/**
*
- * @summary Remove a specific file
- * @param path Path of the file including file name and extension e.g. /Folder1/file.ext
- * @param versionId File's version
- * @param storage User's storage name
+ * @summary Delete file
+ * @param path File path e.g. '/folder/file.ext'
+ * @param storageName Storage name
+ * @param versionId File version ID to delete
*/
- public async deleteFile (path: string, versionId?: string, storage?: string) : Promise<{ response: http.IncomingMessage; body: AsposeResponse; }> {
- const localVarPath = this.basePath + '/storage/file';
+ public async deleteFile (path: string, storageName?: string, versionId?: string) : Promise<{ response: http.IncomingMessage; body?: any; }> {
+ const localVarPath = this.basePath + '/pdf/storage/file/{path}'
+ .replace('{' + 'path' + '}', encodeURIComponent(String(path)));
let localVarQueryParameters: any = {};
let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders);
let localVarFormParams: any = {};
@@ -642,18 +934,14 @@ export class PdfApi {
throw new Error('Required parameter path was null or undefined when calling deleteFile.');
}
- if (path !== undefined && null !== path) {
- localVarQueryParameters['path'] = ObjectSerializer.serialize(path, "string");
+ if (storageName !== undefined && null !== storageName) {
+ localVarQueryParameters['storageName'] = ObjectSerializer.serialize(storageName, "string");
}
if (versionId !== undefined && null !== versionId) {
localVarQueryParameters['versionId'] = ObjectSerializer.serialize(versionId, "string");
}
- if (storage !== undefined && null !== storage) {
- localVarQueryParameters['storage'] = ObjectSerializer.serialize(storage, "string");
- }
-
let localVarUseFormData = false;
let fileData = null;
@@ -674,20 +962,21 @@ export class PdfApi {
}
}
const response = await invokeApiMethod(localVarRequestOptions, this.configuration, false, fileData);
- const result = ObjectSerializer.deserialize(response.body, "AsposeResponse");
+ const result = ObjectSerializer.deserialize(response.body, "");
return Promise.resolve({body: result, response});
}
/**
*
- * @summary Remove a specific folder
- * @param path Folder path e.g. /Folder1
- * @param storage User's storage name
- * @param recursive Remove recursivelly inner folder/files. If false and folder contains data than exception is raised.
+ * @summary Delete folder
+ * @param path Folder path e.g. '/folder'
+ * @param storageName Storage name
+ * @param recursive Enable to delete folders, subfolders and files
*/
- public async deleteFolder (path: string, storage?: string, recursive?: boolean) : Promise<{ response: http.IncomingMessage; body: AsposeResponse; }> {
- const localVarPath = this.basePath + '/storage/folder';
+ public async deleteFolder (path: string, storageName?: string, recursive?: boolean) : Promise<{ response: http.IncomingMessage; body?: any; }> {
+ const localVarPath = this.basePath + '/pdf/storage/folder/{path}'
+ .replace('{' + 'path' + '}', encodeURIComponent(String(path)));
let localVarQueryParameters: any = {};
let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders);
let localVarFormParams: any = {};
@@ -697,12 +986,8 @@ export class PdfApi {
throw new Error('Required parameter path was null or undefined when calling deleteFolder.');
}
- if (path !== undefined && null !== path) {
- localVarQueryParameters['path'] = ObjectSerializer.serialize(path, "string");
- }
-
- if (storage !== undefined && null !== storage) {
- localVarQueryParameters['storage'] = ObjectSerializer.serialize(storage, "string");
+ if (storageName !== undefined && null !== storageName) {
+ localVarQueryParameters['storageName'] = ObjectSerializer.serialize(storageName, "string");
}
if (recursive !== undefined && null !== recursive) {
@@ -729,7 +1014,7 @@ export class PdfApi {
}
}
const response = await invokeApiMethod(localVarRequestOptions, this.configuration, false, fileData);
- const result = ObjectSerializer.deserialize(response.body, "AsposeResponse");
+ const result = ObjectSerializer.deserialize(response.body, "");
return Promise.resolve({body: result, response});
}
@@ -1376,6 +1661,176 @@ export class PdfApi {
}
+ /**
+ *
+ * @summary Download file
+ * @param path File path e.g. '/folder/file.ext'
+ * @param storageName Storage name
+ * @param versionId File version ID to download
+ */
+ public async downloadFile (path: string, storageName?: string, versionId?: string) : Promise<{ response: http.IncomingMessage; body: Buffer; }> {
+ const localVarPath = this.basePath + '/pdf/storage/file/{path}'
+ .replace('{' + 'path' + '}', encodeURIComponent(String(path)));
+ let localVarQueryParameters: any = {};
+ let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders);
+ let localVarFormParams: any = {};
+
+ // verify required parameter 'path' is not null or undefined
+ if (path === null || path === undefined) {
+ throw new Error('Required parameter path was null or undefined when calling downloadFile.');
+ }
+
+ if (storageName !== undefined && null !== storageName) {
+ localVarQueryParameters['storageName'] = ObjectSerializer.serialize(storageName, "string");
+ }
+
+ if (versionId !== undefined && null !== versionId) {
+ localVarQueryParameters['versionId'] = ObjectSerializer.serialize(versionId, "string");
+ }
+
+
+ let localVarUseFormData = false;
+ let fileData = null;
+ let localVarRequestOptions: localVarRequest.Options = {
+ method: 'GET',
+ qs: localVarQueryParameters,
+ headers: localVarHeaderParams,
+ uri: localVarPath,
+ useQuerystring: this._useQuerystring,
+ encoding: null,
+ };
+
+ if (Object.keys(localVarFormParams).length) {
+ if (localVarUseFormData) {
+ (localVarRequestOptions).formData = localVarFormParams;
+ } else {
+ localVarRequestOptions.form = localVarFormParams;
+ }
+ }
+ const response = await invokeApiMethod(localVarRequestOptions, this.configuration, false, fileData);
+ const result = ObjectSerializer.deserialize(response.body, "Buffer");
+ return Promise.resolve({body: result, response});
+ }
+
+
+ /**
+ *
+ * @summary Read document bookmark.
+ * @param name The document name.
+ * @param bookmarkPath The bookmark path.
+ * @param folder The document folder.
+ * @param storage The document storage.
+ */
+ public async getBookmark (name: string, bookmarkPath: string, folder?: string, storage?: string) : Promise<{ response: http.IncomingMessage; body: BookmarkResponse; }> {
+ const localVarPath = this.basePath + '/pdf/{name}/bookmarks/bookmark/{bookmarkPath}'
+ .replace('{' + 'name' + '}', encodeURIComponent(String(name)))
+ .replace('{' + 'bookmarkPath' + '}', encodeURIComponent(String(bookmarkPath)));
+ let localVarQueryParameters: any = {};
+ let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders);
+ let localVarFormParams: any = {};
+
+ // verify required parameter 'name' is not null or undefined
+ if (name === null || name === undefined) {
+ throw new Error('Required parameter name was null or undefined when calling getBookmark.');
+ }
+
+ // verify required parameter 'bookmarkPath' is not null or undefined
+ if (bookmarkPath === null || bookmarkPath === undefined) {
+ throw new Error('Required parameter bookmarkPath was null or undefined when calling getBookmark.');
+ }
+
+ if (folder !== undefined && null !== folder) {
+ localVarQueryParameters['folder'] = ObjectSerializer.serialize(folder, "string");
+ }
+
+ if (storage !== undefined && null !== storage) {
+ localVarQueryParameters['storage'] = ObjectSerializer.serialize(storage, "string");
+ }
+
+
+ let localVarUseFormData = false;
+ let fileData = null;
+ let localVarRequestOptions: localVarRequest.Options = {
+ method: 'GET',
+ qs: localVarQueryParameters,
+ headers: localVarHeaderParams,
+ uri: localVarPath,
+ useQuerystring: this._useQuerystring,
+ json: true,
+ };
+
+ if (Object.keys(localVarFormParams).length) {
+ if (localVarUseFormData) {
+ (localVarRequestOptions).formData = localVarFormParams;
+ } else {
+ localVarRequestOptions.form = localVarFormParams;
+ }
+ }
+ const response = await invokeApiMethod(localVarRequestOptions, this.configuration, false, fileData);
+ const result = ObjectSerializer.deserialize(response.body, "BookmarkResponse");
+ return Promise.resolve({body: result, response});
+ }
+
+
+ /**
+ *
+ * @summary Read document bookmarks node list.
+ * @param name The document name.
+ * @param bookmarkPath The bookmark path.
+ * @param folder The document folder.
+ * @param storage The document storage.
+ */
+ public async getBookmarks (name: string, bookmarkPath: string, folder?: string, storage?: string) : Promise<{ response: http.IncomingMessage; body: BookmarksResponse; }> {
+ const localVarPath = this.basePath + '/pdf/{name}/bookmarks/list/{bookmarkPath}'
+ .replace('{' + 'name' + '}', encodeURIComponent(String(name)))
+ .replace('{' + 'bookmarkPath' + '}', encodeURIComponent(String(bookmarkPath)));
+ let localVarQueryParameters: any = {};
+ let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders);
+ let localVarFormParams: any = {};
+
+ // verify required parameter 'name' is not null or undefined
+ if (name === null || name === undefined) {
+ throw new Error('Required parameter name was null or undefined when calling getBookmarks.');
+ }
+
+ // verify required parameter 'bookmarkPath' is not null or undefined
+ if (bookmarkPath === null || bookmarkPath === undefined) {
+ throw new Error('Required parameter bookmarkPath was null or undefined when calling getBookmarks.');
+ }
+
+ if (folder !== undefined && null !== folder) {
+ localVarQueryParameters['folder'] = ObjectSerializer.serialize(folder, "string");
+ }
+
+ if (storage !== undefined && null !== storage) {
+ localVarQueryParameters['storage'] = ObjectSerializer.serialize(storage, "string");
+ }
+
+
+ let localVarUseFormData = false;
+ let fileData = null;
+ let localVarRequestOptions: localVarRequest.Options = {
+ method: 'GET',
+ qs: localVarQueryParameters,
+ headers: localVarHeaderParams,
+ uri: localVarPath,
+ useQuerystring: this._useQuerystring,
+ json: true,
+ };
+
+ if (Object.keys(localVarFormParams).length) {
+ if (localVarUseFormData) {
+ (localVarRequestOptions).formData = localVarFormParams;
+ } else {
+ localVarRequestOptions.form = localVarFormParams;
+ }
+ }
+ const response = await invokeApiMethod(localVarRequestOptions, this.configuration, false, fileData);
+ const result = ObjectSerializer.deserialize(response.body, "BookmarksResponse");
+ return Promise.resolve({body: result, response});
+ }
+
+
/**
*
* @summary Read document page caret annotation by ID.
@@ -1496,17 +1951,17 @@ export class PdfApi {
/**
*
- * @summary Check the disk usage of the current account
- * @param storage User's storage name
+ * @summary Get disc usage
+ * @param storageName Storage name
*/
- public async getDiscUsage (storage?: string) : Promise<{ response: http.IncomingMessage; body: DiscUsageResponse; }> {
- const localVarPath = this.basePath + '/storage/disc';
+ public async getDiscUsage (storageName?: string) : Promise<{ response: http.IncomingMessage; body: DiscUsage; }> {
+ const localVarPath = this.basePath + '/pdf/storage/disc';
let localVarQueryParameters: any = {};
let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders);
let localVarFormParams: any = {};
- if (storage !== undefined && null !== storage) {
- localVarQueryParameters['storage'] = ObjectSerializer.serialize(storage, "string");
+ if (storageName !== undefined && null !== storageName) {
+ localVarQueryParameters['storageName'] = ObjectSerializer.serialize(storageName, "string");
}
@@ -1529,7 +1984,7 @@ export class PdfApi {
}
}
const response = await invokeApiMethod(localVarRequestOptions, this.configuration, false, fileData);
- const result = ObjectSerializer.deserialize(response.body, "DiscUsageResponse");
+ const result = ObjectSerializer.deserialize(response.body, "DiscUsage");
return Promise.resolve({body: result, response});
}
@@ -1633,35 +2088,87 @@ export class PdfApi {
}
}
const response = await invokeApiMethod(localVarRequestOptions, this.configuration, false, fileData);
- const result = ObjectSerializer.deserialize(response.body, "AnnotationsInfoResponse");
+ const result = ObjectSerializer.deserialize(response.body, "AnnotationsInfoResponse");
+ return Promise.resolve({body: result, response});
+ }
+
+
+ /**
+ *
+ * @summary Read document attachment info by its index.
+ * @param name The document name.
+ * @param attachmentIndex The attachment index.
+ * @param storage The document storage.
+ * @param folder The document folder.
+ */
+ public async getDocumentAttachmentByIndex (name: string, attachmentIndex: number, storage?: string, folder?: string) : Promise<{ response: http.IncomingMessage; body: AttachmentResponse; }> {
+ const localVarPath = this.basePath + '/pdf/{name}/attachments/{attachmentIndex}'
+ .replace('{' + 'name' + '}', encodeURIComponent(String(name)))
+ .replace('{' + 'attachmentIndex' + '}', encodeURIComponent(String(attachmentIndex)));
+ let localVarQueryParameters: any = {};
+ let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders);
+ let localVarFormParams: any = {};
+
+ // verify required parameter 'name' is not null or undefined
+ if (name === null || name === undefined) {
+ throw new Error('Required parameter name was null or undefined when calling getDocumentAttachmentByIndex.');
+ }
+
+ // verify required parameter 'attachmentIndex' is not null or undefined
+ if (attachmentIndex === null || attachmentIndex === undefined) {
+ throw new Error('Required parameter attachmentIndex was null or undefined when calling getDocumentAttachmentByIndex.');
+ }
+
+ if (storage !== undefined && null !== storage) {
+ localVarQueryParameters['storage'] = ObjectSerializer.serialize(storage, "string");
+ }
+
+ if (folder !== undefined && null !== folder) {
+ localVarQueryParameters['folder'] = ObjectSerializer.serialize(folder, "string");
+ }
+
+
+ let localVarUseFormData = false;
+ let fileData = null;
+ let localVarRequestOptions: localVarRequest.Options = {
+ method: 'GET',
+ qs: localVarQueryParameters,
+ headers: localVarHeaderParams,
+ uri: localVarPath,
+ useQuerystring: this._useQuerystring,
+ json: true,
+ };
+
+ if (Object.keys(localVarFormParams).length) {
+ if (localVarUseFormData) {
+ (localVarRequestOptions).formData = localVarFormParams;
+ } else {
+ localVarRequestOptions.form = localVarFormParams;
+ }
+ }
+ const response = await invokeApiMethod(localVarRequestOptions, this.configuration, false, fileData);
+ const result = ObjectSerializer.deserialize(response.body, "AttachmentResponse");
return Promise.resolve({body: result, response});
}
/**
*
- * @summary Read document attachment info by its index.
+ * @summary Read document attachments info.
* @param name The document name.
- * @param attachmentIndex The attachment index.
* @param storage The document storage.
* @param folder The document folder.
*/
- public async getDocumentAttachmentByIndex (name: string, attachmentIndex: number, storage?: string, folder?: string) : Promise<{ response: http.IncomingMessage; body: AttachmentResponse; }> {
- const localVarPath = this.basePath + '/pdf/{name}/attachments/{attachmentIndex}'
- .replace('{' + 'name' + '}', encodeURIComponent(String(name)))
- .replace('{' + 'attachmentIndex' + '}', encodeURIComponent(String(attachmentIndex)));
+ public async getDocumentAttachments (name: string, storage?: string, folder?: string) : Promise<{ response: http.IncomingMessage; body: AttachmentsResponse; }> {
+ const localVarPath = this.basePath + '/pdf/{name}/attachments'
+ .replace('{' + 'name' + '}', encodeURIComponent(String(name)));
let localVarQueryParameters: any = {};
let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders);
let localVarFormParams: any = {};
// verify required parameter 'name' is not null or undefined
if (name === null || name === undefined) {
- throw new Error('Required parameter name was null or undefined when calling getDocumentAttachmentByIndex.');
- }
-
- // verify required parameter 'attachmentIndex' is not null or undefined
- if (attachmentIndex === null || attachmentIndex === undefined) {
- throw new Error('Required parameter attachmentIndex was null or undefined when calling getDocumentAttachmentByIndex.');
+ throw new Error('Required parameter name was null or undefined when calling getDocumentAttachments.');
}
if (storage !== undefined && null !== storage) {
@@ -1692,20 +2199,20 @@ export class PdfApi {
}
}
const response = await invokeApiMethod(localVarRequestOptions, this.configuration, false, fileData);
- const result = ObjectSerializer.deserialize(response.body, "AttachmentResponse");
+ const result = ObjectSerializer.deserialize(response.body, "AttachmentsResponse");
return Promise.resolve({body: result, response});
}
/**
*
- * @summary Read document attachments info.
+ * @summary Read document bookmarks tree.
* @param name The document name.
- * @param storage The document storage.
* @param folder The document folder.
+ * @param storage The document storage.
*/
- public async getDocumentAttachments (name: string, storage?: string, folder?: string) : Promise<{ response: http.IncomingMessage; body: AttachmentsResponse; }> {
- const localVarPath = this.basePath + '/pdf/{name}/attachments'
+ public async getDocumentBookmarks (name: string, folder?: string, storage?: string) : Promise<{ response: http.IncomingMessage; body: BookmarksResponse; }> {
+ const localVarPath = this.basePath + '/pdf/{name}/bookmarks/tree'
.replace('{' + 'name' + '}', encodeURIComponent(String(name)));
let localVarQueryParameters: any = {};
let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders);
@@ -1713,17 +2220,17 @@ export class PdfApi {
// verify required parameter 'name' is not null or undefined
if (name === null || name === undefined) {
- throw new Error('Required parameter name was null or undefined when calling getDocumentAttachments.');
- }
-
- if (storage !== undefined && null !== storage) {
- localVarQueryParameters['storage'] = ObjectSerializer.serialize(storage, "string");
+ throw new Error('Required parameter name was null or undefined when calling getDocumentBookmarks.');
}
if (folder !== undefined && null !== folder) {
localVarQueryParameters['folder'] = ObjectSerializer.serialize(folder, "string");
}
+ if (storage !== undefined && null !== storage) {
+ localVarQueryParameters['storage'] = ObjectSerializer.serialize(storage, "string");
+ }
+
let localVarUseFormData = false;
let fileData = null;
@@ -1744,7 +2251,7 @@ export class PdfApi {
}
}
const response = await invokeApiMethod(localVarRequestOptions, this.configuration, false, fileData);
- const result = ObjectSerializer.deserialize(response.body, "AttachmentsResponse");
+ const result = ObjectSerializer.deserialize(response.body, "BookmarksResponse");
return Promise.resolve({body: result, response});
}
@@ -3063,61 +3570,6 @@ export class PdfApi {
}
- /**
- *
- * @summary Download a specific file
- * @param path Path of the file including the file name and extension e.g. /file.ext
- * @param versionId File's version
- * @param storage User's storage name
- */
- public async getDownload (path: string, versionId?: string, storage?: string) : Promise<{ response: http.IncomingMessage; body: Buffer; }> {
- const localVarPath = this.basePath + '/storage/file';
- let localVarQueryParameters: any = {};
- let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders);
- let localVarFormParams: any = {};
-
- // verify required parameter 'path' is not null or undefined
- if (path === null || path === undefined) {
- throw new Error('Required parameter path was null or undefined when calling getDownload.');
- }
-
- if (path !== undefined && null !== path) {
- localVarQueryParameters['path'] = ObjectSerializer.serialize(path, "string");
- }
-
- if (versionId !== undefined && null !== versionId) {
- localVarQueryParameters['versionId'] = ObjectSerializer.serialize(versionId, "string");
- }
-
- if (storage !== undefined && null !== storage) {
- localVarQueryParameters['storage'] = ObjectSerializer.serialize(storage, "string");
- }
-
-
- let localVarUseFormData = false;
- let fileData = null;
- let localVarRequestOptions: localVarRequest.Options = {
- method: 'GET',
- qs: localVarQueryParameters,
- headers: localVarHeaderParams,
- uri: localVarPath,
- useQuerystring: this._useQuerystring,
- encoding: null,
- };
-
- if (Object.keys(localVarFormParams).length) {
- if (localVarUseFormData) {
- (localVarRequestOptions).formData = localVarFormParams;
- } else {
- localVarRequestOptions.form = localVarFormParams;
- }
- }
- const response = await invokeApiMethod(localVarRequestOptions, this.configuration, false, fileData);
- const result = ObjectSerializer.deserialize(response.body, "Buffer");
- return Promise.resolve({body: result, response});
- }
-
-
/**
*
* @summary Download document attachment content by its index.
@@ -3456,6 +3908,100 @@ export class PdfApi {
}
+ /**
+ *
+ * @summary Get file versions
+ * @param path File path e.g. '/file.ext'
+ * @param storageName Storage name
+ */
+ public async getFileVersions (path: string, storageName?: string) : Promise<{ response: http.IncomingMessage; body: FileVersions; }> {
+ const localVarPath = this.basePath + '/pdf/storage/version/{path}'
+ .replace('{' + 'path' + '}', encodeURIComponent(String(path)));
+ let localVarQueryParameters: any = {};
+ let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders);
+ let localVarFormParams: any = {};
+
+ // verify required parameter 'path' is not null or undefined
+ if (path === null || path === undefined) {
+ throw new Error('Required parameter path was null or undefined when calling getFileVersions.');
+ }
+
+ if (storageName !== undefined && null !== storageName) {
+ localVarQueryParameters['storageName'] = ObjectSerializer.serialize(storageName, "string");
+ }
+
+
+ let localVarUseFormData = false;
+ let fileData = null;
+ let localVarRequestOptions: localVarRequest.Options = {
+ method: 'GET',
+ qs: localVarQueryParameters,
+ headers: localVarHeaderParams,
+ uri: localVarPath,
+ useQuerystring: this._useQuerystring,
+ json: true,
+ };
+
+ if (Object.keys(localVarFormParams).length) {
+ if (localVarUseFormData) {
+ (localVarRequestOptions).formData = localVarFormParams;
+ } else {
+ localVarRequestOptions.form = localVarFormParams;
+ }
+ }
+ const response = await invokeApiMethod(localVarRequestOptions, this.configuration, false, fileData);
+ const result = ObjectSerializer.deserialize(response.body, "FileVersions");
+ return Promise.resolve({body: result, response});
+ }
+
+
+ /**
+ *
+ * @summary Get all files and folders within a folder
+ * @param path Folder path e.g. '/folder'
+ * @param storageName Storage name
+ */
+ public async getFilesList (path: string, storageName?: string) : Promise<{ response: http.IncomingMessage; body: FilesList; }> {
+ const localVarPath = this.basePath + '/pdf/storage/folder/{path}'
+ .replace('{' + 'path' + '}', encodeURIComponent(String(path)));
+ let localVarQueryParameters: any = {};
+ let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders);
+ let localVarFormParams: any = {};
+
+ // verify required parameter 'path' is not null or undefined
+ if (path === null || path === undefined) {
+ throw new Error('Required parameter path was null or undefined when calling getFilesList.');
+ }
+
+ if (storageName !== undefined && null !== storageName) {
+ localVarQueryParameters['storageName'] = ObjectSerializer.serialize(storageName, "string");
+ }
+
+
+ let localVarUseFormData = false;
+ let fileData = null;
+ let localVarRequestOptions: localVarRequest.Options = {
+ method: 'GET',
+ qs: localVarQueryParameters,
+ headers: localVarHeaderParams,
+ uri: localVarPath,
+ useQuerystring: this._useQuerystring,
+ json: true,
+ };
+
+ if (Object.keys(localVarFormParams).length) {
+ if (localVarUseFormData) {
+ (localVarRequestOptions).formData = localVarFormParams;
+ } else {
+ localVarRequestOptions.form = localVarFormParams;
+ }
+ }
+ const response = await invokeApiMethod(localVarRequestOptions, this.configuration, false, fileData);
+ const result = ObjectSerializer.deserialize(response.body, "FilesList");
+ return Promise.resolve({body: result, response});
+ }
+
+
/**
*
* @summary Read document page free text annotation by ID.
@@ -4066,127 +4612,30 @@ export class PdfApi {
* @param storage The document storage.
* @param folder The document folder.
*/
- public async getInkAnnotation (name: string, annotationId: string, storage?: string, folder?: string) : Promise<{ response: http.IncomingMessage; body: InkAnnotationResponse; }> {
- const localVarPath = this.basePath + '/pdf/{name}/annotations/ink/{annotationId}'
- .replace('{' + 'name' + '}', encodeURIComponent(String(name)))
- .replace('{' + 'annotationId' + '}', encodeURIComponent(String(annotationId)));
- let localVarQueryParameters: any = {};
- let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders);
- let localVarFormParams: any = {};
-
- // verify required parameter 'name' is not null or undefined
- if (name === null || name === undefined) {
- throw new Error('Required parameter name was null or undefined when calling getInkAnnotation.');
- }
-
- // verify required parameter 'annotationId' is not null or undefined
- if (annotationId === null || annotationId === undefined) {
- throw new Error('Required parameter annotationId was null or undefined when calling getInkAnnotation.');
- }
-
- if (storage !== undefined && null !== storage) {
- localVarQueryParameters['storage'] = ObjectSerializer.serialize(storage, "string");
- }
-
- if (folder !== undefined && null !== folder) {
- localVarQueryParameters['folder'] = ObjectSerializer.serialize(folder, "string");
- }
-
-
- let localVarUseFormData = false;
- let fileData = null;
- let localVarRequestOptions: localVarRequest.Options = {
- method: 'GET',
- qs: localVarQueryParameters,
- headers: localVarHeaderParams,
- uri: localVarPath,
- useQuerystring: this._useQuerystring,
- json: true,
- };
-
- if (Object.keys(localVarFormParams).length) {
- if (localVarUseFormData) {
- (localVarRequestOptions).formData = localVarFormParams;
- } else {
- localVarRequestOptions.form = localVarFormParams;
- }
- }
- const response = await invokeApiMethod(localVarRequestOptions, this.configuration, false, fileData);
- const result = ObjectSerializer.deserialize(response.body, "InkAnnotationResponse");
- return Promise.resolve({body: result, response});
- }
-
-
- /**
- *
- * @summary Check if a specific file or folder exists
- * @param path File or folder path e.g. /file.ext or /Folder1
- * @param versionId File's version
- * @param storage User's storage name
- */
- public async getIsExist (path: string, versionId?: string, storage?: string) : Promise<{ response: http.IncomingMessage; body: FileExistResponse; }> {
- const localVarPath = this.basePath + '/storage/exist';
- let localVarQueryParameters: any = {};
- let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders);
- let localVarFormParams: any = {};
-
- // verify required parameter 'path' is not null or undefined
- if (path === null || path === undefined) {
- throw new Error('Required parameter path was null or undefined when calling getIsExist.');
- }
-
- if (path !== undefined && null !== path) {
- localVarQueryParameters['path'] = ObjectSerializer.serialize(path, "string");
- }
-
- if (versionId !== undefined && null !== versionId) {
- localVarQueryParameters['versionId'] = ObjectSerializer.serialize(versionId, "string");
- }
-
- if (storage !== undefined && null !== storage) {
- localVarQueryParameters['storage'] = ObjectSerializer.serialize(storage, "string");
- }
-
-
- let localVarUseFormData = false;
- let fileData = null;
- let localVarRequestOptions: localVarRequest.Options = {
- method: 'GET',
- qs: localVarQueryParameters,
- headers: localVarHeaderParams,
- uri: localVarPath,
- useQuerystring: this._useQuerystring,
- json: true,
- };
-
- if (Object.keys(localVarFormParams).length) {
- if (localVarUseFormData) {
- (localVarRequestOptions).formData = localVarFormParams;
- } else {
- localVarRequestOptions.form = localVarFormParams;
- }
- }
- const response = await invokeApiMethod(localVarRequestOptions, this.configuration, false, fileData);
- const result = ObjectSerializer.deserialize(response.body, "FileExistResponse");
- return Promise.resolve({body: result, response});
- }
-
-
- /**
- *
- * @summary Check if storage exists
- * @param name Storage name
- */
- public async getIsStorageExist (name: string) : Promise<{ response: http.IncomingMessage; body: StorageExistResponse; }> {
- const localVarPath = this.basePath + '/storage/{name}/exist'
- .replace('{' + 'name' + '}', encodeURIComponent(String(name)));
+ public async getInkAnnotation (name: string, annotationId: string, storage?: string, folder?: string) : Promise<{ response: http.IncomingMessage; body: InkAnnotationResponse; }> {
+ const localVarPath = this.basePath + '/pdf/{name}/annotations/ink/{annotationId}'
+ .replace('{' + 'name' + '}', encodeURIComponent(String(name)))
+ .replace('{' + 'annotationId' + '}', encodeURIComponent(String(annotationId)));
let localVarQueryParameters: any = {};
let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders);
let localVarFormParams: any = {};
// verify required parameter 'name' is not null or undefined
if (name === null || name === undefined) {
- throw new Error('Required parameter name was null or undefined when calling getIsStorageExist.');
+ throw new Error('Required parameter name was null or undefined when calling getInkAnnotation.');
+ }
+
+ // verify required parameter 'annotationId' is not null or undefined
+ if (annotationId === null || annotationId === undefined) {
+ throw new Error('Required parameter annotationId was null or undefined when calling getInkAnnotation.');
+ }
+
+ if (storage !== undefined && null !== storage) {
+ localVarQueryParameters['storage'] = ObjectSerializer.serialize(storage, "string");
+ }
+
+ if (folder !== undefined && null !== folder) {
+ localVarQueryParameters['folder'] = ObjectSerializer.serialize(folder, "string");
}
@@ -4209,7 +4658,7 @@ export class PdfApi {
}
}
const response = await invokeApiMethod(localVarRequestOptions, this.configuration, false, fileData);
- const result = ObjectSerializer.deserialize(response.body, "StorageExistResponse");
+ const result = ObjectSerializer.deserialize(response.body, "InkAnnotationResponse");
return Promise.resolve({body: result, response});
}
@@ -4382,101 +4831,6 @@ export class PdfApi {
}
- /**
- *
- * @summary Get the file's versions list
- * @param path File path e.g. /file.ext or /Folder1/file.ext
- * @param storage User's storage name
- */
- public async getListFileVersions (path: string, storage?: string) : Promise<{ response: http.IncomingMessage; body: FileVersionsResponse; }> {
- const localVarPath = this.basePath + '/storage/version';
- let localVarQueryParameters: any = {};
- let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders);
- let localVarFormParams: any = {};
-
- // verify required parameter 'path' is not null or undefined
- if (path === null || path === undefined) {
- throw new Error('Required parameter path was null or undefined when calling getListFileVersions.');
- }
-
- if (path !== undefined && null !== path) {
- localVarQueryParameters['path'] = ObjectSerializer.serialize(path, "string");
- }
-
- if (storage !== undefined && null !== storage) {
- localVarQueryParameters['storage'] = ObjectSerializer.serialize(storage, "string");
- }
-
-
- let localVarUseFormData = false;
- let fileData = null;
- let localVarRequestOptions: localVarRequest.Options = {
- method: 'GET',
- qs: localVarQueryParameters,
- headers: localVarHeaderParams,
- uri: localVarPath,
- useQuerystring: this._useQuerystring,
- json: true,
- };
-
- if (Object.keys(localVarFormParams).length) {
- if (localVarUseFormData) {
- (localVarRequestOptions).formData = localVarFormParams;
- } else {
- localVarRequestOptions.form = localVarFormParams;
- }
- }
- const response = await invokeApiMethod(localVarRequestOptions, this.configuration, false, fileData);
- const result = ObjectSerializer.deserialize(response.body, "FileVersionsResponse");
- return Promise.resolve({body: result, response});
- }
-
-
- /**
- *
- * @summary Get the file listing of a specific folder
- * @param path Start with name of storage e.g. root folder '/'or some folder '/folder1/..'
- * @param storage User's storage name
- */
- public async getListFiles (path?: string, storage?: string) : Promise<{ response: http.IncomingMessage; body: FilesResponse; }> {
- const localVarPath = this.basePath + '/storage/folder';
- let localVarQueryParameters: any = {};
- let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders);
- let localVarFormParams: any = {};
-
- if (path !== undefined && null !== path) {
- localVarQueryParameters['path'] = ObjectSerializer.serialize(path, "string");
- }
-
- if (storage !== undefined && null !== storage) {
- localVarQueryParameters['storage'] = ObjectSerializer.serialize(storage, "string");
- }
-
-
- let localVarUseFormData = false;
- let fileData = null;
- let localVarRequestOptions: localVarRequest.Options = {
- method: 'GET',
- qs: localVarQueryParameters,
- headers: localVarHeaderParams,
- uri: localVarPath,
- useQuerystring: this._useQuerystring,
- json: true,
- };
-
- if (Object.keys(localVarFormParams).length) {
- if (localVarUseFormData) {
- (localVarRequestOptions).formData = localVarFormParams;
- } else {
- localVarRequestOptions.form = localVarFormParams;
- }
- }
- const response = await invokeApiMethod(localVarRequestOptions, this.configuration, false, fileData);
- const result = ObjectSerializer.deserialize(response.body, "FilesResponse");
- return Promise.resolve({body: result, response});
- }
-
-
/**
*
* @summary Convert MHT file (located on storage) to PDF format and return resulting file in response.
@@ -9106,26 +9460,183 @@ export class PdfApi {
* @summary Get number of words per document page.
* @param name The document name.
* @param storage The document storage.
- * @param folder The document folder.
+ * @param folder The document folder.
+ */
+ public async getWordsPerPage (name: string, storage?: string, folder?: string) : Promise<{ response: http.IncomingMessage; body: WordCountResponse; }> {
+ const localVarPath = this.basePath + '/pdf/{name}/pages/wordCount'
+ .replace('{' + 'name' + '}', encodeURIComponent(String(name)));
+ let localVarQueryParameters: any = {};
+ let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders);
+ let localVarFormParams: any = {};
+
+ // verify required parameter 'name' is not null or undefined
+ if (name === null || name === undefined) {
+ throw new Error('Required parameter name was null or undefined when calling getWordsPerPage.');
+ }
+
+ if (storage !== undefined && null !== storage) {
+ localVarQueryParameters['storage'] = ObjectSerializer.serialize(storage, "string");
+ }
+
+ if (folder !== undefined && null !== folder) {
+ localVarQueryParameters['folder'] = ObjectSerializer.serialize(folder, "string");
+ }
+
+
+ let localVarUseFormData = false;
+ let fileData = null;
+ let localVarRequestOptions: localVarRequest.Options = {
+ method: 'GET',
+ qs: localVarQueryParameters,
+ headers: localVarHeaderParams,
+ uri: localVarPath,
+ useQuerystring: this._useQuerystring,
+ json: true,
+ };
+
+ if (Object.keys(localVarFormParams).length) {
+ if (localVarUseFormData) {
+ (localVarRequestOptions).formData = localVarFormParams;
+ } else {
+ localVarRequestOptions.form = localVarFormParams;
+ }
+ }
+ const response = await invokeApiMethod(localVarRequestOptions, this.configuration, false, fileData);
+ const result = ObjectSerializer.deserialize(response.body, "WordCountResponse");
+ return Promise.resolve({body: result, response});
+ }
+
+
+ /**
+ *
+ * @summary Converts PDF document which contatins XFA form (located on storage) to PDF with AcroForm and returns resulting file response content
+ * @param name The document name.
+ * @param folder The document folder.
+ * @param storage The document storage.
+ */
+ public async getXfaPdfInStorageToAcroForm (name: string, folder?: string, storage?: string) : Promise<{ response: http.IncomingMessage; body: Buffer; }> {
+ const localVarPath = this.basePath + '/pdf/{name}/convert/xfatoacroform'
+ .replace('{' + 'name' + '}', encodeURIComponent(String(name)));
+ let localVarQueryParameters: any = {};
+ let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders);
+ let localVarFormParams: any = {};
+
+ // verify required parameter 'name' is not null or undefined
+ if (name === null || name === undefined) {
+ throw new Error('Required parameter name was null or undefined when calling getXfaPdfInStorageToAcroForm.');
+ }
+
+ if (folder !== undefined && null !== folder) {
+ localVarQueryParameters['folder'] = ObjectSerializer.serialize(folder, "string");
+ }
+
+ if (storage !== undefined && null !== storage) {
+ localVarQueryParameters['storage'] = ObjectSerializer.serialize(storage, "string");
+ }
+
+
+ let localVarUseFormData = false;
+ let fileData = null;
+ let localVarRequestOptions: localVarRequest.Options = {
+ method: 'GET',
+ qs: localVarQueryParameters,
+ headers: localVarHeaderParams,
+ uri: localVarPath,
+ useQuerystring: this._useQuerystring,
+ encoding: null,
+ };
+
+ if (Object.keys(localVarFormParams).length) {
+ if (localVarUseFormData) {
+ (localVarRequestOptions).formData = localVarFormParams;
+ } else {
+ localVarRequestOptions.form = localVarFormParams;
+ }
+ }
+ const response = await invokeApiMethod(localVarRequestOptions, this.configuration, false, fileData);
+ const result = ObjectSerializer.deserialize(response.body, "Buffer");
+ return Promise.resolve({body: result, response});
+ }
+
+
+ /**
+ *
+ * @summary Convert XML file (located on storage) to PDF format and return resulting file in response.
+ * @param srcPath Full source filename (ex. /folder1/folder2/template.xml)
+ * @param xslFilePath Full XSL source filename (ex. /folder1/folder2/template.xsl)
+ * @param storage The document storage.
+ */
+ public async getXmlInStorageToPdf (srcPath: string, xslFilePath?: string, storage?: string) : Promise<{ response: http.IncomingMessage; body: Buffer; }> {
+ const localVarPath = this.basePath + '/pdf/create/xml';
+ let localVarQueryParameters: any = {};
+ let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders);
+ let localVarFormParams: any = {};
+
+ // verify required parameter 'srcPath' is not null or undefined
+ if (srcPath === null || srcPath === undefined) {
+ throw new Error('Required parameter srcPath was null or undefined when calling getXmlInStorageToPdf.');
+ }
+
+ if (srcPath !== undefined && null !== srcPath) {
+ localVarQueryParameters['srcPath'] = ObjectSerializer.serialize(srcPath, "string");
+ }
+
+ if (xslFilePath !== undefined && null !== xslFilePath) {
+ localVarQueryParameters['xslFilePath'] = ObjectSerializer.serialize(xslFilePath, "string");
+ }
+
+ if (storage !== undefined && null !== storage) {
+ localVarQueryParameters['storage'] = ObjectSerializer.serialize(storage, "string");
+ }
+
+
+ let localVarUseFormData = false;
+ let fileData = null;
+ let localVarRequestOptions: localVarRequest.Options = {
+ method: 'GET',
+ qs: localVarQueryParameters,
+ headers: localVarHeaderParams,
+ uri: localVarPath,
+ useQuerystring: this._useQuerystring,
+ encoding: null,
+ };
+
+ if (Object.keys(localVarFormParams).length) {
+ if (localVarUseFormData) {
+ (localVarRequestOptions).formData = localVarFormParams;
+ } else {
+ localVarRequestOptions.form = localVarFormParams;
+ }
+ }
+ const response = await invokeApiMethod(localVarRequestOptions, this.configuration, false, fileData);
+ const result = ObjectSerializer.deserialize(response.body, "Buffer");
+ return Promise.resolve({body: result, response});
+ }
+
+
+ /**
+ *
+ * @summary Convert XPS file (located on storage) to PDF format and return resulting file in response.
+ * @param srcPath Full source filename (ex. /folder1/folder2/template.xps)
+ * @param storage The document storage.
*/
- public async getWordsPerPage (name: string, storage?: string, folder?: string) : Promise<{ response: http.IncomingMessage; body: WordCountResponse; }> {
- const localVarPath = this.basePath + '/pdf/{name}/pages/wordCount'
- .replace('{' + 'name' + '}', encodeURIComponent(String(name)));
+ public async getXpsInStorageToPdf (srcPath: string, storage?: string) : Promise<{ response: http.IncomingMessage; body: Buffer; }> {
+ const localVarPath = this.basePath + '/pdf/create/xps';
let localVarQueryParameters: any = {};
let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders);
let localVarFormParams: any = {};
- // verify required parameter 'name' is not null or undefined
- if (name === null || name === undefined) {
- throw new Error('Required parameter name was null or undefined when calling getWordsPerPage.');
+ // verify required parameter 'srcPath' is not null or undefined
+ if (srcPath === null || srcPath === undefined) {
+ throw new Error('Required parameter srcPath was null or undefined when calling getXpsInStorageToPdf.');
}
- if (storage !== undefined && null !== storage) {
- localVarQueryParameters['storage'] = ObjectSerializer.serialize(storage, "string");
+ if (srcPath !== undefined && null !== srcPath) {
+ localVarQueryParameters['srcPath'] = ObjectSerializer.serialize(srcPath, "string");
}
- if (folder !== undefined && null !== folder) {
- localVarQueryParameters['folder'] = ObjectSerializer.serialize(folder, "string");
+ if (storage !== undefined && null !== storage) {
+ localVarQueryParameters['storage'] = ObjectSerializer.serialize(storage, "string");
}
@@ -9137,7 +9648,7 @@ export class PdfApi {
headers: localVarHeaderParams,
uri: localVarPath,
useQuerystring: this._useQuerystring,
- json: true,
+ encoding: null,
};
if (Object.keys(localVarFormParams).length) {
@@ -9148,32 +9659,30 @@ export class PdfApi {
}
}
const response = await invokeApiMethod(localVarRequestOptions, this.configuration, false, fileData);
- const result = ObjectSerializer.deserialize(response.body, "WordCountResponse");
+ const result = ObjectSerializer.deserialize(response.body, "Buffer");
return Promise.resolve({body: result, response});
}
/**
*
- * @summary Converts PDF document which contatins XFA form (located on storage) to PDF with AcroForm and returns resulting file response content
- * @param name The document name.
- * @param folder The document folder.
+ * @summary Convert XslFo file (located on storage) to PDF format and return resulting file in response.
+ * @param srcPath Full source filename (ex. /folder1/folder2/template.xslfo)
* @param storage The document storage.
*/
- public async getXfaPdfInStorageToAcroForm (name: string, folder?: string, storage?: string) : Promise<{ response: http.IncomingMessage; body: Buffer; }> {
- const localVarPath = this.basePath + '/pdf/{name}/convert/xfatoacroform'
- .replace('{' + 'name' + '}', encodeURIComponent(String(name)));
+ public async getXslFoInStorageToPdf (srcPath: string, storage?: string) : Promise<{ response: http.IncomingMessage; body: Buffer; }> {
+ const localVarPath = this.basePath + '/pdf/create/xslfo';
let localVarQueryParameters: any = {};
let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders);
let localVarFormParams: any = {};
- // verify required parameter 'name' is not null or undefined
- if (name === null || name === undefined) {
- throw new Error('Required parameter name was null or undefined when calling getXfaPdfInStorageToAcroForm.');
+ // verify required parameter 'srcPath' is not null or undefined
+ if (srcPath === null || srcPath === undefined) {
+ throw new Error('Required parameter srcPath was null or undefined when calling getXslFoInStorageToPdf.');
}
- if (folder !== undefined && null !== folder) {
- localVarQueryParameters['folder'] = ObjectSerializer.serialize(folder, "string");
+ if (srcPath !== undefined && null !== srcPath) {
+ localVarQueryParameters['srcPath'] = ObjectSerializer.serialize(srcPath, "string");
}
if (storage !== undefined && null !== storage) {
@@ -9207,44 +9716,56 @@ export class PdfApi {
/**
*
- * @summary Convert XML file (located on storage) to PDF format and return resulting file in response.
- * @param srcPath Full source filename (ex. /folder1/folder2/template.xml)
- * @param xslFilePath Full XSL source filename (ex. /folder1/folder2/template.xsl)
- * @param storage The document storage.
+ * @summary Move file
+ * @param srcPath Source file path e.g. '/src.ext'
+ * @param destPath Destination file path e.g. '/dest.ext'
+ * @param srcStorageName Source storage name
+ * @param destStorageName Destination storage name
+ * @param versionId File version ID to move
*/
- public async getXmlInStorageToPdf (srcPath: string, xslFilePath?: string, storage?: string) : Promise<{ response: http.IncomingMessage; body: Buffer; }> {
- const localVarPath = this.basePath + '/pdf/create/xml';
+ public async moveFile (srcPath: string, destPath: string, srcStorageName?: string, destStorageName?: string, versionId?: string) : Promise<{ response: http.IncomingMessage; body?: any; }> {
+ const localVarPath = this.basePath + '/pdf/storage/file/move/{srcPath}'
+ .replace('{' + 'srcPath' + '}', encodeURIComponent(String(srcPath)));
let localVarQueryParameters: any = {};
let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders);
let localVarFormParams: any = {};
// verify required parameter 'srcPath' is not null or undefined
if (srcPath === null || srcPath === undefined) {
- throw new Error('Required parameter srcPath was null or undefined when calling getXmlInStorageToPdf.');
+ throw new Error('Required parameter srcPath was null or undefined when calling moveFile.');
}
- if (srcPath !== undefined && null !== srcPath) {
- localVarQueryParameters['srcPath'] = ObjectSerializer.serialize(srcPath, "string");
+ // verify required parameter 'destPath' is not null or undefined
+ if (destPath === null || destPath === undefined) {
+ throw new Error('Required parameter destPath was null or undefined when calling moveFile.');
}
- if (xslFilePath !== undefined && null !== xslFilePath) {
- localVarQueryParameters['xslFilePath'] = ObjectSerializer.serialize(xslFilePath, "string");
+ if (destPath !== undefined && null !== destPath) {
+ localVarQueryParameters['destPath'] = ObjectSerializer.serialize(destPath, "string");
}
- if (storage !== undefined && null !== storage) {
- localVarQueryParameters['storage'] = ObjectSerializer.serialize(storage, "string");
+ if (srcStorageName !== undefined && null !== srcStorageName) {
+ localVarQueryParameters['srcStorageName'] = ObjectSerializer.serialize(srcStorageName, "string");
+ }
+
+ if (destStorageName !== undefined && null !== destStorageName) {
+ localVarQueryParameters['destStorageName'] = ObjectSerializer.serialize(destStorageName, "string");
+ }
+
+ if (versionId !== undefined && null !== versionId) {
+ localVarQueryParameters['versionId'] = ObjectSerializer.serialize(versionId, "string");
}
let localVarUseFormData = false;
let fileData = null;
let localVarRequestOptions: localVarRequest.Options = {
- method: 'GET',
+ method: 'PUT',
qs: localVarQueryParameters,
headers: localVarHeaderParams,
uri: localVarPath,
useQuerystring: this._useQuerystring,
- encoding: null,
+ json: true,
};
if (Object.keys(localVarFormParams).length) {
@@ -9255,46 +9776,58 @@ export class PdfApi {
}
}
const response = await invokeApiMethod(localVarRequestOptions, this.configuration, false, fileData);
- const result = ObjectSerializer.deserialize(response.body, "Buffer");
+ const result = ObjectSerializer.deserialize(response.body, "");
return Promise.resolve({body: result, response});
}
/**
*
- * @summary Convert XPS file (located on storage) to PDF format and return resulting file in response.
- * @param srcPath Full source filename (ex. /folder1/folder2/template.xps)
- * @param storage The document storage.
+ * @summary Move folder
+ * @param srcPath Folder path to move e.g. '/folder'
+ * @param destPath Destination folder path to move to e.g '/dst'
+ * @param srcStorageName Source storage name
+ * @param destStorageName Destination storage name
*/
- public async getXpsInStorageToPdf (srcPath: string, storage?: string) : Promise<{ response: http.IncomingMessage; body: Buffer; }> {
- const localVarPath = this.basePath + '/pdf/create/xps';
+ public async moveFolder (srcPath: string, destPath: string, srcStorageName?: string, destStorageName?: string) : Promise<{ response: http.IncomingMessage; body?: any; }> {
+ const localVarPath = this.basePath + '/pdf/storage/folder/move/{srcPath}'
+ .replace('{' + 'srcPath' + '}', encodeURIComponent(String(srcPath)));
let localVarQueryParameters: any = {};
let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders);
let localVarFormParams: any = {};
// verify required parameter 'srcPath' is not null or undefined
if (srcPath === null || srcPath === undefined) {
- throw new Error('Required parameter srcPath was null or undefined when calling getXpsInStorageToPdf.');
+ throw new Error('Required parameter srcPath was null or undefined when calling moveFolder.');
}
- if (srcPath !== undefined && null !== srcPath) {
- localVarQueryParameters['srcPath'] = ObjectSerializer.serialize(srcPath, "string");
+ // verify required parameter 'destPath' is not null or undefined
+ if (destPath === null || destPath === undefined) {
+ throw new Error('Required parameter destPath was null or undefined when calling moveFolder.');
}
- if (storage !== undefined && null !== storage) {
- localVarQueryParameters['storage'] = ObjectSerializer.serialize(storage, "string");
+ if (destPath !== undefined && null !== destPath) {
+ localVarQueryParameters['destPath'] = ObjectSerializer.serialize(destPath, "string");
+ }
+
+ if (srcStorageName !== undefined && null !== srcStorageName) {
+ localVarQueryParameters['srcStorageName'] = ObjectSerializer.serialize(srcStorageName, "string");
+ }
+
+ if (destStorageName !== undefined && null !== destStorageName) {
+ localVarQueryParameters['destStorageName'] = ObjectSerializer.serialize(destStorageName, "string");
}
let localVarUseFormData = false;
let fileData = null;
let localVarRequestOptions: localVarRequest.Options = {
- method: 'GET',
+ method: 'PUT',
qs: localVarQueryParameters,
headers: localVarHeaderParams,
uri: localVarPath,
useQuerystring: this._useQuerystring,
- encoding: null,
+ json: true,
};
if (Object.keys(localVarFormParams).length) {
@@ -9305,34 +9838,36 @@ export class PdfApi {
}
}
const response = await invokeApiMethod(localVarRequestOptions, this.configuration, false, fileData);
- const result = ObjectSerializer.deserialize(response.body, "Buffer");
+ const result = ObjectSerializer.deserialize(response.body, "");
return Promise.resolve({body: result, response});
}
/**
*
- * @summary Convert XslFo file (located on storage) to PDF format and return resulting file in response.
- * @param srcPath Full source filename (ex. /folder1/folder2/template.xslfo)
- * @param storage The document storage.
+ * @summary Check if file or folder exists
+ * @param path File or folder path e.g. '/file.ext' or '/folder'
+ * @param storageName Storage name
+ * @param versionId File version ID
*/
- public async getXslFoInStorageToPdf (srcPath: string, storage?: string) : Promise<{ response: http.IncomingMessage; body: Buffer; }> {
- const localVarPath = this.basePath + '/pdf/create/xslfo';
+ public async objectExists (path: string, storageName?: string, versionId?: string) : Promise<{ response: http.IncomingMessage; body: ObjectExist; }> {
+ const localVarPath = this.basePath + '/pdf/storage/exist/{path}'
+ .replace('{' + 'path' + '}', encodeURIComponent(String(path)));
let localVarQueryParameters: any = {};
let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders);
let localVarFormParams: any = {};
- // verify required parameter 'srcPath' is not null or undefined
- if (srcPath === null || srcPath === undefined) {
- throw new Error('Required parameter srcPath was null or undefined when calling getXslFoInStorageToPdf.');
+ // verify required parameter 'path' is not null or undefined
+ if (path === null || path === undefined) {
+ throw new Error('Required parameter path was null or undefined when calling objectExists.');
}
- if (srcPath !== undefined && null !== srcPath) {
- localVarQueryParameters['srcPath'] = ObjectSerializer.serialize(srcPath, "string");
+ if (storageName !== undefined && null !== storageName) {
+ localVarQueryParameters['storageName'] = ObjectSerializer.serialize(storageName, "string");
}
- if (storage !== undefined && null !== storage) {
- localVarQueryParameters['storage'] = ObjectSerializer.serialize(storage, "string");
+ if (versionId !== undefined && null !== versionId) {
+ localVarQueryParameters['versionId'] = ObjectSerializer.serialize(versionId, "string");
}
@@ -9344,7 +9879,7 @@ export class PdfApi {
headers: localVarHeaderParams,
uri: localVarPath,
useQuerystring: this._useQuerystring,
- encoding: null,
+ json: true,
};
if (Object.keys(localVarFormParams).length) {
@@ -9355,7 +9890,7 @@ export class PdfApi {
}
}
const response = await invokeApiMethod(localVarRequestOptions, this.configuration, false, fileData);
- const result = ObjectSerializer.deserialize(response.body, "Buffer");
+ const result = ObjectSerializer.deserialize(response.body, "ObjectExist");
return Promise.resolve({body: result, response});
}
@@ -9364,14 +9899,13 @@ export class PdfApi {
*
* @summary Append document to existing one.
* @param name The original document name.
- * @param appendDocument with the append document data.
* @param appendFile Append file server path.
* @param startPage Appending start page.
* @param endPage Appending end page.
* @param storage The documents storage.
* @param folder The original document folder.
*/
- public async postAppendDocument (name: string, appendDocument?: AppendDocument, appendFile?: string, startPage?: number, endPage?: number, storage?: string, folder?: string) : Promise<{ response: http.IncomingMessage; body: DocumentResponse; }> {
+ public async postAppendDocument (name: string, appendFile: string, startPage?: number, endPage?: number, storage?: string, folder?: string) : Promise<{ response: http.IncomingMessage; body: DocumentResponse; }> {
const localVarPath = this.basePath + '/pdf/{name}/appendDocument'
.replace('{' + 'name' + '}', encodeURIComponent(String(name)));
let localVarQueryParameters: any = {};
@@ -9383,6 +9917,11 @@ export class PdfApi {
throw new Error('Required parameter name was null or undefined when calling postAppendDocument.');
}
+ // verify required parameter 'appendFile' is not null or undefined
+ if (appendFile === null || appendFile === undefined) {
+ throw new Error('Required parameter appendFile was null or undefined when calling postAppendDocument.');
+ }
+
if (appendFile !== undefined && null !== appendFile) {
localVarQueryParameters['appendFile'] = ObjectSerializer.serialize(appendFile, "string");
}
@@ -9413,7 +9952,6 @@ export class PdfApi {
uri: localVarPath,
useQuerystring: this._useQuerystring,
json: true,
- body: ObjectSerializer.serialize(appendDocument, "AppendDocument")
};
if (Object.keys(localVarFormParams).length) {
@@ -9429,6 +9967,72 @@ export class PdfApi {
}
+ /**
+ *
+ * @summary Add document bookmarks.
+ * @param name The document name.
+ * @param bookmarkPath The bookmark path.
+ * @param bookmarks The array of bookmark.
+ * @param folder The document folder.
+ * @param storage The document storage.
+ */
+ public async postBookmark (name: string, bookmarkPath: string, bookmarks: Array, folder?: string, storage?: string) : Promise<{ response: http.IncomingMessage; body: BookmarksResponse; }> {
+ const localVarPath = this.basePath + '/pdf/{name}/bookmarks/bookmark/{bookmarkPath}'
+ .replace('{' + 'name' + '}', encodeURIComponent(String(name)))
+ .replace('{' + 'bookmarkPath' + '}', encodeURIComponent(String(bookmarkPath)));
+ let localVarQueryParameters: any = {};
+ let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders);
+ let localVarFormParams: any = {};
+
+ // verify required parameter 'name' is not null or undefined
+ if (name === null || name === undefined) {
+ throw new Error('Required parameter name was null or undefined when calling postBookmark.');
+ }
+
+ // verify required parameter 'bookmarkPath' is not null or undefined
+ if (bookmarkPath === null || bookmarkPath === undefined) {
+ throw new Error('Required parameter bookmarkPath was null or undefined when calling postBookmark.');
+ }
+
+ // verify required parameter 'bookmarks' is not null or undefined
+ if (bookmarks === null || bookmarks === undefined) {
+ throw new Error('Required parameter bookmarks was null or undefined when calling postBookmark.');
+ }
+
+ if (folder !== undefined && null !== folder) {
+ localVarQueryParameters['folder'] = ObjectSerializer.serialize(folder, "string");
+ }
+
+ if (storage !== undefined && null !== storage) {
+ localVarQueryParameters['storage'] = ObjectSerializer.serialize(storage, "string");
+ }
+
+
+ let localVarUseFormData = false;
+ let fileData = null;
+ let localVarRequestOptions: localVarRequest.Options = {
+ method: 'POST',
+ qs: localVarQueryParameters,
+ headers: localVarHeaderParams,
+ uri: localVarPath,
+ useQuerystring: this._useQuerystring,
+ json: true,
+ body: ObjectSerializer.serialize(bookmarks, "Array")
+ };
+
+ if (Object.keys(localVarFormParams).length) {
+ if (localVarUseFormData) {
+ (localVarRequestOptions).formData = localVarFormParams;
+ } else {
+ localVarRequestOptions.form = localVarFormParams;
+ }
+ }
+ const response = await invokeApiMethod(localVarRequestOptions, this.configuration, false, fileData);
+ const result = ObjectSerializer.deserialize(response.body, "BookmarksResponse");
+ return Promise.resolve({body: result, response});
+ }
+
+
/**
*
* @summary Change document password in storage.
@@ -9516,11 +10120,11 @@ export class PdfApi {
* @summary Create field.
* @param name The document name.
* @param page Document page number.
- * @param field with the field data.
+ * @param field Field with the field data.
* @param storage The document storage.
* @param folder The document folder.
*/
- public async postCreateField (name: string, page: number, field?: Field, storage?: string, folder?: string) : Promise<{ response: http.IncomingMessage; body: AsposeResponse; }> {
+ public async postCreateField (name: string, page: number, field: Field, storage?: string, folder?: string) : Promise<{ response: http.IncomingMessage; body: AsposeResponse; }> {
const localVarPath = this.basePath + '/pdf/{name}/fields'
.replace('{' + 'name' + '}', encodeURIComponent(String(name)));
let localVarQueryParameters: any = {};
@@ -9537,6 +10141,11 @@ export class PdfApi {
throw new Error('Required parameter page was null or undefined when calling postCreateField.');
}
+ // verify required parameter 'field' is not null or undefined
+ if (field === null || field === undefined) {
+ throw new Error('Required parameter field was null or undefined when calling postCreateField.');
+ }
+
if (page !== undefined && null !== page) {
localVarQueryParameters['page'] = ObjectSerializer.serialize(page, "number");
}
@@ -10047,8 +10656,8 @@ export class PdfApi {
* @param name Document name.
* @param userPassword User password (encrypted Base64).
* @param ownerPassword Owner password (encrypted Base64).
- * @param cryptoAlgorithm Cryptographic algorithm, see for details.
- * @param permissionsFlags Array of document permissions, see for details.
+ * @param cryptoAlgorithm Cryptographic algorithm, see CryptoAlgorithm for details.
+ * @param permissionsFlags Array of document permissions, see PermissionsFlags for details.
* @param usePdf20 Support for revision 6 (Extension 8).
* @param storage The document storage.
* @param folder The document folder.
@@ -10288,143 +10897,8 @@ export class PdfApi {
fileData = image;
}
localVarUseFormData = true;
-
-
- let localVarRequestOptions: localVarRequest.Options = {
- method: 'POST',
- qs: localVarQueryParameters,
- headers: localVarHeaderParams,
- uri: localVarPath,
- useQuerystring: this._useQuerystring,
- json: true,
- };
-
- if (Object.keys(localVarFormParams).length) {
- if (localVarUseFormData) {
- (localVarRequestOptions).formData = localVarFormParams;
- } else {
- localVarRequestOptions.form = localVarFormParams;
- }
- }
- const response = await invokeApiMethod(localVarRequestOptions, this.configuration, false, fileData);
- const result = ObjectSerializer.deserialize(response.body, "AsposeResponse");
- return Promise.resolve({body: result, response});
- }
-
-
- /**
- *
- * @summary Move a specific file
- * @param src Source file path e.g. /fileSource.ext
- * @param dest Destination file path e.g. /fileDestination.ext
- * @param versionId Source file's version,
- * @param storage User's source storage name
- * @param destStorage User's destination storage name
- */
- public async postMoveFile (src: string, dest: string, versionId?: string, storage?: string, destStorage?: string) : Promise<{ response: http.IncomingMessage; body: AsposeResponse; }> {
- const localVarPath = this.basePath + '/storage/file';
- let localVarQueryParameters: any = {};
- let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders);
- let localVarFormParams: any = {};
-
- // verify required parameter 'src' is not null or undefined
- if (src === null || src === undefined) {
- throw new Error('Required parameter src was null or undefined when calling postMoveFile.');
- }
-
- // verify required parameter 'dest' is not null or undefined
- if (dest === null || dest === undefined) {
- throw new Error('Required parameter dest was null or undefined when calling postMoveFile.');
- }
-
- if (src !== undefined && null !== src) {
- localVarQueryParameters['src'] = ObjectSerializer.serialize(src, "string");
- }
-
- if (dest !== undefined && null !== dest) {
- localVarQueryParameters['dest'] = ObjectSerializer.serialize(dest, "string");
- }
-
- if (versionId !== undefined && null !== versionId) {
- localVarQueryParameters['versionId'] = ObjectSerializer.serialize(versionId, "string");
- }
-
- if (storage !== undefined && null !== storage) {
- localVarQueryParameters['storage'] = ObjectSerializer.serialize(storage, "string");
- }
-
- if (destStorage !== undefined && null !== destStorage) {
- localVarQueryParameters['destStorage'] = ObjectSerializer.serialize(destStorage, "string");
- }
-
-
- let localVarUseFormData = false;
- let fileData = null;
- let localVarRequestOptions: localVarRequest.Options = {
- method: 'POST',
- qs: localVarQueryParameters,
- headers: localVarHeaderParams,
- uri: localVarPath,
- useQuerystring: this._useQuerystring,
- json: true,
- };
-
- if (Object.keys(localVarFormParams).length) {
- if (localVarUseFormData) {
- (localVarRequestOptions).formData = localVarFormParams;
- } else {
- localVarRequestOptions.form = localVarFormParams;
- }
- }
- const response = await invokeApiMethod(localVarRequestOptions, this.configuration, false, fileData);
- const result = ObjectSerializer.deserialize(response.body, "AsposeResponse");
- return Promise.resolve({body: result, response});
- }
-
-
- /**
- *
- * @summary Move a specific folder
- * @param src Source folder path e.g. /Folder1
- * @param dest Destination folder path e.g. /Folder2
- * @param storage User's source storage name
- * @param destStorage User's destination storage name
- */
- public async postMoveFolder (src: string, dest: string, storage?: string, destStorage?: string) : Promise<{ response: http.IncomingMessage; body: AsposeResponse; }> {
- const localVarPath = this.basePath + '/storage/folder';
- let localVarQueryParameters: any = {};
- let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders);
- let localVarFormParams: any = {};
-
- // verify required parameter 'src' is not null or undefined
- if (src === null || src === undefined) {
- throw new Error('Required parameter src was null or undefined when calling postMoveFolder.');
- }
-
- // verify required parameter 'dest' is not null or undefined
- if (dest === null || dest === undefined) {
- throw new Error('Required parameter dest was null or undefined when calling postMoveFolder.');
- }
-
- if (src !== undefined && null !== src) {
- localVarQueryParameters['src'] = ObjectSerializer.serialize(src, "string");
- }
-
- if (dest !== undefined && null !== dest) {
- localVarQueryParameters['dest'] = ObjectSerializer.serialize(dest, "string");
- }
-
- if (storage !== undefined && null !== storage) {
- localVarQueryParameters['storage'] = ObjectSerializer.serialize(storage, "string");
- }
-
- if (destStorage !== undefined && null !== destStorage) {
- localVarQueryParameters['destStorage'] = ObjectSerializer.serialize(destStorage, "string");
- }
-
+
- let localVarUseFormData = false;
- let fileData = null;
let localVarRequestOptions: localVarRequest.Options = {
method: 'POST',
qs: localVarQueryParameters,
@@ -10524,7 +10998,7 @@ export class PdfApi {
* @param storage The document storage.
* @param folder The document folder.
*/
- public async postOptimizeDocument (name: string, options?: OptimizeOptions, storage?: string, folder?: string) : Promise<{ response: http.IncomingMessage; body: AsposeResponse; }> {
+ public async postOptimizeDocument (name: string, options: OptimizeOptions, storage?: string, folder?: string) : Promise<{ response: http.IncomingMessage; body: AsposeResponse; }> {
const localVarPath = this.basePath + '/pdf/{name}/optimize'
.replace('{' + 'name' + '}', encodeURIComponent(String(name)));
let localVarQueryParameters: any = {};
@@ -10536,6 +11010,11 @@ export class PdfApi {
throw new Error('Required parameter name was null or undefined when calling postOptimizeDocument.');
}
+ // verify required parameter 'options' is not null or undefined
+ if (options === null || options === undefined) {
+ throw new Error('Required parameter options was null or undefined when calling postOptimizeDocument.');
+ }
+
if (storage !== undefined && null !== storage) {
localVarQueryParameters['storage'] = ObjectSerializer.serialize(storage, "string");
}
@@ -12290,11 +12769,11 @@ export class PdfApi {
*
* @summary Sign document.
* @param name The document name.
- * @param signature Signature object containing signature data.
+ * @param sign Signature object containing signature data.
* @param storage The document storage.
* @param folder The document folder.
*/
- public async postSignDocument (name: string, signature?: Signature, storage?: string, folder?: string) : Promise<{ response: http.IncomingMessage; body: AsposeResponse; }> {
+ public async postSignDocument (name: string, sign: Signature, storage?: string, folder?: string) : Promise<{ response: http.IncomingMessage; body: AsposeResponse; }> {
const localVarPath = this.basePath + '/pdf/{name}/sign'
.replace('{' + 'name' + '}', encodeURIComponent(String(name)));
let localVarQueryParameters: any = {};
@@ -12306,6 +12785,11 @@ export class PdfApi {
throw new Error('Required parameter name was null or undefined when calling postSignDocument.');
}
+ // verify required parameter 'sign' is not null or undefined
+ if (sign === null || sign === undefined) {
+ throw new Error('Required parameter sign was null or undefined when calling postSignDocument.');
+ }
+
if (storage !== undefined && null !== storage) {
localVarQueryParameters['storage'] = ObjectSerializer.serialize(storage, "string");
}
@@ -12324,7 +12808,7 @@ export class PdfApi {
uri: localVarPath,
useQuerystring: this._useQuerystring,
json: true,
- body: ObjectSerializer.serialize(signature, "Signature")
+ body: ObjectSerializer.serialize(sign, "Signature")
};
if (Object.keys(localVarFormParams).length) {
@@ -12345,11 +12829,11 @@ export class PdfApi {
* @summary Sign page.
* @param name The document name.
* @param pageNumber The page number.
- * @param signature Signature object containing signature data.
+ * @param sign Signature object containing signature data.
* @param storage The document storage.
* @param folder The document folder.
*/
- public async postSignPage (name: string, pageNumber: number, signature?: Signature, storage?: string, folder?: string) : Promise<{ response: http.IncomingMessage; body: AsposeResponse; }> {
+ public async postSignPage (name: string, pageNumber: number, sign: Signature, storage?: string, folder?: string) : Promise<{ response: http.IncomingMessage; body: AsposeResponse; }> {
const localVarPath = this.basePath + '/pdf/{name}/pages/{pageNumber}/sign'
.replace('{' + 'name' + '}', encodeURIComponent(String(name)))
.replace('{' + 'pageNumber' + '}', encodeURIComponent(String(pageNumber)));
@@ -12367,6 +12851,11 @@ export class PdfApi {
throw new Error('Required parameter pageNumber was null or undefined when calling postSignPage.');
}
+ // verify required parameter 'sign' is not null or undefined
+ if (sign === null || sign === undefined) {
+ throw new Error('Required parameter sign was null or undefined when calling postSignPage.');
+ }
+
if (storage !== undefined && null !== storage) {
localVarQueryParameters['storage'] = ObjectSerializer.serialize(storage, "string");
}
@@ -12385,7 +12874,7 @@ export class PdfApi {
uri: localVarPath,
useQuerystring: this._useQuerystring,
json: true,
- body: ObjectSerializer.serialize(signature, "Signature")
+ body: ObjectSerializer.serialize(sign, "Signature")
};
if (Object.keys(localVarFormParams).length) {
@@ -12529,7 +13018,7 @@ export class PdfApi {
* @param folder Document folder.
* @param storage The document storage.
*/
- public async putAddText (name: string, pageNumber: number, paragraph?: Paragraph, folder?: string, storage?: string) : Promise<{ response: http.IncomingMessage; body: AsposeResponse; }> {
+ public async putAddText (name: string, pageNumber: number, paragraph: Paragraph, folder?: string, storage?: string) : Promise<{ response: http.IncomingMessage; body: AsposeResponse; }> {
const localVarPath = this.basePath + '/pdf/{name}/pages/{pageNumber}/text'
.replace('{' + 'name' + '}', encodeURIComponent(String(name)))
.replace('{' + 'pageNumber' + '}', encodeURIComponent(String(pageNumber)));
@@ -12547,6 +13036,11 @@ export class PdfApi {
throw new Error('Required parameter pageNumber was null or undefined when calling putAddText.');
}
+ // verify required parameter 'paragraph' is not null or undefined
+ if (paragraph === null || paragraph === undefined) {
+ throw new Error('Required parameter paragraph was null or undefined when calling putAddText.');
+ }
+
if (folder !== undefined && null !== folder) {
localVarQueryParameters['folder'] = ObjectSerializer.serialize(folder, "string");
}
@@ -12648,6 +13142,72 @@ export class PdfApi {
}
+ /**
+ *
+ * @summary Update document bookmark.
+ * @param name The document name.
+ * @param bookmarkPath The bookmark path.
+ * @param bookmark The bookmark.
+ * @param folder The document folder.
+ * @param storage The document storage.
+ */
+ public async putBookmark (name: string, bookmarkPath: string, bookmark: Bookmark, folder?: string, storage?: string) : Promise<{ response: http.IncomingMessage; body: BookmarkResponse; }> {
+ const localVarPath = this.basePath + '/pdf/{name}/bookmarks/bookmark/{bookmarkPath}'
+ .replace('{' + 'name' + '}', encodeURIComponent(String(name)))
+ .replace('{' + 'bookmarkPath' + '}', encodeURIComponent(String(bookmarkPath)));
+ let localVarQueryParameters: any = {};
+ let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders);
+ let localVarFormParams: any = {};
+
+ // verify required parameter 'name' is not null or undefined
+ if (name === null || name === undefined) {
+ throw new Error('Required parameter name was null or undefined when calling putBookmark.');
+ }
+
+ // verify required parameter 'bookmarkPath' is not null or undefined
+ if (bookmarkPath === null || bookmarkPath === undefined) {
+ throw new Error('Required parameter bookmarkPath was null or undefined when calling putBookmark.');
+ }
+
+ // verify required parameter 'bookmark' is not null or undefined
+ if (bookmark === null || bookmark === undefined) {
+ throw new Error('Required parameter bookmark was null or undefined when calling putBookmark.');
+ }
+
+ if (folder !== undefined && null !== folder) {
+ localVarQueryParameters['folder'] = ObjectSerializer.serialize(folder, "string");
+ }
+
+ if (storage !== undefined && null !== storage) {
+ localVarQueryParameters['storage'] = ObjectSerializer.serialize(storage, "string");
+ }
+
+
+ let localVarUseFormData = false;
+ let fileData = null;
+ let localVarRequestOptions: localVarRequest.Options = {
+ method: 'PUT',
+ qs: localVarQueryParameters,
+ headers: localVarHeaderParams,
+ uri: localVarPath,
+ useQuerystring: this._useQuerystring,
+ json: true,
+ body: ObjectSerializer.serialize(bookmark, "Bookmark")
+ };
+
+ if (Object.keys(localVarFormParams).length) {
+ if (localVarUseFormData) {
+ (localVarRequestOptions).formData = localVarFormParams;
+ } else {
+ localVarRequestOptions.form = localVarFormParams;
+ }
+ }
+ const response = await invokeApiMethod(localVarRequestOptions, this.configuration, false, fileData);
+ const result = ObjectSerializer.deserialize(response.body, "BookmarkResponse");
+ return Promise.resolve({body: result, response});
+ }
+
+
/**
*
* @summary Replace document caret annotation
@@ -12868,74 +13428,6 @@ export class PdfApi {
}
- /**
- *
- * @summary Upload a specific file
- * @param path Path where to upload including filename and extension e.g. /file.ext or /Folder 1/file.ext
- * @param file File to upload
- * @param versionId Source file's version
- * @param storage User's storage name
- */
- public async putCreate (path: string, file: Buffer, versionId?: string, storage?: string) : Promise<{ response: http.IncomingMessage; body: AsposeResponse; }> {
- const localVarPath = this.basePath + '/storage/file';
- let localVarQueryParameters: any = {};
- let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders);
- let localVarFormParams: any = {};
-
- // verify required parameter 'path' is not null or undefined
- if (path === null || path === undefined) {
- throw new Error('Required parameter path was null or undefined when calling putCreate.');
- }
-
- // verify required parameter 'file' is not null or undefined
- if (file === null || file === undefined) {
- throw new Error('Required parameter file was null or undefined when calling putCreate.');
- }
-
- if (path !== undefined && null !== path) {
- localVarQueryParameters['path'] = ObjectSerializer.serialize(path, "string");
- }
-
- if (versionId !== undefined && null !== versionId) {
- localVarQueryParameters['versionId'] = ObjectSerializer.serialize(versionId, "string");
- }
-
- if (storage !== undefined && null !== storage) {
- localVarQueryParameters['storage'] = ObjectSerializer.serialize(storage, "string");
- }
-
-
- let localVarUseFormData = false;
- let fileData = null;
- if (file !== undefined) {
- localVarFormParams['File'] = file;
- fileData = file;
- }
- localVarUseFormData = true;
-
-
- let localVarRequestOptions: localVarRequest.Options = {
- method: 'PUT',
- qs: localVarQueryParameters,
- headers: localVarHeaderParams,
- uri: localVarPath,
- useQuerystring: this._useQuerystring,
- json: true,
- };
-
- if (Object.keys(localVarFormParams).length) {
- if (localVarUseFormData) {
- (localVarRequestOptions).formData = localVarFormParams;
- } else {
- localVarRequestOptions.form = localVarFormParams;
- }
- }
- const response = await invokeApiMethod(localVarRequestOptions, this.configuration, false, fileData);
- const result = ObjectSerializer.deserialize(response.body, "AsposeResponse");
- return Promise.resolve({body: result, response});
- }
-
-
/**
*
* @summary Create empty document.
@@ -12988,61 +13480,6 @@ export class PdfApi {
}
- /**
- *
- * @summary Create the folder
- * @param path Target folder's path e.g. Folder1/Folder2/. The folders will be created recursively
- * @param storage User's source storage name
- * @param destStorage User's destination storage name
- */
- public async putCreateFolder (path: string, storage?: string, destStorage?: string) : Promise<{ response: http.IncomingMessage; body: AsposeResponse; }> {
- const localVarPath = this.basePath + '/storage/folder';
- let localVarQueryParameters: any = {};
- let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders);
- let localVarFormParams: any = {};
-
- // verify required parameter 'path' is not null or undefined
- if (path === null || path === undefined) {
- throw new Error('Required parameter path was null or undefined when calling putCreateFolder.');
- }
-
- if (path !== undefined && null !== path) {
- localVarQueryParameters['path'] = ObjectSerializer.serialize(path, "string");
- }
-
- if (storage !== undefined && null !== storage) {
- localVarQueryParameters['storage'] = ObjectSerializer.serialize(storage, "string");
- }
-
- if (destStorage !== undefined && null !== destStorage) {
- localVarQueryParameters['destStorage'] = ObjectSerializer.serialize(destStorage, "string");
- }
-
-
- let localVarUseFormData = false;
- let fileData = null;
- let localVarRequestOptions: localVarRequest.Options = {
- method: 'PUT',
- qs: localVarQueryParameters,
- headers: localVarHeaderParams,
- uri: localVarPath,
- useQuerystring: this._useQuerystring,
- json: true,
- };
-
- if (Object.keys(localVarFormParams).length) {
- if (localVarUseFormData) {
- (localVarRequestOptions).formData = localVarFormParams;
- } else {
- localVarRequestOptions.form = localVarFormParams;
- }
- }
- const response = await invokeApiMethod(localVarRequestOptions, this.configuration, false, fileData);
- const result = ObjectSerializer.deserialize(response.body, "AsposeResponse");
- return Promise.resolve({body: result, response});
- }
-
-
/**
*
* @summary Decrypt document from content.
@@ -13117,8 +13554,8 @@ export class PdfApi {
* @param outPath Full resulting filename (ex. /folder1/folder2/result.doc)
* @param userPassword User password (encrypted Base64).
* @param ownerPassword Owner password (encrypted Base64).
- * @param cryptoAlgorithm Cryptographic algorithm, see for details.
- * @param permissionsFlags Array of document permissions, see for details.
+ * @param cryptoAlgorithm Cryptographic algorithm, see CryptoAlgorithm for details.
+ * @param permissionsFlags Array of document permissions, see PermissionsFlags for details.
* @param usePdf20 Support for revision 6 (Extension 8).
* @param storage The document storage.
* @param file A file to be encrypted.
@@ -13987,7 +14424,7 @@ export class PdfApi {
*
* @summary Convert image file (located on storage) to PDF format and upload resulting file to storage.
* @param name The document name.
- * @param imageTemplates Image templates
+ * @param imageTemplates ImageTemplatesRequestImage templates
* @param dstFolder The destination document folder.
* @param storage The document storage.
*/
@@ -14123,7 +14560,7 @@ export class PdfApi {
* @param pageNumber The page number.
* @param width The converted image width.
* @param height The converted image height.
- * @param storage
+ * @param storage The document storage.
* @param folder The document folder.
* @param destFolder The document folder.
*/
@@ -14602,11 +15039,11 @@ export class PdfApi {
*
* @summary Merge a list of documents.
* @param name Resulting documen name.
- * @param mergeDocuments with a list of documents.
+ * @param mergeDocuments MergeDocuments with a list of documents.
* @param storage Resulting document storage.
* @param folder Resulting document folder.
*/
- public async putMergeDocuments (name: string, mergeDocuments?: MergeDocuments, storage?: string, folder?: string) : Promise<{ response: http.IncomingMessage; body: DocumentResponse; }> {
+ public async putMergeDocuments (name: string, mergeDocuments: MergeDocuments, storage?: string, folder?: string) : Promise<{ response: http.IncomingMessage; body: DocumentResponse; }> {
const localVarPath = this.basePath + '/pdf/{name}/merge'
.replace('{' + 'name' + '}', encodeURIComponent(String(name)));
let localVarQueryParameters: any = {};
@@ -14618,6 +15055,11 @@ export class PdfApi {
throw new Error('Required parameter name was null or undefined when calling putMergeDocuments.');
}
+ // verify required parameter 'mergeDocuments' is not null or undefined
+ if (mergeDocuments === null || mergeDocuments === undefined) {
+ throw new Error('Required parameter mergeDocuments was null or undefined when calling putMergeDocuments.');
+ }
+
if (storage !== undefined && null !== storage) {
localVarQueryParameters['storage'] = ObjectSerializer.serialize(storage, "string");
}
@@ -14785,7 +15227,7 @@ export class PdfApi {
* @summary Add page stamp.
* @param name The document name.
* @param pageNumber The page number.
- * @param stamp with data.
+ * @param stamp Stamp with data.
* @param storage The document storage.
* @param folder The document folder.
*/
@@ -17794,11 +18236,11 @@ export class PdfApi {
*
* @summary Update privilege document.
* @param name The document name.
- * @param privileges Document privileges.
+ * @param privileges Document privileges. DocumentPrivilege
* @param storage The document storage.
* @param folder The document folder.
*/
- public async putPrivileges (name: string, privileges?: DocumentPrivilege, storage?: string, folder?: string) : Promise<{ response: http.IncomingMessage; body: AsposeResponse; }> {
+ public async putPrivileges (name: string, privileges: DocumentPrivilege, storage?: string, folder?: string) : Promise<{ response: http.IncomingMessage; body: AsposeResponse; }> {
const localVarPath = this.basePath + '/pdf/{name}/privileges'
.replace('{' + 'name' + '}', encodeURIComponent(String(name)));
let localVarQueryParameters: any = {};
@@ -17810,6 +18252,11 @@ export class PdfApi {
throw new Error('Required parameter name was null or undefined when calling putPrivileges.');
}
+ // verify required parameter 'privileges' is not null or undefined
+ if (privileges === null || privileges === undefined) {
+ throw new Error('Required parameter privileges was null or undefined when calling putPrivileges.');
+ }
+
if (storage !== undefined && null !== storage) {
localVarQueryParameters['storage'] = ObjectSerializer.serialize(storage, "string");
}
@@ -19078,11 +19525,11 @@ export class PdfApi {
* @summary Update field.
* @param name The document name.
* @param fieldName The name of a field to be updated.
- * @param field with the field data.
+ * @param field Field with the field data.
* @param storage The document storage.
* @param folder The document folder.
*/
- public async putUpdateField (name: string, fieldName: string, field?: Field, storage?: string, folder?: string) : Promise<{ response: http.IncomingMessage; body: FieldResponse; }> {
+ public async putUpdateField (name: string, fieldName: string, field: Field, storage?: string, folder?: string) : Promise<{ response: http.IncomingMessage; body: FieldResponse; }> {
const localVarPath = this.basePath + '/pdf/{name}/fields/{fieldName}'
.replace('{' + 'name' + '}', encodeURIComponent(String(name)))
.replace('{' + 'fieldName' + '}', encodeURIComponent(String(fieldName)));
@@ -19100,6 +19547,11 @@ export class PdfApi {
throw new Error('Required parameter fieldName was null or undefined when calling putUpdateField.');
}
+ // verify required parameter 'field' is not null or undefined
+ if (field === null || field === undefined) {
+ throw new Error('Required parameter field was null or undefined when calling putUpdateField.');
+ }
+
if (storage !== undefined && null !== storage) {
localVarQueryParameters['storage'] = ObjectSerializer.serialize(storage, "string");
}
@@ -19138,11 +19590,11 @@ export class PdfApi {
*
* @summary Update fields.
* @param name The document name.
- * @param fields with the fields data.
+ * @param fields Fields with the fields data.
* @param storage The document storage.
* @param folder The document folder.
*/
- public async putUpdateFields (name: string, fields?: Fields, storage?: string, folder?: string) : Promise<{ response: http.IncomingMessage; body: FieldsResponse; }> {
+ public async putUpdateFields (name: string, fields: Fields, storage?: string, folder?: string) : Promise<{ response: http.IncomingMessage; body: FieldsResponse; }> {
const localVarPath = this.basePath + '/pdf/{name}/fields'
.replace('{' + 'name' + '}', encodeURIComponent(String(name)));
let localVarQueryParameters: any = {};
@@ -19154,6 +19606,11 @@ export class PdfApi {
throw new Error('Required parameter name was null or undefined when calling putUpdateFields.');
}
+ // verify required parameter 'fields' is not null or undefined
+ if (fields === null || fields === undefined) {
+ throw new Error('Required parameter fields was null or undefined when calling putUpdateFields.');
+ }
+
if (storage !== undefined && null !== storage) {
localVarQueryParameters['storage'] = ObjectSerializer.serialize(storage, "string");
}
@@ -19594,5 +20051,107 @@ export class PdfApi {
const result = ObjectSerializer.deserialize(response.body, "AsposeResponse");
return Promise.resolve({body: result, response});
}
+
+
+ /**
+ *
+ * @summary Check if storage exists
+ * @param storageName Storage name
+ */
+ public async storageExists (storageName: string) : Promise<{ response: http.IncomingMessage; body: StorageExist; }> {
+ const localVarPath = this.basePath + '/pdf/storage/{storageName}/exist'
+ .replace('{' + 'storageName' + '}', encodeURIComponent(String(storageName)));
+ let localVarQueryParameters: any = {};
+ let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders);
+ let localVarFormParams: any = {};
+
+ // verify required parameter 'storageName' is not null or undefined
+ if (storageName === null || storageName === undefined) {
+ throw new Error('Required parameter storageName was null or undefined when calling storageExists.');
+ }
+
+
+ let localVarUseFormData = false;
+ let fileData = null;
+ let localVarRequestOptions: localVarRequest.Options = {
+ method: 'GET',
+ qs: localVarQueryParameters,
+ headers: localVarHeaderParams,
+ uri: localVarPath,
+ useQuerystring: this._useQuerystring,
+ json: true,
+ };
+
+ if (Object.keys(localVarFormParams).length) {
+ if (localVarUseFormData) {
+ (localVarRequestOptions).formData = localVarFormParams;
+ } else {
+ localVarRequestOptions.form = localVarFormParams;
+ }
+ }
+ const response = await invokeApiMethod(localVarRequestOptions, this.configuration, false, fileData);
+ const result = ObjectSerializer.deserialize(response.body, "StorageExist");
+ return Promise.resolve({body: result, response});
+ }
+
+
+ /**
+ *
+ * @summary Upload file
+ * @param path Path where to upload including filename and extension e.g. /file.ext or /Folder 1/file.ext If the content is multipart and path does not contains the file name it tries to get them from filename parameter from Content-Disposition header.
+ * @param file File to upload
+ * @param storageName Storage name
+ */
+ public async uploadFile (path: string, file: Buffer, storageName?: string) : Promise<{ response: http.IncomingMessage; body: FilesUploadResult; }> {
+ const localVarPath = this.basePath + '/pdf/storage/file/{path}'
+ .replace('{' + 'path' + '}', encodeURIComponent(String(path)));
+ let localVarQueryParameters: any = {};
+ let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders);
+ let localVarFormParams: any = {};
+
+ // verify required parameter 'path' is not null or undefined
+ if (path === null || path === undefined) {
+ throw new Error('Required parameter path was null or undefined when calling uploadFile.');
+ }
+
+ // verify required parameter 'file' is not null or undefined
+ if (file === null || file === undefined) {
+ throw new Error('Required parameter file was null or undefined when calling uploadFile.');
+ }
+
+ if (storageName !== undefined && null !== storageName) {
+ localVarQueryParameters['storageName'] = ObjectSerializer.serialize(storageName, "string");
+ }
+
+
+ let localVarUseFormData = false;
+ let fileData = null;
+ if (file !== undefined) {
+ localVarFormParams['File'] = file;
+ fileData = file;
+ }
+ localVarUseFormData = true;
+
+
+ let localVarRequestOptions: localVarRequest.Options = {
+ method: 'PUT',
+ qs: localVarQueryParameters,
+ headers: localVarHeaderParams,
+ uri: localVarPath,
+ useQuerystring: this._useQuerystring,
+ json: true,
+ };
+
+ if (Object.keys(localVarFormParams).length) {
+ if (localVarUseFormData) {
+ (localVarRequestOptions).formData = localVarFormParams;
+ } else {
+ localVarRequestOptions.form = localVarFormParams;
+ }
+ }
+ const response = await invokeApiMethod(localVarRequestOptions, this.configuration, false, fileData);
+ const result = ObjectSerializer.deserialize(response.body, "FilesUploadResult");
+ return Promise.resolve({body: result, response});
+ }
}
diff --git a/src/auth.ts b/src/auth.ts
index 743dcc7f..c08e60a4 100644
--- a/src/auth.ts
+++ b/src/auth.ts
@@ -43,7 +43,6 @@ export interface IAuthentication {
*/
export class OAuth implements IAuthentication {
private accessToken: string;
- private refreshToken: string;
/**
* Apply authentication settings to header and query params.
@@ -64,14 +63,15 @@ export class OAuth implements IAuthentication {
* Handle 401 response.
*/
public async handle401response(configuration: Configuration) {
- await this._refreshToken(configuration);
+ await this._requestToken(configuration);
}
private async _requestToken(configuration: Configuration): Promise {
const requestOptions: request.Options = {
method: "POST",
json: true,
- uri: configuration.baseUrl.replace("/v2.0", "") + "/oauth2/token",
+ uri: configuration.baseUrl.replace("/v3.0", "") + "/connect/token",
+ headers: {'Content-Type': 'application/x-www-form-urlencoded'},
form: {
grant_type: "client_credentials",
client_id: configuration.appSID,
@@ -80,29 +80,7 @@ export class OAuth implements IAuthentication {
};
const response = await invokeApiMethod(requestOptions, configuration, true);
- //console.log("_requestToken====================================================");
- //console.log(response);
this.accessToken = response.body.access_token;
- this.refreshToken = response.body.refresh_token;
- //console.log("config====================================");
- //console.log(this);
- return Promise.resolve();
- }
-
- private async _refreshToken(configuration: Configuration): Promise {
- const requestOptions: request.Options = {
- method: "POST",
- json: true,
- uri: configuration.baseUrl.replace("/v2.0", "") + "/oauth2/token",
- form: {
- grant_type: "refresh_token",
- refresh_token: this.refreshToken,
- },
- };
-
- const response = await invokeApiMethod(requestOptions, configuration, true);
- this.accessToken = response.body.access_token;
- this.refreshToken = response.body.refresh_token;
return Promise.resolve();
}
}
diff --git a/src/models/bookmark.ts b/src/models/bookmark.ts
new file mode 100644
index 00000000..7494aee1
--- /dev/null
+++ b/src/models/bookmark.ts
@@ -0,0 +1,184 @@
+ /**
+ *
+ * Copyright (c) 2019 Aspose.PDF Cloud
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software.
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ *
+ */
+
+import { Bookmarks } from "./bookmarks";
+import { Color } from "./color";
+import { LinkElement } from "./linkElement";
+
+/**
+* Provides link to bookmark.
+*/
+export class Bookmark extends LinkElement {
+ /**
+ * Get the Title;
+ */
+ 'title': string;
+ /**
+ * Is bookmark italic.
+ */
+ 'italic': boolean;
+ /**
+ * Is bookmark bold.
+ */
+ 'bold': boolean;
+ /**
+ * Get the color
+ */
+ 'color': Color;
+ /**
+ * Gets or sets the action bound with the bookmark. If PageNumber is presented the action can not be specified. The action type includes: \"GoTo\", \"GoToR\", \"Launch\", \"Named\".
+ */
+ 'action': string;
+ /**
+ * Gets or sets bookmark's hierarchy level.
+ */
+ 'level': number;
+ /**
+ * Gets or sets bookmark's destination page. Required if action is set as string.Empty.
+ */
+ 'destination': string;
+ /**
+ * Gets or sets the type of display bookmark's destination page.
+ */
+ 'pageDisplay': string;
+ /**
+ * Gets or sets the bottom coordinate of page display.
+ */
+ 'pageDisplayBottom': number;
+ /**
+ * Gets or sets the left coordinate of page display.
+ */
+ 'pageDisplayLeft': number;
+ /**
+ * Gets or sets the right coordinate of page display.
+ */
+ 'pageDisplayRight': number;
+ /**
+ * Gets or sets the top coordinate of page display.
+ */
+ 'pageDisplayTop': number;
+ /**
+ * Gets or sets the zoom factor of page display.
+ */
+ 'pageDisplayZoom': number;
+ /**
+ * Gets or sets the number of bookmark's destination page.
+ */
+ 'pageNumber': number;
+ /**
+ * Gets or sets the file (path) which is required for \"GoToR\" action of bookmark.
+ */
+ 'remoteFile': string;
+ /**
+ * The children bookmarks.
+ */
+ 'bookmarks': Bookmarks;
+
+ static discriminator = undefined;
+
+ static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
+ {
+ "name": "title",
+ "baseName": "Title",
+ "type": "string"
+ },
+ {
+ "name": "italic",
+ "baseName": "Italic",
+ "type": "boolean"
+ },
+ {
+ "name": "bold",
+ "baseName": "Bold",
+ "type": "boolean"
+ },
+ {
+ "name": "color",
+ "baseName": "Color",
+ "type": "Color"
+ },
+ {
+ "name": "action",
+ "baseName": "Action",
+ "type": "string"
+ },
+ {
+ "name": "level",
+ "baseName": "Level",
+ "type": "number"
+ },
+ {
+ "name": "destination",
+ "baseName": "Destination",
+ "type": "string"
+ },
+ {
+ "name": "pageDisplay",
+ "baseName": "PageDisplay",
+ "type": "string"
+ },
+ {
+ "name": "pageDisplayBottom",
+ "baseName": "PageDisplay_Bottom",
+ "type": "number"
+ },
+ {
+ "name": "pageDisplayLeft",
+ "baseName": "PageDisplay_Left",
+ "type": "number"
+ },
+ {
+ "name": "pageDisplayRight",
+ "baseName": "PageDisplay_Right",
+ "type": "number"
+ },
+ {
+ "name": "pageDisplayTop",
+ "baseName": "PageDisplay_Top",
+ "type": "number"
+ },
+ {
+ "name": "pageDisplayZoom",
+ "baseName": "PageDisplay_Zoom",
+ "type": "number"
+ },
+ {
+ "name": "pageNumber",
+ "baseName": "PageNumber",
+ "type": "number"
+ },
+ {
+ "name": "remoteFile",
+ "baseName": "RemoteFile",
+ "type": "string"
+ },
+ {
+ "name": "bookmarks",
+ "baseName": "Bookmarks",
+ "type": "Bookmarks"
+ } ];
+
+ static getAttributeTypeMap() {
+ return super.getAttributeTypeMap().concat(Bookmark.attributeTypeMap);
+ }
+}
+
+
diff --git a/src/models/bookmarkResponse.ts b/src/models/bookmarkResponse.ts
new file mode 100644
index 00000000..ac93ff60
--- /dev/null
+++ b/src/models/bookmarkResponse.ts
@@ -0,0 +1,48 @@
+ /**
+ *
+ * Copyright (c) 2019 Aspose.PDF Cloud
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software.
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ *
+ */
+
+import { Bookmark } from "./bookmark";
+import { AsposeResponse } from "./asposeResponse";
+
+/**
+* Represents response containing single bookmark info
+*/
+export class BookmarkResponse extends AsposeResponse {
+ /**
+ * Bookmark object
+ */
+ 'bookmark': Bookmark;
+
+ static discriminator = undefined;
+
+ static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
+ {
+ "name": "bookmark",
+ "baseName": "Bookmark",
+ "type": "Bookmark"
+ } ];
+
+ static getAttributeTypeMap() {
+ return super.getAttributeTypeMap().concat(BookmarkResponse.attributeTypeMap);
+ }
+}
+
+
diff --git a/src/models/bookmarks.ts b/src/models/bookmarks.ts
new file mode 100644
index 00000000..333b6b52
--- /dev/null
+++ b/src/models/bookmarks.ts
@@ -0,0 +1,48 @@
+ /**
+ *
+ * Copyright (c) 2019 Aspose.PDF Cloud
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software.
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ *
+ */
+
+import { Bookmark } from "./bookmark";
+import { LinkElement } from "./linkElement";
+
+/**
+* Represents list of bookmark.
+*/
+export class Bookmarks extends LinkElement {
+ /**
+ * List of bookmarks.
+ */
+ 'list': Array;
+
+ static discriminator = undefined;
+
+ static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
+ {
+ "name": "list",
+ "baseName": "List",
+ "type": "Array"
+ } ];
+
+ static getAttributeTypeMap() {
+ return super.getAttributeTypeMap().concat(Bookmarks.attributeTypeMap);
+ }
+}
+
+
diff --git a/src/models/bookmarksResponse.ts b/src/models/bookmarksResponse.ts
new file mode 100644
index 00000000..33b3ebd9
--- /dev/null
+++ b/src/models/bookmarksResponse.ts
@@ -0,0 +1,48 @@
+ /**
+ *
+ * Copyright (c) 2019 Aspose.PDF Cloud
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software.
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ *
+ */
+
+import { Bookmarks } from "./bookmarks";
+import { AsposeResponse } from "./asposeResponse";
+
+/**
+* Represents response containing multiple bookmarks info
+*/
+export class BookmarksResponse extends AsposeResponse {
+ /**
+ * Bookmarks object
+ */
+ 'bookmarks': Bookmarks;
+
+ static discriminator = undefined;
+
+ static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
+ {
+ "name": "bookmarks",
+ "baseName": "Bookmarks",
+ "type": "Bookmarks"
+ } ];
+
+ static getAttributeTypeMap() {
+ return super.getAttributeTypeMap().concat(BookmarksResponse.attributeTypeMap);
+ }
+}
+
+
diff --git a/src/models/cellRecognized.ts b/src/models/cellRecognized.ts
index b14e3d15..230bcfcb 100644
--- a/src/models/cellRecognized.ts
+++ b/src/models/cellRecognized.ts
@@ -24,7 +24,7 @@ import { TextRects } from "./textRects";
export class CellRecognized {
/**
- * Gets collection of objects that describes text containing in the cell
+ * Gets collection of TextRect objects that describes text containing in the cell
*/
'textRects': TextRects;
/**
diff --git a/src/models/discUsage.ts b/src/models/discUsage.ts
index 661c29c9..e961cea1 100644
--- a/src/models/discUsage.ts
+++ b/src/models/discUsage.ts
@@ -20,8 +20,17 @@
*/
+/**
+* Class for disc space information.
+*/
export class DiscUsage {
+ /**
+ * Application used disc space.
+ */
'usedSize': number;
+ /**
+ * Total disc space.
+ */
'totalSize': number;
static discriminator = undefined;
diff --git a/src/models/documentPrivilege.ts b/src/models/documentPrivilege.ts
index dd1f4397..c4f99afd 100644
--- a/src/models/documentPrivilege.ts
+++ b/src/models/documentPrivilege.ts
@@ -21,7 +21,7 @@
/**
-* Represents the privileges for accessing Pdf file./>.
+* Represents the privileges for accessing Pdf file.
*/
export class DocumentPrivilege {
/**
diff --git a/src/models/errorDetails.ts b/src/models/errorDetails.ts
new file mode 100644
index 00000000..00031780
--- /dev/null
+++ b/src/models/errorDetails.ts
@@ -0,0 +1,55 @@
+ /**
+ *
+ * Copyright (c) 2019 Aspose.PDF Cloud
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software.
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ *
+ */
+
+
+/**
+* The error details
+*/
+export class ErrorDetails {
+ /**
+ * The request id
+ */
+ 'requestId': string;
+ /**
+ * Date
+ */
+ 'date': Date;
+
+ static discriminator = undefined;
+
+ static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
+ {
+ "name": "requestId",
+ "baseName": "RequestId",
+ "type": "string"
+ },
+ {
+ "name": "date",
+ "baseName": "Date",
+ "type": "Date"
+ } ];
+
+ static getAttributeTypeMap() {
+ return ErrorDetails.attributeTypeMap;
+ }
+}
+
+
diff --git a/src/models/fileVersion.ts b/src/models/fileVersion.ts
index 39af8899..c3aa7e27 100644
--- a/src/models/fileVersion.ts
+++ b/src/models/fileVersion.ts
@@ -19,10 +19,19 @@
*
*/
-import { File } from "./file";
+import { StorageFile } from "./storageFile";
-export class FileVersion extends File {
+/**
+* File Version
+*/
+export class FileVersion extends StorageFile {
+ /**
+ * File Version ID.
+ */
'versionId': string;
+ /**
+ * Specifies whether the file is (true) or is not (false) the latest version of an file.
+ */
'isLatest': boolean;
static discriminator = undefined;
diff --git a/src/models/fileVersions.ts b/src/models/fileVersions.ts
new file mode 100644
index 00000000..7a627462
--- /dev/null
+++ b/src/models/fileVersions.ts
@@ -0,0 +1,47 @@
+ /**
+ *
+ * Copyright (c) 2019 Aspose.PDF Cloud
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software.
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ *
+ */
+
+import { FileVersion } from "./fileVersion";
+
+/**
+* File versions FileVersion.
+*/
+export class FileVersions {
+ /**
+ * File versions FileVersion.
+ */
+ 'value': Array;
+
+ static discriminator = undefined;
+
+ static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
+ {
+ "name": "value",
+ "baseName": "Value",
+ "type": "Array"
+ } ];
+
+ static getAttributeTypeMap() {
+ return FileVersions.attributeTypeMap;
+ }
+}
+
+
diff --git a/src/models/filesList.ts b/src/models/filesList.ts
new file mode 100644
index 00000000..ae59ed9c
--- /dev/null
+++ b/src/models/filesList.ts
@@ -0,0 +1,47 @@
+ /**
+ *
+ * Copyright (c) 2019 Aspose.PDF Cloud
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software.
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ *
+ */
+
+import { StorageFile } from "./storageFile";
+
+/**
+* Files list
+*/
+export class FilesList {
+ /**
+ * Files and folders contained by folder StorageFile.
+ */
+ 'value': Array;
+
+ static discriminator = undefined;
+
+ static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
+ {
+ "name": "value",
+ "baseName": "Value",
+ "type": "Array"
+ } ];
+
+ static getAttributeTypeMap() {
+ return FilesList.attributeTypeMap;
+ }
+}
+
+
diff --git a/src/models/filesUploadResult.ts b/src/models/filesUploadResult.ts
new file mode 100644
index 00000000..4307e9a9
--- /dev/null
+++ b/src/models/filesUploadResult.ts
@@ -0,0 +1,56 @@
+ /**
+ *
+ * Copyright (c) 2019 Aspose.PDF Cloud
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software.
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ *
+ */
+
+import { ModelError } from "./modelError";
+
+/**
+* File upload result
+*/
+export class FilesUploadResult {
+ /**
+ * List of uploaded file names
+ */
+ 'uploaded': Array;
+ /**
+ * List of errors.
+ */
+ 'errors': Array;
+
+ static discriminator = undefined;
+
+ static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
+ {
+ "name": "uploaded",
+ "baseName": "Uploaded",
+ "type": "Array"
+ },
+ {
+ "name": "errors",
+ "baseName": "Errors",
+ "type": "Array"
+ } ];
+
+ static getAttributeTypeMap() {
+ return FilesUploadResult.attributeTypeMap;
+ }
+}
+
+
diff --git a/src/models/graphInfo.ts b/src/models/graphInfo.ts
index ddd86c30..924e08f9 100644
--- a/src/models/graphInfo.ts
+++ b/src/models/graphInfo.ts
@@ -30,7 +30,7 @@ export class GraphInfo {
*/
'lineWidth': number;
/**
- * Gets or sets a object that indicates the color of the graph.
+ * Gets or sets a Color object that indicates the color of the graph.
*/
'color': Color;
/**
@@ -42,7 +42,7 @@ export class GraphInfo {
*/
'dashPhase': number;
/**
- * Gets or sets a object that indicates the fill color of the graph.
+ * Gets or sets a Color object that indicates the fill color of the graph.
*/
'fillColor': Color;
/**
diff --git a/src/models/modelError.ts b/src/models/modelError.ts
new file mode 100644
index 00000000..3e1a31c2
--- /dev/null
+++ b/src/models/modelError.ts
@@ -0,0 +1,74 @@
+ /**
+ *
+ * Copyright (c) 2019 Aspose.PDF Cloud
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software.
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ *
+ */
+
+import { ErrorDetails } from "./errorDetails";
+
+/**
+* Error
+*/
+export class ModelError {
+ /**
+ * Code
+ */
+ 'code': string;
+ /**
+ * Message
+ */
+ 'message': string;
+ /**
+ * Description
+ */
+ 'description': string;
+ /**
+ * Inner Error
+ */
+ 'innerError': ErrorDetails;
+
+ static discriminator = undefined;
+
+ static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
+ {
+ "name": "code",
+ "baseName": "Code",
+ "type": "string"
+ },
+ {
+ "name": "message",
+ "baseName": "Message",
+ "type": "string"
+ },
+ {
+ "name": "description",
+ "baseName": "Description",
+ "type": "string"
+ },
+ {
+ "name": "innerError",
+ "baseName": "InnerError",
+ "type": "ErrorDetails"
+ } ];
+
+ static getAttributeTypeMap() {
+ return ModelError.attributeTypeMap;
+ }
+}
+
+
diff --git a/src/models/objectExist.ts b/src/models/objectExist.ts
new file mode 100644
index 00000000..a63429a4
--- /dev/null
+++ b/src/models/objectExist.ts
@@ -0,0 +1,55 @@
+ /**
+ *
+ * Copyright (c) 2019 Aspose.PDF Cloud
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software.
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ *
+ */
+
+
+/**
+* Object exists
+*/
+export class ObjectExist {
+ /**
+ * Indicates that the file or folder exists.
+ */
+ 'exists': boolean;
+ /**
+ * True if it is a folder, false if it is a file.
+ */
+ 'isFolder': boolean;
+
+ static discriminator = undefined;
+
+ static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
+ {
+ "name": "exists",
+ "baseName": "Exists",
+ "type": "boolean"
+ },
+ {
+ "name": "isFolder",
+ "baseName": "IsFolder",
+ "type": "boolean"
+ } ];
+
+ static getAttributeTypeMap() {
+ return ObjectExist.attributeTypeMap;
+ }
+}
+
+
diff --git a/src/models/signature.ts b/src/models/signature.ts
index 057f77da..662e55a1 100644
--- a/src/models/signature.ts
+++ b/src/models/signature.ts
@@ -55,7 +55,7 @@ export class Signature {
*/
'location': string;
/**
- * Gets or sets a value indicating whether this is visible. Supports only when signing particular page.
+ * Gets or sets a value indicating whether this Signature is visible. Supports only when signing particular page.
*/
'visible': boolean;
/**
diff --git a/src/models/stamp.ts b/src/models/stamp.ts
index 6650265c..dd9897b2 100644
--- a/src/models/stamp.ts
+++ b/src/models/stamp.ts
@@ -58,7 +58,7 @@ export class Stamp {
*/
'rightMargin': number;
/**
- * Sets or gets the rotation of stamp content according values. Note. This property is for set angles which are multiples of 90 degrees (0, 90, 180, 270 degrees). To set arbitrary angle use RotateAngle property. If angle set by ArbitraryAngle is not multiple of 90 then Rotate property returns Rotation.None.
+ * Sets or gets the rotation of stamp content according Rotation values. Note. This property is for set angles which are multiples of 90 degrees (0, 90, 180, 270 degrees). To set arbitrary angle use RotateAngle property. If angle set by ArbitraryAngle is not multiple of 90 then Rotate property returns Rotation.None.
*/
'rotate': Rotation;
/**
@@ -94,7 +94,7 @@ export class Stamp {
*/
'value': string;
/**
- * Gets text properties of the stamp. See for details.
+ * Gets text properties of the stamp. See TextState for details.
*/
'textState': TextState;
/**
diff --git a/src/models/stampBase.ts b/src/models/stampBase.ts
index 85e79491..38ba287b 100644
--- a/src/models/stampBase.ts
+++ b/src/models/stampBase.ts
@@ -40,7 +40,7 @@ export class StampBase extends LinkElement {
*/
'opacity': number;
/**
- * Sets or gets the rotation of stamp content according values. Note. This property is for set angles which are multiples of 90 degrees (0, 90, 180, 270 degrees). To set arbitrary angle use RotateAngle property. If angle set by ArbitraryAngle is not multiple of 90 then Rotate property returns Rotation.None.
+ * Sets or gets the rotation of stamp content according Rotation values. Note. This property is for set angles which are multiples of 90 degrees (0, 90, 180, 270 degrees). To set arbitrary angle use RotateAngle property. If angle set by ArbitraryAngle is not multiple of 90 then Rotate property returns Rotation.None.
*/
'rotate': Rotation;
/**
diff --git a/src/models/storageExist.ts b/src/models/storageExist.ts
new file mode 100644
index 00000000..a3568841
--- /dev/null
+++ b/src/models/storageExist.ts
@@ -0,0 +1,46 @@
+ /**
+ *
+ * Copyright (c) 2019 Aspose.PDF Cloud
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software.
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ *
+ */
+
+
+/**
+* Storage exists
+*/
+export class StorageExist {
+ /**
+ * Shows that the storage exists.
+ */
+ 'exists': boolean;
+
+ static discriminator = undefined;
+
+ static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
+ {
+ "name": "exists",
+ "baseName": "Exists",
+ "type": "boolean"
+ } ];
+
+ static getAttributeTypeMap() {
+ return StorageExist.attributeTypeMap;
+ }
+}
+
+
diff --git a/src/models/storageFile.ts b/src/models/storageFile.ts
new file mode 100644
index 00000000..f67a8f56
--- /dev/null
+++ b/src/models/storageFile.ts
@@ -0,0 +1,82 @@
+ /**
+ *
+ * Copyright (c) 2019 Aspose.PDF Cloud
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software.
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ *
+ */
+
+
+/**
+* File or folder information
+*/
+export class StorageFile {
+ /**
+ * File or folder name.
+ */
+ 'name': string;
+ /**
+ * True if it is a folder.
+ */
+ 'isFolder': boolean;
+ /**
+ * File or folder last modified DateTime.
+ */
+ 'modifiedDate': Date;
+ /**
+ * File or folder size.
+ */
+ 'size': number;
+ /**
+ * File or folder path.
+ */
+ 'path': string;
+
+ static discriminator = undefined;
+
+ static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
+ {
+ "name": "name",
+ "baseName": "Name",
+ "type": "string"
+ },
+ {
+ "name": "isFolder",
+ "baseName": "IsFolder",
+ "type": "boolean"
+ },
+ {
+ "name": "modifiedDate",
+ "baseName": "ModifiedDate",
+ "type": "Date"
+ },
+ {
+ "name": "size",
+ "baseName": "Size",
+ "type": "number"
+ },
+ {
+ "name": "path",
+ "baseName": "Path",
+ "type": "string"
+ } ];
+
+ static getAttributeTypeMap() {
+ return StorageFile.attributeTypeMap;
+ }
+}
+
+
diff --git a/src/models/textFooter.ts b/src/models/textFooter.ts
index 813b5916..a3060c4c 100644
--- a/src/models/textFooter.ts
+++ b/src/models/textFooter.ts
@@ -36,7 +36,7 @@ export class TextFooter extends StampBase {
*/
'value': string;
/**
- * Gets text properties of the stamp. See for details.
+ * Gets text properties of the stamp. See TextState for details.
*/
'textState': TextState;
/**
diff --git a/src/models/textHeader.ts b/src/models/textHeader.ts
index 34a43b76..8cc57a22 100644
--- a/src/models/textHeader.ts
+++ b/src/models/textHeader.ts
@@ -36,7 +36,7 @@ export class TextHeader extends StampBase {
*/
'value': string;
/**
- * Gets text properties of the stamp. See for details.
+ * Gets text properties of the stamp. See TextState for details.
*/
'textState': TextState;
/**
diff --git a/src/models/textRect.ts b/src/models/textRect.ts
index e31d17ac..5c1eea7f 100644
--- a/src/models/textRect.ts
+++ b/src/models/textRect.ts
@@ -50,15 +50,15 @@ export class TextRect {
*/
'verticalAlignment': VerticalAlignment;
/**
- * Gets or sets text position for text, represented with object.
+ * Gets or sets text position for text, represented with TextRect object.
*/
'position': Position;
/**
- * Gets text position for text, represented with object. The YIndent of the Position structure represents baseline coordinate of the text fragment.
+ * Gets text position for text, represented with TextRect object. The YIndent of the Position structure represents baseline coordinate of the text fragment.
*/
'baselinePosition': Position;
/**
- * Gets or sets text state for the text that object represents.
+ * Gets or sets text state for the text that TextRect object represents.
*/
'textState': TextState;
diff --git a/src/models/textReplaceListRequest.ts b/src/models/textReplaceListRequest.ts
index d33682e6..07907944 100644
--- a/src/models/textReplaceListRequest.ts
+++ b/src/models/textReplaceListRequest.ts
@@ -29,6 +29,9 @@ export class TextReplaceListRequest {
* A list of text replacement settings.
*/
'textReplaces': Array;
+ /**
+ * Name of font to use if requested font is not embedded into document.
+ */
'defaultFont': string;
/**
* The index of first match to be replaced.
diff --git a/src/models/textStamp.ts b/src/models/textStamp.ts
index ac151029..29b09fa5 100644
--- a/src/models/textStamp.ts
+++ b/src/models/textStamp.ts
@@ -37,7 +37,7 @@ export class TextStamp extends StampBase {
*/
'value': string;
/**
- * Gets text properties of the stamp. See for details.
+ * Gets text properties of the stamp. See TextState for details.
*/
'textState': TextState;
/**
diff --git a/src/models/wordCountResponse.ts b/src/models/wordCountResponse.ts
index f6c5b45d..9dc940f8 100644
--- a/src/models/wordCountResponse.ts
+++ b/src/models/wordCountResponse.ts
@@ -27,7 +27,7 @@ import { AsposeResponse } from "./asposeResponse";
*/
export class WordCountResponse extends AsposeResponse {
/**
- * with words per page info.
+ * WordCount with words per page info.
*/
'wordsPerPage': WordCount;
diff --git a/src/objectSerializer.ts b/src/objectSerializer.ts
index c81e8ea9..a89082e6 100644
--- a/src/objectSerializer.ts
+++ b/src/objectSerializer.ts
@@ -23,7 +23,6 @@ import { AnnotationFlags } from "./models/annotationFlags";
import { AnnotationState } from "./models/annotationState";
import { AnnotationType } from "./models/annotationType";
import { AntialiasingProcessingType } from "./models/antialiasingProcessingType";
-import { AppendDocument } from "./models/appendDocument";
import { AsposeResponse } from "./models/asposeResponse";
import { BorderCornerStyle } from "./models/borderCornerStyle";
import { BorderInfo } from "./models/borderInfo";
@@ -42,10 +41,12 @@ import { DocFormat } from "./models/docFormat";
import { DocRecognitionMode } from "./models/docRecognitionMode";
import { DocumentPrivilege } from "./models/documentPrivilege";
import { EpubRecognitionMode } from "./models/epubRecognitionMode";
+import { ErrorDetails } from "./models/errorDetails";
import { FieldType } from "./models/fieldType";
-import { File } from "./models/file";
-import { FileExist } from "./models/fileExist";
import { FileIcon } from "./models/fileIcon";
+import { FileVersions } from "./models/fileVersions";
+import { FilesList } from "./models/filesList";
+import { FilesUploadResult } from "./models/filesUploadResult";
import { FontEncodingRules } from "./models/fontEncodingRules";
import { FontSavingModes } from "./models/fontSavingModes";
import { FontStyles } from "./models/fontStyles";
@@ -68,6 +69,8 @@ import { LinkElement } from "./models/linkElement";
import { LinkHighlightingMode } from "./models/linkHighlightingMode";
import { MarginInfo } from "./models/marginInfo";
import { MergeDocuments } from "./models/mergeDocuments";
+import { ModelError } from "./models/modelError";
+import { ObjectExist } from "./models/objectExist";
import { OptimizeOptions } from "./models/optimizeOptions";
import { PageWordCount } from "./models/pageWordCount";
import { Paragraph } from "./models/paragraph";
@@ -92,6 +95,8 @@ import { SplitResult } from "./models/splitResult";
import { Stamp } from "./models/stamp";
import { StampIcon } from "./models/stampIcon";
import { StampType } from "./models/stampType";
+import { StorageExist } from "./models/storageExist";
+import { StorageFile } from "./models/storageFile";
import { TableBroken } from "./models/tableBroken";
import { TextHorizontalAlignment } from "./models/textHorizontalAlignment";
import { TextIcon } from "./models/textIcon";
@@ -112,13 +117,16 @@ import { Attachment } from "./models/attachment";
import { AttachmentResponse } from "./models/attachmentResponse";
import { Attachments } from "./models/attachments";
import { AttachmentsResponse } from "./models/attachmentsResponse";
+import { Bookmark } from "./models/bookmark";
+import { BookmarkResponse } from "./models/bookmarkResponse";
+import { Bookmarks } from "./models/bookmarks";
+import { BookmarksResponse } from "./models/bookmarksResponse";
import { CaretAnnotationResponse } from "./models/caretAnnotationResponse";
import { CaretAnnotations } from "./models/caretAnnotations";
import { CaretAnnotationsResponse } from "./models/caretAnnotationsResponse";
import { CircleAnnotationResponse } from "./models/circleAnnotationResponse";
import { CircleAnnotations } from "./models/circleAnnotations";
import { CircleAnnotationsResponse } from "./models/circleAnnotationsResponse";
-import { DiscUsageResponse } from "./models/discUsageResponse";
import { Document } from "./models/document";
import { DocumentPageResponse } from "./models/documentPageResponse";
import { DocumentPagesResponse } from "./models/documentPagesResponse";
@@ -134,10 +142,7 @@ import { FieldsResponse } from "./models/fieldsResponse";
import { FileAttachmentAnnotationResponse } from "./models/fileAttachmentAnnotationResponse";
import { FileAttachmentAnnotations } from "./models/fileAttachmentAnnotations";
import { FileAttachmentAnnotationsResponse } from "./models/fileAttachmentAnnotationsResponse";
-import { FileExistResponse } from "./models/fileExistResponse";
import { FileVersion } from "./models/fileVersion";
-import { FileVersionsResponse } from "./models/fileVersionsResponse";
-import { FilesResponse } from "./models/filesResponse";
import { FreeTextAnnotationResponse } from "./models/freeTextAnnotationResponse";
import { FreeTextAnnotations } from "./models/freeTextAnnotations";
import { FreeTextAnnotationsResponse } from "./models/freeTextAnnotationsResponse";
@@ -197,7 +202,6 @@ import { StampBase } from "./models/stampBase";
import { StampInfo } from "./models/stampInfo";
import { StampsInfo } from "./models/stampsInfo";
import { StampsInfoResponse } from "./models/stampsInfoResponse";
-import { StorageExistResponse } from "./models/storageExistResponse";
import { StrikeOutAnnotationResponse } from "./models/strikeOutAnnotationResponse";
import { StrikeOutAnnotations } from "./models/strikeOutAnnotations";
import { StrikeOutAnnotationsResponse } from "./models/strikeOutAnnotationsResponse";
@@ -302,7 +306,6 @@ let enumsMap: {[index: string]: any} = {
}
let typeMap: {[index: string]: any} = {
- "AppendDocument": AppendDocument,
"AsposeResponse": AsposeResponse,
"BorderInfo": BorderInfo,
"Cell": Cell,
@@ -310,8 +313,10 @@ let typeMap: {[index: string]: any} = {
"Color": Color,
"DiscUsage": DiscUsage,
"DocumentPrivilege": DocumentPrivilege,
- "File": File,
- "FileExist": FileExist,
+ "ErrorDetails": ErrorDetails,
+ "FileVersions": FileVersions,
+ "FilesList": FilesList,
+ "FilesUploadResult": FilesUploadResult,
"GraphInfo": GraphInfo,
"ImageTemplate": ImageTemplate,
"ImageTemplatesRequest": ImageTemplatesRequest,
@@ -319,6 +324,8 @@ let typeMap: {[index: string]: any} = {
"LinkElement": LinkElement,
"MarginInfo": MarginInfo,
"MergeDocuments": MergeDocuments,
+ "ModelError": ModelError,
+ "ObjectExist": ObjectExist,
"OptimizeOptions": OptimizeOptions,
"PageWordCount": PageWordCount,
"Paragraph": Paragraph,
@@ -331,6 +338,8 @@ let typeMap: {[index: string]: any} = {
"Signature": Signature,
"SplitResult": SplitResult,
"Stamp": Stamp,
+ "StorageExist": StorageExist,
+ "StorageFile": StorageFile,
"TextLine": TextLine,
"TextRect": TextRect,
"TextRects": TextRects,
@@ -346,13 +355,16 @@ let typeMap: {[index: string]: any} = {
"AttachmentResponse": AttachmentResponse,
"Attachments": Attachments,
"AttachmentsResponse": AttachmentsResponse,
+ "Bookmark": Bookmark,
+ "BookmarkResponse": BookmarkResponse,
+ "Bookmarks": Bookmarks,
+ "BookmarksResponse": BookmarksResponse,
"CaretAnnotationResponse": CaretAnnotationResponse,
"CaretAnnotations": CaretAnnotations,
"CaretAnnotationsResponse": CaretAnnotationsResponse,
"CircleAnnotationResponse": CircleAnnotationResponse,
"CircleAnnotations": CircleAnnotations,
"CircleAnnotationsResponse": CircleAnnotationsResponse,
- "DiscUsageResponse": DiscUsageResponse,
"Document": Document,
"DocumentPageResponse": DocumentPageResponse,
"DocumentPagesResponse": DocumentPagesResponse,
@@ -368,10 +380,7 @@ let typeMap: {[index: string]: any} = {
"FileAttachmentAnnotationResponse": FileAttachmentAnnotationResponse,
"FileAttachmentAnnotations": FileAttachmentAnnotations,
"FileAttachmentAnnotationsResponse": FileAttachmentAnnotationsResponse,
- "FileExistResponse": FileExistResponse,
"FileVersion": FileVersion,
- "FileVersionsResponse": FileVersionsResponse,
- "FilesResponse": FilesResponse,
"FreeTextAnnotationResponse": FreeTextAnnotationResponse,
"FreeTextAnnotations": FreeTextAnnotations,
"FreeTextAnnotationsResponse": FreeTextAnnotationsResponse,
@@ -431,7 +440,6 @@ let typeMap: {[index: string]: any} = {
"StampInfo": StampInfo,
"StampsInfo": StampsInfo,
"StampsInfoResponse": StampsInfoResponse,
- "StorageExistResponse": StorageExistResponse,
"StrikeOutAnnotationResponse": StrikeOutAnnotationResponse,
"StrikeOutAnnotations": StrikeOutAnnotations,
"StrikeOutAnnotationsResponse": StrikeOutAnnotationsResponse,
diff --git a/test/baseTestPdfApi.ts b/test/baseTestPdfApi.ts
index 1bdf7d65..d626e083 100644
--- a/test/baseTestPdfApi.ts
+++ b/test/baseTestPdfApi.ts
@@ -28,6 +28,7 @@ import { GraphInfo } from '../src/models/graphInfo';
import { Row } from '../src/models/row';
import { Cell } from '../src/models/cell';
import { TextRect } from '../src/models/textRect';
+import { FilesUploadResult } from '../src/models/filesUploadResult';
var fs = require('fs');
let pdfApi: PdfApi;
@@ -40,10 +41,11 @@ export function getPdfApi() {
//Get App key and App SID from https://aspose.cloud
pdfApi = new PdfApi(
- "AppSid",
- "AppKey",
- "https://billing.cloud.saltov.dynabic.com/v2.0"
- )
+ "appSID",
+ "appKey",
+ "https://api-qa.aspose.cloud/v3.0"
+ );
+
pdfApi.configuration.debugMode = true;
}
return pdfApi;
@@ -64,12 +66,12 @@ export function toBase64(str: string): string {
/**
* Upload file
*/
-export function uploadFile(name: string): Promise<{ response: http.IncomingMessage; body: AsposeResponse; }>
+export function uploadFile(name: string): Promise<{ response: http.IncomingMessage; body: FilesUploadResult; }>
{
const path: string = remoteTempFolder + "/" + name;
var data = fs.readFileSync(this.localTestDataFolder + "/" + name);
- return getPdfApi().putCreate(path, data).then();
+ return getPdfApi().uploadFile(path, data).then();
}
/**
diff --git a/test/testAppend.ts b/test/testAppend.ts
index 7d8cf04f..87fdd089 100644
--- a/test/testAppend.ts
+++ b/test/testAppend.ts
@@ -41,23 +41,7 @@ describe("Append Tests", () => {
it("should return response with code 200", async () => {
- return BaseTest.getPdfApi().postAppendDocument(name, null, appendFilePath, startPage, endPage, null, BaseTest.remoteTempFolder)
- .then((result) => {
- assert.equal(result.response.statusCode, 200);
- });
- });
- });
-
- describe("PostAppendDocument using json Test", () => {
-
- it("should return response with code 200", async () => {
-
- let appendDocument = new AppendDocument();
- appendDocument.document = appendFilePath;
- appendDocument.startPage = startPage;
- appendDocument.endPage = endPage;
-
- return BaseTest.getPdfApi().postAppendDocument(name, null, appendFilePath, startPage, endPage, null, BaseTest.remoteTempFolder)
+ return BaseTest.getPdfApi().postAppendDocument(name, appendFilePath, startPage, endPage, null, BaseTest.remoteTempFolder)
.then((result) => {
assert.equal(result.response.statusCode, 200);
});
diff --git a/test/testBookmarks.ts b/test/testBookmarks.ts
new file mode 100644
index 00000000..781bcb64
--- /dev/null
+++ b/test/testBookmarks.ts
@@ -0,0 +1,144 @@
+ /**
+ *
+ * Copyright (c) 2019 Aspose.PDF Cloud
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software.
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ *
+ */
+
+import * as BaseTest from "./baseTestPdfApi";
+import "mocha";
+import { Bookmark } from "../src/models/bookmark";
+var assert = require('assert');
+
+describe("Bookmark Tests", () => {
+
+ const name = "PdfWithBookmarks.pdf";
+
+ beforeEach( async ()=> {
+ await BaseTest.uploadFile(name);
+ });
+
+ describe("Get Document Bookmarks Test", () => {
+
+ it("should return response with code 200", async () => {
+
+ return BaseTest.getPdfApi().getDocumentBookmarks(name, BaseTest.remoteTempFolder, null)
+ .then((result) => {
+ assert.equal(result.response.statusCode, 200);
+ });
+ });
+ });
+
+ describe("Get Bookmarks Test", () => {
+
+ it("should return response with code 200", async () => {
+
+ const bookmarkPath = "1";
+ return BaseTest.getPdfApi().getBookmarks(name, bookmarkPath, BaseTest.remoteTempFolder, null)
+ .then((result) => {
+ assert.equal(result.response.statusCode, 200);
+ });
+ });
+ });
+
+ describe("Get Bookmark Test", () => {
+
+ it("should return response with code 200", async () => {
+
+ const bookmarkPath = "1";
+ return BaseTest.getPdfApi().getBookmark(name, bookmarkPath, BaseTest.remoteTempFolder, null)
+ .then((result) => {
+ assert.equal(result.response.statusCode, 200);
+ });
+ });
+ });
+
+ describe("Delete Document Bookmarks Test", () => {
+
+ it("should return response with code 200", async () => {
+
+ return BaseTest.getPdfApi().deleteDocumentBookmarks(name, BaseTest.remoteTempFolder, null)
+ .then((result) => {
+ assert.equal(result.response.statusCode, 200);
+ });
+ });
+ });
+
+ describe("Delete Bookmark Test", () => {
+
+ it("should return response with code 200", async () => {
+
+ const bookmarkPath = "1";
+ return BaseTest.getPdfApi().deleteBookmark(name, bookmarkPath, BaseTest.remoteTempFolder, null)
+ .then((result) => {
+ assert.equal(result.response.statusCode, 200);
+ });
+ });
+ });
+
+ describe("Post Bookmark Test", () => {
+
+ it("should return response with code 200", async () => {
+
+ const bookmark = new Bookmark();
+ bookmark.action = "GoTo";
+ bookmark.bold = true;
+ bookmark.italic = false;
+ bookmark.title = "New Bookmark XYZ";
+ bookmark.pageDisplay = "XYZ";
+ bookmark.pageDisplayBottom = 10;
+ bookmark.pageDisplayLeft = 10;
+ bookmark.pageDisplayRight = 10;
+ bookmark.pageDisplayTop = 10;
+ bookmark.pageDisplayZoom = 2;
+ bookmark.pageNumber = 2;
+ bookmark.color = { a: 0xFF, r: 0x00, g: 0xFF, b: 0x00 };
+
+ const bookmarkPath = "1";
+ return BaseTest.getPdfApi().postBookmark(name, bookmarkPath, [bookmark], BaseTest.remoteTempFolder, null)
+ .then((result) => {
+ assert.equal(result.response.statusCode, 200);
+ });
+ });
+ });
+
+ describe("Put Bookmark Test", () => {
+
+ it("should return response with code 200", async () => {
+
+ const bookmark = new Bookmark();
+ bookmark.action = "GoTo";
+ bookmark.bold = true;
+ bookmark.italic = false;
+ bookmark.title = "New Bookmark XYZ";
+ bookmark.pageDisplay = "XYZ";
+ bookmark.pageDisplayBottom = 10;
+ bookmark.pageDisplayLeft = 10;
+ bookmark.pageDisplayRight = 10;
+ bookmark.pageDisplayTop = 10;
+ bookmark.pageDisplayZoom = 2;
+ bookmark.pageNumber = 2;
+ bookmark.color = { a: 0xFF, r: 0x00, g: 0xFF, b: 0x00 };
+
+ const bookmarkPath = "1";
+ return BaseTest.getPdfApi().putBookmark(name, bookmarkPath, bookmark, BaseTest.remoteTempFolder, null)
+ .then((result) => {
+ assert.equal(result.response.statusCode, 200);
+ });
+ });
+ });
+});
\ No newline at end of file
diff --git a/test/testConvertToPdf.ts b/test/testConvertToPdf.ts
index 01ca0d3b..e64b2175 100644
--- a/test/testConvertToPdf.ts
+++ b/test/testConvertToPdf.ts
@@ -91,7 +91,7 @@ describe("Convert To PDF Tests", () => {
describe("LaTex To PDF Tests", () => {
- const name = "TexExample.tex";
+ const name = "sample.tex";
const resFileName = "fromLaTeX.pdf";
const srcPath = BaseTest.remoteTempFolder + "/" + name;
diff --git a/test/testStorage.ts b/test/testStorage.ts
index e6f0d5a0..7c57cd26 100644
--- a/test/testStorage.ts
+++ b/test/testStorage.ts
@@ -29,28 +29,28 @@ describe("Storage Tests", () => {
const name = "4pages.pdf";
const path = BaseTest.remoteTempFolder + "/" + name;
- describe("PutCreate Test", () => {
+ describe("UploadFile Test", () => {
it("should return response with code 200", () => {
var data = fs.readFileSync(BaseTest.localTestDataFolder + "/" + name);
- return BaseTest.getPdfApi().putCreate(path, data)
+ return BaseTest.getPdfApi().uploadFile(path, data)
.then((result) => {
assert.equal(result.response.statusCode, 200);
});
});
});
- describe("GetDownload Test", () => {
+ describe("DownloadFile Test", () => {
it("should return file", async () => {
var data = fs.readFileSync(BaseTest.localTestDataFolder + "/" + name);
- await BaseTest.getPdfApi().putCreate(path, data);
+ await BaseTest.getPdfApi().uploadFile(path, data);
- return BaseTest.getPdfApi().getDownload(path)
+ return BaseTest.getPdfApi().downloadFile(path)
.then((result) => {
assert.equal(result.response.statusCode, 200);
});
@@ -58,7 +58,7 @@ describe("Storage Tests", () => {
});
- describe("PostMoveFile Test", () => {
+ describe("MoveFile Test", () => {
it("should return response with code 200", async () => {
@@ -68,7 +68,7 @@ describe("Storage Tests", () => {
const src = BaseTest.remoteTempFolder + '/' + name;
const dest = BaseTest.remoteTempFolder + '/4pages_renamed.pdf';
- return BaseTest.getPdfApi().postMoveFile(src, dest)
+ return BaseTest.getPdfApi().moveFile(src, dest)
.then((result) => {
assert.equal(result.response.statusCode, 200);
});
@@ -91,38 +91,38 @@ describe("Storage Tests", () => {
});
});
- describe("GetListFiles Test", () => {
+ describe("GetFilesList Test", () => {
it("should return response with code 200", async () => {
- return BaseTest.getPdfApi().getListFiles(BaseTest.remoteTempFolder)
+ return BaseTest.getPdfApi().getFilesList(BaseTest.remoteTempFolder)
.then((result) => {
assert.equal(result.response.statusCode, 200);
});
});
});
- describe("PutCreateFolder Test", () => {
+ describe("CreateFolder Test", () => {
it("should return response with code 200", async () => {
const path = BaseTest.remoteTempFolder + '/testFolder';
- return BaseTest.getPdfApi().putCreateFolder(path)
+ return BaseTest.getPdfApi().createFolder(path)
.then((result) => {
assert.equal(result.response.statusCode, 200);
});
});
});
- describe("PostMoveFolder Test", () => {
+ describe("MoveFolder Test", () => {
it("should return response with code 200", async () => {
const src = BaseTest.remoteTempFolder + '/testFolder';
- await BaseTest.getPdfApi().putCreateFolder(src)
+ await BaseTest.getPdfApi().createFolder(src)
const dest = BaseTest.remoteTempFolder + '/testFolderRenamed';
- return BaseTest.getPdfApi().postMoveFolder(src, dest)
+ return BaseTest.getPdfApi().moveFolder(src, dest)
.then((result) => {
assert.equal(result.response.statusCode, 200);
});
@@ -133,7 +133,7 @@ describe("Storage Tests", () => {
it("should return response with code 200", async () => {
const path = BaseTest.remoteTempFolder + '/testFolder';
- await BaseTest.getPdfApi().putCreateFolder(path)
+ await BaseTest.getPdfApi().createFolder(path)
return BaseTest.getPdfApi().deleteFolder(path)
.then((result) => {
@@ -142,19 +142,19 @@ describe("Storage Tests", () => {
});
});
- describe("GetIsStorageExist Test", () => {
+ describe("StorageExists Test", () => {
it("should return response with code 200", async () => {
const name = "PDF-CI";
- return BaseTest.getPdfApi().getIsStorageExist(name)
+ return BaseTest.getPdfApi().storageExists(name)
.then((result) => {
assert.equal(result.response.statusCode, 200);
});
});
});
- describe("GetIsExist Test", () => {
+ describe("ObjectExists Test", () => {
it("should return response with code 200", async () => {
@@ -163,7 +163,7 @@ describe("Storage Tests", () => {
const path = BaseTest.remoteTempFolder + '/' + name;
- return BaseTest.getPdfApi().getIsExist(path)
+ return BaseTest.getPdfApi().objectExists(path)
.then((result) => {
assert.equal(result.response.statusCode, 200);
});
@@ -181,7 +181,7 @@ describe("Storage Tests", () => {
});
});
- describe("GetListFileVersions Test", () => {
+ describe("GetFileVersions Test", () => {
it("should return response with code 200", async () => {
@@ -190,7 +190,7 @@ describe("Storage Tests", () => {
const path = BaseTest.remoteTempFolder + '/' + name;
- return BaseTest.getPdfApi().getListFileVersions(path)
+ return BaseTest.getPdfApi().getFileVersions(path)
.then((result) => {
assert.equal(result.response.statusCode, 200);
});
diff --git a/testData/sample.tex b/testData/sample.tex
new file mode 100644
index 00000000..637c5320
--- /dev/null
+++ b/testData/sample.tex
@@ -0,0 +1,105 @@
+\documentclass{article}
+\usepackage{epsfig}
+\renewcommand{\baselinestretch}{1}
+\setlength{\textheight}{9in}
+\setlength{\textwidth}{6.5in}
+\setlength{\headheight}{0in}
+\setlength{\headsep}{0in}
+\setlength{\topmargin}{0in}
+\setlength{\oddsidemargin}{0in}
+\setlength{\evensidemargin}{0in}
+\setlength{\parindent}{.3in}
+\begin{document}
+
+\leftline{Pat Q.~Student}
+\leftline{AME 20231}
+\leftline{18 January 2013}
+
+\medskip
+This is a sample file in the text formatter \LaTeX.
+I require you to use it for the following reasons:
+
+\begin{itemize}
+
+\item{It produces the best output of text, figures,
+ and equations of any
+ program I've seen.}
+
+\item{It is machine-independent. It runs on Linux, Macintosh (see {\tt TeXShop}), and Windows (see {\tt MiKTeX}) machines.
+ You can e-mail {\tt ASCII} text versions of most relevant files.}
+
+\item{It is the tool of choice for many research
+ scientists and engineers.
+ Many journals accept
+ \LaTeX~ submissions, and many books
+ are written in \LaTeX.}
+
+\end{itemize}
+\medskip
+Some basic instructions are given next.
+Put your text in here. You can be a little sloppy about
+spacing. It adjusts the text to look good.
+{\small You can make the text smaller.}
+{\tiny You can make the text tiny.}
+
+Skip a line for a new paragraph.
+You can use italics ({\em e.g.} {\em Thermodynamics is everywhere}) or {\bf bold}.
+Greek letters are a snap: $\Psi$, $\psi$,
+$\Phi$, $\phi$. Equations within text are easy---
+A well known Maxwell thermodynamic relation is
+$\left.{\partial T \over \partial p}\right|_{s} =
+\left.{\partial v \over \partial s}\right|_{p}$.
+You can also set aside equations like so:
+\begin{eqnarray}
+du &=& Tds -p dv, \qquad \mbox{first law}\\
+ds &\ge& {dq \over T}.\qquad \qquad \mbox{second law} \label{ee}
+\end{eqnarray}
+Eq.~(\ref{ee}) is the second law.
+References\footnote{Lamport, L., 1986, {\em \LaTeX: User's Guide \& Reference Manual},
+ Addison-Wesley: Reading, Massachusetts.}
+are available.
+If you have an postscript file, say {\tt sample.figure.eps}, in the same local directory,
+you can insert the file as a figure. Figure \ref{sample}, below, plots an isotherm for air modeled as an ideal gas.
+\begin{figure}[ht]
+\epsfxsize=2.5in
+\centerline{\epsffile{sample.figure.eps}}
+\caption{Sample figure plotting $T=300~K$ isotherm for air when modeled as an ideal gas.}
+\label{sample}
+\end{figure}
+
+\medskip
+\leftline{\em Running \LaTeX}
+\medskip
+
+You can create a \LaTeX~ file with any text editor ({\tt vi}, {\tt emacs}, {\tt gedit},
+etc.).
+To get a document, you need to run the \LaTeX~ application
+on the text file. The text file must have the suffix ``{\tt .tex}''
+On a Linux cluster machine, this is done via the command
+
+\medskip
+{\tt latex file.tex}
+
+\medskip
+\noindent
+This generates three files: {\tt file.dvi}, {\tt file.aux},
+and {\tt file.log}. The most important is {\tt file.dvi}.
+
+\medskip
+\noindent
+The finished product can be previewed in the following way.
+Execute the commands:
+
+\medskip
+
+{\tt dvipdf file.dvi}\hspace{1.9in}{\em Linux System}
+
+\medskip
+\noindent
+This command generates {\tt file.pdf}.
+Alternatively, you can use {\tt TeXShop} on a Macintosh or {\tt MiKTeX} on a Windows-based machine.
+The {\tt .tex} file must have a closing statement as
+below.
+
+
+\end{document}