diff --git a/README.md b/README.md index 9e6bd42..04f0152 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Aspose.PDF Cloud - API version: 2.0 -- Package version: 18.11.0 +- Package version: 18.12.0 [Aspose.PDF Cloud](https://products.aspose.cloud/pdf) is a true REST API that enables you to perform a wide range of document processing operations including creation, manipulation, conversion and rendering of PDF documents in the cloud. @@ -37,7 +37,7 @@ Add this dependency to your project's POM: com.aspose aspose-cloud-pdf - 18.11.0 + 18.12.0 compile ``` @@ -47,7 +47,7 @@ Add this dependency to your project's POM: Add this dependency to your project's build file: ```groovy -compile "com.aspose:aspose-cloud-pdf:18.11.0" +compile "com.aspose:aspose-cloud-pdf:18.12.0" ``` ### Others @@ -58,7 +58,7 @@ At first generate the JAR by executing: Then manually install the following JARs: -* target/aspose-cloud-pdf-18.11.0.jar +* target/aspose-cloud-pdf-18.12.0.jar * target/lib/*.jar ## Getting Started @@ -119,6 +119,8 @@ Class | Method | HTTP request | Description *PdfApi* | [**deleteDocumentAnnotations**](docs/PdfApi.md#deleteDocumentAnnotations) | **DELETE** /pdf/\{name}/annotations | Delete all annotations from the document *PdfApi* | [**deleteDocumentLinkAnnotations**](docs/PdfApi.md#deleteDocumentLinkAnnotations) | **DELETE** /pdf/\{name}/links | Delete all link annotations 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* | [**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. @@ -128,6 +130,7 @@ Class | Method | HTTP request | Description *PdfApi* | [**deleteProperty**](docs/PdfApi.md#deleteProperty) | **DELETE** /pdf/\{name}/documentproperties/\{propertyName} | Delete document property. *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* | [**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. @@ -165,9 +168,12 @@ 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* | [**getListFileVersions**](docs/PdfApi.md#getListFileVersions) | **GET** /storage/version | Get the file's versions list *PdfApi* | [**getListFiles**](docs/PdfApi.md#getListFiles) | **GET** /storage/folder | Get the file listing of a specific folder *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* | [**getPage**](docs/PdfApi.md#getPage) | **GET** /pdf/\{name}/pages/\{pageNumber} | Read document page info. @@ -230,7 +236,10 @@ Class | Method | HTTP request | Description *PdfApi* | [**postAppendDocument**](docs/PdfApi.md#postAppendDocument) | **POST** /pdf/\{name}/appendDocument | Append document to existing one. *PdfApi* | [**postCreateField**](docs/PdfApi.md#postCreateField) | **POST** /pdf/\{name}/fields | Create field. *PdfApi* | [**postDocumentTextReplace**](docs/PdfApi.md#postDocumentTextReplace) | **POST** /pdf/\{name}/text/replace | Document's replace text method. +*PdfApi* | [**postFlattenDocument**](docs/PdfApi.md#postFlattenDocument) | **POST** /pdf/\{name}/flatten | Removes all fields from the document and place their values instead. *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. @@ -258,6 +267,7 @@ Class | Method | HTTP request | Description *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* | [**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. *PdfApi* | [**putFieldsFlatten**](docs/PdfApi.md#putFieldsFlatten) | **PUT** /pdf/\{name}/fields/flatten | Flatten form fields in document. *PdfApi* | [**putFreeTextAnnotation**](docs/PdfApi.md#putFreeTextAnnotation) | **PUT** /pdf/\{name}/annotations/freetext/\{annotationId} | Replace document free text annotation @@ -348,11 +358,13 @@ Class | Method | HTTP request | Description - [Color](docs/Color.md) - [ColorDepth](docs/ColorDepth.md) - [CompressionType](docs/CompressionType.md) + - [DiscUsage](docs/DiscUsage.md) - [DocFormat](docs/DocFormat.md) - [DocRecognitionMode](docs/DocRecognitionMode.md) - [DocumentPrivilege](docs/DocumentPrivilege.md) - [EpubRecognitionMode](docs/EpubRecognitionMode.md) - [FieldType](docs/FieldType.md) + - [FileExist](docs/FileExist.md) - [FontEncodingRules](docs/FontEncodingRules.md) - [FontSavingModes](docs/FontSavingModes.md) - [FontStyles](docs/FontStyles.md) @@ -382,7 +394,7 @@ Class | Method | HTTP request | Description - [Point](docs/Point.md) - [PolyIntent](docs/PolyIntent.md) - [RasterImagesSavingModes](docs/RasterImagesSavingModes.md) - - [RectanglePdf](docs/RectanglePdf.md) + - [Rectangle](docs/Rectangle.md) - [Rotation](docs/Rotation.md) - [Segment](docs/Segment.md) - [ShapeType](docs/ShapeType.md) @@ -416,6 +428,7 @@ Class | Method | HTTP request | Description - [CircleAnnotationResponse](docs/CircleAnnotationResponse.md) - [CircleAnnotations](docs/CircleAnnotations.md) - [CircleAnnotationsResponse](docs/CircleAnnotationsResponse.md) + - [DiscUsageResponse](docs/DiscUsageResponse.md) - [Document](docs/Document.md) - [DocumentPageResponse](docs/DocumentPageResponse.md) - [DocumentPagesResponse](docs/DocumentPagesResponse.md) @@ -428,6 +441,9 @@ Class | Method | HTTP request | Description - [FieldResponse](docs/FieldResponse.md) - [Fields](docs/Fields.md) - [FieldsResponse](docs/FieldsResponse.md) + - [FileExistResponse](docs/FileExistResponse.md) + - [FileVersion](docs/FileVersion.md) + - [FileVersionsResponse](docs/FileVersionsResponse.md) - [FilesResponse](docs/FilesResponse.md) - [FreeTextAnnotationResponse](docs/FreeTextAnnotationResponse.md) - [FreeTextAnnotations](docs/FreeTextAnnotations.md) @@ -469,6 +485,7 @@ Class | Method | HTTP request | Description - [SquigglyAnnotationResponse](docs/SquigglyAnnotationResponse.md) - [SquigglyAnnotations](docs/SquigglyAnnotations.md) - [SquigglyAnnotationsResponse](docs/SquigglyAnnotationsResponse.md) + - [StorageExistResponse](docs/StorageExistResponse.md) - [StrikeOutAnnotationResponse](docs/StrikeOutAnnotationResponse.md) - [StrikeOutAnnotations](docs/StrikeOutAnnotations.md) - [StrikeOutAnnotationsResponse](docs/StrikeOutAnnotationsResponse.md) diff --git a/build.gradle b/build.gradle index 07a5466..9b32fca 100644 --- a/build.gradle +++ b/build.gradle @@ -20,7 +20,7 @@ apply plugin: 'idea' apply plugin: 'eclipse' group = 'com.aspose' -version = '18.11.0' +version = '18.12.0' buildscript { repositories { @@ -71,7 +71,7 @@ dependencies { publish { groupId = 'com.aspose' artifactId = 'aspose-cloud-pdf' - publishVersion = '18.11.0' + publishVersion = '18.12.0' desc = 'Aspose.PDF Cloud is a REST API for creating and editing PDF files. It can also be used to convert PDF files to different formats like DOC, HTML, XPS, TIFF and many more. Aspose.PDF Cloud gives you control: create PDFs from scratch or from HTML, XML, template, database, XPS or an image. Render PDFs to image formats such as JPEG, PNG, GIF, BMP, TIFF and many others. Aspose.PDF Cloud helps you manipulate elements of a PDF file like text, annotations, watermarks, signatures, bookmarks, stamps and so on. Its REST API also allows you to manage PDF pages by using features like merging, splitting, and inserting. Add images to a PDF file or convert PDF pages to images.' licences = ['MIT'] website = 'https://products.aspose.cloud/pdf/cloud' diff --git a/docs/Annotation.md b/docs/Annotation.md index d9ce319..00ae98a 100644 --- a/docs/Annotation.md +++ b/docs/Annotation.md @@ -5,12 +5,13 @@ Provides annotation. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**color** | [**Color**](Color.md) | Color of the annotation. | [optional] **contents** | **String** | Get the annotation content. | [optional] **modified** | **String** | The date and time when the annotation was last modified. | [optional] **id** | **String** | Gets ID of the annotation. | [optional] **flags** | [**List<AnnotationFlags>**](AnnotationFlags.md) | Gets Flags of the annotation. | [optional] **name** | **String** | Gets Name of the annotation. | [optional] -**rect** | [**RectanglePdf**](RectanglePdf.md) | Gets Rect of the annotation. | +**rect** | [**Rectangle**](Rectangle.md) | Gets Rect of the annotation. | **pageIndex** | **Integer** | Gets PageIndex of the annotation. | [optional] **zIndex** | **Integer** | Gets ZIndex of the annotation. | [optional] **horizontalAlignment** | [**HorizontalAlignment**](HorizontalAlignment.md) | Gets HorizontalAlignment of the annotation. | [optional] diff --git a/docs/AnnotationInfo.md b/docs/AnnotationInfo.md index b585bc9..75e2939 100644 --- a/docs/AnnotationInfo.md +++ b/docs/AnnotationInfo.md @@ -6,12 +6,13 @@ Provides annotation. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **annotationType** | [**AnnotationType**](AnnotationType.md) | Gets annotation type. | +**color** | [**Color**](Color.md) | Color of the annotation. | [optional] **contents** | **String** | Get the annotation content. | [optional] **modified** | **String** | The date and time when the annotation was last modified. | [optional] **id** | **String** | Gets ID of the annotation. | [optional] **flags** | [**List<AnnotationFlags>**](AnnotationFlags.md) | Gets Flags of the annotation. | [optional] **name** | **String** | Gets Name of the annotation. | [optional] -**rect** | [**RectanglePdf**](RectanglePdf.md) | Gets Rect of the annotation. | +**rect** | [**Rectangle**](Rectangle.md) | Gets Rect of the annotation. | **pageIndex** | **Integer** | Gets PageIndex of the annotation. | [optional] **zIndex** | **Integer** | Gets ZIndex of the annotation. | [optional] **horizontalAlignment** | [**HorizontalAlignment**](HorizontalAlignment.md) | Gets HorizontalAlignment of the annotation. | [optional] diff --git a/docs/AnnotationsInfo.md b/docs/AnnotationsInfo.md index a831a52..634ce6d 100644 --- a/docs/AnnotationsInfo.md +++ b/docs/AnnotationsInfo.md @@ -1,11 +1,11 @@  # AnnotationsInfo -List of annotations. +Object representing a list of annotation info objects. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**list** | [**List<AnnotationInfo>**](AnnotationInfo.md) | | [optional] +**list** | [**List<AnnotationInfo>**](AnnotationInfo.md) | List of annotation info objects. | [optional] **links** | [**List<Link>**](Link.md) | Link to the document. | [optional] diff --git a/docs/AnnotationsInfoResponse.md b/docs/AnnotationsInfoResponse.md index 91b3b52..2927ac0 100644 --- a/docs/AnnotationsInfoResponse.md +++ b/docs/AnnotationsInfoResponse.md @@ -1,11 +1,11 @@  # AnnotationsInfoResponse - +Represents multiple annotations info reponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**annotations** | [**AnnotationsInfo**](AnnotationsInfo.md) | | [optional] +**annotations** | [**AnnotationsInfo**](AnnotationsInfo.md) | Annotations info | [optional] **code** | **Integer** | Response status code. | **status** | **String** | Response status. | [optional] diff --git a/docs/AttachmentResponse.md b/docs/AttachmentResponse.md index a1c6658..ba0831b 100644 --- a/docs/AttachmentResponse.md +++ b/docs/AttachmentResponse.md @@ -1,11 +1,11 @@  # AttachmentResponse - +Represents response containing single attachment info ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**attachment** | [**Attachment**](Attachment.md) | | [optional] +**attachment** | [**Attachment**](Attachment.md) | Attachment object | [optional] **code** | **Integer** | Response status code. | **status** | **String** | Response status. | [optional] diff --git a/docs/Attachments.md b/docs/Attachments.md index dea3f11..bde91b2 100644 --- a/docs/Attachments.md +++ b/docs/Attachments.md @@ -1,11 +1,11 @@  # Attachments -List of attachment. +Represents list of attachment. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**list** | [**List<LinkElement>**](LinkElement.md) | | [optional] +**list** | [**List<LinkElement>**](LinkElement.md) | List of annotations. | [optional] **links** | [**List<Link>**](Link.md) | Link to the document. | [optional] diff --git a/docs/AttachmentsResponse.md b/docs/AttachmentsResponse.md index bf99695..9df4bfc 100644 --- a/docs/AttachmentsResponse.md +++ b/docs/AttachmentsResponse.md @@ -1,11 +1,11 @@  # AttachmentsResponse - +Represents response containing multiple attachments info ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**attachments** | [**Attachments**](Attachments.md) | | [optional] +**attachments** | [**Attachments**](Attachments.md) | Attachments object | [optional] **code** | **Integer** | Response status code. | **status** | **String** | Response status. | [optional] diff --git a/docs/CaretAnnotation.md b/docs/CaretAnnotation.md index 2fcd7eb..c50f6e7 100644 --- a/docs/CaretAnnotation.md +++ b/docs/CaretAnnotation.md @@ -5,19 +5,19 @@ Provides CaretAnnotation. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**color** | [**Color**](Color.md) | Color of the annotation. | [optional] -**frame** | [**RectanglePdf**](RectanglePdf.md) | Gets or sets caret rectangle. | [optional] +**frame** | [**Rectangle**](Rectangle.md) | Gets or sets caret rectangle. | [optional] **symbol** | [**CaretSymbol**](CaretSymbol.md) | Gets or sets symbol associated with caret. | [optional] **creationDate** | **String** | The date and time when the annotation was created. | [optional] **subject** | **String** | Get the annotation subject. | [optional] **title** | **String** | Get the annotation title. | [optional] **richText** | **String** | Get the annotation RichText. | [optional] +**color** | [**Color**](Color.md) | Color of the annotation. | [optional] **contents** | **String** | Get the annotation content. | [optional] **modified** | **String** | The date and time when the annotation was last modified. | [optional] **id** | **String** | Gets ID of the annotation. | [optional] **flags** | [**List<AnnotationFlags>**](AnnotationFlags.md) | Gets Flags of the annotation. | [optional] **name** | **String** | Gets Name of the annotation. | [optional] -**rect** | [**RectanglePdf**](RectanglePdf.md) | Gets Rect of the annotation. | +**rect** | [**Rectangle**](Rectangle.md) | Gets Rect of the annotation. | **pageIndex** | **Integer** | Gets PageIndex of the annotation. | [optional] **zIndex** | **Integer** | Gets ZIndex of the annotation. | [optional] **horizontalAlignment** | [**HorizontalAlignment**](HorizontalAlignment.md) | Gets HorizontalAlignment of the annotation. | [optional] diff --git a/docs/CaretAnnotationResponse.md b/docs/CaretAnnotationResponse.md index 1373dfe..c7ebd6b 100644 --- a/docs/CaretAnnotationResponse.md +++ b/docs/CaretAnnotationResponse.md @@ -1,11 +1,11 @@  # CaretAnnotationResponse - +Represents response containing single caret annotation object ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**annotation** | [**CaretAnnotation**](CaretAnnotation.md) | | [optional] +**annotation** | [**CaretAnnotation**](CaretAnnotation.md) | Caret annotation object | [optional] **code** | **Integer** | Response status code. | **status** | **String** | Response status. | [optional] diff --git a/docs/CaretAnnotations.md b/docs/CaretAnnotations.md index e7e6613..4507859 100644 --- a/docs/CaretAnnotations.md +++ b/docs/CaretAnnotations.md @@ -1,11 +1,11 @@  # CaretAnnotations -List of annotations. +Object representing a list of caret annotations. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**list** | [**List<CaretAnnotation>**](CaretAnnotation.md) | | [optional] +**list** | [**List<CaretAnnotation>**](CaretAnnotation.md) | List of caret annotations. | [optional] **links** | [**List<Link>**](Link.md) | Link to the document. | [optional] diff --git a/docs/CaretAnnotationsResponse.md b/docs/CaretAnnotationsResponse.md index 165a674..cf3c212 100644 --- a/docs/CaretAnnotationsResponse.md +++ b/docs/CaretAnnotationsResponse.md @@ -1,11 +1,11 @@  # CaretAnnotationsResponse - +Represents response containing multiple caret annotation objects ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**annotations** | [**CaretAnnotations**](CaretAnnotations.md) | | [optional] +**annotations** | [**CaretAnnotations**](CaretAnnotations.md) | Caret annotations object | [optional] **code** | **Integer** | Response status code. | **status** | **String** | Response status. | [optional] diff --git a/docs/CircleAnnotation.md b/docs/CircleAnnotation.md index c6aa5a3..406a34d 100644 --- a/docs/CircleAnnotation.md +++ b/docs/CircleAnnotation.md @@ -5,19 +5,19 @@ Provides CircleAnnotation. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**color** | [**Color**](Color.md) | Color of the annotation. | [optional] **interiorColor** | [**Color**](Color.md) | Get the annotation InteriorColor. | [optional] -**frame** | [**RectanglePdf**](RectanglePdf.md) | Get or set the annotation Rectangle of frame. | [optional] +**frame** | [**Rectangle**](Rectangle.md) | Get or set the annotation Rectangle of frame. | [optional] **creationDate** | **String** | The date and time when the annotation was created. | [optional] **subject** | **String** | Get the annotation subject. | [optional] **title** | **String** | Get the annotation title. | [optional] **richText** | **String** | Get the annotation RichText. | [optional] +**color** | [**Color**](Color.md) | Color of the annotation. | [optional] **contents** | **String** | Get the annotation content. | [optional] **modified** | **String** | The date and time when the annotation was last modified. | [optional] **id** | **String** | Gets ID of the annotation. | [optional] **flags** | [**List<AnnotationFlags>**](AnnotationFlags.md) | Gets Flags of the annotation. | [optional] **name** | **String** | Gets Name of the annotation. | [optional] -**rect** | [**RectanglePdf**](RectanglePdf.md) | Gets Rect of the annotation. | +**rect** | [**Rectangle**](Rectangle.md) | Gets Rect of the annotation. | **pageIndex** | **Integer** | Gets PageIndex of the annotation. | [optional] **zIndex** | **Integer** | Gets ZIndex of the annotation. | [optional] **horizontalAlignment** | [**HorizontalAlignment**](HorizontalAlignment.md) | Gets HorizontalAlignment of the annotation. | [optional] diff --git a/docs/CircleAnnotationResponse.md b/docs/CircleAnnotationResponse.md index b10eb5d..2e3add2 100644 --- a/docs/CircleAnnotationResponse.md +++ b/docs/CircleAnnotationResponse.md @@ -1,11 +1,11 @@  # CircleAnnotationResponse - +Represents response containing single circle annotation object ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**annotation** | [**CircleAnnotation**](CircleAnnotation.md) | | [optional] +**annotation** | [**CircleAnnotation**](CircleAnnotation.md) | Circle annotation object | [optional] **code** | **Integer** | Response status code. | **status** | **String** | Response status. | [optional] diff --git a/docs/CircleAnnotations.md b/docs/CircleAnnotations.md index 484286f..928e9f7 100644 --- a/docs/CircleAnnotations.md +++ b/docs/CircleAnnotations.md @@ -1,11 +1,11 @@  # CircleAnnotations -List of annotations. +Object representing a list of circle annotations. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**list** | [**List<CircleAnnotation>**](CircleAnnotation.md) | | [optional] +**list** | [**List<CircleAnnotation>**](CircleAnnotation.md) | List of circle annotations. | [optional] **links** | [**List<Link>**](Link.md) | Link to the document. | [optional] diff --git a/docs/CircleAnnotationsResponse.md b/docs/CircleAnnotationsResponse.md index 9a439b4..9aec8d9 100644 --- a/docs/CircleAnnotationsResponse.md +++ b/docs/CircleAnnotationsResponse.md @@ -1,11 +1,11 @@  # CircleAnnotationsResponse - +Represents response containing multiple circle annotation objects ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**annotations** | [**CircleAnnotations**](CircleAnnotations.md) | | [optional] +**annotations** | [**CircleAnnotations**](CircleAnnotations.md) | Circle annotations object | [optional] **code** | **Integer** | Response status code. | **status** | **String** | Response status. | [optional] diff --git a/docs/Color.md b/docs/Color.md index 38713a4..21a3295 100644 --- a/docs/Color.md +++ b/docs/Color.md @@ -5,10 +5,10 @@ Represents color DTO. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**a** | **Integer** | | -**r** | **Integer** | | -**g** | **Integer** | | -**b** | **Integer** | | +**a** | **Integer** | Alpha component. | +**r** | **Integer** | Red component. | +**g** | **Integer** | Green component. | +**b** | **Integer** | Blue component. | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/CommonFigureAnnotation.md b/docs/CommonFigureAnnotation.md index 9789802..df9d83f 100644 --- a/docs/CommonFigureAnnotation.md +++ b/docs/CommonFigureAnnotation.md @@ -6,17 +6,18 @@ Provides CommonFigureAnnotation. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **interiorColor** | [**Color**](Color.md) | Get the annotation InteriorColor. | [optional] -**frame** | [**RectanglePdf**](RectanglePdf.md) | Get or set the annotation Rectangle of frame. | [optional] +**frame** | [**Rectangle**](Rectangle.md) | Get or set the annotation Rectangle of frame. | [optional] **creationDate** | **String** | The date and time when the annotation was created. | [optional] **subject** | **String** | Get the annotation subject. | [optional] **title** | **String** | Get the annotation title. | [optional] **richText** | **String** | Get the annotation RichText. | [optional] +**color** | [**Color**](Color.md) | Color of the annotation. | [optional] **contents** | **String** | Get the annotation content. | [optional] **modified** | **String** | The date and time when the annotation was last modified. | [optional] **id** | **String** | Gets ID of the annotation. | [optional] **flags** | [**List<AnnotationFlags>**](AnnotationFlags.md) | Gets Flags of the annotation. | [optional] **name** | **String** | Gets Name of the annotation. | [optional] -**rect** | [**RectanglePdf**](RectanglePdf.md) | Gets Rect of the annotation. | +**rect** | [**Rectangle**](Rectangle.md) | Gets Rect of the annotation. | **pageIndex** | **Integer** | Gets PageIndex of the annotation. | [optional] **zIndex** | **Integer** | Gets ZIndex of the annotation. | [optional] **horizontalAlignment** | [**HorizontalAlignment**](HorizontalAlignment.md) | Gets HorizontalAlignment of the annotation. | [optional] diff --git a/docs/DiscUsage.md b/docs/DiscUsage.md new file mode 100644 index 0000000..81327de --- /dev/null +++ b/docs/DiscUsage.md @@ -0,0 +1,14 @@ + +# DiscUsage + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**usedSize** | **Integer** | | +**totalSize** | **Integer** | | + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DiscUsageResponse.md b/docs/DiscUsageResponse.md new file mode 100644 index 0000000..d20f785 --- /dev/null +++ b/docs/DiscUsageResponse.md @@ -0,0 +1,15 @@ + +# DiscUsageResponse + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**discUsage** | [**DiscUsage**](DiscUsage.md) | | [optional] +**code** | **Integer** | Response status code. | +**status** | **String** | Response status. | [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) + + diff --git a/docs/DocumentPageResponse.md b/docs/DocumentPageResponse.md index bcb623a..a3b21e5 100644 --- a/docs/DocumentPageResponse.md +++ b/docs/DocumentPageResponse.md @@ -1,11 +1,11 @@  # DocumentPageResponse - +Represents response containing single page info ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**page** | [**Page**](Page.md) | | [optional] +**page** | [**Page**](Page.md) | Page object | [optional] **code** | **Integer** | Response status code. | **status** | **String** | Response status. | [optional] diff --git a/docs/DocumentPagesResponse.md b/docs/DocumentPagesResponse.md index c0a2e79..ffd4bd8 100644 --- a/docs/DocumentPagesResponse.md +++ b/docs/DocumentPagesResponse.md @@ -1,11 +1,11 @@  # DocumentPagesResponse - +Represents response containing multiple pages info ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**pages** | [**Pages**](Pages.md) | | [optional] +**pages** | [**Pages**](Pages.md) | Page object | [optional] **code** | **Integer** | Response status code. | **status** | **String** | Response status. | [optional] diff --git a/docs/DocumentProperties.md b/docs/DocumentProperties.md index bc3f7b4..4b3bbf2 100644 --- a/docs/DocumentProperties.md +++ b/docs/DocumentProperties.md @@ -1,11 +1,11 @@  # DocumentProperties -Pdf document properties. +Represents list of PDF document properties. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**list** | [**List<DocumentProperty>**](DocumentProperty.md) | | [optional] +**list** | [**List<DocumentProperty>**](DocumentProperty.md) | List of PDF document properties. | [optional] **links** | [**List<Link>**](Link.md) | Link to the document. | [optional] diff --git a/docs/DocumentPropertiesResponse.md b/docs/DocumentPropertiesResponse.md index 7681c1e..b8d083c 100644 --- a/docs/DocumentPropertiesResponse.md +++ b/docs/DocumentPropertiesResponse.md @@ -1,11 +1,11 @@  # DocumentPropertiesResponse - +Represents response containing multiple document properties info ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**documentProperties** | [**DocumentProperties**](DocumentProperties.md) | | [optional] +**documentProperties** | [**DocumentProperties**](DocumentProperties.md) | DocumentProperties object | [optional] **code** | **Integer** | Response status code. | **status** | **String** | Response status. | [optional] diff --git a/docs/DocumentProperty.md b/docs/DocumentProperty.md index a3ffe7f..6ac69a7 100644 --- a/docs/DocumentProperty.md +++ b/docs/DocumentProperty.md @@ -5,9 +5,9 @@ Pdf document property. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**name** | **String** | | [optional] -**value** | **String** | | [optional] -**builtIn** | **Boolean** | | +**name** | **String** | Pame of the property. | [optional] +**value** | **String** | Property value. | [optional] +**builtIn** | **Boolean** | Value indicating whether it is a built-in property. | **links** | [**List<Link>**](Link.md) | Link to the document. | [optional] diff --git a/docs/DocumentPropertyResponse.md b/docs/DocumentPropertyResponse.md index 64cbf9e..0b9fd63 100644 --- a/docs/DocumentPropertyResponse.md +++ b/docs/DocumentPropertyResponse.md @@ -1,11 +1,11 @@  # DocumentPropertyResponse - +Represents response containing single document property info ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**documentProperty** | [**DocumentProperty**](DocumentProperty.md) | | [optional] +**documentProperty** | [**DocumentProperty**](DocumentProperty.md) | DocumentProperty object | [optional] **code** | **Integer** | Response status code. | **status** | **String** | Response status. | [optional] diff --git a/docs/DocumentResponse.md b/docs/DocumentResponse.md index 3b2bbd9..ad8da6a 100644 --- a/docs/DocumentResponse.md +++ b/docs/DocumentResponse.md @@ -1,12 +1,12 @@  # DocumentResponse - +Represents response containing document info ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**document** | [**Document**](Document.md) | | [optional] -**messages** | **List<String>** | | [optional] +**document** | [**Document**](Document.md) | Document object | [optional] +**messages** | **List<String>** | A list of messages obtained while producing the responce | [optional] **code** | **Integer** | Response status code. | **status** | **String** | Response status. | [optional] diff --git a/docs/Field.md b/docs/Field.md index 6d922db..6f420f3 100644 --- a/docs/Field.md +++ b/docs/Field.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **name** | **String** | Field name. | [optional] **selectedItems** | **List<Integer>** | Selected items. | [optional] **type** | [**FieldType**](FieldType.md) | Field type. | [optional] -**rect** | [**RectanglePdf**](RectanglePdf.md) | Field rectangle. | [optional] +**rect** | [**Rectangle**](Rectangle.md) | Field rectangle. | [optional] **values** | **List<String>** | Field values. | **links** | [**List<Link>**](Link.md) | Link to the document. | [optional] diff --git a/docs/FieldResponse.md b/docs/FieldResponse.md index 355a7e8..18ba94a 100644 --- a/docs/FieldResponse.md +++ b/docs/FieldResponse.md @@ -1,11 +1,11 @@  # FieldResponse - +Represents response containing single field info ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**field** | [**Field**](Field.md) | | [optional] +**field** | [**Field**](Field.md) | Field object | [optional] **code** | **Integer** | Response status code. | **status** | **String** | Response status. | [optional] diff --git a/docs/FieldType.md b/docs/FieldType.md index 35a5c33..99e2e31 100644 --- a/docs/FieldType.md +++ b/docs/FieldType.md @@ -5,10 +5,10 @@ Represents an enumeration of available field types. ## Enum Name | Description ------------ | ------------ -**Text** | -**Integer** | -**Boolean** | -**List** | +**Text** | Textbox field +**Integer** | Numeric textbox field +**Boolean** | Checkbox field +**List** | Listbox field [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Fields.md b/docs/Fields.md index 1a47ab3..e784653 100644 --- a/docs/Fields.md +++ b/docs/Fields.md @@ -1,11 +1,11 @@  # Fields -List of form fields. +Represents list of form fields. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**list** | [**List<Field>**](Field.md) | | +**list** | [**List<Field>**](Field.md) | List of form fields. | **links** | [**List<Link>**](Link.md) | Link to the document. | [optional] diff --git a/docs/FieldsResponse.md b/docs/FieldsResponse.md index e04b5b2..747c5f5 100644 --- a/docs/FieldsResponse.md +++ b/docs/FieldsResponse.md @@ -1,11 +1,11 @@  # FieldsResponse - +Represents response containing multiple fields info ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**fields** | [**Fields**](Fields.md) | | [optional] +**fields** | [**Fields**](Fields.md) | Fields object | [optional] **code** | **Integer** | Response status code. | **status** | **String** | Response status. | [optional] diff --git a/docs/FileExist.md b/docs/FileExist.md new file mode 100644 index 0000000..0719588 --- /dev/null +++ b/docs/FileExist.md @@ -0,0 +1,14 @@ + +# FileExist + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**isExist** | **Boolean** | | +**isFolder** | **Boolean** | | + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/FileExistResponse.md b/docs/FileExistResponse.md new file mode 100644 index 0000000..9cf4c4c --- /dev/null +++ b/docs/FileExistResponse.md @@ -0,0 +1,15 @@ + +# FileExistResponse + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**fileExist** | [**FileExist**](FileExist.md) | | [optional] +**code** | **Integer** | Response status code. | +**status** | **String** | Response status. | [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) + + diff --git a/docs/FileVersion.md b/docs/FileVersion.md new file mode 100644 index 0000000..a45bf84 --- /dev/null +++ b/docs/FileVersion.md @@ -0,0 +1,19 @@ + +# FileVersion + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**versionId** | **String** | | [optional] +**isLatest** | **Boolean** | | +**name** | **String** | | [optional] +**isFolder** | **Boolean** | | +**modifiedDate** | **String** | | [optional] +**size** | **Integer** | | +**path** | **String** | | [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) + + diff --git a/docs/FileVersionsResponse.md b/docs/FileVersionsResponse.md new file mode 100644 index 0000000..a14a361 --- /dev/null +++ b/docs/FileVersionsResponse.md @@ -0,0 +1,15 @@ + +# FileVersionsResponse + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**fileVersions** | [**List<FileVersion>**](FileVersion.md) | | [optional] +**code** | **Integer** | Response status code. | +**status** | **String** | Response status. | [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) + + diff --git a/docs/FreeTextAnnotation.md b/docs/FreeTextAnnotation.md index 9a353c1..11195ed 100644 --- a/docs/FreeTextAnnotation.md +++ b/docs/FreeTextAnnotation.md @@ -13,12 +13,13 @@ Name | Type | Description | Notes **subject** | **String** | Get the annotation subject. | [optional] **title** | **String** | Get the annotation title. | [optional] **richText** | **String** | Get the annotation RichText. | [optional] +**color** | [**Color**](Color.md) | Color of the annotation. | [optional] **contents** | **String** | Get the annotation content. | [optional] **modified** | **String** | The date and time when the annotation was last modified. | [optional] **id** | **String** | Gets ID of the annotation. | [optional] **flags** | [**List<AnnotationFlags>**](AnnotationFlags.md) | Gets Flags of the annotation. | [optional] **name** | **String** | Gets Name of the annotation. | [optional] -**rect** | [**RectanglePdf**](RectanglePdf.md) | Gets Rect of the annotation. | +**rect** | [**Rectangle**](Rectangle.md) | Gets Rect of the annotation. | **pageIndex** | **Integer** | Gets PageIndex of the annotation. | [optional] **zIndex** | **Integer** | Gets ZIndex of the annotation. | [optional] **horizontalAlignment** | [**HorizontalAlignment**](HorizontalAlignment.md) | Gets HorizontalAlignment of the annotation. | [optional] diff --git a/docs/FreeTextAnnotationResponse.md b/docs/FreeTextAnnotationResponse.md index 7ab7e8e..e977293 100644 --- a/docs/FreeTextAnnotationResponse.md +++ b/docs/FreeTextAnnotationResponse.md @@ -1,11 +1,11 @@  # FreeTextAnnotationResponse - +Represents response containing single free text annotation object ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**annotation** | [**FreeTextAnnotation**](FreeTextAnnotation.md) | | [optional] +**annotation** | [**FreeTextAnnotation**](FreeTextAnnotation.md) | Free text annotation object | [optional] **code** | **Integer** | Response status code. | **status** | **String** | Response status. | [optional] diff --git a/docs/FreeTextAnnotations.md b/docs/FreeTextAnnotations.md index e752a2f..8e8b301 100644 --- a/docs/FreeTextAnnotations.md +++ b/docs/FreeTextAnnotations.md @@ -1,11 +1,11 @@  # FreeTextAnnotations -List of annotations. +Object representing a list of free text annotations. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**list** | [**List<FreeTextAnnotation>**](FreeTextAnnotation.md) | | [optional] +**list** | [**List<FreeTextAnnotation>**](FreeTextAnnotation.md) | List of free text annotations. | [optional] **links** | [**List<Link>**](Link.md) | Link to the document. | [optional] diff --git a/docs/FreeTextAnnotationsResponse.md b/docs/FreeTextAnnotationsResponse.md index 3cd3746..22c2981 100644 --- a/docs/FreeTextAnnotationsResponse.md +++ b/docs/FreeTextAnnotationsResponse.md @@ -1,11 +1,11 @@  # FreeTextAnnotationsResponse - +Represents response containing multiple free text annotation objects ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**annotations** | [**FreeTextAnnotations**](FreeTextAnnotations.md) | | [optional] +**annotations** | [**FreeTextAnnotations**](FreeTextAnnotations.md) | Free text annotations object | [optional] **code** | **Integer** | Response status code. | **status** | **String** | Response status. | [optional] diff --git a/docs/HighlightAnnotation.md b/docs/HighlightAnnotation.md index cac56ae..f9c2ba2 100644 --- a/docs/HighlightAnnotation.md +++ b/docs/HighlightAnnotation.md @@ -5,18 +5,18 @@ Provides HighlightAnnotation. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**color** | [**Color**](Color.md) | Color of the annotation. | [optional] **quadPoints** | [**List<Point>**](Point.md) | Gets or sets an array of points specifying the coordinates of n quadrilaterals. Each quadrilateral encompasses a word or group of contiguous words in the text underlying the annotation. | [optional] **creationDate** | **String** | The date and time when the annotation was created. | [optional] **subject** | **String** | Get the annotation subject. | [optional] **title** | **String** | Get the annotation title. | [optional] **richText** | **String** | Get the annotation RichText. | [optional] +**color** | [**Color**](Color.md) | Color of the annotation. | [optional] **contents** | **String** | Get the annotation content. | [optional] **modified** | **String** | The date and time when the annotation was last modified. | [optional] **id** | **String** | Gets ID of the annotation. | [optional] **flags** | [**List<AnnotationFlags>**](AnnotationFlags.md) | Gets Flags of the annotation. | [optional] **name** | **String** | Gets Name of the annotation. | [optional] -**rect** | [**RectanglePdf**](RectanglePdf.md) | Gets Rect of the annotation. | +**rect** | [**Rectangle**](Rectangle.md) | Gets Rect of the annotation. | **pageIndex** | **Integer** | Gets PageIndex of the annotation. | [optional] **zIndex** | **Integer** | Gets ZIndex of the annotation. | [optional] **horizontalAlignment** | [**HorizontalAlignment**](HorizontalAlignment.md) | Gets HorizontalAlignment of the annotation. | [optional] diff --git a/docs/HighlightAnnotationResponse.md b/docs/HighlightAnnotationResponse.md index 48697a0..184bed4 100644 --- a/docs/HighlightAnnotationResponse.md +++ b/docs/HighlightAnnotationResponse.md @@ -1,11 +1,11 @@  # HighlightAnnotationResponse - +Represents response containing single highlight annotation object ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**annotation** | [**HighlightAnnotation**](HighlightAnnotation.md) | | [optional] +**annotation** | [**HighlightAnnotation**](HighlightAnnotation.md) | Highlight annotation object | [optional] **code** | **Integer** | Response status code. | **status** | **String** | Response status. | [optional] diff --git a/docs/HighlightAnnotations.md b/docs/HighlightAnnotations.md index 4f94288..66895d3 100644 --- a/docs/HighlightAnnotations.md +++ b/docs/HighlightAnnotations.md @@ -1,11 +1,11 @@  # HighlightAnnotations -List of annotations. +Object representing a list of highlight annotations. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**list** | [**List<HighlightAnnotation>**](HighlightAnnotation.md) | | [optional] +**list** | [**List<HighlightAnnotation>**](HighlightAnnotation.md) | List of highlight annotations. | [optional] **links** | [**List<Link>**](Link.md) | Link to the document. | [optional] diff --git a/docs/HighlightAnnotationsResponse.md b/docs/HighlightAnnotationsResponse.md index dab6b10..69d55e2 100644 --- a/docs/HighlightAnnotationsResponse.md +++ b/docs/HighlightAnnotationsResponse.md @@ -1,11 +1,11 @@  # HighlightAnnotationsResponse - +Represents response containing multiple highlight annotation objects ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**annotations** | [**HighlightAnnotations**](HighlightAnnotations.md) | | [optional] +**annotations** | [**HighlightAnnotations**](HighlightAnnotations.md) | Highlight annotations object | [optional] **code** | **Integer** | Response status code. | **status** | **String** | Response status. | [optional] diff --git a/docs/HorizontalAlignment.md b/docs/HorizontalAlignment.md index c7691a5..ee2e470 100644 --- a/docs/HorizontalAlignment.md +++ b/docs/HorizontalAlignment.md @@ -1,6 +1,6 @@  # HorizontalAlignment - +Describes horizontal alignment. ## Enum Name | Description diff --git a/docs/Image.md b/docs/Image.md index da2a1d6..ad55d64 100644 --- a/docs/Image.md +++ b/docs/Image.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **width** | **Integer** | Gets width of the image. | **height** | **Integer** | Gets height of the image. | **id** | **String** | Gets ID of the image. | [optional] -**rectangle** | [**RectanglePdf**](RectanglePdf.md) | Gets rectangle of the image. | [optional] +**rectangle** | [**Rectangle**](Rectangle.md) | Gets rectangle of the image. | [optional] **pageNumber** | **Integer** | Gets page number. | **links** | [**List<Link>**](Link.md) | Link to the document. | [optional] diff --git a/docs/ImageResponse.md b/docs/ImageResponse.md index 02b4626..331252d 100644 --- a/docs/ImageResponse.md +++ b/docs/ImageResponse.md @@ -1,11 +1,11 @@  # ImageResponse - +Represents response containing single image info ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**image** | [**Image**](Image.md) | | [optional] +**image** | [**Image**](Image.md) | Image object | [optional] **code** | **Integer** | Response status code. | **status** | **String** | Response status. | [optional] diff --git a/docs/ImageSrcType.md b/docs/ImageSrcType.md index ba02861..1369138 100644 --- a/docs/ImageSrcType.md +++ b/docs/ImageSrcType.md @@ -5,8 +5,8 @@ Allows to specify image file format. ## Enum Name | Description ------------ | ------------ -**Common** | -**Emf** | +**Common** | Any image format except EMF +**Emf** | EMF image format [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Images.md b/docs/Images.md index 0673ec8..401f3ec 100644 --- a/docs/Images.md +++ b/docs/Images.md @@ -1,11 +1,11 @@  # Images -List of page images. +Represents list of images. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**list** | [**List<Image>**](Image.md) | | [optional] +**list** | [**List<Image>**](Image.md) | List of images. | [optional] **links** | [**List<Link>**](Link.md) | Link to the document. | [optional] diff --git a/docs/ImagesResponse.md b/docs/ImagesResponse.md index c207e27..12f25b2 100644 --- a/docs/ImagesResponse.md +++ b/docs/ImagesResponse.md @@ -1,11 +1,11 @@  # ImagesResponse - +Represents response containing multiple images info ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**images** | [**Images**](Images.md) | | [optional] +**images** | [**Images**](Images.md) | Images object | [optional] **code** | **Integer** | Response status code. | **status** | **String** | Response status. | [optional] diff --git a/docs/InkAnnotation.md b/docs/InkAnnotation.md index ae013e1..0f1d1ca 100644 --- a/docs/InkAnnotation.md +++ b/docs/InkAnnotation.md @@ -5,19 +5,19 @@ Provides InkAnnotation. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**color** | [**Color**](Color.md) | Color of the annotation. | [optional] **inkList** | **List<Array>** | Gets or sets list of gestures that are independent lines which are represented by Point[] arrays. | [optional] **capStyle** | [**CapStyle**](CapStyle.md) | Style of ink annotation line endings. | [optional] **creationDate** | **String** | The date and time when the annotation was created. | [optional] **subject** | **String** | Get the annotation subject. | [optional] **title** | **String** | Get the annotation title. | [optional] **richText** | **String** | Get the annotation RichText. | [optional] +**color** | [**Color**](Color.md) | Color of the annotation. | [optional] **contents** | **String** | Get the annotation content. | [optional] **modified** | **String** | The date and time when the annotation was last modified. | [optional] **id** | **String** | Gets ID of the annotation. | [optional] **flags** | [**List<AnnotationFlags>**](AnnotationFlags.md) | Gets Flags of the annotation. | [optional] **name** | **String** | Gets Name of the annotation. | [optional] -**rect** | [**RectanglePdf**](RectanglePdf.md) | Gets Rect of the annotation. | +**rect** | [**Rectangle**](Rectangle.md) | Gets Rect of the annotation. | **pageIndex** | **Integer** | Gets PageIndex of the annotation. | [optional] **zIndex** | **Integer** | Gets ZIndex of the annotation. | [optional] **horizontalAlignment** | [**HorizontalAlignment**](HorizontalAlignment.md) | Gets HorizontalAlignment of the annotation. | [optional] diff --git a/docs/InkAnnotationResponse.md b/docs/InkAnnotationResponse.md index f78d247..38b236d 100644 --- a/docs/InkAnnotationResponse.md +++ b/docs/InkAnnotationResponse.md @@ -1,11 +1,11 @@  # InkAnnotationResponse - +Represents response containing single ink annotation object ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**annotation** | [**InkAnnotation**](InkAnnotation.md) | | [optional] +**annotation** | [**InkAnnotation**](InkAnnotation.md) | Ink annotation object | [optional] **code** | **Integer** | Response status code. | **status** | **String** | Response status. | [optional] diff --git a/docs/InkAnnotations.md b/docs/InkAnnotations.md index f0235aa..a209d31 100644 --- a/docs/InkAnnotations.md +++ b/docs/InkAnnotations.md @@ -1,11 +1,11 @@  # InkAnnotations -List of annotations. +Object representing a list of ink annotations. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**list** | [**List<InkAnnotation>**](InkAnnotation.md) | | [optional] +**list** | [**List<InkAnnotation>**](InkAnnotation.md) | List of ink annotations. | [optional] **links** | [**List<Link>**](Link.md) | Link to the document. | [optional] diff --git a/docs/InkAnnotationsResponse.md b/docs/InkAnnotationsResponse.md index 7b37457..3444a71 100644 --- a/docs/InkAnnotationsResponse.md +++ b/docs/InkAnnotationsResponse.md @@ -1,11 +1,11 @@  # InkAnnotationsResponse - +Represents response containing multiple ink annotation objects ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**annotations** | [**InkAnnotations**](InkAnnotations.md) | | [optional] +**annotations** | [**InkAnnotations**](InkAnnotations.md) | Ink annotations object | [optional] **code** | **Integer** | Response status code. | **status** | **String** | Response status. | [optional] diff --git a/docs/LineAnnotation.md b/docs/LineAnnotation.md index 9ef20f0..172314f 100644 --- a/docs/LineAnnotation.md +++ b/docs/LineAnnotation.md @@ -16,18 +16,18 @@ Name | Type | Description | Notes **showCaption** | **Boolean** | Gets or sets boolean flag which determinies is contents must be shown as caption. | [optional] **captionOffset** | [**Point**](Point.md) | Gets or sets caption text offset from its normal position. | [optional] **captionPosition** | [**CaptionPosition**](CaptionPosition.md) | Gets or sets annotation caption position. | [optional] -**color** | [**Color**](Color.md) | Color of the annotation. | [optional] **intent** | [**LineIntent**](LineIntent.md) | Gets or sets the intent of the line annotation. | [optional] **creationDate** | **String** | The date and time when the annotation was created. | [optional] **subject** | **String** | Get the annotation subject. | [optional] **title** | **String** | Get the annotation title. | [optional] **richText** | **String** | Get the annotation RichText. | [optional] +**color** | [**Color**](Color.md) | Color of the annotation. | [optional] **contents** | **String** | Get the annotation content. | [optional] **modified** | **String** | The date and time when the annotation was last modified. | [optional] **id** | **String** | Gets ID of the annotation. | [optional] **flags** | [**List<AnnotationFlags>**](AnnotationFlags.md) | Gets Flags of the annotation. | [optional] **name** | **String** | Gets Name of the annotation. | [optional] -**rect** | [**RectanglePdf**](RectanglePdf.md) | Gets Rect of the annotation. | +**rect** | [**Rectangle**](Rectangle.md) | Gets Rect of the annotation. | **pageIndex** | **Integer** | Gets PageIndex of the annotation. | [optional] **zIndex** | **Integer** | Gets ZIndex of the annotation. | [optional] **horizontalAlignment** | [**HorizontalAlignment**](HorizontalAlignment.md) | Gets HorizontalAlignment of the annotation. | [optional] diff --git a/docs/LineAnnotationResponse.md b/docs/LineAnnotationResponse.md index 0490356..52976d1 100644 --- a/docs/LineAnnotationResponse.md +++ b/docs/LineAnnotationResponse.md @@ -1,11 +1,11 @@  # LineAnnotationResponse - +Represents response containing single line annotation object ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**annotation** | [**LineAnnotation**](LineAnnotation.md) | | [optional] +**annotation** | [**LineAnnotation**](LineAnnotation.md) | Line annotation object | [optional] **code** | **Integer** | Response status code. | **status** | **String** | Response status. | [optional] diff --git a/docs/LineAnnotations.md b/docs/LineAnnotations.md index a3f1cd1..1ee2fda 100644 --- a/docs/LineAnnotations.md +++ b/docs/LineAnnotations.md @@ -1,11 +1,11 @@  # LineAnnotations -List of annotations. +Object representing a list of line annotations. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**list** | [**List<LineAnnotation>**](LineAnnotation.md) | | [optional] +**list** | [**List<LineAnnotation>**](LineAnnotation.md) | List of line annotations. | [optional] **links** | [**List<Link>**](Link.md) | Link to the document. | [optional] diff --git a/docs/LineAnnotationsResponse.md b/docs/LineAnnotationsResponse.md index 6b52947..ca959b5 100644 --- a/docs/LineAnnotationsResponse.md +++ b/docs/LineAnnotationsResponse.md @@ -1,11 +1,11 @@  # LineAnnotationsResponse - +Represents response containing multiple line annotation objects ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**annotations** | [**LineAnnotations**](LineAnnotations.md) | | [optional] +**annotations** | [**LineAnnotations**](LineAnnotations.md) | Line annotations object | [optional] **code** | **Integer** | Response status code. | **status** | **String** | Response status. | [optional] diff --git a/docs/LineSpacing.md b/docs/LineSpacing.md index 9cf7ce9..0545481 100644 --- a/docs/LineSpacing.md +++ b/docs/LineSpacing.md @@ -1,12 +1,12 @@  # LineSpacing - +Defines line spacing specifics ## Enum Name | Description ------------ | ------------ -**FontSize** | -**FullSize** | +**FontSize** | Line spacing is font size +**FullSize** | Line spacing is a full space between descender and ascender [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/LinkAnnotation.md b/docs/LinkAnnotation.md index e736943..329f110 100644 --- a/docs/LinkAnnotation.md +++ b/docs/LinkAnnotation.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **action** | **String** | | **highlighting** | [**LinkHighlightingMode**](LinkHighlightingMode.md) | | **color** | [**Color**](Color.md) | | [optional] -**rect** | [**RectanglePdf**](RectanglePdf.md) | | +**rect** | [**Rectangle**](Rectangle.md) | | **id** | **String** | | [optional] **links** | [**List<Link>**](Link.md) | Link to the document. | [optional] diff --git a/docs/LinkAnnotationResponse.md b/docs/LinkAnnotationResponse.md index a035376..33ce197 100644 --- a/docs/LinkAnnotationResponse.md +++ b/docs/LinkAnnotationResponse.md @@ -1,11 +1,11 @@  # LinkAnnotationResponse - +Represents response containing single link info ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**link** | [**LinkAnnotation**](LinkAnnotation.md) | | [optional] +**link** | [**LinkAnnotation**](LinkAnnotation.md) | LinkAnnotation object | [optional] **code** | **Integer** | Response status code. | **status** | **String** | Response status. | [optional] diff --git a/docs/LinkAnnotations.md b/docs/LinkAnnotations.md index 5b48880..f2da751 100644 --- a/docs/LinkAnnotations.md +++ b/docs/LinkAnnotations.md @@ -1,11 +1,11 @@  # LinkAnnotations -List of LinkAnnotations. +Object representing a list of link annotations. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**list** | [**List<LinkAnnotation>**](LinkAnnotation.md) | | [optional] +**list** | [**List<LinkAnnotation>**](LinkAnnotation.md) | List of link annotations. | [optional] **links** | [**List<Link>**](Link.md) | Link to the document. | [optional] diff --git a/docs/LinkAnnotationsResponse.md b/docs/LinkAnnotationsResponse.md index 9c7e856..b03e7c2 100644 --- a/docs/LinkAnnotationsResponse.md +++ b/docs/LinkAnnotationsResponse.md @@ -1,11 +1,11 @@  # LinkAnnotationsResponse - +Represents response containing multiple links info ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**links** | [**LinkAnnotations**](LinkAnnotations.md) | | [optional] +**links** | [**LinkAnnotations**](LinkAnnotations.md) | LinkAnnotations object | [optional] **code** | **Integer** | Response status code. | **status** | **String** | Response status. | [optional] diff --git a/docs/MarkupAnnotation.md b/docs/MarkupAnnotation.md index dd7a738..289276f 100644 --- a/docs/MarkupAnnotation.md +++ b/docs/MarkupAnnotation.md @@ -9,12 +9,13 @@ Name | Type | Description | Notes **subject** | **String** | Get the annotation subject. | [optional] **title** | **String** | Get the annotation title. | [optional] **richText** | **String** | Get the annotation RichText. | [optional] +**color** | [**Color**](Color.md) | Color of the annotation. | [optional] **contents** | **String** | Get the annotation content. | [optional] **modified** | **String** | The date and time when the annotation was last modified. | [optional] **id** | **String** | Gets ID of the annotation. | [optional] **flags** | [**List<AnnotationFlags>**](AnnotationFlags.md) | Gets Flags of the annotation. | [optional] **name** | **String** | Gets Name of the annotation. | [optional] -**rect** | [**RectanglePdf**](RectanglePdf.md) | Gets Rect of the annotation. | +**rect** | [**Rectangle**](Rectangle.md) | Gets Rect of the annotation. | **pageIndex** | **Integer** | Gets PageIndex of the annotation. | [optional] **zIndex** | **Integer** | Gets ZIndex of the annotation. | [optional] **horizontalAlignment** | [**HorizontalAlignment**](HorizontalAlignment.md) | Gets HorizontalAlignment of the annotation. | [optional] diff --git a/docs/Page.md b/docs/Page.md index acb3898..4d3afa9 100644 --- a/docs/Page.md +++ b/docs/Page.md @@ -6,8 +6,8 @@ Provides link to page. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **id** | **Integer** | Page's id. | -**images** | [**Images**](Images.md) | | [optional] -**rectangle** | [**RectanglePdf**](RectanglePdf.md) | | [optional] +**images** | [**Images**](Images.md) | Page's images | [optional] +**rectangle** | [**Rectangle**](Rectangle.md) | Page's rectangle | [optional] **links** | [**List<Link>**](Link.md) | Link to the document. | [optional] diff --git a/docs/Pages.md b/docs/Pages.md index 3929f57..279e115 100644 --- a/docs/Pages.md +++ b/docs/Pages.md @@ -1,11 +1,11 @@  # Pages -List of pages. +Represents list of pages. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**list** | [**List<Page>**](Page.md) | | [optional] +**list** | [**List<Page>**](Page.md) | List of pages. | [optional] **links** | [**List<Link>**](Link.md) | Link to the document. | [optional] diff --git a/docs/Paragraph.md b/docs/Paragraph.md index cc9a620..2adddc0 100644 --- a/docs/Paragraph.md +++ b/docs/Paragraph.md @@ -1,22 +1,22 @@  # Paragraph -Paragraph DTO for add text functionality. +Represents text paragraphs as multiline text object. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**lineSpacing** | [**LineSpacing**](LineSpacing.md) | | [optional] -**wrapMode** | [**WrapMode**](WrapMode.md) | | [optional] -**horizontalAlignment** | [**TextHorizontalAlignment**](TextHorizontalAlignment.md) | | [optional] -**leftMargin** | **Double** | | [optional] -**rightMargin** | **Double** | | [optional] -**topMargin** | **Double** | | [optional] -**bottomMargin** | **Double** | | [optional] -**rectangle** | [**RectanglePdf**](RectanglePdf.md) | | [optional] -**rotation** | **Double** | | [optional] -**subsequentLinesIndent** | **Double** | | [optional] -**verticalAlignment** | [**VerticalAlignment**](VerticalAlignment.md) | | [optional] -**lines** | [**List<TextLine>**](TextLine.md) | | +**lineSpacing** | [**LineSpacing**](LineSpacing.md) | Line spacing mode. | [optional] +**wrapMode** | [**WrapMode**](WrapMode.md) | Word wrap mode. | [optional] +**horizontalAlignment** | [**TextHorizontalAlignment**](TextHorizontalAlignment.md) | Horizontal alignment for the text inside paragrph's rectangle. | [optional] +**leftMargin** | **Double** | Left margin. | [optional] +**rightMargin** | **Double** | Right margin. | [optional] +**topMargin** | **Double** | Top margin. | [optional] +**bottomMargin** | **Double** | Bottom margin. | [optional] +**rectangle** | [**Rectangle**](Rectangle.md) | Rectangle of the paragraph. | [optional] +**rotation** | **Double** | Rotation angle in degrees. | [optional] +**subsequentLinesIndent** | **Double** | Subsequent lines indent value. | [optional] +**verticalAlignment** | [**VerticalAlignment**](VerticalAlignment.md) | Vertical alignment for the text inside paragrph's rectangle | [optional] +**lines** | [**List<TextLine>**](TextLine.md) | An array of text lines. | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/PdfApi.md b/docs/PdfApi.md index 9021b21..8a57925 100644 --- a/docs/PdfApi.md +++ b/docs/PdfApi.md @@ -8,6 +8,8 @@ Method | HTTP request | Description [**deleteDocumentAnnotations**](PdfApi.md#deleteDocumentAnnotations) | **DELETE** /pdf/\{name}/annotations | Delete all annotations from the document [**deleteDocumentLinkAnnotations**](PdfApi.md#deleteDocumentLinkAnnotations) | **DELETE** /pdf/\{name}/links | Delete all link annotations from the document [**deleteField**](PdfApi.md#deleteField) | **DELETE** /pdf/\{name}/fields/\{fieldName} | Delete document field by name. +[**deleteFile**](PdfApi.md#deleteFile) | **DELETE** /storage/file | Remove a specific file +[**deleteFolder**](PdfApi.md#deleteFolder) | **DELETE** /storage/folder | Remove a specific folder [**deleteImage**](PdfApi.md#deleteImage) | **DELETE** /pdf/\{name}/images/\{imageId} | Delete image from document page. [**deleteLinkAnnotation**](PdfApi.md#deleteLinkAnnotation) | **DELETE** /pdf/\{name}/links/\{linkId} | Delete document page link annotation by ID [**deletePage**](PdfApi.md#deletePage) | **DELETE** /pdf/\{name}/pages/\{pageNumber} | Delete document page by its number. @@ -17,6 +19,7 @@ Method | HTTP request | Description [**deleteProperty**](PdfApi.md#deleteProperty) | **DELETE** /pdf/\{name}/documentproperties/\{propertyName} | Delete document property. [**getCaretAnnotation**](PdfApi.md#getCaretAnnotation) | **GET** /pdf/\{name}/annotations/caret/\{annotationId} | Read document page caret annotation by ID. [**getCircleAnnotation**](PdfApi.md#getCircleAnnotation) | **GET** /pdf/\{name}/annotations/circle/\{annotationId} | Read document page circle annotation by ID. +[**getDiscUsage**](PdfApi.md#getDiscUsage) | **GET** /storage/disc | Check the disk usage of the current account [**getDocument**](PdfApi.md#getDocument) | **GET** /pdf/\{name} | Read common document info. [**getDocumentAnnotations**](PdfApi.md#getDocumentAnnotations) | **GET** /pdf/\{name}/annotations | Read documant page annotations. Returns only FreeTextAnnotations, TextAnnotations, other annotations will implemented next releases. [**getDocumentAttachmentByIndex**](PdfApi.md#getDocumentAttachmentByIndex) | **GET** /pdf/\{name}/attachments/\{attachmentIndex} | Read document attachment info by its index. @@ -54,9 +57,12 @@ Method | HTTP request | Description [**getImageExtractAsTiff**](PdfApi.md#getImageExtractAsTiff) | **GET** /pdf/\{name}/images/\{imageId}/extract/tiff | Extract document image in TIFF format [**getImages**](PdfApi.md#getImages) | **GET** /pdf/\{name}/pages/\{pageNumber}/images | Read document images. [**getInkAnnotation**](PdfApi.md#getInkAnnotation) | **GET** /pdf/\{name}/annotations/ink/\{annotationId} | Read document page ink annotation by ID. +[**getIsExist**](PdfApi.md#getIsExist) | **GET** /storage/exist | Check if a specific file or folder exists +[**getIsStorageExist**](PdfApi.md#getIsStorageExist) | **GET** /storage/\{name}/exist | Check if storage exists [**getLaTeXInStorageToPdf**](PdfApi.md#getLaTeXInStorageToPdf) | **GET** /pdf/create/latex | Convert LaTeX file (located on storage) to PDF format and return resulting file in response. [**getLineAnnotation**](PdfApi.md#getLineAnnotation) | **GET** /pdf/\{name}/annotations/line/\{annotationId} | Read document page line annotation by ID. [**getLinkAnnotation**](PdfApi.md#getLinkAnnotation) | **GET** /pdf/\{name}/links/\{linkId} | Read document link annotation by ID. +[**getListFileVersions**](PdfApi.md#getListFileVersions) | **GET** /storage/version | Get the file's versions list [**getListFiles**](PdfApi.md#getListFiles) | **GET** /storage/folder | Get the file listing of a specific folder [**getMhtInStorageToPdf**](PdfApi.md#getMhtInStorageToPdf) | **GET** /pdf/create/mht | Convert MHT file (located on storage) to PDF format and return resulting file in response. [**getPage**](PdfApi.md#getPage) | **GET** /pdf/\{name}/pages/\{pageNumber} | Read document page info. @@ -119,7 +125,10 @@ Method | HTTP request | Description [**postAppendDocument**](PdfApi.md#postAppendDocument) | **POST** /pdf/\{name}/appendDocument | Append document to existing one. [**postCreateField**](PdfApi.md#postCreateField) | **POST** /pdf/\{name}/fields | Create field. [**postDocumentTextReplace**](PdfApi.md#postDocumentTextReplace) | **POST** /pdf/\{name}/text/replace | Document's replace text method. +[**postFlattenDocument**](PdfApi.md#postFlattenDocument) | **POST** /pdf/\{name}/flatten | Removes all fields from the document and place their values instead. [**postInsertImage**](PdfApi.md#postInsertImage) | **POST** /pdf/\{name}/pages/\{pageNumber}/images | Insert image to document page. +[**postMoveFile**](PdfApi.md#postMoveFile) | **POST** /storage/file | Move a specific file +[**postMoveFolder**](PdfApi.md#postMoveFolder) | **POST** /storage/folder | Move a specific folder [**postMovePage**](PdfApi.md#postMovePage) | **POST** /pdf/\{name}/pages/\{pageNumber}/movePage | Move page to new position. [**postOptimizeDocument**](PdfApi.md#postOptimizeDocument) | **POST** /pdf/\{name}/optimize | Optimize document. [**postPageCaretAnnotations**](PdfApi.md#postPageCaretAnnotations) | **POST** /pdf/\{name}/pages/\{pageNumber}/annotations/caret | Add document page caret annotations. @@ -147,6 +156,7 @@ Method | HTTP request | Description [**putCircleAnnotation**](PdfApi.md#putCircleAnnotation) | **PUT** /pdf/\{name}/annotations/circle/\{annotationId} | Replace document circle annotation [**putCreate**](PdfApi.md#putCreate) | **PUT** /storage/file | Upload a specific file [**putCreateDocument**](PdfApi.md#putCreateDocument) | **PUT** /pdf/\{name} | Create empty document. +[**putCreateFolder**](PdfApi.md#putCreateFolder) | **PUT** /storage/folder | Create the folder [**putEpubInStorageToPdf**](PdfApi.md#putEpubInStorageToPdf) | **PUT** /pdf/\{name}/create/epub | Convert EPUB file (located on storage) to PDF format and upload resulting file to storage. [**putFieldsFlatten**](PdfApi.md#putFieldsFlatten) | **PUT** /pdf/\{name}/fields/flatten | Flatten form fields in document. [**putFreeTextAnnotation**](PdfApi.md#putFreeTextAnnotation) | **PUT** /pdf/\{name}/annotations/freetext/\{annotationId} | Replace document free text annotation @@ -312,6 +322,52 @@ Name | Type | Description | Notes [**AsposeResponse**](AsposeResponse.md) +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **deleteFile** +> AsposeResponse deleteFile(path, versionId, storage) + +Remove a specific 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] + +### Return type + +[**AsposeResponse**](AsposeResponse.md) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **deleteFolder** +> AsposeResponse deleteFolder(path, storage, recursive) + +Remove a specific 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] [default to false] + +### Return type + +[**AsposeResponse**](AsposeResponse.md) + ### HTTP request headers - **Content-Type**: application/json @@ -527,6 +583,27 @@ Name | Type | Description | Notes [**CircleAnnotationResponse**](CircleAnnotationResponse.md) +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **getDiscUsage** +> DiscUsageResponse getDiscUsage(storage) + +Check the disk usage of the current account + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storage** | **String**| User's storage name | [optional] + +### Return type + +[**DiscUsageResponse**](DiscUsageResponse.md) + ### HTTP request headers - **Content-Type**: application/json @@ -1407,6 +1484,50 @@ Name | Type | Description | Notes [**InkAnnotationResponse**](InkAnnotationResponse.md) +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **getIsExist** +> FileExistResponse 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** +> StorageExistResponse 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 @@ -1477,6 +1598,28 @@ Name | Type | Description | Notes [**LinkAnnotationResponse**](LinkAnnotationResponse.md) +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **getListFileVersions** +> FileVersionsResponse 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 @@ -2079,10 +2222,10 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| The document name. | **pageNumber** | **Integer**| Number of page (starting from 1). | - **LLX** | **Double**| | - **LLY** | **Double**| | - **URX** | **Double**| | - **URY** | **Double**| | + **LLX** | **Double**| X-coordinate of lower - left corner. | + **LLY** | **Double**| Y - coordinate of lower-left corner. | + **URX** | **Double**| X - coordinate of upper-right corner. | + **URY** | **Double**| Y - coordinate of upper-right corner. | **format** | **List<String>**| List of formats for search. | [optional] **regex** | **String**| Formats are specified as a regular expression. | [optional] **splitRects** | **Boolean**| Split result fragments (default is true). | [optional] @@ -2233,7 +2376,7 @@ Converts PDF document (located on storage) to EPUB format and returns resulting Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| The document name. | - **contentRecognitionMode** | **String**| Рroperty tunes conversion for this or that desirable method of recognition of content. | [optional] + **contentRecognitionMode** | **String**| Property tunes conversion for this or that desirable method of recognition of content. | [optional] **folder** | **String**| The document folder. | [optional] **storage** | **String**| The document storage. | [optional] @@ -2735,10 +2878,10 @@ Read document text. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| The document name. | - **LLX** | **Double**| | - **LLY** | **Double**| | - **URX** | **Double**| | - **URY** | **Double**| | + **LLX** | **Double**| X-coordinate of lower - left corner. | + **LLY** | **Double**| Y - coordinate of lower-left corner. | + **URX** | **Double**| X - coordinate of upper-right corner. | + **URY** | **Double**| Y - coordinate of upper-right corner. | **format** | **List<String>**| List of formats for search. | [optional] **regex** | **String**| Formats are specified as a regular expression. | [optional] **splitRects** | **Boolean**| Split result fragments (default is true). | [optional] @@ -3039,6 +3182,32 @@ Name | Type | Description | Notes [**TextReplaceResponse**](TextReplaceResponse.md) +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **postFlattenDocument** +> AsposeResponse postFlattenDocument(name, updateAppearances, callEvents, hideButtons, storage, folder) + +Removes all fields from the document and place their values instead. + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **String**| The document name. | + **updateAppearances** | **Boolean**| If set, all field appearances will be regenerated before flattening. This option may help if field is incorrectly flattened. This option may decrease performance.. | [optional] + **callEvents** | **Boolean**| If set, formatting and other JavaScript events will be called. | [optional] + **hideButtons** | **Boolean**| If set, buttons will be removed from flattened document. | [optional] + **storage** | **String**| The document storage. | [optional] + **folder** | **String**| The document folder. | [optional] + +### Return type + +[**AsposeResponse**](AsposeResponse.md) + ### HTTP request headers - **Content-Type**: application/json @@ -3069,6 +3238,55 @@ Name | Type | Description | Notes [**AsposeResponse**](AsposeResponse.md) +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **postMoveFile** +> AsposeResponse 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**: application/json + - **Accept**: application/json + + +# **postMoveFolder** +> AsposeResponse 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 @@ -3738,6 +3956,29 @@ Name | Type | Description | Notes [**DocumentResponse**](DocumentResponse.md) +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **putCreateFolder** +> AsposeResponse 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 @@ -4512,7 +4753,7 @@ Converts PDF document (in request content) to EPUB format and uploads resulting Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **outPath** | **String**| Full resulting filename (ex. /folder1/folder2/result.epub) | - **contentRecognitionMode** | **String**| Рroperty tunes conversion for this or that desirable method of recognition of content. | [optional] + **contentRecognitionMode** | **String**| Property tunes conversion for this or that desirable method of recognition of content. | [optional] **storage** | **String**| The document storage. | [optional] **file** | **File**| A file to be converted. | [optional] @@ -4850,7 +5091,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| The document name. | **outPath** | **String**| Full resulting filename (ex. /folder1/folder2/result.epub) | - **contentRecognitionMode** | **String**| Рroperty tunes conversion for this or that desirable method of recognition of content. | [optional] + **contentRecognitionMode** | **String**| Property tunes conversion for this or that desirable method of recognition of content. | [optional] **folder** | **String**| The document folder. | [optional] **storage** | **String**| The document storage. | [optional] diff --git a/docs/PolyAnnotation.md b/docs/PolyAnnotation.md index 580215a..074a071 100644 --- a/docs/PolyAnnotation.md +++ b/docs/PolyAnnotation.md @@ -14,12 +14,13 @@ Name | Type | Description | Notes **subject** | **String** | Get the annotation subject. | [optional] **title** | **String** | Get the annotation title. | [optional] **richText** | **String** | Get the annotation RichText. | [optional] +**color** | [**Color**](Color.md) | Color of the annotation. | [optional] **contents** | **String** | Get the annotation content. | [optional] **modified** | **String** | The date and time when the annotation was last modified. | [optional] **id** | **String** | Gets ID of the annotation. | [optional] **flags** | [**List<AnnotationFlags>**](AnnotationFlags.md) | Gets Flags of the annotation. | [optional] **name** | **String** | Gets Name of the annotation. | [optional] -**rect** | [**RectanglePdf**](RectanglePdf.md) | Gets Rect of the annotation. | +**rect** | [**Rectangle**](Rectangle.md) | Gets Rect of the annotation. | **pageIndex** | **Integer** | Gets PageIndex of the annotation. | [optional] **zIndex** | **Integer** | Gets ZIndex of the annotation. | [optional] **horizontalAlignment** | [**HorizontalAlignment**](HorizontalAlignment.md) | Gets HorizontalAlignment of the annotation. | [optional] diff --git a/docs/PolyLineAnnotation.md b/docs/PolyLineAnnotation.md index 0c80091..0bf082f 100644 --- a/docs/PolyLineAnnotation.md +++ b/docs/PolyLineAnnotation.md @@ -5,7 +5,6 @@ Provides PolyLineAnnotation. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**color** | [**Color**](Color.md) | Color of the annotation. | [optional] **interiorColor** | [**Color**](Color.md) | Gets or sets the interior color with which to fill the annotation’s line endings. | [optional] **startingStyle** | [**LineEnding**](LineEnding.md) | Gets or sets the style of first line ending. | [optional] **endingStyle** | [**LineEnding**](LineEnding.md) | Gets or sets the style of second line ending. | [optional] @@ -15,12 +14,13 @@ Name | Type | Description | Notes **subject** | **String** | Get the annotation subject. | [optional] **title** | **String** | Get the annotation title. | [optional] **richText** | **String** | Get the annotation RichText. | [optional] +**color** | [**Color**](Color.md) | Color of the annotation. | [optional] **contents** | **String** | Get the annotation content. | [optional] **modified** | **String** | The date and time when the annotation was last modified. | [optional] **id** | **String** | Gets ID of the annotation. | [optional] **flags** | [**List<AnnotationFlags>**](AnnotationFlags.md) | Gets Flags of the annotation. | [optional] **name** | **String** | Gets Name of the annotation. | [optional] -**rect** | [**RectanglePdf**](RectanglePdf.md) | Gets Rect of the annotation. | +**rect** | [**Rectangle**](Rectangle.md) | Gets Rect of the annotation. | **pageIndex** | **Integer** | Gets PageIndex of the annotation. | [optional] **zIndex** | **Integer** | Gets ZIndex of the annotation. | [optional] **horizontalAlignment** | [**HorizontalAlignment**](HorizontalAlignment.md) | Gets HorizontalAlignment of the annotation. | [optional] diff --git a/docs/PolyLineAnnotationResponse.md b/docs/PolyLineAnnotationResponse.md index 145a811..dd2dba1 100644 --- a/docs/PolyLineAnnotationResponse.md +++ b/docs/PolyLineAnnotationResponse.md @@ -1,11 +1,11 @@  # PolyLineAnnotationResponse - +Represents response containing single polyline annotation object ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**annotation** | [**PolyLineAnnotation**](PolyLineAnnotation.md) | | [optional] +**annotation** | [**PolyLineAnnotation**](PolyLineAnnotation.md) | Polyline annotation object | [optional] **code** | **Integer** | Response status code. | **status** | **String** | Response status. | [optional] diff --git a/docs/PolyLineAnnotations.md b/docs/PolyLineAnnotations.md index b0d2fac..ca8cc75 100644 --- a/docs/PolyLineAnnotations.md +++ b/docs/PolyLineAnnotations.md @@ -1,11 +1,11 @@  # PolyLineAnnotations -List of annotations. +Object representing a list of polyline annotations. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**list** | [**List<PolyLineAnnotation>**](PolyLineAnnotation.md) | | [optional] +**list** | [**List<PolyLineAnnotation>**](PolyLineAnnotation.md) | List of polyline annotations. | [optional] **links** | [**List<Link>**](Link.md) | Link to the document. | [optional] diff --git a/docs/PolyLineAnnotationsResponse.md b/docs/PolyLineAnnotationsResponse.md index da609dc..66cdadc 100644 --- a/docs/PolyLineAnnotationsResponse.md +++ b/docs/PolyLineAnnotationsResponse.md @@ -1,11 +1,11 @@  # PolyLineAnnotationsResponse - +Represents response containing multiple polyline annotation objects ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**annotations** | [**PolyLineAnnotations**](PolyLineAnnotations.md) | | [optional] +**annotations** | [**PolyLineAnnotations**](PolyLineAnnotations.md) | Polyline annotations object | [optional] **code** | **Integer** | Response status code. | **status** | **String** | Response status. | [optional] diff --git a/docs/PolygonAnnotation.md b/docs/PolygonAnnotation.md index 4620b5a..7ee5eec 100644 --- a/docs/PolygonAnnotation.md +++ b/docs/PolygonAnnotation.md @@ -5,7 +5,6 @@ Provides PolygonAnnotation. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**color** | [**Color**](Color.md) | Color of the annotation. | [optional] **interiorColor** | [**Color**](Color.md) | Gets or sets the interior color with which to fill the annotation’s line endings. | [optional] **startingStyle** | [**LineEnding**](LineEnding.md) | Gets or sets the style of first line ending. | [optional] **endingStyle** | [**LineEnding**](LineEnding.md) | Gets or sets the style of second line ending. | [optional] @@ -15,12 +14,13 @@ Name | Type | Description | Notes **subject** | **String** | Get the annotation subject. | [optional] **title** | **String** | Get the annotation title. | [optional] **richText** | **String** | Get the annotation RichText. | [optional] +**color** | [**Color**](Color.md) | Color of the annotation. | [optional] **contents** | **String** | Get the annotation content. | [optional] **modified** | **String** | The date and time when the annotation was last modified. | [optional] **id** | **String** | Gets ID of the annotation. | [optional] **flags** | [**List<AnnotationFlags>**](AnnotationFlags.md) | Gets Flags of the annotation. | [optional] **name** | **String** | Gets Name of the annotation. | [optional] -**rect** | [**RectanglePdf**](RectanglePdf.md) | Gets Rect of the annotation. | +**rect** | [**Rectangle**](Rectangle.md) | Gets Rect of the annotation. | **pageIndex** | **Integer** | Gets PageIndex of the annotation. | [optional] **zIndex** | **Integer** | Gets ZIndex of the annotation. | [optional] **horizontalAlignment** | [**HorizontalAlignment**](HorizontalAlignment.md) | Gets HorizontalAlignment of the annotation. | [optional] diff --git a/docs/PolygonAnnotationResponse.md b/docs/PolygonAnnotationResponse.md index 0ca0642..5b56197 100644 --- a/docs/PolygonAnnotationResponse.md +++ b/docs/PolygonAnnotationResponse.md @@ -1,11 +1,11 @@  # PolygonAnnotationResponse - +Represents response containing single polygon annotation object ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**annotation** | [**PolygonAnnotation**](PolygonAnnotation.md) | | [optional] +**annotation** | [**PolygonAnnotation**](PolygonAnnotation.md) | Polygon annotation object | [optional] **code** | **Integer** | Response status code. | **status** | **String** | Response status. | [optional] diff --git a/docs/PolygonAnnotations.md b/docs/PolygonAnnotations.md index 2124b71..26f184d 100644 --- a/docs/PolygonAnnotations.md +++ b/docs/PolygonAnnotations.md @@ -1,11 +1,11 @@  # PolygonAnnotations -List of annotations. +Object representing a list of polygon annotations. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**list** | [**List<PolygonAnnotation>**](PolygonAnnotation.md) | | [optional] +**list** | [**List<PolygonAnnotation>**](PolygonAnnotation.md) | List of polygon annotations. | [optional] **links** | [**List<Link>**](Link.md) | Link to the document. | [optional] diff --git a/docs/PolygonAnnotationsResponse.md b/docs/PolygonAnnotationsResponse.md index 06e9de3..675587f 100644 --- a/docs/PolygonAnnotationsResponse.md +++ b/docs/PolygonAnnotationsResponse.md @@ -1,11 +1,11 @@  # PolygonAnnotationsResponse - +Represents response containing multiple polygon annotation objects ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**annotations** | [**PolygonAnnotations**](PolygonAnnotations.md) | | [optional] +**annotations** | [**PolygonAnnotations**](PolygonAnnotations.md) | Polygon annotations object | [optional] **code** | **Integer** | Response status code. | **status** | **String** | Response status. | [optional] diff --git a/docs/PopupAnnotation.md b/docs/PopupAnnotation.md index d7f339b..cc1fffa 100644 --- a/docs/PopupAnnotation.md +++ b/docs/PopupAnnotation.md @@ -5,14 +5,14 @@ Provides PopupAnnotation. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**color** | [**Color**](Color.md) | Color of the annotation. | [optional] **open** | **Boolean** | Gets or sets a flag specifying whether the pop-up annotation should initially be displayed open. | [optional] +**color** | [**Color**](Color.md) | Color of the annotation. | [optional] **contents** | **String** | Get the annotation content. | [optional] **modified** | **String** | The date and time when the annotation was last modified. | [optional] **id** | **String** | Gets ID of the annotation. | [optional] **flags** | [**List<AnnotationFlags>**](AnnotationFlags.md) | Gets Flags of the annotation. | [optional] **name** | **String** | Gets Name of the annotation. | [optional] -**rect** | [**RectanglePdf**](RectanglePdf.md) | Gets Rect of the annotation. | +**rect** | [**Rectangle**](Rectangle.md) | Gets Rect of the annotation. | **pageIndex** | **Integer** | Gets PageIndex of the annotation. | [optional] **zIndex** | **Integer** | Gets ZIndex of the annotation. | [optional] **horizontalAlignment** | [**HorizontalAlignment**](HorizontalAlignment.md) | Gets HorizontalAlignment of the annotation. | [optional] diff --git a/docs/PopupAnnotationResponse.md b/docs/PopupAnnotationResponse.md index 35c0a19..8a2a4af 100644 --- a/docs/PopupAnnotationResponse.md +++ b/docs/PopupAnnotationResponse.md @@ -1,11 +1,11 @@  # PopupAnnotationResponse - +Represents response containing single popup annotation object ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**annotation** | [**PopupAnnotationWithParent**](PopupAnnotationWithParent.md) | | [optional] +**annotation** | [**PopupAnnotationWithParent**](PopupAnnotationWithParent.md) | Popup annotation object | [optional] **code** | **Integer** | Response status code. | **status** | **String** | Response status. | [optional] diff --git a/docs/PopupAnnotationWithParent.md b/docs/PopupAnnotationWithParent.md index b269092..a28b016 100644 --- a/docs/PopupAnnotationWithParent.md +++ b/docs/PopupAnnotationWithParent.md @@ -6,14 +6,14 @@ Provides PopupAnnotation. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **parent** | [**AnnotationInfo**](AnnotationInfo.md) | Parent of annotation. | [optional] -**color** | [**Color**](Color.md) | Color of the annotation. | [optional] **open** | **Boolean** | Gets or sets a flag specifying whether the pop-up annotation should initially be displayed open. | [optional] +**color** | [**Color**](Color.md) | Color of the annotation. | [optional] **contents** | **String** | Get the annotation content. | [optional] **modified** | **String** | The date and time when the annotation was last modified. | [optional] **id** | **String** | Gets ID of the annotation. | [optional] **flags** | [**List<AnnotationFlags>**](AnnotationFlags.md) | Gets Flags of the annotation. | [optional] **name** | **String** | Gets Name of the annotation. | [optional] -**rect** | [**RectanglePdf**](RectanglePdf.md) | Gets Rect of the annotation. | +**rect** | [**Rectangle**](Rectangle.md) | Gets Rect of the annotation. | **pageIndex** | **Integer** | Gets PageIndex of the annotation. | [optional] **zIndex** | **Integer** | Gets ZIndex of the annotation. | [optional] **horizontalAlignment** | [**HorizontalAlignment**](HorizontalAlignment.md) | Gets HorizontalAlignment of the annotation. | [optional] diff --git a/docs/PopupAnnotations.md b/docs/PopupAnnotations.md index 1760973..b629167 100644 --- a/docs/PopupAnnotations.md +++ b/docs/PopupAnnotations.md @@ -1,11 +1,11 @@  # PopupAnnotations -List of annotations. +Object representing a list of popup annotations. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**list** | [**List<PopupAnnotationWithParent>**](PopupAnnotationWithParent.md) | | [optional] +**list** | [**List<PopupAnnotationWithParent>**](PopupAnnotationWithParent.md) | List of popup annotations. | [optional] **links** | [**List<Link>**](Link.md) | Link to the document. | [optional] diff --git a/docs/PopupAnnotationsResponse.md b/docs/PopupAnnotationsResponse.md index 0f4e876..e9aa584 100644 --- a/docs/PopupAnnotationsResponse.md +++ b/docs/PopupAnnotationsResponse.md @@ -1,11 +1,11 @@  # PopupAnnotationsResponse - +Represents response containing multiple popup annotation objects ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**annotations** | [**PopupAnnotations**](PopupAnnotations.md) | | [optional] +**annotations** | [**PopupAnnotations**](PopupAnnotations.md) | Popup annotations object | [optional] **code** | **Integer** | Response status code. | **status** | **String** | Response status. | [optional] diff --git a/docs/Rectangle.md b/docs/Rectangle.md new file mode 100644 index 0000000..e7b4b36 --- /dev/null +++ b/docs/Rectangle.md @@ -0,0 +1,16 @@ + +# Rectangle +Represents rectangle DTO. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**lLX** | **Double** | X-coordinate of lower - left corner. | +**lLY** | **Double** | Y - coordinate of lower-left corner. | +**uRX** | **Double** | X - coordinate of upper-right corner. | +**uRY** | **Double** | Y - coordinate of upper-right corner. | + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Segment.md b/docs/Segment.md index 33f1417..9a0c04e 100644 --- a/docs/Segment.md +++ b/docs/Segment.md @@ -1,12 +1,12 @@  # Segment - +Represents segment of Pdf text. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**value** | **String** | | -**textState** | [**TextState**](TextState.md) | | [optional] +**value** | **String** | Text that the Segment object represents. | +**textState** | [**TextState**](TextState.md) | Text state for the text that Segment 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) diff --git a/docs/Signature.md b/docs/Signature.md index 4917d63..306a4cf 100644 --- a/docs/Signature.md +++ b/docs/Signature.md @@ -1,6 +1,6 @@  # Signature - +Represents signature. ## Properties Name | Type | Description | Notes @@ -13,7 +13,7 @@ Name | Type | Description | Notes **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. | -**rectangle** | [**RectanglePdf**](RectanglePdf.md) | Gets or sets the visible rectangle of the signature. Supports only when signing particular page. | [optional] +**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] **date** | **String** | Gets or sets the time of signing. | [optional] diff --git a/docs/SignatureType.md b/docs/SignatureType.md index 6fa392f..07e7352 100644 --- a/docs/SignatureType.md +++ b/docs/SignatureType.md @@ -1,6 +1,6 @@  # SignatureType - +The type of signature. ## Enum Name | Description diff --git a/docs/SignatureVerifyResponse.md b/docs/SignatureVerifyResponse.md index daee0fe..74bf42e 100644 --- a/docs/SignatureVerifyResponse.md +++ b/docs/SignatureVerifyResponse.md @@ -1,11 +1,11 @@  # SignatureVerifyResponse -Returns also a message. +Represent responce containing signature verification result ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**valid** | **Boolean** | Valid sign. | +**valid** | **Boolean** | True if signature is valid and false if not | **code** | **Integer** | Response status code. | **status** | **String** | Response status. | [optional] diff --git a/docs/SplitResultResponse.md b/docs/SplitResultResponse.md index dcecbb4..525500c 100644 --- a/docs/SplitResultResponse.md +++ b/docs/SplitResultResponse.md @@ -1,11 +1,11 @@  # SplitResultResponse -Represents split result object. +Represents responce containing split result. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**result** | [**SplitResult**](SplitResult.md) | Gets or sets the splitting result. | [optional] +**result** | [**SplitResult**](SplitResult.md) | SplitResult object. | [optional] **code** | **Integer** | Response status code. | **status** | **String** | Response status. | [optional] diff --git a/docs/SquareAnnotation.md b/docs/SquareAnnotation.md index 5f6f99e..bd1be49 100644 --- a/docs/SquareAnnotation.md +++ b/docs/SquareAnnotation.md @@ -5,19 +5,19 @@ Provides SquareAnnotation. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**color** | [**Color**](Color.md) | Color of the annotation. | [optional] **interiorColor** | [**Color**](Color.md) | Get the annotation InteriorColor. | [optional] -**frame** | [**RectanglePdf**](RectanglePdf.md) | Get or set the annotation Rectangle of frame. | [optional] +**frame** | [**Rectangle**](Rectangle.md) | Get or set the annotation Rectangle of frame. | [optional] **creationDate** | **String** | The date and time when the annotation was created. | [optional] **subject** | **String** | Get the annotation subject. | [optional] **title** | **String** | Get the annotation title. | [optional] **richText** | **String** | Get the annotation RichText. | [optional] +**color** | [**Color**](Color.md) | Color of the annotation. | [optional] **contents** | **String** | Get the annotation content. | [optional] **modified** | **String** | The date and time when the annotation was last modified. | [optional] **id** | **String** | Gets ID of the annotation. | [optional] **flags** | [**List<AnnotationFlags>**](AnnotationFlags.md) | Gets Flags of the annotation. | [optional] **name** | **String** | Gets Name of the annotation. | [optional] -**rect** | [**RectanglePdf**](RectanglePdf.md) | Gets Rect of the annotation. | +**rect** | [**Rectangle**](Rectangle.md) | Gets Rect of the annotation. | **pageIndex** | **Integer** | Gets PageIndex of the annotation. | [optional] **zIndex** | **Integer** | Gets ZIndex of the annotation. | [optional] **horizontalAlignment** | [**HorizontalAlignment**](HorizontalAlignment.md) | Gets HorizontalAlignment of the annotation. | [optional] diff --git a/docs/SquareAnnotationResponse.md b/docs/SquareAnnotationResponse.md index 131bf3d..55e5af1 100644 --- a/docs/SquareAnnotationResponse.md +++ b/docs/SquareAnnotationResponse.md @@ -1,11 +1,11 @@  # SquareAnnotationResponse - +Represents response containing single square annotation object ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**annotation** | [**SquareAnnotation**](SquareAnnotation.md) | | [optional] +**annotation** | [**SquareAnnotation**](SquareAnnotation.md) | Square annotation object | [optional] **code** | **Integer** | Response status code. | **status** | **String** | Response status. | [optional] diff --git a/docs/SquareAnnotations.md b/docs/SquareAnnotations.md index 0302392..6993bd5 100644 --- a/docs/SquareAnnotations.md +++ b/docs/SquareAnnotations.md @@ -1,11 +1,11 @@  # SquareAnnotations -List of annotations. +Object representing a list of square annotations. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**list** | [**List<SquareAnnotation>**](SquareAnnotation.md) | | [optional] +**list** | [**List<SquareAnnotation>**](SquareAnnotation.md) | List of square annotations. | [optional] **links** | [**List<Link>**](Link.md) | Link to the document. | [optional] diff --git a/docs/SquareAnnotationsResponse.md b/docs/SquareAnnotationsResponse.md index a6474a0..4dbf9b6 100644 --- a/docs/SquareAnnotationsResponse.md +++ b/docs/SquareAnnotationsResponse.md @@ -1,11 +1,11 @@  # SquareAnnotationsResponse - +Represents response containing multiple square annotation objects ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**annotations** | [**SquareAnnotations**](SquareAnnotations.md) | | [optional] +**annotations** | [**SquareAnnotations**](SquareAnnotations.md) | Square annotations object | [optional] **code** | **Integer** | Response status code. | **status** | **String** | Response status. | [optional] diff --git a/docs/SquigglyAnnotation.md b/docs/SquigglyAnnotation.md index a5e4e21..e9cf064 100644 --- a/docs/SquigglyAnnotation.md +++ b/docs/SquigglyAnnotation.md @@ -5,18 +5,18 @@ Provides SquigglyAnnotation. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**color** | [**Color**](Color.md) | Color of the annotation. | [optional] **quadPoints** | [**List<Point>**](Point.md) | Gets or sets an array of points specifying the coordinates of n quadrilaterals. Each quadrilateral encompasses a word or group of contiguous words in the text underlying the annotation. | [optional] **creationDate** | **String** | The date and time when the annotation was created. | [optional] **subject** | **String** | Get the annotation subject. | [optional] **title** | **String** | Get the annotation title. | [optional] **richText** | **String** | Get the annotation RichText. | [optional] +**color** | [**Color**](Color.md) | Color of the annotation. | [optional] **contents** | **String** | Get the annotation content. | [optional] **modified** | **String** | The date and time when the annotation was last modified. | [optional] **id** | **String** | Gets ID of the annotation. | [optional] **flags** | [**List<AnnotationFlags>**](AnnotationFlags.md) | Gets Flags of the annotation. | [optional] **name** | **String** | Gets Name of the annotation. | [optional] -**rect** | [**RectanglePdf**](RectanglePdf.md) | Gets Rect of the annotation. | +**rect** | [**Rectangle**](Rectangle.md) | Gets Rect of the annotation. | **pageIndex** | **Integer** | Gets PageIndex of the annotation. | [optional] **zIndex** | **Integer** | Gets ZIndex of the annotation. | [optional] **horizontalAlignment** | [**HorizontalAlignment**](HorizontalAlignment.md) | Gets HorizontalAlignment of the annotation. | [optional] diff --git a/docs/SquigglyAnnotationResponse.md b/docs/SquigglyAnnotationResponse.md index 6c102ae..37aa43e 100644 --- a/docs/SquigglyAnnotationResponse.md +++ b/docs/SquigglyAnnotationResponse.md @@ -1,11 +1,11 @@  # SquigglyAnnotationResponse - +Represents response containing single squiggly-underline annotation object ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**annotation** | [**SquigglyAnnotation**](SquigglyAnnotation.md) | | [optional] +**annotation** | [**SquigglyAnnotation**](SquigglyAnnotation.md) | Squiggly-underline annotation object | [optional] **code** | **Integer** | Response status code. | **status** | **String** | Response status. | [optional] diff --git a/docs/SquigglyAnnotations.md b/docs/SquigglyAnnotations.md index b340527..2654c38 100644 --- a/docs/SquigglyAnnotations.md +++ b/docs/SquigglyAnnotations.md @@ -1,11 +1,11 @@  # SquigglyAnnotations -List of annotations. +Object representing a list of squiggly-underline annotations. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**list** | [**List<SquigglyAnnotation>**](SquigglyAnnotation.md) | | [optional] +**list** | [**List<SquigglyAnnotation>**](SquigglyAnnotation.md) | List of squiggly-underline annotations. | [optional] **links** | [**List<Link>**](Link.md) | Link to the document. | [optional] diff --git a/docs/SquigglyAnnotationsResponse.md b/docs/SquigglyAnnotationsResponse.md index 2b034f8..212253b 100644 --- a/docs/SquigglyAnnotationsResponse.md +++ b/docs/SquigglyAnnotationsResponse.md @@ -1,11 +1,11 @@  # SquigglyAnnotationsResponse - +Represents response containing multiple squiggly-underline annotation objects ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**annotations** | [**SquigglyAnnotations**](SquigglyAnnotations.md) | | [optional] +**annotations** | [**SquigglyAnnotations**](SquigglyAnnotations.md) | Squiggly-underline annotations object | [optional] **code** | **Integer** | Response status code. | **status** | **String** | Response status. | [optional] diff --git a/docs/StorageExistResponse.md b/docs/StorageExistResponse.md new file mode 100644 index 0000000..346a57e --- /dev/null +++ b/docs/StorageExistResponse.md @@ -0,0 +1,15 @@ + +# StorageExistResponse + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**isExist** | **Boolean** | | +**code** | **Integer** | Response status code. | +**status** | **String** | Response status. | [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) + + diff --git a/docs/StrikeOutAnnotation.md b/docs/StrikeOutAnnotation.md index bb694e9..cb62955 100644 --- a/docs/StrikeOutAnnotation.md +++ b/docs/StrikeOutAnnotation.md @@ -5,18 +5,18 @@ Provides StrikeOutAnnotation. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**color** | [**Color**](Color.md) | Color of the annotation. | [optional] **quadPoints** | [**List<Point>**](Point.md) | Gets or sets an array of points specifying the coordinates of n quadrilaterals. Each quadrilateral encompasses a word or group of contiguous words in the text underlying the annotation. | [optional] **creationDate** | **String** | The date and time when the annotation was created. | [optional] **subject** | **String** | Get the annotation subject. | [optional] **title** | **String** | Get the annotation title. | [optional] **richText** | **String** | Get the annotation RichText. | [optional] +**color** | [**Color**](Color.md) | Color of the annotation. | [optional] **contents** | **String** | Get the annotation content. | [optional] **modified** | **String** | The date and time when the annotation was last modified. | [optional] **id** | **String** | Gets ID of the annotation. | [optional] **flags** | [**List<AnnotationFlags>**](AnnotationFlags.md) | Gets Flags of the annotation. | [optional] **name** | **String** | Gets Name of the annotation. | [optional] -**rect** | [**RectanglePdf**](RectanglePdf.md) | Gets Rect of the annotation. | +**rect** | [**Rectangle**](Rectangle.md) | Gets Rect of the annotation. | **pageIndex** | **Integer** | Gets PageIndex of the annotation. | [optional] **zIndex** | **Integer** | Gets ZIndex of the annotation. | [optional] **horizontalAlignment** | [**HorizontalAlignment**](HorizontalAlignment.md) | Gets HorizontalAlignment of the annotation. | [optional] diff --git a/docs/StrikeOutAnnotationResponse.md b/docs/StrikeOutAnnotationResponse.md index 876dfd0..d6bb4d8 100644 --- a/docs/StrikeOutAnnotationResponse.md +++ b/docs/StrikeOutAnnotationResponse.md @@ -1,11 +1,11 @@  # StrikeOutAnnotationResponse - +Represents response containing single strikeout annotation object ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**annotation** | [**StrikeOutAnnotation**](StrikeOutAnnotation.md) | | [optional] +**annotation** | [**StrikeOutAnnotation**](StrikeOutAnnotation.md) | Strikeout annotation object | [optional] **code** | **Integer** | Response status code. | **status** | **String** | Response status. | [optional] diff --git a/docs/StrikeOutAnnotations.md b/docs/StrikeOutAnnotations.md index fa18225..cea7573 100644 --- a/docs/StrikeOutAnnotations.md +++ b/docs/StrikeOutAnnotations.md @@ -1,11 +1,11 @@  # StrikeOutAnnotations -List of annotations. +Object representing a list of strikeout annotations. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**list** | [**List<StrikeOutAnnotation>**](StrikeOutAnnotation.md) | | [optional] +**list** | [**List<StrikeOutAnnotation>**](StrikeOutAnnotation.md) | List of strikeout annotations. | [optional] **links** | [**List<Link>**](Link.md) | Link to the document. | [optional] diff --git a/docs/StrikeOutAnnotationsResponse.md b/docs/StrikeOutAnnotationsResponse.md index 40c8691..9351548 100644 --- a/docs/StrikeOutAnnotationsResponse.md +++ b/docs/StrikeOutAnnotationsResponse.md @@ -1,11 +1,11 @@  # StrikeOutAnnotationsResponse - +Represents response containing multiple strikeout annotation objects ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**annotations** | [**StrikeOutAnnotations**](StrikeOutAnnotations.md) | | [optional] +**annotations** | [**StrikeOutAnnotations**](StrikeOutAnnotations.md) | Strikeout annotations object | [optional] **code** | **Integer** | Response status code. | **status** | **String** | Response status. | [optional] diff --git a/docs/TextAnnotation.md b/docs/TextAnnotation.md index 51b3c67..2ca50af 100644 --- a/docs/TextAnnotation.md +++ b/docs/TextAnnotation.md @@ -7,18 +7,18 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **state** | [**AnnotationState**](AnnotationState.md) | Gets or sets the state to which the original annotation should be set. | [optional] **open** | **Boolean** | Gets or sets is the annotation open. | [optional] -**color** | [**Color**](Color.md) | Color of the annotation. | [optional] **icon** | [**TextIcon**](TextIcon.md) | Gets or sets an icon to be used in displaying the annotation. | [optional] **creationDate** | **String** | The date and time when the annotation was created. | [optional] **subject** | **String** | Get the annotation subject. | [optional] **title** | **String** | Get the annotation title. | [optional] **richText** | **String** | Get the annotation RichText. | [optional] +**color** | [**Color**](Color.md) | Color of the annotation. | [optional] **contents** | **String** | Get the annotation content. | [optional] **modified** | **String** | The date and time when the annotation was last modified. | [optional] **id** | **String** | Gets ID of the annotation. | [optional] **flags** | [**List<AnnotationFlags>**](AnnotationFlags.md) | Gets Flags of the annotation. | [optional] **name** | **String** | Gets Name of the annotation. | [optional] -**rect** | [**RectanglePdf**](RectanglePdf.md) | Gets Rect of the annotation. | +**rect** | [**Rectangle**](Rectangle.md) | Gets Rect of the annotation. | **pageIndex** | **Integer** | Gets PageIndex of the annotation. | [optional] **zIndex** | **Integer** | Gets ZIndex of the annotation. | [optional] **horizontalAlignment** | [**HorizontalAlignment**](HorizontalAlignment.md) | Gets HorizontalAlignment of the annotation. | [optional] diff --git a/docs/TextAnnotationResponse.md b/docs/TextAnnotationResponse.md index 5e1ea10..f8f74ea 100644 --- a/docs/TextAnnotationResponse.md +++ b/docs/TextAnnotationResponse.md @@ -1,11 +1,11 @@  # TextAnnotationResponse - +Represents response containing single text annotation object ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**annotation** | [**TextAnnotation**](TextAnnotation.md) | | [optional] +**annotation** | [**TextAnnotation**](TextAnnotation.md) | Text annotation object | [optional] **code** | **Integer** | Response status code. | **status** | **String** | Response status. | [optional] diff --git a/docs/TextAnnotations.md b/docs/TextAnnotations.md index 0aff3ab..91a47a7 100644 --- a/docs/TextAnnotations.md +++ b/docs/TextAnnotations.md @@ -1,11 +1,11 @@  # TextAnnotations -List of annotations. +Object representing a list of text annotations. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**list** | [**List<TextAnnotation>**](TextAnnotation.md) | | [optional] +**list** | [**List<TextAnnotation>**](TextAnnotation.md) | List of text annotations. | [optional] **links** | [**List<Link>**](Link.md) | Link to the document. | [optional] diff --git a/docs/TextAnnotationsResponse.md b/docs/TextAnnotationsResponse.md index 0d95c0a..d414e01 100644 --- a/docs/TextAnnotationsResponse.md +++ b/docs/TextAnnotationsResponse.md @@ -1,11 +1,11 @@  # TextAnnotationsResponse - +Represents response containing multiple text annotation objects ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**annotations** | [**TextAnnotations**](TextAnnotations.md) | | [optional] +**annotations** | [**TextAnnotations**](TextAnnotations.md) | Text annotations object | [optional] **code** | **Integer** | Response status code. | **status** | **String** | Response status. | [optional] diff --git a/docs/TextHorizontalAlignment.md b/docs/TextHorizontalAlignment.md index bf8b69d..467d375 100644 --- a/docs/TextHorizontalAlignment.md +++ b/docs/TextHorizontalAlignment.md @@ -1,16 +1,16 @@  # TextHorizontalAlignment - +Describes text horizontal alignment. ## Enum Name | Description ------------ | ------------ -**Left** | -**Right** | -**Center** | -**Justify** | -**FullJustify** | -**None** | +**Left** | Align to left. +**Right** | Align to right. +**Center** | Center alignment. +**Justify** | Justify alignment. Text will be aligned on both left and right margins. +**FullJustify** | Similar to 'Justify' alignment, except that the very last line will only be left-aligned in 'Justify' mode, while in 'FullJustify' mode all lines will be left- and right-aligned. +**None** | No alignment. [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/TextLine.md b/docs/TextLine.md index 01ee626..a2f0d90 100644 --- a/docs/TextLine.md +++ b/docs/TextLine.md @@ -1,6 +1,6 @@  # TextLine -A line of text to be inserted into . +A line of text to be inserted into paragraph. ## Properties Name | Type | Description | Notes diff --git a/docs/TextRect.md b/docs/TextRect.md index a56d6ec..3ca46d5 100644 --- a/docs/TextRect.md +++ b/docs/TextRect.md @@ -1,13 +1,13 @@  # TextRect -Represents text DTO. +Represents text occurrence. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**text** | **String** | | [optional] -**page** | **Integer** | | -**rect** | [**RectanglePdf**](RectanglePdf.md) | | [optional] +**text** | **String** | Text of the occurrence. | [optional] +**page** | **Integer** | Page on which the occurrence is found. | +**rect** | [**Rectangle**](Rectangle.md) | Rectangle of the occurrence. | [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) diff --git a/docs/TextRects.md b/docs/TextRects.md index 7efe551..d72b9d2 100644 --- a/docs/TextRects.md +++ b/docs/TextRects.md @@ -1,11 +1,11 @@  # TextRects -Represents text items DTO. +Represents multiple text occurrences DTO. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**list** | [**List<TextRect>**](TextRect.md) | | [optional] +**list** | [**List<TextRect>**](TextRect.md) | The list of text occurrences. | [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) diff --git a/docs/TextRectsResponse.md b/docs/TextRectsResponse.md index 42949a4..6185fff 100644 --- a/docs/TextRectsResponse.md +++ b/docs/TextRectsResponse.md @@ -1,11 +1,11 @@  # TextRectsResponse - +Represents response containing multiple text occurrences info ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**textOccurences** | [**TextRects**](TextRects.md) | | [optional] +**textOccurrences** | [**TextRects**](TextRects.md) | TextRects object | [optional] **code** | **Integer** | Response status code. | **status** | **String** | Response status. | [optional] diff --git a/docs/TextReplace.md b/docs/TextReplace.md index b2098aa..8bd2367 100644 --- a/docs/TextReplace.md +++ b/docs/TextReplace.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **newValue** | **String** | New text. | **regex** | **Boolean** | Gets or sets a value indicating whether search text is regular expression. | **textState** | [**TextState**](TextState.md) | Text properties of a new text. | [optional] -**rect** | [**RectanglePdf**](RectanglePdf.md) | Rectangle area where searched original text. | [optional] +**rect** | [**Rectangle**](Rectangle.md) | Rectangle area where searched original text. | [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) diff --git a/docs/TextReplaceListRequest.md b/docs/TextReplaceListRequest.md index ac03f12..9d27f80 100644 --- a/docs/TextReplaceListRequest.md +++ b/docs/TextReplaceListRequest.md @@ -7,8 +7,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **textReplaces** | [**List<TextReplace>**](TextReplace.md) | A list of text replacement settings. | **defaultFont** | **String** | | [optional] -**startIndex** | **Integer** | | [optional] -**countReplace** | **Integer** | | [optional] +**startIndex** | **Integer** | The index of first match to be replaced. | [optional] +**countReplace** | **Integer** | The number of matches to be replaced. | [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) diff --git a/docs/TextReplaceResponse.md b/docs/TextReplaceResponse.md index 1a035ac..664f5a6 100644 --- a/docs/TextReplaceResponse.md +++ b/docs/TextReplaceResponse.md @@ -1,11 +1,11 @@  # TextReplaceResponse - +Represents response containing the result of text replacement ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**matches** | **Integer** | | +**matches** | **Integer** | Number of matches | **code** | **Integer** | Response status code. | **status** | **String** | Response status. | [optional] diff --git a/docs/UnderlineAnnotation.md b/docs/UnderlineAnnotation.md index 169de78..1c73cf4 100644 --- a/docs/UnderlineAnnotation.md +++ b/docs/UnderlineAnnotation.md @@ -5,18 +5,18 @@ Provides UnderlineAnnotation. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**color** | [**Color**](Color.md) | Color of the annotation. | [optional] **quadPoints** | [**List<Point>**](Point.md) | Gets or sets an array of points specifying the coordinates of n quadrilaterals. Each quadrilateral encompasses a word or group of contiguous words in the text underlying the annotation. | [optional] **creationDate** | **String** | The date and time when the annotation was created. | [optional] **subject** | **String** | Get the annotation subject. | [optional] **title** | **String** | Get the annotation title. | [optional] **richText** | **String** | Get the annotation RichText. | [optional] +**color** | [**Color**](Color.md) | Color of the annotation. | [optional] **contents** | **String** | Get the annotation content. | [optional] **modified** | **String** | The date and time when the annotation was last modified. | [optional] **id** | **String** | Gets ID of the annotation. | [optional] **flags** | [**List<AnnotationFlags>**](AnnotationFlags.md) | Gets Flags of the annotation. | [optional] **name** | **String** | Gets Name of the annotation. | [optional] -**rect** | [**RectanglePdf**](RectanglePdf.md) | Gets Rect of the annotation. | +**rect** | [**Rectangle**](Rectangle.md) | Gets Rect of the annotation. | **pageIndex** | **Integer** | Gets PageIndex of the annotation. | [optional] **zIndex** | **Integer** | Gets ZIndex of the annotation. | [optional] **horizontalAlignment** | [**HorizontalAlignment**](HorizontalAlignment.md) | Gets HorizontalAlignment of the annotation. | [optional] diff --git a/docs/UnderlineAnnotationResponse.md b/docs/UnderlineAnnotationResponse.md index a987cf6..44c4b18 100644 --- a/docs/UnderlineAnnotationResponse.md +++ b/docs/UnderlineAnnotationResponse.md @@ -1,11 +1,11 @@  # UnderlineAnnotationResponse - +Represents response containing single underline annotation object ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**annotation** | [**UnderlineAnnotation**](UnderlineAnnotation.md) | | [optional] +**annotation** | [**UnderlineAnnotation**](UnderlineAnnotation.md) | Underline annotation object | [optional] **code** | **Integer** | Response status code. | **status** | **String** | Response status. | [optional] diff --git a/docs/UnderlineAnnotations.md b/docs/UnderlineAnnotations.md index 09b3408..74c0103 100644 --- a/docs/UnderlineAnnotations.md +++ b/docs/UnderlineAnnotations.md @@ -1,11 +1,11 @@  # UnderlineAnnotations -List of annotations. +Object representing a list of underline annotations. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**list** | [**List<UnderlineAnnotation>**](UnderlineAnnotation.md) | | [optional] +**list** | [**List<UnderlineAnnotation>**](UnderlineAnnotation.md) | List of underline annotations. | [optional] **links** | [**List<Link>**](Link.md) | Link to the document. | [optional] diff --git a/docs/UnderlineAnnotationsResponse.md b/docs/UnderlineAnnotationsResponse.md index 1516845..08c24db 100644 --- a/docs/UnderlineAnnotationsResponse.md +++ b/docs/UnderlineAnnotationsResponse.md @@ -1,11 +1,11 @@  # UnderlineAnnotationsResponse - +Represents response containing multiple underline annotation objects ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**annotations** | [**UnderlineAnnotations**](UnderlineAnnotations.md) | | [optional] +**annotations** | [**UnderlineAnnotations**](UnderlineAnnotations.md) | Underline annotations object | [optional] **code** | **Integer** | Response status code. | **status** | **String** | Response status. | [optional] diff --git a/docs/WrapMode.md b/docs/WrapMode.md index 5ef3b37..06d199c 100644 --- a/docs/WrapMode.md +++ b/docs/WrapMode.md @@ -1,13 +1,13 @@  # WrapMode - +Defines word wrapping strategies ## Enum Name | Description ------------ | ------------ -**NoWrap** | -**ByWords** | -**DiscretionaryHyphenation** | +**NoWrap** | No wrapping is performed +**ByWords** | Word wrapping only wraps complete words. If the complete word cannot be wrapped, attempts to use discretionary hyphenation +**DiscretionaryHyphenation** | Discretionary hyphenation is performed. Allows breaking words in the middle. [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/src/main/java/com/aspose/asposecloudpdf/api/PdfApi.java b/src/main/java/com/aspose/asposecloudpdf/api/PdfApi.java index 383ba21..e9d830b 100644 --- a/src/main/java/com/aspose/asposecloudpdf/api/PdfApi.java +++ b/src/main/java/com/aspose/asposecloudpdf/api/PdfApi.java @@ -1,4 +1,4 @@ -/** +/** * * Copyright (c) 2018 Aspose.PDF Cloud * Permission is hereby granted, free of charge, to any person obtaining a copy @@ -47,6 +47,7 @@ import com.aspose.asposecloudpdf.model.CircleAnnotation; import com.aspose.asposecloudpdf.model.CircleAnnotationResponse; import com.aspose.asposecloudpdf.model.CircleAnnotationsResponse; +import com.aspose.asposecloudpdf.model.DiscUsageResponse; import com.aspose.asposecloudpdf.model.DocumentPageResponse; import com.aspose.asposecloudpdf.model.DocumentPagesResponse; import com.aspose.asposecloudpdf.model.DocumentPrivilege; @@ -58,6 +59,8 @@ import com.aspose.asposecloudpdf.model.Fields; import com.aspose.asposecloudpdf.model.FieldsResponse; import java.io.File; +import com.aspose.asposecloudpdf.model.FileExistResponse; +import com.aspose.asposecloudpdf.model.FileVersionsResponse; import com.aspose.asposecloudpdf.model.FilesResponse; import com.aspose.asposecloudpdf.model.FreeTextAnnotation; import com.aspose.asposecloudpdf.model.FreeTextAnnotationResponse; @@ -99,6 +102,7 @@ import com.aspose.asposecloudpdf.model.SquigglyAnnotationResponse; import com.aspose.asposecloudpdf.model.SquigglyAnnotationsResponse; import com.aspose.asposecloudpdf.model.Stamp; +import com.aspose.asposecloudpdf.model.StorageExistResponse; import com.aspose.asposecloudpdf.model.StrikeOutAnnotation; import com.aspose.asposecloudpdf.model.StrikeOutAnnotationResponse; import com.aspose.asposecloudpdf.model.StrikeOutAnnotationsResponse; @@ -752,6 +756,304 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don apiClient.executeAsync(call, localVarReturnType, callback); return call; } + /** + * Build call for deleteFile + * @param path Path of the file including file name and extension e.g. /Folder1/file.ext (required) + * @param versionId File's version (optional) + * @param storage User's storage name (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call deleteFileCall(String path, String versionId, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/storage/file"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (path != null) + localVarQueryParams.addAll(apiClient.parameterToPair("path", path)); + if (versionId != null) + localVarQueryParams.addAll(apiClient.parameterToPair("versionId", versionId)); + if (storage != null) + localVarQueryParams.addAll(apiClient.parameterToPair("storage", storage)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { }; + return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call deleteFileValidateBeforeCall(String path, String versionId, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'path' is set + if (path == null) { + throw new ApiException("Missing the required parameter 'path' when calling deleteFile(Async)"); + } + + + com.squareup.okhttp.Call call = deleteFileCall(path, versionId, storage, progressListener, progressRequestListener); + return call; + + } + + /** + * Remove a specific file + * + * @param path Path of the file including file name and extension e.g. /Folder1/file.ext (required) + * @param versionId File's version (optional) + * @param storage User's storage name (optional) + * @return AsposeResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public AsposeResponse deleteFile(String path, String versionId, String storage) throws ApiException { + try + { + ApiResponse resp = deleteFileWithHttpInfo(path, versionId, storage); + return resp.getData(); + } + catch (ApiException ex) + { + if (ex.getCode() == 401) + { + apiClient.refreshToken(); + ApiResponse resp = deleteFileWithHttpInfo(path, versionId, storage); + return resp.getData(); + } + throw ex; + } + } + + /** + * Remove a specific file + * + * @param path Path of the file including file name and extension e.g. /Folder1/file.ext (required) + * @param versionId File's version (optional) + * @param storage User's storage name (optional) + * @return ApiResponse<AsposeResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse deleteFileWithHttpInfo(String path, String versionId, String storage) throws ApiException { + com.squareup.okhttp.Call call = deleteFileValidateBeforeCall(path, versionId, storage, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Remove a specific file (asynchronously) + * + * @param path Path of the file including file name and extension e.g. /Folder1/file.ext (required) + * @param versionId File's version (optional) + * @param storage User's storage name (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call deleteFileAsync(String path, String versionId, String storage, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = deleteFileValidateBeforeCall(path, versionId, storage, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for deleteFolder + * @param path Folder path e.g. /Folder1 (required) + * @param storage User's storage name (optional) + * @param recursive Remove recursivelly inner folder/files. If false and folder contains data than exception is raised. (optional, default to false) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call deleteFolderCall(String path, String storage, Boolean recursive, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/storage/folder"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (path != null) + localVarQueryParams.addAll(apiClient.parameterToPair("path", path)); + if (storage != null) + localVarQueryParams.addAll(apiClient.parameterToPair("storage", storage)); + if (recursive != null) + localVarQueryParams.addAll(apiClient.parameterToPair("recursive", recursive)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { }; + return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call deleteFolderValidateBeforeCall(String path, String storage, Boolean recursive, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'path' is set + if (path == null) { + throw new ApiException("Missing the required parameter 'path' when calling deleteFolder(Async)"); + } + + + com.squareup.okhttp.Call call = deleteFolderCall(path, storage, recursive, progressListener, progressRequestListener); + return call; + + } + + /** + * Remove a specific folder + * + * @param path Folder path e.g. /Folder1 (required) + * @param storage User's storage name (optional) + * @param recursive Remove recursivelly inner folder/files. If false and folder contains data than exception is raised. (optional, default to false) + * @return AsposeResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public AsposeResponse deleteFolder(String path, String storage, Boolean recursive) throws ApiException { + try + { + ApiResponse resp = deleteFolderWithHttpInfo(path, storage, recursive); + return resp.getData(); + } + catch (ApiException ex) + { + if (ex.getCode() == 401) + { + apiClient.refreshToken(); + ApiResponse resp = deleteFolderWithHttpInfo(path, storage, recursive); + return resp.getData(); + } + throw ex; + } + } + + /** + * Remove a specific folder + * + * @param path Folder path e.g. /Folder1 (required) + * @param storage User's storage name (optional) + * @param recursive Remove recursivelly inner folder/files. If false and folder contains data than exception is raised. (optional, default to false) + * @return ApiResponse<AsposeResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse deleteFolderWithHttpInfo(String path, String storage, Boolean recursive) throws ApiException { + com.squareup.okhttp.Call call = deleteFolderValidateBeforeCall(path, storage, recursive, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Remove a specific folder (asynchronously) + * + * @param path Folder path e.g. /Folder1 (required) + * @param storage User's storage name (optional) + * @param recursive Remove recursivelly inner folder/files. If false and folder contains data than exception is raised. (optional, default to false) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call deleteFolderAsync(String path, String storage, Boolean recursive, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = deleteFolderValidateBeforeCall(path, storage, recursive, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } /** * Build call for deleteImage * @param name The document name. (required) @@ -2165,8 +2467,140 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don return call; } /** - * Build call for getDocument - * @param name The document name. (required) + * Build call for getDiscUsage + * @param storage User's storage name (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call getDiscUsageCall(String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/storage/disc"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (storage != null) + localVarQueryParams.addAll(apiClient.parameterToPair("storage", storage)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call getDiscUsageValidateBeforeCall(String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + + com.squareup.okhttp.Call call = getDiscUsageCall(storage, progressListener, progressRequestListener); + return call; + + } + + /** + * Check the disk usage of the current account + * + * @param storage User's storage name (optional) + * @return DiscUsageResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public DiscUsageResponse getDiscUsage(String storage) throws ApiException { + try + { + ApiResponse resp = getDiscUsageWithHttpInfo(storage); + return resp.getData(); + } + catch (ApiException ex) + { + if (ex.getCode() == 401) + { + apiClient.refreshToken(); + ApiResponse resp = getDiscUsageWithHttpInfo(storage); + return resp.getData(); + } + throw ex; + } + } + + /** + * Check the disk usage of the current account + * + * @param storage User's storage name (optional) + * @return ApiResponse<DiscUsageResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse getDiscUsageWithHttpInfo(String storage) throws ApiException { + com.squareup.okhttp.Call call = getDiscUsageValidateBeforeCall(storage, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Check the disk usage of the current account (asynchronously) + * + * @param storage User's storage name (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call getDiscUsageAsync(String storage, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = getDiscUsageValidateBeforeCall(storage, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for getDocument + * @param name The document name. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) * @param progressListener Progress listener @@ -7874,24 +8308,27 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don return call; } /** - * Build call for getLaTeXInStorageToPdf - * @param srcPath Full source filename (ex. /folder1/folder2/template.tex) (required) - * @param storage The document storage. (optional) + * Build call for getIsExist + * @param path File or folder path e.g. /file.ext or /Folder1 (required) + * @param versionId File's version (optional) + * @param storage User's storage name (optional) * @param progressListener Progress listener * @param progressRequestListener Progress request listener * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call getLaTeXInStorageToPdfCall(String srcPath, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call getIsExistCall(String path, String versionId, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; // create path and map variables - String localVarPath = "/pdf/create/latex"; + String localVarPath = "/storage/exist"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (srcPath != null) - localVarQueryParams.addAll(apiClient.parameterToPair("srcPath", srcPath)); + if (path != null) + localVarQueryParams.addAll(apiClient.parameterToPair("path", path)); + if (versionId != null) + localVarQueryParams.addAll(apiClient.parameterToPair("versionId", versionId)); if (storage != null) localVarQueryParams.addAll(apiClient.parameterToPair("storage", storage)); @@ -7900,7 +8337,7 @@ public com.squareup.okhttp.Call getLaTeXInStorageToPdfCall(String srcPath, Strin Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "multipart/form-data" + "application/json" }; final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); @@ -7928,31 +8365,32 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getLaTeXInStorageToPdfValidateBeforeCall(String srcPath, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call getIsExistValidateBeforeCall(String path, String versionId, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - // verify the required parameter 'srcPath' is set - if (srcPath == null) { - throw new ApiException("Missing the required parameter 'srcPath' when calling getLaTeXInStorageToPdf(Async)"); + // verify the required parameter 'path' is set + if (path == null) { + throw new ApiException("Missing the required parameter 'path' when calling getIsExist(Async)"); } - com.squareup.okhttp.Call call = getLaTeXInStorageToPdfCall(srcPath, storage, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getIsExistCall(path, versionId, storage, progressListener, progressRequestListener); return call; } /** - * Convert LaTeX file (located on storage) to PDF format and return resulting file in response. + * Check if a specific file or folder exists * - * @param srcPath Full source filename (ex. /folder1/folder2/template.tex) (required) - * @param storage The document storage. (optional) - * @return File + * @param path File or folder path e.g. /file.ext or /Folder1 (required) + * @param versionId File's version (optional) + * @param storage User's storage name (optional) + * @return FileExistResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public File getLaTeXInStorageToPdf(String srcPath, String storage) throws ApiException { + public FileExistResponse getIsExist(String path, String versionId, String storage) throws ApiException { try { - ApiResponse resp = getLaTeXInStorageToPdfWithHttpInfo(srcPath, storage); + ApiResponse resp = getIsExistWithHttpInfo(path, versionId, storage); return resp.getData(); } catch (ApiException ex) @@ -7960,7 +8398,7 @@ public File getLaTeXInStorageToPdf(String srcPath, String storage) throws ApiExc if (ex.getCode() == 401) { apiClient.refreshToken(); - ApiResponse resp = getLaTeXInStorageToPdfWithHttpInfo(srcPath, storage); + ApiResponse resp = getIsExistWithHttpInfo(path, versionId, storage); return resp.getData(); } throw ex; @@ -7968,29 +8406,31 @@ public File getLaTeXInStorageToPdf(String srcPath, String storage) throws ApiExc } /** - * Convert LaTeX file (located on storage) to PDF format and return resulting file in response. + * Check if a specific file or folder exists * - * @param srcPath Full source filename (ex. /folder1/folder2/template.tex) (required) - * @param storage The document storage. (optional) - * @return ApiResponse<File> + * @param path File or folder path e.g. /file.ext or /Folder1 (required) + * @param versionId File's version (optional) + * @param storage User's storage name (optional) + * @return ApiResponse<FileExistResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse getLaTeXInStorageToPdfWithHttpInfo(String srcPath, String storage) throws ApiException { - com.squareup.okhttp.Call call = getLaTeXInStorageToPdfValidateBeforeCall(srcPath, storage, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse getIsExistWithHttpInfo(String path, String versionId, String storage) throws ApiException { + com.squareup.okhttp.Call call = getIsExistValidateBeforeCall(path, versionId, storage, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Convert LaTeX file (located on storage) to PDF format and return resulting file in response. (asynchronously) + * Check if a specific file or folder exists (asynchronously) * - * @param srcPath Full source filename (ex. /folder1/folder2/template.tex) (required) - * @param storage The document storage. (optional) + * @param path File or folder path e.g. /file.ext or /Folder1 (required) + * @param versionId File's version (optional) + * @param storage User's storage name (optional) * @param callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call getLaTeXInStorageToPdfAsync(String srcPath, String storage, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call getIsExistAsync(String path, String versionId, String storage, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -8011,36 +8451,28 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = getLaTeXInStorageToPdfValidateBeforeCall(srcPath, storage, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = getIsExistValidateBeforeCall(path, versionId, storage, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for getLineAnnotation - * @param name The document name. (required) - * @param annotationId The annotation ID. (required) - * @param storage The document storage. (optional) - * @param folder The document folder. (optional) + * Build call for getIsStorageExist + * @param name Storage name (required) * @param progressListener Progress listener * @param progressRequestListener Progress request listener * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call getLineAnnotationCall(String name, String annotationId, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call getIsStorageExistCall(String name, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; // create path and map variables - String localVarPath = "/pdf/{name}/annotations/line/{annotationId}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "annotationId" + "\\}", apiClient.escapeString(annotationId.toString())); + String localVarPath = "/storage/{name}/exist" + .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (storage != null) - localVarQueryParams.addAll(apiClient.parameterToPair("storage", storage)); - if (folder != null) - localVarQueryParams.addAll(apiClient.parameterToPair("folder", folder)); Map localVarHeaderParams = new HashMap(); @@ -8075,38 +8507,30 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getLineAnnotationValidateBeforeCall(String name, String annotationId, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call getIsStorageExistValidateBeforeCall(String name, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { // verify the required parameter 'name' is set if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling getLineAnnotation(Async)"); - } - - // verify the required parameter 'annotationId' is set - if (annotationId == null) { - throw new ApiException("Missing the required parameter 'annotationId' when calling getLineAnnotation(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling getIsStorageExist(Async)"); } - com.squareup.okhttp.Call call = getLineAnnotationCall(name, annotationId, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getIsStorageExistCall(name, progressListener, progressRequestListener); return call; } /** - * Read document page line annotation by ID. + * Check if storage exists * - * @param name The document name. (required) - * @param annotationId The annotation ID. (required) - * @param storage The document storage. (optional) - * @param folder The document folder. (optional) - * @return LineAnnotationResponse + * @param name Storage name (required) + * @return StorageExistResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public LineAnnotationResponse getLineAnnotation(String name, String annotationId, String storage, String folder) throws ApiException { + public StorageExistResponse getIsStorageExist(String name) throws ApiException { try { - ApiResponse resp = getLineAnnotationWithHttpInfo(name, annotationId, storage, folder); + ApiResponse resp = getIsStorageExistWithHttpInfo(name); return resp.getData(); } catch (ApiException ex) @@ -8114,7 +8538,7 @@ public LineAnnotationResponse getLineAnnotation(String name, String annotationId if (ex.getCode() == 401) { apiClient.refreshToken(); - ApiResponse resp = getLineAnnotationWithHttpInfo(name, annotationId, storage, folder); + ApiResponse resp = getIsStorageExistWithHttpInfo(name); return resp.getData(); } throw ex; @@ -8122,33 +8546,27 @@ public LineAnnotationResponse getLineAnnotation(String name, String annotationId } /** - * Read document page line annotation by ID. + * Check if storage exists * - * @param name The document name. (required) - * @param annotationId The annotation ID. (required) - * @param storage The document storage. (optional) - * @param folder The document folder. (optional) - * @return ApiResponse<LineAnnotationResponse> + * @param name Storage name (required) + * @return ApiResponse<StorageExistResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse getLineAnnotationWithHttpInfo(String name, String annotationId, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = getLineAnnotationValidateBeforeCall(name, annotationId, storage, folder, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse getIsStorageExistWithHttpInfo(String name) throws ApiException { + com.squareup.okhttp.Call call = getIsStorageExistValidateBeforeCall(name, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Read document page line annotation by ID. (asynchronously) + * Check if storage exists (asynchronously) * - * @param name The document name. (required) - * @param annotationId The annotation ID. (required) - * @param storage The document storage. (optional) - * @param folder The document folder. (optional) + * @param name Storage name (required) * @param callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call getLineAnnotationAsync(String name, String annotationId, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call getIsStorageExistAsync(String name, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -8169,43 +8587,39 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = getLineAnnotationValidateBeforeCall(name, annotationId, storage, folder, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = getIsStorageExistValidateBeforeCall(name, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for getLinkAnnotation - * @param name The document name. (required) - * @param linkId The link ID. (required) + * Build call for getLaTeXInStorageToPdf + * @param srcPath Full source filename (ex. /folder1/folder2/template.tex) (required) * @param storage The document storage. (optional) - * @param folder The document folder. (optional) * @param progressListener Progress listener * @param progressRequestListener Progress request listener * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call getLinkAnnotationCall(String name, String linkId, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call getLaTeXInStorageToPdfCall(String srcPath, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; // create path and map variables - String localVarPath = "/pdf/{name}/links/{linkId}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "linkId" + "\\}", apiClient.escapeString(linkId.toString())); + String localVarPath = "/pdf/create/latex"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + if (srcPath != null) + localVarQueryParams.addAll(apiClient.parameterToPair("srcPath", srcPath)); if (storage != null) localVarQueryParams.addAll(apiClient.parameterToPair("storage", storage)); - if (folder != null) - localVarQueryParams.addAll(apiClient.parameterToPair("folder", folder)); Map localVarHeaderParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "multipart/form-data" }; final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); @@ -8233,38 +8647,31 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getLinkAnnotationValidateBeforeCall(String name, String linkId, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - - // verify the required parameter 'name' is set - if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling getLinkAnnotation(Async)"); - } + private com.squareup.okhttp.Call getLaTeXInStorageToPdfValidateBeforeCall(String srcPath, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - // verify the required parameter 'linkId' is set - if (linkId == null) { - throw new ApiException("Missing the required parameter 'linkId' when calling getLinkAnnotation(Async)"); + // verify the required parameter 'srcPath' is set + if (srcPath == null) { + throw new ApiException("Missing the required parameter 'srcPath' when calling getLaTeXInStorageToPdf(Async)"); } - com.squareup.okhttp.Call call = getLinkAnnotationCall(name, linkId, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getLaTeXInStorageToPdfCall(srcPath, storage, progressListener, progressRequestListener); return call; } /** - * Read document link annotation by ID. + * Convert LaTeX file (located on storage) to PDF format and return resulting file in response. * - * @param name The document name. (required) - * @param linkId The link ID. (required) + * @param srcPath Full source filename (ex. /folder1/folder2/template.tex) (required) * @param storage The document storage. (optional) - * @param folder The document folder. (optional) - * @return LinkAnnotationResponse + * @return File * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public LinkAnnotationResponse getLinkAnnotation(String name, String linkId, String storage, String folder) throws ApiException { + public File getLaTeXInStorageToPdf(String srcPath, String storage) throws ApiException { try { - ApiResponse resp = getLinkAnnotationWithHttpInfo(name, linkId, storage, folder); + ApiResponse resp = getLaTeXInStorageToPdfWithHttpInfo(srcPath, storage); return resp.getData(); } catch (ApiException ex) @@ -8272,7 +8679,7 @@ public LinkAnnotationResponse getLinkAnnotation(String name, String linkId, Stri if (ex.getCode() == 401) { apiClient.refreshToken(); - ApiResponse resp = getLinkAnnotationWithHttpInfo(name, linkId, storage, folder); + ApiResponse resp = getLaTeXInStorageToPdfWithHttpInfo(srcPath, storage); return resp.getData(); } throw ex; @@ -8280,33 +8687,29 @@ public LinkAnnotationResponse getLinkAnnotation(String name, String linkId, Stri } /** - * Read document link annotation by ID. + * Convert LaTeX file (located on storage) to PDF format and return resulting file in response. * - * @param name The document name. (required) - * @param linkId The link ID. (required) + * @param srcPath Full source filename (ex. /folder1/folder2/template.tex) (required) * @param storage The document storage. (optional) - * @param folder The document folder. (optional) - * @return ApiResponse<LinkAnnotationResponse> + * @return ApiResponse<File> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse getLinkAnnotationWithHttpInfo(String name, String linkId, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = getLinkAnnotationValidateBeforeCall(name, linkId, storage, folder, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse getLaTeXInStorageToPdfWithHttpInfo(String srcPath, String storage) throws ApiException { + com.squareup.okhttp.Call call = getLaTeXInStorageToPdfValidateBeforeCall(srcPath, storage, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Read document link annotation by ID. (asynchronously) + * Convert LaTeX file (located on storage) to PDF format and return resulting file in response. (asynchronously) * - * @param name The document name. (required) - * @param linkId The link ID. (required) + * @param srcPath Full source filename (ex. /folder1/folder2/template.tex) (required) * @param storage The document storage. (optional) - * @param folder The document folder. (optional) * @param callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call getLinkAnnotationAsync(String name, String linkId, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call getLaTeXInStorageToPdfAsync(String srcPath, String storage, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -8327,32 +8730,36 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = getLinkAnnotationValidateBeforeCall(name, linkId, storage, folder, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = getLaTeXInStorageToPdfValidateBeforeCall(srcPath, storage, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for getListFiles - * @param path Start with name of storage e.g. root folder '/'or some folder '/folder1/..' (optional, default to /) - * @param storage User's storage name (optional) + * Build call for getLineAnnotation + * @param name The document name. (required) + * @param annotationId The annotation ID. (required) + * @param storage The document storage. (optional) + * @param folder The document folder. (optional) * @param progressListener Progress listener * @param progressRequestListener Progress request listener * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call getListFilesCall(String path, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call getLineAnnotationCall(String name, String annotationId, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; // create path and map variables - String localVarPath = "/storage/folder"; + String localVarPath = "/pdf/{name}/annotations/line/{annotationId}" + .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) + .replaceAll("\\{" + "annotationId" + "\\}", apiClient.escapeString(annotationId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (path != null) - localVarQueryParams.addAll(apiClient.parameterToPair("path", path)); if (storage != null) localVarQueryParams.addAll(apiClient.parameterToPair("storage", storage)); + if (folder != null) + localVarQueryParams.addAll(apiClient.parameterToPair("folder", folder)); Map localVarHeaderParams = new HashMap(); @@ -8387,26 +8794,38 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getListFilesValidateBeforeCall(String path, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call getLineAnnotationValidateBeforeCall(String name, String annotationId, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling getLineAnnotation(Async)"); + } + + // verify the required parameter 'annotationId' is set + if (annotationId == null) { + throw new ApiException("Missing the required parameter 'annotationId' when calling getLineAnnotation(Async)"); + } - com.squareup.okhttp.Call call = getListFilesCall(path, storage, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getLineAnnotationCall(name, annotationId, storage, folder, progressListener, progressRequestListener); return call; } /** - * Get the file listing of a specific folder + * Read document page line annotation by ID. * - * @param path Start with name of storage e.g. root folder '/'or some folder '/folder1/..' (optional, default to /) - * @param storage User's storage name (optional) - * @return FilesResponse + * @param name The document name. (required) + * @param annotationId The annotation ID. (required) + * @param storage The document storage. (optional) + * @param folder The document folder. (optional) + * @return LineAnnotationResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public FilesResponse getListFiles(String path, String storage) throws ApiException { + public LineAnnotationResponse getLineAnnotation(String name, String annotationId, String storage, String folder) throws ApiException { try { - ApiResponse resp = getListFilesWithHttpInfo(path, storage); + ApiResponse resp = getLineAnnotationWithHttpInfo(name, annotationId, storage, folder); return resp.getData(); } catch (ApiException ex) @@ -8414,7 +8833,7 @@ public FilesResponse getListFiles(String path, String storage) throws ApiExcepti if (ex.getCode() == 401) { apiClient.refreshToken(); - ApiResponse resp = getListFilesWithHttpInfo(path, storage); + ApiResponse resp = getLineAnnotationWithHttpInfo(name, annotationId, storage, folder); return resp.getData(); } throw ex; @@ -8422,29 +8841,33 @@ public FilesResponse getListFiles(String path, String storage) throws ApiExcepti } /** - * Get the file listing of a specific folder + * Read document page line annotation by ID. * - * @param path Start with name of storage e.g. root folder '/'or some folder '/folder1/..' (optional, default to /) - * @param storage User's storage name (optional) - * @return ApiResponse<FilesResponse> + * @param name The document name. (required) + * @param annotationId The annotation ID. (required) + * @param storage The document storage. (optional) + * @param folder The document folder. (optional) + * @return ApiResponse<LineAnnotationResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse getListFilesWithHttpInfo(String path, String storage) throws ApiException { - com.squareup.okhttp.Call call = getListFilesValidateBeforeCall(path, storage, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse getLineAnnotationWithHttpInfo(String name, String annotationId, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = getLineAnnotationValidateBeforeCall(name, annotationId, storage, folder, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Get the file listing of a specific folder (asynchronously) + * Read document page line annotation by ID. (asynchronously) * - * @param path Start with name of storage e.g. root folder '/'or some folder '/folder1/..' (optional, default to /) - * @param storage User's storage name (optional) + * @param name The document name. (required) + * @param annotationId The annotation ID. (required) + * @param storage The document storage. (optional) + * @param folder The document folder. (optional) * @param callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call getListFilesAsync(String path, String storage, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call getLineAnnotationAsync(String name, String annotationId, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -8465,39 +8888,43 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = getListFilesValidateBeforeCall(path, storage, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = getLineAnnotationValidateBeforeCall(name, annotationId, storage, folder, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for getMhtInStorageToPdf - * @param srcPath Full source filename (ex. /folder1/folder2/template.mht) (required) + * Build call for getLinkAnnotation + * @param name The document name. (required) + * @param linkId The link ID. (required) * @param storage The document storage. (optional) + * @param folder The document folder. (optional) * @param progressListener Progress listener * @param progressRequestListener Progress request listener * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call getMhtInStorageToPdfCall(String srcPath, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call getLinkAnnotationCall(String name, String linkId, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; // create path and map variables - String localVarPath = "/pdf/create/mht"; + String localVarPath = "/pdf/{name}/links/{linkId}" + .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) + .replaceAll("\\{" + "linkId" + "\\}", apiClient.escapeString(linkId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (srcPath != null) - localVarQueryParams.addAll(apiClient.parameterToPair("srcPath", srcPath)); if (storage != null) localVarQueryParams.addAll(apiClient.parameterToPair("storage", storage)); + if (folder != null) + localVarQueryParams.addAll(apiClient.parameterToPair("folder", folder)); Map localVarHeaderParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "multipart/form-data" + "application/json" }; final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); @@ -8525,31 +8952,38 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getMhtInStorageToPdfValidateBeforeCall(String srcPath, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call getLinkAnnotationValidateBeforeCall(String name, String linkId, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - // verify the required parameter 'srcPath' is set - if (srcPath == null) { - throw new ApiException("Missing the required parameter 'srcPath' when calling getMhtInStorageToPdf(Async)"); + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling getLinkAnnotation(Async)"); + } + + // verify the required parameter 'linkId' is set + if (linkId == null) { + throw new ApiException("Missing the required parameter 'linkId' when calling getLinkAnnotation(Async)"); } - com.squareup.okhttp.Call call = getMhtInStorageToPdfCall(srcPath, storage, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getLinkAnnotationCall(name, linkId, storage, folder, progressListener, progressRequestListener); return call; } /** - * Convert MHT file (located on storage) to PDF format and return resulting file in response. + * Read document link annotation by ID. * - * @param srcPath Full source filename (ex. /folder1/folder2/template.mht) (required) + * @param name The document name. (required) + * @param linkId The link ID. (required) * @param storage The document storage. (optional) - * @return File + * @param folder The document folder. (optional) + * @return LinkAnnotationResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public File getMhtInStorageToPdf(String srcPath, String storage) throws ApiException { + public LinkAnnotationResponse getLinkAnnotation(String name, String linkId, String storage, String folder) throws ApiException { try { - ApiResponse resp = getMhtInStorageToPdfWithHttpInfo(srcPath, storage); + ApiResponse resp = getLinkAnnotationWithHttpInfo(name, linkId, storage, folder); return resp.getData(); } catch (ApiException ex) @@ -8557,7 +8991,7 @@ public File getMhtInStorageToPdf(String srcPath, String storage) throws ApiExcep if (ex.getCode() == 401) { apiClient.refreshToken(); - ApiResponse resp = getMhtInStorageToPdfWithHttpInfo(srcPath, storage); + ApiResponse resp = getLinkAnnotationWithHttpInfo(name, linkId, storage, folder); return resp.getData(); } throw ex; @@ -8565,29 +8999,33 @@ public File getMhtInStorageToPdf(String srcPath, String storage) throws ApiExcep } /** - * Convert MHT file (located on storage) to PDF format and return resulting file in response. + * Read document link annotation by ID. * - * @param srcPath Full source filename (ex. /folder1/folder2/template.mht) (required) + * @param name The document name. (required) + * @param linkId The link ID. (required) * @param storage The document storage. (optional) - * @return ApiResponse<File> + * @param folder The document folder. (optional) + * @return ApiResponse<LinkAnnotationResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse getMhtInStorageToPdfWithHttpInfo(String srcPath, String storage) throws ApiException { - com.squareup.okhttp.Call call = getMhtInStorageToPdfValidateBeforeCall(srcPath, storage, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse getLinkAnnotationWithHttpInfo(String name, String linkId, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = getLinkAnnotationValidateBeforeCall(name, linkId, storage, folder, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Convert MHT file (located on storage) to PDF format and return resulting file in response. (asynchronously) + * Read document link annotation by ID. (asynchronously) * - * @param srcPath Full source filename (ex. /folder1/folder2/template.mht) (required) + * @param name The document name. (required) + * @param linkId The link ID. (required) * @param storage The document storage. (optional) + * @param folder The document folder. (optional) * @param callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call getMhtInStorageToPdfAsync(String srcPath, String storage, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call getLinkAnnotationAsync(String name, String linkId, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -8608,36 +9046,32 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = getMhtInStorageToPdfValidateBeforeCall(srcPath, storage, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = getLinkAnnotationValidateBeforeCall(name, linkId, storage, folder, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for getPage - * @param name The document name. (required) - * @param pageNumber The page number. (required) - * @param storage The document storage. (optional) - * @param folder The document folder. (optional) + * Build call for getListFileVersions + * @param path File path e.g. /file.ext or /Folder1/file.ext (required) + * @param storage User's storage name (optional) * @param progressListener Progress listener * @param progressRequestListener Progress request listener * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call getPageCall(String name, Integer pageNumber, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call getListFileVersionsCall(String path, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; // create path and map variables - String localVarPath = "/pdf/{name}/pages/{pageNumber}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "pageNumber" + "\\}", apiClient.escapeString(pageNumber.toString())); + String localVarPath = "/storage/version"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + if (path != null) + localVarQueryParams.addAll(apiClient.parameterToPair("path", path)); if (storage != null) localVarQueryParams.addAll(apiClient.parameterToPair("storage", storage)); - if (folder != null) - localVarQueryParams.addAll(apiClient.parameterToPair("folder", folder)); Map localVarHeaderParams = new HashMap(); @@ -8672,38 +9106,31 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getPageValidateBeforeCall(String name, Integer pageNumber, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - - // verify the required parameter 'name' is set - if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling getPage(Async)"); - } + private com.squareup.okhttp.Call getListFileVersionsValidateBeforeCall(String path, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - // verify the required parameter 'pageNumber' is set - if (pageNumber == null) { - throw new ApiException("Missing the required parameter 'pageNumber' when calling getPage(Async)"); + // verify the required parameter 'path' is set + if (path == null) { + throw new ApiException("Missing the required parameter 'path' when calling getListFileVersions(Async)"); } - com.squareup.okhttp.Call call = getPageCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getListFileVersionsCall(path, storage, progressListener, progressRequestListener); return call; } /** - * Read document page info. + * Get the file's versions list * - * @param name The document name. (required) - * @param pageNumber The page number. (required) - * @param storage The document storage. (optional) - * @param folder The document folder. (optional) - * @return DocumentPageResponse + * @param path File path e.g. /file.ext or /Folder1/file.ext (required) + * @param storage User's storage name (optional) + * @return FileVersionsResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public DocumentPageResponse getPage(String name, Integer pageNumber, String storage, String folder) throws ApiException { + public FileVersionsResponse getListFileVersions(String path, String storage) throws ApiException { try { - ApiResponse resp = getPageWithHttpInfo(name, pageNumber, storage, folder); + ApiResponse resp = getListFileVersionsWithHttpInfo(path, storage); return resp.getData(); } catch (ApiException ex) @@ -8711,7 +9138,7 @@ public DocumentPageResponse getPage(String name, Integer pageNumber, String stor if (ex.getCode() == 401) { apiClient.refreshToken(); - ApiResponse resp = getPageWithHttpInfo(name, pageNumber, storage, folder); + ApiResponse resp = getListFileVersionsWithHttpInfo(path, storage); return resp.getData(); } throw ex; @@ -8719,33 +9146,29 @@ public DocumentPageResponse getPage(String name, Integer pageNumber, String stor } /** - * Read document page info. + * Get the file's versions list * - * @param name The document name. (required) - * @param pageNumber The page number. (required) - * @param storage The document storage. (optional) - * @param folder The document folder. (optional) - * @return ApiResponse<DocumentPageResponse> + * @param path File path e.g. /file.ext or /Folder1/file.ext (required) + * @param storage User's storage name (optional) + * @return ApiResponse<FileVersionsResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse getPageWithHttpInfo(String name, Integer pageNumber, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = getPageValidateBeforeCall(name, pageNumber, storage, folder, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse getListFileVersionsWithHttpInfo(String path, String storage) throws ApiException { + com.squareup.okhttp.Call call = getListFileVersionsValidateBeforeCall(path, storage, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Read document page info. (asynchronously) + * Get the file's versions list (asynchronously) * - * @param name The document name. (required) - * @param pageNumber The page number. (required) - * @param storage The document storage. (optional) - * @param folder The document folder. (optional) + * @param path File path e.g. /file.ext or /Folder1/file.ext (required) + * @param storage User's storage name (optional) * @param callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call getPageAsync(String name, Integer pageNumber, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call getListFileVersionsAsync(String path, String storage, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -8766,36 +9189,32 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = getPageValidateBeforeCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = getListFileVersionsValidateBeforeCall(path, storage, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for getPageAnnotations - * @param name The document name. (required) - * @param pageNumber The page number. (required) - * @param storage The document storage. (optional) - * @param folder The document folder. (optional) + * Build call for getListFiles + * @param path Start with name of storage e.g. root folder '/'or some folder '/folder1/..' (optional, default to /) + * @param storage User's storage name (optional) * @param progressListener Progress listener * @param progressRequestListener Progress request listener * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call getPageAnnotationsCall(String name, Integer pageNumber, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call getListFilesCall(String path, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; // create path and map variables - String localVarPath = "/pdf/{name}/pages/{pageNumber}/annotations" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "pageNumber" + "\\}", apiClient.escapeString(pageNumber.toString())); + String localVarPath = "/storage/folder"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + if (path != null) + localVarQueryParams.addAll(apiClient.parameterToPair("path", path)); if (storage != null) localVarQueryParams.addAll(apiClient.parameterToPair("storage", storage)); - if (folder != null) - localVarQueryParams.addAll(apiClient.parameterToPair("folder", folder)); Map localVarHeaderParams = new HashMap(); @@ -8830,38 +9249,26 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getPageAnnotationsValidateBeforeCall(String name, Integer pageNumber, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - - // verify the required parameter 'name' is set - if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling getPageAnnotations(Async)"); - } - - // verify the required parameter 'pageNumber' is set - if (pageNumber == null) { - throw new ApiException("Missing the required parameter 'pageNumber' when calling getPageAnnotations(Async)"); - } + private com.squareup.okhttp.Call getListFilesValidateBeforeCall(String path, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - com.squareup.okhttp.Call call = getPageAnnotationsCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getListFilesCall(path, storage, progressListener, progressRequestListener); return call; } /** - * Read documant page annotations. Returns only FreeTextAnnotations, TextAnnotations, other annotations will implemented next releases. + * Get the file listing of a specific folder * - * @param name The document name. (required) - * @param pageNumber The page number. (required) - * @param storage The document storage. (optional) - * @param folder The document folder. (optional) - * @return AnnotationsInfoResponse + * @param path Start with name of storage e.g. root folder '/'or some folder '/folder1/..' (optional, default to /) + * @param storage User's storage name (optional) + * @return FilesResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public AnnotationsInfoResponse getPageAnnotations(String name, Integer pageNumber, String storage, String folder) throws ApiException { + public FilesResponse getListFiles(String path, String storage) throws ApiException { try { - ApiResponse resp = getPageAnnotationsWithHttpInfo(name, pageNumber, storage, folder); + ApiResponse resp = getListFilesWithHttpInfo(path, storage); return resp.getData(); } catch (ApiException ex) @@ -8869,7 +9276,7 @@ public AnnotationsInfoResponse getPageAnnotations(String name, Integer pageNumbe if (ex.getCode() == 401) { apiClient.refreshToken(); - ApiResponse resp = getPageAnnotationsWithHttpInfo(name, pageNumber, storage, folder); + ApiResponse resp = getListFilesWithHttpInfo(path, storage); return resp.getData(); } throw ex; @@ -8877,33 +9284,29 @@ public AnnotationsInfoResponse getPageAnnotations(String name, Integer pageNumbe } /** - * Read documant page annotations. Returns only FreeTextAnnotations, TextAnnotations, other annotations will implemented next releases. + * Get the file listing of a specific folder * - * @param name The document name. (required) - * @param pageNumber The page number. (required) - * @param storage The document storage. (optional) - * @param folder The document folder. (optional) - * @return ApiResponse<AnnotationsInfoResponse> + * @param path Start with name of storage e.g. root folder '/'or some folder '/folder1/..' (optional, default to /) + * @param storage User's storage name (optional) + * @return ApiResponse<FilesResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse getPageAnnotationsWithHttpInfo(String name, Integer pageNumber, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = getPageAnnotationsValidateBeforeCall(name, pageNumber, storage, folder, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse getListFilesWithHttpInfo(String path, String storage) throws ApiException { + com.squareup.okhttp.Call call = getListFilesValidateBeforeCall(path, storage, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Read documant page annotations. Returns only FreeTextAnnotations, TextAnnotations, other annotations will implemented next releases. (asynchronously) + * Get the file listing of a specific folder (asynchronously) * - * @param name The document name. (required) - * @param pageNumber The page number. (required) - * @param storage The document storage. (optional) - * @param folder The document folder. (optional) + * @param path Start with name of storage e.g. root folder '/'or some folder '/folder1/..' (optional, default to /) + * @param storage User's storage name (optional) * @param callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call getPageAnnotationsAsync(String name, Integer pageNumber, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call getListFilesAsync(String path, String storage, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -8924,43 +9327,39 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = getPageAnnotationsValidateBeforeCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = getListFilesValidateBeforeCall(path, storage, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for getPageCaretAnnotations - * @param name The document name. (required) - * @param pageNumber The page number. (required) + * Build call for getMhtInStorageToPdf + * @param srcPath Full source filename (ex. /folder1/folder2/template.mht) (required) * @param storage The document storage. (optional) - * @param folder The document folder. (optional) * @param progressListener Progress listener * @param progressRequestListener Progress request listener * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call getPageCaretAnnotationsCall(String name, Integer pageNumber, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call getMhtInStorageToPdfCall(String srcPath, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; // create path and map variables - String localVarPath = "/pdf/{name}/pages/{pageNumber}/annotations/caret" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "pageNumber" + "\\}", apiClient.escapeString(pageNumber.toString())); + String localVarPath = "/pdf/create/mht"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + if (srcPath != null) + localVarQueryParams.addAll(apiClient.parameterToPair("srcPath", srcPath)); if (storage != null) localVarQueryParams.addAll(apiClient.parameterToPair("storage", storage)); - if (folder != null) - localVarQueryParams.addAll(apiClient.parameterToPair("folder", folder)); Map localVarHeaderParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "multipart/form-data" }; final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); @@ -8988,38 +9387,31 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getPageCaretAnnotationsValidateBeforeCall(String name, Integer pageNumber, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - - // verify the required parameter 'name' is set - if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling getPageCaretAnnotations(Async)"); - } + private com.squareup.okhttp.Call getMhtInStorageToPdfValidateBeforeCall(String srcPath, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - // verify the required parameter 'pageNumber' is set - if (pageNumber == null) { - throw new ApiException("Missing the required parameter 'pageNumber' when calling getPageCaretAnnotations(Async)"); + // verify the required parameter 'srcPath' is set + if (srcPath == null) { + throw new ApiException("Missing the required parameter 'srcPath' when calling getMhtInStorageToPdf(Async)"); } - com.squareup.okhttp.Call call = getPageCaretAnnotationsCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getMhtInStorageToPdfCall(srcPath, storage, progressListener, progressRequestListener); return call; } /** - * Read document page caret annotations. + * Convert MHT file (located on storage) to PDF format and return resulting file in response. * - * @param name The document name. (required) - * @param pageNumber The page number. (required) + * @param srcPath Full source filename (ex. /folder1/folder2/template.mht) (required) * @param storage The document storage. (optional) - * @param folder The document folder. (optional) - * @return CaretAnnotationsResponse + * @return File * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public CaretAnnotationsResponse getPageCaretAnnotations(String name, Integer pageNumber, String storage, String folder) throws ApiException { + public File getMhtInStorageToPdf(String srcPath, String storage) throws ApiException { try { - ApiResponse resp = getPageCaretAnnotationsWithHttpInfo(name, pageNumber, storage, folder); + ApiResponse resp = getMhtInStorageToPdfWithHttpInfo(srcPath, storage); return resp.getData(); } catch (ApiException ex) @@ -9027,7 +9419,7 @@ public CaretAnnotationsResponse getPageCaretAnnotations(String name, Integer pag if (ex.getCode() == 401) { apiClient.refreshToken(); - ApiResponse resp = getPageCaretAnnotationsWithHttpInfo(name, pageNumber, storage, folder); + ApiResponse resp = getMhtInStorageToPdfWithHttpInfo(srcPath, storage); return resp.getData(); } throw ex; @@ -9035,33 +9427,29 @@ public CaretAnnotationsResponse getPageCaretAnnotations(String name, Integer pag } /** - * Read document page caret annotations. + * Convert MHT file (located on storage) to PDF format and return resulting file in response. * - * @param name The document name. (required) - * @param pageNumber The page number. (required) + * @param srcPath Full source filename (ex. /folder1/folder2/template.mht) (required) * @param storage The document storage. (optional) - * @param folder The document folder. (optional) - * @return ApiResponse<CaretAnnotationsResponse> + * @return ApiResponse<File> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse getPageCaretAnnotationsWithHttpInfo(String name, Integer pageNumber, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = getPageCaretAnnotationsValidateBeforeCall(name, pageNumber, storage, folder, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse getMhtInStorageToPdfWithHttpInfo(String srcPath, String storage) throws ApiException { + com.squareup.okhttp.Call call = getMhtInStorageToPdfValidateBeforeCall(srcPath, storage, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Read document page caret annotations. (asynchronously) + * Convert MHT file (located on storage) to PDF format and return resulting file in response. (asynchronously) * - * @param name The document name. (required) - * @param pageNumber The page number. (required) + * @param srcPath Full source filename (ex. /folder1/folder2/template.mht) (required) * @param storage The document storage. (optional) - * @param folder The document folder. (optional) * @param callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call getPageCaretAnnotationsAsync(String name, Integer pageNumber, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call getMhtInStorageToPdfAsync(String srcPath, String storage, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -9082,13 +9470,13 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = getPageCaretAnnotationsValidateBeforeCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = getMhtInStorageToPdfValidateBeforeCall(srcPath, storage, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for getPageCircleAnnotations + * Build call for getPage * @param name The document name. (required) * @param pageNumber The page number. (required) * @param storage The document storage. (optional) @@ -9098,11 +9486,11 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call getPageCircleAnnotationsCall(String name, Integer pageNumber, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call getPageCall(String name, Integer pageNumber, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; // create path and map variables - String localVarPath = "/pdf/{name}/pages/{pageNumber}/annotations/circle" + String localVarPath = "/pdf/{name}/pages/{pageNumber}" .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) .replaceAll("\\{" + "pageNumber" + "\\}", apiClient.escapeString(pageNumber.toString())); @@ -9146,38 +9534,38 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getPageCircleAnnotationsValidateBeforeCall(String name, Integer pageNumber, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call getPageValidateBeforeCall(String name, Integer pageNumber, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { // verify the required parameter 'name' is set if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling getPageCircleAnnotations(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling getPage(Async)"); } // verify the required parameter 'pageNumber' is set if (pageNumber == null) { - throw new ApiException("Missing the required parameter 'pageNumber' when calling getPageCircleAnnotations(Async)"); + throw new ApiException("Missing the required parameter 'pageNumber' when calling getPage(Async)"); } - com.squareup.okhttp.Call call = getPageCircleAnnotationsCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getPageCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); return call; } /** - * Read document page circle annotations. + * Read document page info. * * @param name The document name. (required) * @param pageNumber The page number. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) - * @return CircleAnnotationsResponse + * @return DocumentPageResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public CircleAnnotationsResponse getPageCircleAnnotations(String name, Integer pageNumber, String storage, String folder) throws ApiException { + public DocumentPageResponse getPage(String name, Integer pageNumber, String storage, String folder) throws ApiException { try { - ApiResponse resp = getPageCircleAnnotationsWithHttpInfo(name, pageNumber, storage, folder); + ApiResponse resp = getPageWithHttpInfo(name, pageNumber, storage, folder); return resp.getData(); } catch (ApiException ex) @@ -9185,7 +9573,7 @@ public CircleAnnotationsResponse getPageCircleAnnotations(String name, Integer p if (ex.getCode() == 401) { apiClient.refreshToken(); - ApiResponse resp = getPageCircleAnnotationsWithHttpInfo(name, pageNumber, storage, folder); + ApiResponse resp = getPageWithHttpInfo(name, pageNumber, storage, folder); return resp.getData(); } throw ex; @@ -9193,23 +9581,23 @@ public CircleAnnotationsResponse getPageCircleAnnotations(String name, Integer p } /** - * Read document page circle annotations. + * Read document page info. * * @param name The document name. (required) * @param pageNumber The page number. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) - * @return ApiResponse<CircleAnnotationsResponse> + * @return ApiResponse<DocumentPageResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse getPageCircleAnnotationsWithHttpInfo(String name, Integer pageNumber, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = getPageCircleAnnotationsValidateBeforeCall(name, pageNumber, storage, folder, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse getPageWithHttpInfo(String name, Integer pageNumber, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = getPageValidateBeforeCall(name, pageNumber, storage, folder, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Read document page circle annotations. (asynchronously) + * Read document page info. (asynchronously) * * @param name The document name. (required) * @param pageNumber The page number. (required) @@ -9219,7 +9607,7 @@ public ApiResponse getPageCircleAnnotationsWithHttpIn * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call getPageCircleAnnotationsAsync(String name, Integer pageNumber, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call getPageAsync(String name, Integer pageNumber, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -9240,42 +9628,36 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = getPageCircleAnnotationsValidateBeforeCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = getPageValidateBeforeCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for getPageConvertToBmp + * Build call for getPageAnnotations * @param name The document name. (required) * @param pageNumber The page number. (required) - * @param width The converted image width. (optional) - * @param height The converted image height. (optional) - * @param folder The document folder. (optional) * @param storage The document storage. (optional) + * @param folder The document folder. (optional) * @param progressListener Progress listener * @param progressRequestListener Progress request listener * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call getPageConvertToBmpCall(String name, Integer pageNumber, Integer width, Integer height, String folder, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call getPageAnnotationsCall(String name, Integer pageNumber, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; // create path and map variables - String localVarPath = "/pdf/{name}/pages/{pageNumber}/convert/bmp" + String localVarPath = "/pdf/{name}/pages/{pageNumber}/annotations" .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) .replaceAll("\\{" + "pageNumber" + "\\}", apiClient.escapeString(pageNumber.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (width != null) - localVarQueryParams.addAll(apiClient.parameterToPair("width", width)); - if (height != null) - localVarQueryParams.addAll(apiClient.parameterToPair("height", height)); - if (folder != null) - localVarQueryParams.addAll(apiClient.parameterToPair("folder", folder)); if (storage != null) localVarQueryParams.addAll(apiClient.parameterToPair("storage", storage)); + if (folder != null) + localVarQueryParams.addAll(apiClient.parameterToPair("folder", folder)); Map localVarHeaderParams = new HashMap(); @@ -9310,40 +9692,38 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getPageConvertToBmpValidateBeforeCall(String name, Integer pageNumber, Integer width, Integer height, String folder, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call getPageAnnotationsValidateBeforeCall(String name, Integer pageNumber, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { // verify the required parameter 'name' is set if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling getPageConvertToBmp(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling getPageAnnotations(Async)"); } // verify the required parameter 'pageNumber' is set if (pageNumber == null) { - throw new ApiException("Missing the required parameter 'pageNumber' when calling getPageConvertToBmp(Async)"); + throw new ApiException("Missing the required parameter 'pageNumber' when calling getPageAnnotations(Async)"); } - com.squareup.okhttp.Call call = getPageConvertToBmpCall(name, pageNumber, width, height, folder, storage, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getPageAnnotationsCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); return call; } /** - * Convert document page to Bmp image and return resulting file in response. + * Read documant page annotations. Returns only FreeTextAnnotations, TextAnnotations, other annotations will implemented next releases. * * @param name The document name. (required) * @param pageNumber The page number. (required) - * @param width The converted image width. (optional) - * @param height The converted image height. (optional) - * @param folder The document folder. (optional) * @param storage The document storage. (optional) - * @return File + * @param folder The document folder. (optional) + * @return AnnotationsInfoResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public File getPageConvertToBmp(String name, Integer pageNumber, Integer width, Integer height, String folder, String storage) throws ApiException { + public AnnotationsInfoResponse getPageAnnotations(String name, Integer pageNumber, String storage, String folder) throws ApiException { try { - ApiResponse resp = getPageConvertToBmpWithHttpInfo(name, pageNumber, width, height, folder, storage); + ApiResponse resp = getPageAnnotationsWithHttpInfo(name, pageNumber, storage, folder); return resp.getData(); } catch (ApiException ex) @@ -9351,7 +9731,7 @@ public File getPageConvertToBmp(String name, Integer pageNumber, Integer width, if (ex.getCode() == 401) { apiClient.refreshToken(); - ApiResponse resp = getPageConvertToBmpWithHttpInfo(name, pageNumber, width, height, folder, storage); + ApiResponse resp = getPageAnnotationsWithHttpInfo(name, pageNumber, storage, folder); return resp.getData(); } throw ex; @@ -9359,37 +9739,33 @@ public File getPageConvertToBmp(String name, Integer pageNumber, Integer width, } /** - * Convert document page to Bmp image and return resulting file in response. + * Read documant page annotations. Returns only FreeTextAnnotations, TextAnnotations, other annotations will implemented next releases. * * @param name The document name. (required) * @param pageNumber The page number. (required) - * @param width The converted image width. (optional) - * @param height The converted image height. (optional) - * @param folder The document folder. (optional) * @param storage The document storage. (optional) - * @return ApiResponse<File> + * @param folder The document folder. (optional) + * @return ApiResponse<AnnotationsInfoResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse getPageConvertToBmpWithHttpInfo(String name, Integer pageNumber, Integer width, Integer height, String folder, String storage) throws ApiException { - com.squareup.okhttp.Call call = getPageConvertToBmpValidateBeforeCall(name, pageNumber, width, height, folder, storage, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse getPageAnnotationsWithHttpInfo(String name, Integer pageNumber, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = getPageAnnotationsValidateBeforeCall(name, pageNumber, storage, folder, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Convert document page to Bmp image and return resulting file in response. (asynchronously) + * Read documant page annotations. Returns only FreeTextAnnotations, TextAnnotations, other annotations will implemented next releases. (asynchronously) * * @param name The document name. (required) * @param pageNumber The page number. (required) - * @param width The converted image width. (optional) - * @param height The converted image height. (optional) - * @param folder The document folder. (optional) * @param storage The document storage. (optional) + * @param folder The document folder. (optional) * @param callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call getPageConvertToBmpAsync(String name, Integer pageNumber, Integer width, Integer height, String folder, String storage, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call getPageAnnotationsAsync(String name, Integer pageNumber, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -9410,42 +9786,36 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = getPageConvertToBmpValidateBeforeCall(name, pageNumber, width, height, folder, storage, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = getPageAnnotationsValidateBeforeCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for getPageConvertToEmf + * Build call for getPageCaretAnnotations * @param name The document name. (required) * @param pageNumber The page number. (required) - * @param width The converted image width. (optional) - * @param height The converted image height. (optional) - * @param folder The document folder. (optional) * @param storage The document storage. (optional) + * @param folder The document folder. (optional) * @param progressListener Progress listener * @param progressRequestListener Progress request listener * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call getPageConvertToEmfCall(String name, Integer pageNumber, Integer width, Integer height, String folder, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call getPageCaretAnnotationsCall(String name, Integer pageNumber, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; // create path and map variables - String localVarPath = "/pdf/{name}/pages/{pageNumber}/convert/emf" + String localVarPath = "/pdf/{name}/pages/{pageNumber}/annotations/caret" .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) .replaceAll("\\{" + "pageNumber" + "\\}", apiClient.escapeString(pageNumber.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (width != null) - localVarQueryParams.addAll(apiClient.parameterToPair("width", width)); - if (height != null) - localVarQueryParams.addAll(apiClient.parameterToPair("height", height)); - if (folder != null) - localVarQueryParams.addAll(apiClient.parameterToPair("folder", folder)); if (storage != null) localVarQueryParams.addAll(apiClient.parameterToPair("storage", storage)); + if (folder != null) + localVarQueryParams.addAll(apiClient.parameterToPair("folder", folder)); Map localVarHeaderParams = new HashMap(); @@ -9480,40 +9850,38 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getPageConvertToEmfValidateBeforeCall(String name, Integer pageNumber, Integer width, Integer height, String folder, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call getPageCaretAnnotationsValidateBeforeCall(String name, Integer pageNumber, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { // verify the required parameter 'name' is set if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling getPageConvertToEmf(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling getPageCaretAnnotations(Async)"); } // verify the required parameter 'pageNumber' is set if (pageNumber == null) { - throw new ApiException("Missing the required parameter 'pageNumber' when calling getPageConvertToEmf(Async)"); + throw new ApiException("Missing the required parameter 'pageNumber' when calling getPageCaretAnnotations(Async)"); } - com.squareup.okhttp.Call call = getPageConvertToEmfCall(name, pageNumber, width, height, folder, storage, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getPageCaretAnnotationsCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); return call; } /** - * Convert document page to Emf image and return resulting file in response. + * Read document page caret annotations. * * @param name The document name. (required) * @param pageNumber The page number. (required) - * @param width The converted image width. (optional) - * @param height The converted image height. (optional) - * @param folder The document folder. (optional) * @param storage The document storage. (optional) - * @return File + * @param folder The document folder. (optional) + * @return CaretAnnotationsResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public File getPageConvertToEmf(String name, Integer pageNumber, Integer width, Integer height, String folder, String storage) throws ApiException { + public CaretAnnotationsResponse getPageCaretAnnotations(String name, Integer pageNumber, String storage, String folder) throws ApiException { try { - ApiResponse resp = getPageConvertToEmfWithHttpInfo(name, pageNumber, width, height, folder, storage); + ApiResponse resp = getPageCaretAnnotationsWithHttpInfo(name, pageNumber, storage, folder); return resp.getData(); } catch (ApiException ex) @@ -9521,7 +9889,7 @@ public File getPageConvertToEmf(String name, Integer pageNumber, Integer width, if (ex.getCode() == 401) { apiClient.refreshToken(); - ApiResponse resp = getPageConvertToEmfWithHttpInfo(name, pageNumber, width, height, folder, storage); + ApiResponse resp = getPageCaretAnnotationsWithHttpInfo(name, pageNumber, storage, folder); return resp.getData(); } throw ex; @@ -9529,37 +9897,33 @@ public File getPageConvertToEmf(String name, Integer pageNumber, Integer width, } /** - * Convert document page to Emf image and return resulting file in response. + * Read document page caret annotations. * * @param name The document name. (required) * @param pageNumber The page number. (required) - * @param width The converted image width. (optional) - * @param height The converted image height. (optional) - * @param folder The document folder. (optional) * @param storage The document storage. (optional) - * @return ApiResponse<File> + * @param folder The document folder. (optional) + * @return ApiResponse<CaretAnnotationsResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse getPageConvertToEmfWithHttpInfo(String name, Integer pageNumber, Integer width, Integer height, String folder, String storage) throws ApiException { - com.squareup.okhttp.Call call = getPageConvertToEmfValidateBeforeCall(name, pageNumber, width, height, folder, storage, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse getPageCaretAnnotationsWithHttpInfo(String name, Integer pageNumber, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = getPageCaretAnnotationsValidateBeforeCall(name, pageNumber, storage, folder, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Convert document page to Emf image and return resulting file in response. (asynchronously) + * Read document page caret annotations. (asynchronously) * * @param name The document name. (required) * @param pageNumber The page number. (required) - * @param width The converted image width. (optional) - * @param height The converted image height. (optional) - * @param folder The document folder. (optional) * @param storage The document storage. (optional) + * @param folder The document folder. (optional) * @param callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call getPageConvertToEmfAsync(String name, Integer pageNumber, Integer width, Integer height, String folder, String storage, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call getPageCaretAnnotationsAsync(String name, Integer pageNumber, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -9580,42 +9944,36 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = getPageConvertToEmfValidateBeforeCall(name, pageNumber, width, height, folder, storage, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = getPageCaretAnnotationsValidateBeforeCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for getPageConvertToGif + * Build call for getPageCircleAnnotations * @param name The document name. (required) * @param pageNumber The page number. (required) - * @param width The converted image width. (optional) - * @param height The converted image height. (optional) - * @param folder The document folder. (optional) * @param storage The document storage. (optional) + * @param folder The document folder. (optional) * @param progressListener Progress listener * @param progressRequestListener Progress request listener * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call getPageConvertToGifCall(String name, Integer pageNumber, Integer width, Integer height, String folder, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call getPageCircleAnnotationsCall(String name, Integer pageNumber, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; // create path and map variables - String localVarPath = "/pdf/{name}/pages/{pageNumber}/convert/gif" + String localVarPath = "/pdf/{name}/pages/{pageNumber}/annotations/circle" .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) .replaceAll("\\{" + "pageNumber" + "\\}", apiClient.escapeString(pageNumber.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (width != null) - localVarQueryParams.addAll(apiClient.parameterToPair("width", width)); - if (height != null) - localVarQueryParams.addAll(apiClient.parameterToPair("height", height)); - if (folder != null) - localVarQueryParams.addAll(apiClient.parameterToPair("folder", folder)); if (storage != null) localVarQueryParams.addAll(apiClient.parameterToPair("storage", storage)); + if (folder != null) + localVarQueryParams.addAll(apiClient.parameterToPair("folder", folder)); Map localVarHeaderParams = new HashMap(); @@ -9650,40 +10008,38 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getPageConvertToGifValidateBeforeCall(String name, Integer pageNumber, Integer width, Integer height, String folder, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call getPageCircleAnnotationsValidateBeforeCall(String name, Integer pageNumber, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { // verify the required parameter 'name' is set if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling getPageConvertToGif(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling getPageCircleAnnotations(Async)"); } // verify the required parameter 'pageNumber' is set if (pageNumber == null) { - throw new ApiException("Missing the required parameter 'pageNumber' when calling getPageConvertToGif(Async)"); + throw new ApiException("Missing the required parameter 'pageNumber' when calling getPageCircleAnnotations(Async)"); } - com.squareup.okhttp.Call call = getPageConvertToGifCall(name, pageNumber, width, height, folder, storage, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getPageCircleAnnotationsCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); return call; } /** - * Convert document page to Gif image and return resulting file in response. + * Read document page circle annotations. * * @param name The document name. (required) * @param pageNumber The page number. (required) - * @param width The converted image width. (optional) - * @param height The converted image height. (optional) - * @param folder The document folder. (optional) * @param storage The document storage. (optional) - * @return File + * @param folder The document folder. (optional) + * @return CircleAnnotationsResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public File getPageConvertToGif(String name, Integer pageNumber, Integer width, Integer height, String folder, String storage) throws ApiException { + public CircleAnnotationsResponse getPageCircleAnnotations(String name, Integer pageNumber, String storage, String folder) throws ApiException { try { - ApiResponse resp = getPageConvertToGifWithHttpInfo(name, pageNumber, width, height, folder, storage); + ApiResponse resp = getPageCircleAnnotationsWithHttpInfo(name, pageNumber, storage, folder); return resp.getData(); } catch (ApiException ex) @@ -9691,7 +10047,7 @@ public File getPageConvertToGif(String name, Integer pageNumber, Integer width, if (ex.getCode() == 401) { apiClient.refreshToken(); - ApiResponse resp = getPageConvertToGifWithHttpInfo(name, pageNumber, width, height, folder, storage); + ApiResponse resp = getPageCircleAnnotationsWithHttpInfo(name, pageNumber, storage, folder); return resp.getData(); } throw ex; @@ -9699,37 +10055,33 @@ public File getPageConvertToGif(String name, Integer pageNumber, Integer width, } /** - * Convert document page to Gif image and return resulting file in response. + * Read document page circle annotations. * * @param name The document name. (required) * @param pageNumber The page number. (required) - * @param width The converted image width. (optional) - * @param height The converted image height. (optional) - * @param folder The document folder. (optional) * @param storage The document storage. (optional) - * @return ApiResponse<File> + * @param folder The document folder. (optional) + * @return ApiResponse<CircleAnnotationsResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse getPageConvertToGifWithHttpInfo(String name, Integer pageNumber, Integer width, Integer height, String folder, String storage) throws ApiException { - com.squareup.okhttp.Call call = getPageConvertToGifValidateBeforeCall(name, pageNumber, width, height, folder, storage, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse getPageCircleAnnotationsWithHttpInfo(String name, Integer pageNumber, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = getPageCircleAnnotationsValidateBeforeCall(name, pageNumber, storage, folder, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Convert document page to Gif image and return resulting file in response. (asynchronously) + * Read document page circle annotations. (asynchronously) * * @param name The document name. (required) * @param pageNumber The page number. (required) - * @param width The converted image width. (optional) - * @param height The converted image height. (optional) - * @param folder The document folder. (optional) * @param storage The document storage. (optional) + * @param folder The document folder. (optional) * @param callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call getPageConvertToGifAsync(String name, Integer pageNumber, Integer width, Integer height, String folder, String storage, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call getPageCircleAnnotationsAsync(String name, Integer pageNumber, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -9750,13 +10102,13 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = getPageConvertToGifValidateBeforeCall(name, pageNumber, width, height, folder, storage, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = getPageCircleAnnotationsValidateBeforeCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for getPageConvertToJpeg + * Build call for getPageConvertToBmp * @param name The document name. (required) * @param pageNumber The page number. (required) * @param width The converted image width. (optional) @@ -9768,11 +10120,11 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call getPageConvertToJpegCall(String name, Integer pageNumber, Integer width, Integer height, String folder, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call getPageConvertToBmpCall(String name, Integer pageNumber, Integer width, Integer height, String folder, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; // create path and map variables - String localVarPath = "/pdf/{name}/pages/{pageNumber}/convert/jpeg" + String localVarPath = "/pdf/{name}/pages/{pageNumber}/convert/bmp" .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) .replaceAll("\\{" + "pageNumber" + "\\}", apiClient.escapeString(pageNumber.toString())); @@ -9820,26 +10172,26 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getPageConvertToJpegValidateBeforeCall(String name, Integer pageNumber, Integer width, Integer height, String folder, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call getPageConvertToBmpValidateBeforeCall(String name, Integer pageNumber, Integer width, Integer height, String folder, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { // verify the required parameter 'name' is set if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling getPageConvertToJpeg(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling getPageConvertToBmp(Async)"); } // verify the required parameter 'pageNumber' is set if (pageNumber == null) { - throw new ApiException("Missing the required parameter 'pageNumber' when calling getPageConvertToJpeg(Async)"); + throw new ApiException("Missing the required parameter 'pageNumber' when calling getPageConvertToBmp(Async)"); } - com.squareup.okhttp.Call call = getPageConvertToJpegCall(name, pageNumber, width, height, folder, storage, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getPageConvertToBmpCall(name, pageNumber, width, height, folder, storage, progressListener, progressRequestListener); return call; } /** - * Convert document page to Jpeg image and return resulting file in response. + * Convert document page to Bmp image and return resulting file in response. * * @param name The document name. (required) * @param pageNumber The page number. (required) @@ -9850,10 +10202,10 @@ private com.squareup.okhttp.Call getPageConvertToJpegValidateBeforeCall(String n * @return File * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public File getPageConvertToJpeg(String name, Integer pageNumber, Integer width, Integer height, String folder, String storage) throws ApiException { + public File getPageConvertToBmp(String name, Integer pageNumber, Integer width, Integer height, String folder, String storage) throws ApiException { try { - ApiResponse resp = getPageConvertToJpegWithHttpInfo(name, pageNumber, width, height, folder, storage); + ApiResponse resp = getPageConvertToBmpWithHttpInfo(name, pageNumber, width, height, folder, storage); return resp.getData(); } catch (ApiException ex) @@ -9861,7 +10213,7 @@ public File getPageConvertToJpeg(String name, Integer pageNumber, Integer width, if (ex.getCode() == 401) { apiClient.refreshToken(); - ApiResponse resp = getPageConvertToJpegWithHttpInfo(name, pageNumber, width, height, folder, storage); + ApiResponse resp = getPageConvertToBmpWithHttpInfo(name, pageNumber, width, height, folder, storage); return resp.getData(); } throw ex; @@ -9869,7 +10221,7 @@ public File getPageConvertToJpeg(String name, Integer pageNumber, Integer width, } /** - * Convert document page to Jpeg image and return resulting file in response. + * Convert document page to Bmp image and return resulting file in response. * * @param name The document name. (required) * @param pageNumber The page number. (required) @@ -9880,14 +10232,14 @@ public File getPageConvertToJpeg(String name, Integer pageNumber, Integer width, * @return ApiResponse<File> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse getPageConvertToJpegWithHttpInfo(String name, Integer pageNumber, Integer width, Integer height, String folder, String storage) throws ApiException { - com.squareup.okhttp.Call call = getPageConvertToJpegValidateBeforeCall(name, pageNumber, width, height, folder, storage, null, null); + public ApiResponse getPageConvertToBmpWithHttpInfo(String name, Integer pageNumber, Integer width, Integer height, String folder, String storage) throws ApiException { + com.squareup.okhttp.Call call = getPageConvertToBmpValidateBeforeCall(name, pageNumber, width, height, folder, storage, null, null); Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Convert document page to Jpeg image and return resulting file in response. (asynchronously) + * Convert document page to Bmp image and return resulting file in response. (asynchronously) * * @param name The document name. (required) * @param pageNumber The page number. (required) @@ -9899,7 +10251,7 @@ public ApiResponse getPageConvertToJpegWithHttpInfo(String name, Integer p * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call getPageConvertToJpegAsync(String name, Integer pageNumber, Integer width, Integer height, String folder, String storage, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call getPageConvertToBmpAsync(String name, Integer pageNumber, Integer width, Integer height, String folder, String storage, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -9920,13 +10272,13 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = getPageConvertToJpegValidateBeforeCall(name, pageNumber, width, height, folder, storage, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getPageConvertToBmpValidateBeforeCall(name, pageNumber, width, height, folder, storage, progressListener, progressRequestListener); Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for getPageConvertToPng + * Build call for getPageConvertToEmf * @param name The document name. (required) * @param pageNumber The page number. (required) * @param width The converted image width. (optional) @@ -9938,11 +10290,11 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call getPageConvertToPngCall(String name, Integer pageNumber, Integer width, Integer height, String folder, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call getPageConvertToEmfCall(String name, Integer pageNumber, Integer width, Integer height, String folder, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; // create path and map variables - String localVarPath = "/pdf/{name}/pages/{pageNumber}/convert/png" + String localVarPath = "/pdf/{name}/pages/{pageNumber}/convert/emf" .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) .replaceAll("\\{" + "pageNumber" + "\\}", apiClient.escapeString(pageNumber.toString())); @@ -9990,26 +10342,26 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getPageConvertToPngValidateBeforeCall(String name, Integer pageNumber, Integer width, Integer height, String folder, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call getPageConvertToEmfValidateBeforeCall(String name, Integer pageNumber, Integer width, Integer height, String folder, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { // verify the required parameter 'name' is set if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling getPageConvertToPng(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling getPageConvertToEmf(Async)"); } // verify the required parameter 'pageNumber' is set if (pageNumber == null) { - throw new ApiException("Missing the required parameter 'pageNumber' when calling getPageConvertToPng(Async)"); + throw new ApiException("Missing the required parameter 'pageNumber' when calling getPageConvertToEmf(Async)"); } - com.squareup.okhttp.Call call = getPageConvertToPngCall(name, pageNumber, width, height, folder, storage, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getPageConvertToEmfCall(name, pageNumber, width, height, folder, storage, progressListener, progressRequestListener); return call; } /** - * Convert document page to Png image and return resulting file in response. + * Convert document page to Emf image and return resulting file in response. * * @param name The document name. (required) * @param pageNumber The page number. (required) @@ -10020,10 +10372,10 @@ private com.squareup.okhttp.Call getPageConvertToPngValidateBeforeCall(String na * @return File * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public File getPageConvertToPng(String name, Integer pageNumber, Integer width, Integer height, String folder, String storage) throws ApiException { + public File getPageConvertToEmf(String name, Integer pageNumber, Integer width, Integer height, String folder, String storage) throws ApiException { try { - ApiResponse resp = getPageConvertToPngWithHttpInfo(name, pageNumber, width, height, folder, storage); + ApiResponse resp = getPageConvertToEmfWithHttpInfo(name, pageNumber, width, height, folder, storage); return resp.getData(); } catch (ApiException ex) @@ -10031,7 +10383,7 @@ public File getPageConvertToPng(String name, Integer pageNumber, Integer width, if (ex.getCode() == 401) { apiClient.refreshToken(); - ApiResponse resp = getPageConvertToPngWithHttpInfo(name, pageNumber, width, height, folder, storage); + ApiResponse resp = getPageConvertToEmfWithHttpInfo(name, pageNumber, width, height, folder, storage); return resp.getData(); } throw ex; @@ -10039,7 +10391,7 @@ public File getPageConvertToPng(String name, Integer pageNumber, Integer width, } /** - * Convert document page to Png image and return resulting file in response. + * Convert document page to Emf image and return resulting file in response. * * @param name The document name. (required) * @param pageNumber The page number. (required) @@ -10050,14 +10402,14 @@ public File getPageConvertToPng(String name, Integer pageNumber, Integer width, * @return ApiResponse<File> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse getPageConvertToPngWithHttpInfo(String name, Integer pageNumber, Integer width, Integer height, String folder, String storage) throws ApiException { - com.squareup.okhttp.Call call = getPageConvertToPngValidateBeforeCall(name, pageNumber, width, height, folder, storage, null, null); + public ApiResponse getPageConvertToEmfWithHttpInfo(String name, Integer pageNumber, Integer width, Integer height, String folder, String storage) throws ApiException { + com.squareup.okhttp.Call call = getPageConvertToEmfValidateBeforeCall(name, pageNumber, width, height, folder, storage, null, null); Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Convert document page to Png image and return resulting file in response. (asynchronously) + * Convert document page to Emf image and return resulting file in response. (asynchronously) * * @param name The document name. (required) * @param pageNumber The page number. (required) @@ -10069,7 +10421,7 @@ public ApiResponse getPageConvertToPngWithHttpInfo(String name, Integer pa * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call getPageConvertToPngAsync(String name, Integer pageNumber, Integer width, Integer height, String folder, String storage, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call getPageConvertToEmfAsync(String name, Integer pageNumber, Integer width, Integer height, String folder, String storage, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -10090,13 +10442,13 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = getPageConvertToPngValidateBeforeCall(name, pageNumber, width, height, folder, storage, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getPageConvertToEmfValidateBeforeCall(name, pageNumber, width, height, folder, storage, progressListener, progressRequestListener); Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for getPageConvertToTiff + * Build call for getPageConvertToGif * @param name The document name. (required) * @param pageNumber The page number. (required) * @param width The converted image width. (optional) @@ -10108,11 +10460,11 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call getPageConvertToTiffCall(String name, Integer pageNumber, Integer width, Integer height, String folder, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call getPageConvertToGifCall(String name, Integer pageNumber, Integer width, Integer height, String folder, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; // create path and map variables - String localVarPath = "/pdf/{name}/pages/{pageNumber}/convert/tiff" + String localVarPath = "/pdf/{name}/pages/{pageNumber}/convert/gif" .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) .replaceAll("\\{" + "pageNumber" + "\\}", apiClient.escapeString(pageNumber.toString())); @@ -10160,26 +10512,26 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getPageConvertToTiffValidateBeforeCall(String name, Integer pageNumber, Integer width, Integer height, String folder, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call getPageConvertToGifValidateBeforeCall(String name, Integer pageNumber, Integer width, Integer height, String folder, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { // verify the required parameter 'name' is set if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling getPageConvertToTiff(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling getPageConvertToGif(Async)"); } // verify the required parameter 'pageNumber' is set if (pageNumber == null) { - throw new ApiException("Missing the required parameter 'pageNumber' when calling getPageConvertToTiff(Async)"); + throw new ApiException("Missing the required parameter 'pageNumber' when calling getPageConvertToGif(Async)"); } - com.squareup.okhttp.Call call = getPageConvertToTiffCall(name, pageNumber, width, height, folder, storage, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getPageConvertToGifCall(name, pageNumber, width, height, folder, storage, progressListener, progressRequestListener); return call; } /** - * Convert document page to Tiff image and return resulting file in response. + * Convert document page to Gif image and return resulting file in response. * * @param name The document name. (required) * @param pageNumber The page number. (required) @@ -10190,10 +10542,10 @@ private com.squareup.okhttp.Call getPageConvertToTiffValidateBeforeCall(String n * @return File * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public File getPageConvertToTiff(String name, Integer pageNumber, Integer width, Integer height, String folder, String storage) throws ApiException { + public File getPageConvertToGif(String name, Integer pageNumber, Integer width, Integer height, String folder, String storage) throws ApiException { try { - ApiResponse resp = getPageConvertToTiffWithHttpInfo(name, pageNumber, width, height, folder, storage); + ApiResponse resp = getPageConvertToGifWithHttpInfo(name, pageNumber, width, height, folder, storage); return resp.getData(); } catch (ApiException ex) @@ -10201,7 +10553,7 @@ public File getPageConvertToTiff(String name, Integer pageNumber, Integer width, if (ex.getCode() == 401) { apiClient.refreshToken(); - ApiResponse resp = getPageConvertToTiffWithHttpInfo(name, pageNumber, width, height, folder, storage); + ApiResponse resp = getPageConvertToGifWithHttpInfo(name, pageNumber, width, height, folder, storage); return resp.getData(); } throw ex; @@ -10209,7 +10561,7 @@ public File getPageConvertToTiff(String name, Integer pageNumber, Integer width, } /** - * Convert document page to Tiff image and return resulting file in response. + * Convert document page to Gif image and return resulting file in response. * * @param name The document name. (required) * @param pageNumber The page number. (required) @@ -10220,14 +10572,14 @@ public File getPageConvertToTiff(String name, Integer pageNumber, Integer width, * @return ApiResponse<File> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse getPageConvertToTiffWithHttpInfo(String name, Integer pageNumber, Integer width, Integer height, String folder, String storage) throws ApiException { - com.squareup.okhttp.Call call = getPageConvertToTiffValidateBeforeCall(name, pageNumber, width, height, folder, storage, null, null); + public ApiResponse getPageConvertToGifWithHttpInfo(String name, Integer pageNumber, Integer width, Integer height, String folder, String storage) throws ApiException { + com.squareup.okhttp.Call call = getPageConvertToGifValidateBeforeCall(name, pageNumber, width, height, folder, storage, null, null); Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Convert document page to Tiff image and return resulting file in response. (asynchronously) + * Convert document page to Gif image and return resulting file in response. (asynchronously) * * @param name The document name. (required) * @param pageNumber The page number. (required) @@ -10239,7 +10591,7 @@ public ApiResponse getPageConvertToTiffWithHttpInfo(String name, Integer p * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call getPageConvertToTiffAsync(String name, Integer pageNumber, Integer width, Integer height, String folder, String storage, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call getPageConvertToGifAsync(String name, Integer pageNumber, Integer width, Integer height, String folder, String storage, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -10260,36 +10612,42 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = getPageConvertToTiffValidateBeforeCall(name, pageNumber, width, height, folder, storage, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getPageConvertToGifValidateBeforeCall(name, pageNumber, width, height, folder, storage, progressListener, progressRequestListener); Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for getPageFreeTextAnnotations + * Build call for getPageConvertToJpeg * @param name The document name. (required) * @param pageNumber The page number. (required) - * @param storage The document storage. (optional) + * @param width The converted image width. (optional) + * @param height The converted image height. (optional) * @param folder The document folder. (optional) + * @param storage The document storage. (optional) * @param progressListener Progress listener * @param progressRequestListener Progress request listener * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call getPageFreeTextAnnotationsCall(String name, Integer pageNumber, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call getPageConvertToJpegCall(String name, Integer pageNumber, Integer width, Integer height, String folder, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; // create path and map variables - String localVarPath = "/pdf/{name}/pages/{pageNumber}/annotations/freetext" + String localVarPath = "/pdf/{name}/pages/{pageNumber}/convert/jpeg" .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) .replaceAll("\\{" + "pageNumber" + "\\}", apiClient.escapeString(pageNumber.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (storage != null) - localVarQueryParams.addAll(apiClient.parameterToPair("storage", storage)); + if (width != null) + localVarQueryParams.addAll(apiClient.parameterToPair("width", width)); + if (height != null) + localVarQueryParams.addAll(apiClient.parameterToPair("height", height)); if (folder != null) localVarQueryParams.addAll(apiClient.parameterToPair("folder", folder)); + if (storage != null) + localVarQueryParams.addAll(apiClient.parameterToPair("storage", storage)); Map localVarHeaderParams = new HashMap(); @@ -10324,38 +10682,40 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getPageFreeTextAnnotationsValidateBeforeCall(String name, Integer pageNumber, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call getPageConvertToJpegValidateBeforeCall(String name, Integer pageNumber, Integer width, Integer height, String folder, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { // verify the required parameter 'name' is set if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling getPageFreeTextAnnotations(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling getPageConvertToJpeg(Async)"); } // verify the required parameter 'pageNumber' is set if (pageNumber == null) { - throw new ApiException("Missing the required parameter 'pageNumber' when calling getPageFreeTextAnnotations(Async)"); + throw new ApiException("Missing the required parameter 'pageNumber' when calling getPageConvertToJpeg(Async)"); } - com.squareup.okhttp.Call call = getPageFreeTextAnnotationsCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getPageConvertToJpegCall(name, pageNumber, width, height, folder, storage, progressListener, progressRequestListener); return call; } /** - * Read document page free text annotations. + * Convert document page to Jpeg image and return resulting file in response. * * @param name The document name. (required) * @param pageNumber The page number. (required) - * @param storage The document storage. (optional) + * @param width The converted image width. (optional) + * @param height The converted image height. (optional) * @param folder The document folder. (optional) - * @return FreeTextAnnotationsResponse + * @param storage The document storage. (optional) + * @return File * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public FreeTextAnnotationsResponse getPageFreeTextAnnotations(String name, Integer pageNumber, String storage, String folder) throws ApiException { + public File getPageConvertToJpeg(String name, Integer pageNumber, Integer width, Integer height, String folder, String storage) throws ApiException { try { - ApiResponse resp = getPageFreeTextAnnotationsWithHttpInfo(name, pageNumber, storage, folder); + ApiResponse resp = getPageConvertToJpegWithHttpInfo(name, pageNumber, width, height, folder, storage); return resp.getData(); } catch (ApiException ex) @@ -10363,7 +10723,7 @@ public FreeTextAnnotationsResponse getPageFreeTextAnnotations(String name, Integ if (ex.getCode() == 401) { apiClient.refreshToken(); - ApiResponse resp = getPageFreeTextAnnotationsWithHttpInfo(name, pageNumber, storage, folder); + ApiResponse resp = getPageConvertToJpegWithHttpInfo(name, pageNumber, width, height, folder, storage); return resp.getData(); } throw ex; @@ -10371,33 +10731,37 @@ public FreeTextAnnotationsResponse getPageFreeTextAnnotations(String name, Integ } /** - * Read document page free text annotations. + * Convert document page to Jpeg image and return resulting file in response. * * @param name The document name. (required) * @param pageNumber The page number. (required) - * @param storage The document storage. (optional) + * @param width The converted image width. (optional) + * @param height The converted image height. (optional) * @param folder The document folder. (optional) - * @return ApiResponse<FreeTextAnnotationsResponse> + * @param storage The document storage. (optional) + * @return ApiResponse<File> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse getPageFreeTextAnnotationsWithHttpInfo(String name, Integer pageNumber, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = getPageFreeTextAnnotationsValidateBeforeCall(name, pageNumber, storage, folder, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse getPageConvertToJpegWithHttpInfo(String name, Integer pageNumber, Integer width, Integer height, String folder, String storage) throws ApiException { + com.squareup.okhttp.Call call = getPageConvertToJpegValidateBeforeCall(name, pageNumber, width, height, folder, storage, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Read document page free text annotations. (asynchronously) + * Convert document page to Jpeg image and return resulting file in response. (asynchronously) * * @param name The document name. (required) * @param pageNumber The page number. (required) - * @param storage The document storage. (optional) + * @param width The converted image width. (optional) + * @param height The converted image height. (optional) * @param folder The document folder. (optional) + * @param storage The document storage. (optional) * @param callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call getPageFreeTextAnnotationsAsync(String name, Integer pageNumber, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call getPageConvertToJpegAsync(String name, Integer pageNumber, Integer width, Integer height, String folder, String storage, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -10418,36 +10782,42 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = getPageFreeTextAnnotationsValidateBeforeCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = getPageConvertToJpegValidateBeforeCall(name, pageNumber, width, height, folder, storage, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for getPageHighlightAnnotations + * Build call for getPageConvertToPng * @param name The document name. (required) * @param pageNumber The page number. (required) - * @param storage The document storage. (optional) + * @param width The converted image width. (optional) + * @param height The converted image height. (optional) * @param folder The document folder. (optional) + * @param storage The document storage. (optional) * @param progressListener Progress listener * @param progressRequestListener Progress request listener * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call getPageHighlightAnnotationsCall(String name, Integer pageNumber, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call getPageConvertToPngCall(String name, Integer pageNumber, Integer width, Integer height, String folder, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; // create path and map variables - String localVarPath = "/pdf/{name}/pages/{pageNumber}/annotations/highlight" + String localVarPath = "/pdf/{name}/pages/{pageNumber}/convert/png" .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) .replaceAll("\\{" + "pageNumber" + "\\}", apiClient.escapeString(pageNumber.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (storage != null) - localVarQueryParams.addAll(apiClient.parameterToPair("storage", storage)); + if (width != null) + localVarQueryParams.addAll(apiClient.parameterToPair("width", width)); + if (height != null) + localVarQueryParams.addAll(apiClient.parameterToPair("height", height)); if (folder != null) localVarQueryParams.addAll(apiClient.parameterToPair("folder", folder)); + if (storage != null) + localVarQueryParams.addAll(apiClient.parameterToPair("storage", storage)); Map localVarHeaderParams = new HashMap(); @@ -10482,38 +10852,40 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getPageHighlightAnnotationsValidateBeforeCall(String name, Integer pageNumber, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call getPageConvertToPngValidateBeforeCall(String name, Integer pageNumber, Integer width, Integer height, String folder, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { // verify the required parameter 'name' is set if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling getPageHighlightAnnotations(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling getPageConvertToPng(Async)"); } // verify the required parameter 'pageNumber' is set if (pageNumber == null) { - throw new ApiException("Missing the required parameter 'pageNumber' when calling getPageHighlightAnnotations(Async)"); + throw new ApiException("Missing the required parameter 'pageNumber' when calling getPageConvertToPng(Async)"); } - com.squareup.okhttp.Call call = getPageHighlightAnnotationsCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getPageConvertToPngCall(name, pageNumber, width, height, folder, storage, progressListener, progressRequestListener); return call; } /** - * Read document page highlight annotations. + * Convert document page to Png image and return resulting file in response. * * @param name The document name. (required) * @param pageNumber The page number. (required) - * @param storage The document storage. (optional) + * @param width The converted image width. (optional) + * @param height The converted image height. (optional) * @param folder The document folder. (optional) - * @return HighlightAnnotationsResponse + * @param storage The document storage. (optional) + * @return File * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public HighlightAnnotationsResponse getPageHighlightAnnotations(String name, Integer pageNumber, String storage, String folder) throws ApiException { + public File getPageConvertToPng(String name, Integer pageNumber, Integer width, Integer height, String folder, String storage) throws ApiException { try { - ApiResponse resp = getPageHighlightAnnotationsWithHttpInfo(name, pageNumber, storage, folder); + ApiResponse resp = getPageConvertToPngWithHttpInfo(name, pageNumber, width, height, folder, storage); return resp.getData(); } catch (ApiException ex) @@ -10521,7 +10893,7 @@ public HighlightAnnotationsResponse getPageHighlightAnnotations(String name, Int if (ex.getCode() == 401) { apiClient.refreshToken(); - ApiResponse resp = getPageHighlightAnnotationsWithHttpInfo(name, pageNumber, storage, folder); + ApiResponse resp = getPageConvertToPngWithHttpInfo(name, pageNumber, width, height, folder, storage); return resp.getData(); } throw ex; @@ -10529,33 +10901,37 @@ public HighlightAnnotationsResponse getPageHighlightAnnotations(String name, Int } /** - * Read document page highlight annotations. + * Convert document page to Png image and return resulting file in response. * * @param name The document name. (required) * @param pageNumber The page number. (required) - * @param storage The document storage. (optional) + * @param width The converted image width. (optional) + * @param height The converted image height. (optional) * @param folder The document folder. (optional) - * @return ApiResponse<HighlightAnnotationsResponse> + * @param storage The document storage. (optional) + * @return ApiResponse<File> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse getPageHighlightAnnotationsWithHttpInfo(String name, Integer pageNumber, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = getPageHighlightAnnotationsValidateBeforeCall(name, pageNumber, storage, folder, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse getPageConvertToPngWithHttpInfo(String name, Integer pageNumber, Integer width, Integer height, String folder, String storage) throws ApiException { + com.squareup.okhttp.Call call = getPageConvertToPngValidateBeforeCall(name, pageNumber, width, height, folder, storage, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Read document page highlight annotations. (asynchronously) + * Convert document page to Png image and return resulting file in response. (asynchronously) * * @param name The document name. (required) * @param pageNumber The page number. (required) - * @param storage The document storage. (optional) + * @param width The converted image width. (optional) + * @param height The converted image height. (optional) * @param folder The document folder. (optional) + * @param storage The document storage. (optional) * @param callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call getPageHighlightAnnotationsAsync(String name, Integer pageNumber, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call getPageConvertToPngAsync(String name, Integer pageNumber, Integer width, Integer height, String folder, String storage, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -10576,36 +10952,42 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = getPageHighlightAnnotationsValidateBeforeCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = getPageConvertToPngValidateBeforeCall(name, pageNumber, width, height, folder, storage, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for getPageInkAnnotations + * Build call for getPageConvertToTiff * @param name The document name. (required) * @param pageNumber The page number. (required) - * @param storage The document storage. (optional) + * @param width The converted image width. (optional) + * @param height The converted image height. (optional) * @param folder The document folder. (optional) + * @param storage The document storage. (optional) * @param progressListener Progress listener * @param progressRequestListener Progress request listener * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call getPageInkAnnotationsCall(String name, Integer pageNumber, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call getPageConvertToTiffCall(String name, Integer pageNumber, Integer width, Integer height, String folder, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; // create path and map variables - String localVarPath = "/pdf/{name}/pages/{pageNumber}/annotations/ink" + String localVarPath = "/pdf/{name}/pages/{pageNumber}/convert/tiff" .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) .replaceAll("\\{" + "pageNumber" + "\\}", apiClient.escapeString(pageNumber.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (storage != null) - localVarQueryParams.addAll(apiClient.parameterToPair("storage", storage)); + if (width != null) + localVarQueryParams.addAll(apiClient.parameterToPair("width", width)); + if (height != null) + localVarQueryParams.addAll(apiClient.parameterToPair("height", height)); if (folder != null) localVarQueryParams.addAll(apiClient.parameterToPair("folder", folder)); + if (storage != null) + localVarQueryParams.addAll(apiClient.parameterToPair("storage", storage)); Map localVarHeaderParams = new HashMap(); @@ -10640,38 +11022,40 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getPageInkAnnotationsValidateBeforeCall(String name, Integer pageNumber, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call getPageConvertToTiffValidateBeforeCall(String name, Integer pageNumber, Integer width, Integer height, String folder, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { // verify the required parameter 'name' is set if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling getPageInkAnnotations(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling getPageConvertToTiff(Async)"); } // verify the required parameter 'pageNumber' is set if (pageNumber == null) { - throw new ApiException("Missing the required parameter 'pageNumber' when calling getPageInkAnnotations(Async)"); + throw new ApiException("Missing the required parameter 'pageNumber' when calling getPageConvertToTiff(Async)"); } - com.squareup.okhttp.Call call = getPageInkAnnotationsCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getPageConvertToTiffCall(name, pageNumber, width, height, folder, storage, progressListener, progressRequestListener); return call; } /** - * Read document page ink annotations. + * Convert document page to Tiff image and return resulting file in response. * * @param name The document name. (required) * @param pageNumber The page number. (required) - * @param storage The document storage. (optional) + * @param width The converted image width. (optional) + * @param height The converted image height. (optional) * @param folder The document folder. (optional) - * @return InkAnnotationsResponse + * @param storage The document storage. (optional) + * @return File * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public InkAnnotationsResponse getPageInkAnnotations(String name, Integer pageNumber, String storage, String folder) throws ApiException { + public File getPageConvertToTiff(String name, Integer pageNumber, Integer width, Integer height, String folder, String storage) throws ApiException { try { - ApiResponse resp = getPageInkAnnotationsWithHttpInfo(name, pageNumber, storage, folder); + ApiResponse resp = getPageConvertToTiffWithHttpInfo(name, pageNumber, width, height, folder, storage); return resp.getData(); } catch (ApiException ex) @@ -10679,7 +11063,7 @@ public InkAnnotationsResponse getPageInkAnnotations(String name, Integer pageNum if (ex.getCode() == 401) { apiClient.refreshToken(); - ApiResponse resp = getPageInkAnnotationsWithHttpInfo(name, pageNumber, storage, folder); + ApiResponse resp = getPageConvertToTiffWithHttpInfo(name, pageNumber, width, height, folder, storage); return resp.getData(); } throw ex; @@ -10687,33 +11071,37 @@ public InkAnnotationsResponse getPageInkAnnotations(String name, Integer pageNum } /** - * Read document page ink annotations. + * Convert document page to Tiff image and return resulting file in response. * * @param name The document name. (required) * @param pageNumber The page number. (required) - * @param storage The document storage. (optional) + * @param width The converted image width. (optional) + * @param height The converted image height. (optional) * @param folder The document folder. (optional) - * @return ApiResponse<InkAnnotationsResponse> + * @param storage The document storage. (optional) + * @return ApiResponse<File> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse getPageInkAnnotationsWithHttpInfo(String name, Integer pageNumber, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = getPageInkAnnotationsValidateBeforeCall(name, pageNumber, storage, folder, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse getPageConvertToTiffWithHttpInfo(String name, Integer pageNumber, Integer width, Integer height, String folder, String storage) throws ApiException { + com.squareup.okhttp.Call call = getPageConvertToTiffValidateBeforeCall(name, pageNumber, width, height, folder, storage, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Read document page ink annotations. (asynchronously) + * Convert document page to Tiff image and return resulting file in response. (asynchronously) * * @param name The document name. (required) * @param pageNumber The page number. (required) - * @param storage The document storage. (optional) + * @param width The converted image width. (optional) + * @param height The converted image height. (optional) * @param folder The document folder. (optional) + * @param storage The document storage. (optional) * @param callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call getPageInkAnnotationsAsync(String name, Integer pageNumber, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call getPageConvertToTiffAsync(String name, Integer pageNumber, Integer width, Integer height, String folder, String storage, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -10734,13 +11122,13 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = getPageInkAnnotationsValidateBeforeCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = getPageConvertToTiffValidateBeforeCall(name, pageNumber, width, height, folder, storage, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for getPageLineAnnotations + * Build call for getPageFreeTextAnnotations * @param name The document name. (required) * @param pageNumber The page number. (required) * @param storage The document storage. (optional) @@ -10750,11 +11138,11 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call getPageLineAnnotationsCall(String name, Integer pageNumber, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call getPageFreeTextAnnotationsCall(String name, Integer pageNumber, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; // create path and map variables - String localVarPath = "/pdf/{name}/pages/{pageNumber}/annotations/line" + String localVarPath = "/pdf/{name}/pages/{pageNumber}/annotations/freetext" .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) .replaceAll("\\{" + "pageNumber" + "\\}", apiClient.escapeString(pageNumber.toString())); @@ -10798,38 +11186,38 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getPageLineAnnotationsValidateBeforeCall(String name, Integer pageNumber, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call getPageFreeTextAnnotationsValidateBeforeCall(String name, Integer pageNumber, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { // verify the required parameter 'name' is set if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling getPageLineAnnotations(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling getPageFreeTextAnnotations(Async)"); } // verify the required parameter 'pageNumber' is set if (pageNumber == null) { - throw new ApiException("Missing the required parameter 'pageNumber' when calling getPageLineAnnotations(Async)"); + throw new ApiException("Missing the required parameter 'pageNumber' when calling getPageFreeTextAnnotations(Async)"); } - com.squareup.okhttp.Call call = getPageLineAnnotationsCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getPageFreeTextAnnotationsCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); return call; } /** - * Read document page line annotations. + * Read document page free text annotations. * * @param name The document name. (required) * @param pageNumber The page number. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) - * @return LineAnnotationsResponse + * @return FreeTextAnnotationsResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public LineAnnotationsResponse getPageLineAnnotations(String name, Integer pageNumber, String storage, String folder) throws ApiException { + public FreeTextAnnotationsResponse getPageFreeTextAnnotations(String name, Integer pageNumber, String storage, String folder) throws ApiException { try { - ApiResponse resp = getPageLineAnnotationsWithHttpInfo(name, pageNumber, storage, folder); + ApiResponse resp = getPageFreeTextAnnotationsWithHttpInfo(name, pageNumber, storage, folder); return resp.getData(); } catch (ApiException ex) @@ -10837,7 +11225,7 @@ public LineAnnotationsResponse getPageLineAnnotations(String name, Integer pageN if (ex.getCode() == 401) { apiClient.refreshToken(); - ApiResponse resp = getPageLineAnnotationsWithHttpInfo(name, pageNumber, storage, folder); + ApiResponse resp = getPageFreeTextAnnotationsWithHttpInfo(name, pageNumber, storage, folder); return resp.getData(); } throw ex; @@ -10845,23 +11233,23 @@ public LineAnnotationsResponse getPageLineAnnotations(String name, Integer pageN } /** - * Read document page line annotations. + * Read document page free text annotations. * * @param name The document name. (required) * @param pageNumber The page number. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) - * @return ApiResponse<LineAnnotationsResponse> + * @return ApiResponse<FreeTextAnnotationsResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse getPageLineAnnotationsWithHttpInfo(String name, Integer pageNumber, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = getPageLineAnnotationsValidateBeforeCall(name, pageNumber, storage, folder, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse getPageFreeTextAnnotationsWithHttpInfo(String name, Integer pageNumber, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = getPageFreeTextAnnotationsValidateBeforeCall(name, pageNumber, storage, folder, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Read document page line annotations. (asynchronously) + * Read document page free text annotations. (asynchronously) * * @param name The document name. (required) * @param pageNumber The page number. (required) @@ -10871,7 +11259,7 @@ public ApiResponse getPageLineAnnotationsWithHttpInfo(S * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call getPageLineAnnotationsAsync(String name, Integer pageNumber, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call getPageFreeTextAnnotationsAsync(String name, Integer pageNumber, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -10892,33 +11280,29 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = getPageLineAnnotationsValidateBeforeCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = getPageFreeTextAnnotationsValidateBeforeCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for getPageLinkAnnotation + * Build call for getPageHighlightAnnotations * @param name The document name. (required) * @param pageNumber The page number. (required) - * @param linkId The link ID. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) * @param progressListener Progress listener * @param progressRequestListener Progress request listener * @return Call to execute * @throws ApiException If fail to serialize the request body object - * @deprecated */ - @Deprecated - public com.squareup.okhttp.Call getPageLinkAnnotationCall(String name, Integer pageNumber, String linkId, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call getPageHighlightAnnotationsCall(String name, Integer pageNumber, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; // create path and map variables - String localVarPath = "/pdf/{name}/pages/{pageNumber}/links/{linkId}" + String localVarPath = "/pdf/{name}/pages/{pageNumber}/annotations/highlight" .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "pageNumber" + "\\}", apiClient.escapeString(pageNumber.toString())) - .replaceAll("\\{" + "linkId" + "\\}", apiClient.escapeString(linkId.toString())); + .replaceAll("\\{" + "pageNumber" + "\\}", apiClient.escapeString(pageNumber.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -10959,48 +11343,39 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } - @Deprecated @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getPageLinkAnnotationValidateBeforeCall(String name, Integer pageNumber, String linkId, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call getPageHighlightAnnotationsValidateBeforeCall(String name, Integer pageNumber, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { // verify the required parameter 'name' is set if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling getPageLinkAnnotation(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling getPageHighlightAnnotations(Async)"); } // verify the required parameter 'pageNumber' is set if (pageNumber == null) { - throw new ApiException("Missing the required parameter 'pageNumber' when calling getPageLinkAnnotation(Async)"); - } - - // verify the required parameter 'linkId' is set - if (linkId == null) { - throw new ApiException("Missing the required parameter 'linkId' when calling getPageLinkAnnotation(Async)"); + throw new ApiException("Missing the required parameter 'pageNumber' when calling getPageHighlightAnnotations(Async)"); } - com.squareup.okhttp.Call call = getPageLinkAnnotationCall(name, pageNumber, linkId, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getPageHighlightAnnotationsCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); return call; } /** - * Read document page link annotation by ID. + * Read document page highlight annotations. * * @param name The document name. (required) * @param pageNumber The page number. (required) - * @param linkId The link ID. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) - * @return LinkAnnotationResponse + * @return HighlightAnnotationsResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @deprecated */ - @Deprecated - public LinkAnnotationResponse getPageLinkAnnotation(String name, Integer pageNumber, String linkId, String storage, String folder) throws ApiException { + public HighlightAnnotationsResponse getPageHighlightAnnotations(String name, Integer pageNumber, String storage, String folder) throws ApiException { try { - ApiResponse resp = getPageLinkAnnotationWithHttpInfo(name, pageNumber, linkId, storage, folder); + ApiResponse resp = getPageHighlightAnnotationsWithHttpInfo(name, pageNumber, storage, folder); return resp.getData(); } catch (ApiException ex) @@ -11008,7 +11383,7 @@ public LinkAnnotationResponse getPageLinkAnnotation(String name, Integer pageNum if (ex.getCode() == 401) { apiClient.refreshToken(); - ApiResponse resp = getPageLinkAnnotationWithHttpInfo(name, pageNumber, linkId, storage, folder); + ApiResponse resp = getPageHighlightAnnotationsWithHttpInfo(name, pageNumber, storage, folder); return resp.getData(); } throw ex; @@ -11016,39 +11391,33 @@ public LinkAnnotationResponse getPageLinkAnnotation(String name, Integer pageNum } /** - * Read document page link annotation by ID. + * Read document page highlight annotations. * * @param name The document name. (required) * @param pageNumber The page number. (required) - * @param linkId The link ID. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) - * @return ApiResponse<LinkAnnotationResponse> + * @return ApiResponse<HighlightAnnotationsResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @deprecated */ - @Deprecated - public ApiResponse getPageLinkAnnotationWithHttpInfo(String name, Integer pageNumber, String linkId, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = getPageLinkAnnotationValidateBeforeCall(name, pageNumber, linkId, storage, folder, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse getPageHighlightAnnotationsWithHttpInfo(String name, Integer pageNumber, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = getPageHighlightAnnotationsValidateBeforeCall(name, pageNumber, storage, folder, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Read document page link annotation by ID. (asynchronously) + * Read document page highlight annotations. (asynchronously) * * @param name The document name. (required) * @param pageNumber The page number. (required) - * @param linkId The link ID. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) * @param callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @deprecated */ - @Deprecated - public com.squareup.okhttp.Call getPageLinkAnnotationAsync(String name, Integer pageNumber, String linkId, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call getPageHighlightAnnotationsAsync(String name, Integer pageNumber, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -11069,13 +11438,13 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = getPageLinkAnnotationValidateBeforeCall(name, pageNumber, linkId, storage, folder, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = getPageHighlightAnnotationsValidateBeforeCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for getPageLinkAnnotations + * Build call for getPageInkAnnotations * @param name The document name. (required) * @param pageNumber The page number. (required) * @param storage The document storage. (optional) @@ -11085,11 +11454,11 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call getPageLinkAnnotationsCall(String name, Integer pageNumber, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call getPageInkAnnotationsCall(String name, Integer pageNumber, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; // create path and map variables - String localVarPath = "/pdf/{name}/pages/{pageNumber}/links" + String localVarPath = "/pdf/{name}/pages/{pageNumber}/annotations/ink" .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) .replaceAll("\\{" + "pageNumber" + "\\}", apiClient.escapeString(pageNumber.toString())); @@ -11133,38 +11502,38 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getPageLinkAnnotationsValidateBeforeCall(String name, Integer pageNumber, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call getPageInkAnnotationsValidateBeforeCall(String name, Integer pageNumber, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { // verify the required parameter 'name' is set if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling getPageLinkAnnotations(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling getPageInkAnnotations(Async)"); } // verify the required parameter 'pageNumber' is set if (pageNumber == null) { - throw new ApiException("Missing the required parameter 'pageNumber' when calling getPageLinkAnnotations(Async)"); + throw new ApiException("Missing the required parameter 'pageNumber' when calling getPageInkAnnotations(Async)"); } - com.squareup.okhttp.Call call = getPageLinkAnnotationsCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getPageInkAnnotationsCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); return call; } /** - * Read document page link annotations. + * Read document page ink annotations. * * @param name The document name. (required) * @param pageNumber The page number. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) - * @return LinkAnnotationsResponse + * @return InkAnnotationsResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public LinkAnnotationsResponse getPageLinkAnnotations(String name, Integer pageNumber, String storage, String folder) throws ApiException { + public InkAnnotationsResponse getPageInkAnnotations(String name, Integer pageNumber, String storage, String folder) throws ApiException { try { - ApiResponse resp = getPageLinkAnnotationsWithHttpInfo(name, pageNumber, storage, folder); + ApiResponse resp = getPageInkAnnotationsWithHttpInfo(name, pageNumber, storage, folder); return resp.getData(); } catch (ApiException ex) @@ -11172,7 +11541,7 @@ public LinkAnnotationsResponse getPageLinkAnnotations(String name, Integer pageN if (ex.getCode() == 401) { apiClient.refreshToken(); - ApiResponse resp = getPageLinkAnnotationsWithHttpInfo(name, pageNumber, storage, folder); + ApiResponse resp = getPageInkAnnotationsWithHttpInfo(name, pageNumber, storage, folder); return resp.getData(); } throw ex; @@ -11180,23 +11549,23 @@ public LinkAnnotationsResponse getPageLinkAnnotations(String name, Integer pageN } /** - * Read document page link annotations. + * Read document page ink annotations. * * @param name The document name. (required) * @param pageNumber The page number. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) - * @return ApiResponse<LinkAnnotationsResponse> + * @return ApiResponse<InkAnnotationsResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse getPageLinkAnnotationsWithHttpInfo(String name, Integer pageNumber, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = getPageLinkAnnotationsValidateBeforeCall(name, pageNumber, storage, folder, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse getPageInkAnnotationsWithHttpInfo(String name, Integer pageNumber, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = getPageInkAnnotationsValidateBeforeCall(name, pageNumber, storage, folder, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Read document page link annotations. (asynchronously) + * Read document page ink annotations. (asynchronously) * * @param name The document name. (required) * @param pageNumber The page number. (required) @@ -11206,7 +11575,7 @@ public ApiResponse getPageLinkAnnotationsWithHttpInfo(S * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call getPageLinkAnnotationsAsync(String name, Integer pageNumber, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call getPageInkAnnotationsAsync(String name, Integer pageNumber, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -11227,13 +11596,13 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = getPageLinkAnnotationsValidateBeforeCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = getPageInkAnnotationsValidateBeforeCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for getPagePolyLineAnnotations + * Build call for getPageLineAnnotations * @param name The document name. (required) * @param pageNumber The page number. (required) * @param storage The document storage. (optional) @@ -11243,11 +11612,11 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call getPagePolyLineAnnotationsCall(String name, Integer pageNumber, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call getPageLineAnnotationsCall(String name, Integer pageNumber, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; // create path and map variables - String localVarPath = "/pdf/{name}/pages/{pageNumber}/annotations/polyline" + String localVarPath = "/pdf/{name}/pages/{pageNumber}/annotations/line" .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) .replaceAll("\\{" + "pageNumber" + "\\}", apiClient.escapeString(pageNumber.toString())); @@ -11291,38 +11660,38 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getPagePolyLineAnnotationsValidateBeforeCall(String name, Integer pageNumber, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call getPageLineAnnotationsValidateBeforeCall(String name, Integer pageNumber, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { // verify the required parameter 'name' is set if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling getPagePolyLineAnnotations(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling getPageLineAnnotations(Async)"); } // verify the required parameter 'pageNumber' is set if (pageNumber == null) { - throw new ApiException("Missing the required parameter 'pageNumber' when calling getPagePolyLineAnnotations(Async)"); + throw new ApiException("Missing the required parameter 'pageNumber' when calling getPageLineAnnotations(Async)"); } - com.squareup.okhttp.Call call = getPagePolyLineAnnotationsCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getPageLineAnnotationsCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); return call; } /** - * Read document page polyline annotations. + * Read document page line annotations. * * @param name The document name. (required) * @param pageNumber The page number. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) - * @return PolyLineAnnotationsResponse + * @return LineAnnotationsResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public PolyLineAnnotationsResponse getPagePolyLineAnnotations(String name, Integer pageNumber, String storage, String folder) throws ApiException { + public LineAnnotationsResponse getPageLineAnnotations(String name, Integer pageNumber, String storage, String folder) throws ApiException { try { - ApiResponse resp = getPagePolyLineAnnotationsWithHttpInfo(name, pageNumber, storage, folder); + ApiResponse resp = getPageLineAnnotationsWithHttpInfo(name, pageNumber, storage, folder); return resp.getData(); } catch (ApiException ex) @@ -11330,7 +11699,7 @@ public PolyLineAnnotationsResponse getPagePolyLineAnnotations(String name, Integ if (ex.getCode() == 401) { apiClient.refreshToken(); - ApiResponse resp = getPagePolyLineAnnotationsWithHttpInfo(name, pageNumber, storage, folder); + ApiResponse resp = getPageLineAnnotationsWithHttpInfo(name, pageNumber, storage, folder); return resp.getData(); } throw ex; @@ -11338,23 +11707,23 @@ public PolyLineAnnotationsResponse getPagePolyLineAnnotations(String name, Integ } /** - * Read document page polyline annotations. + * Read document page line annotations. * * @param name The document name. (required) * @param pageNumber The page number. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) - * @return ApiResponse<PolyLineAnnotationsResponse> + * @return ApiResponse<LineAnnotationsResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse getPagePolyLineAnnotationsWithHttpInfo(String name, Integer pageNumber, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = getPagePolyLineAnnotationsValidateBeforeCall(name, pageNumber, storage, folder, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse getPageLineAnnotationsWithHttpInfo(String name, Integer pageNumber, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = getPageLineAnnotationsValidateBeforeCall(name, pageNumber, storage, folder, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Read document page polyline annotations. (asynchronously) + * Read document page line annotations. (asynchronously) * * @param name The document name. (required) * @param pageNumber The page number. (required) @@ -11364,7 +11733,7 @@ public ApiResponse getPagePolyLineAnnotationsWithHt * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call getPagePolyLineAnnotationsAsync(String name, Integer pageNumber, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call getPageLineAnnotationsAsync(String name, Integer pageNumber, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -11385,29 +11754,33 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = getPagePolyLineAnnotationsValidateBeforeCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = getPageLineAnnotationsValidateBeforeCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for getPagePolygonAnnotations + * Build call for getPageLinkAnnotation * @param name The document name. (required) * @param pageNumber The page number. (required) + * @param linkId The link ID. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) * @param progressListener Progress listener * @param progressRequestListener Progress request listener * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @deprecated */ - public com.squareup.okhttp.Call getPagePolygonAnnotationsCall(String name, Integer pageNumber, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + @Deprecated + public com.squareup.okhttp.Call getPageLinkAnnotationCall(String name, Integer pageNumber, String linkId, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; // create path and map variables - String localVarPath = "/pdf/{name}/pages/{pageNumber}/annotations/polygon" + String localVarPath = "/pdf/{name}/pages/{pageNumber}/links/{linkId}" .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "pageNumber" + "\\}", apiClient.escapeString(pageNumber.toString())); + .replaceAll("\\{" + "pageNumber" + "\\}", apiClient.escapeString(pageNumber.toString())) + .replaceAll("\\{" + "linkId" + "\\}", apiClient.escapeString(linkId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -11448,39 +11821,48 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } + @Deprecated @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getPagePolygonAnnotationsValidateBeforeCall(String name, Integer pageNumber, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call getPageLinkAnnotationValidateBeforeCall(String name, Integer pageNumber, String linkId, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { // verify the required parameter 'name' is set if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling getPagePolygonAnnotations(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling getPageLinkAnnotation(Async)"); } // verify the required parameter 'pageNumber' is set if (pageNumber == null) { - throw new ApiException("Missing the required parameter 'pageNumber' when calling getPagePolygonAnnotations(Async)"); + throw new ApiException("Missing the required parameter 'pageNumber' when calling getPageLinkAnnotation(Async)"); + } + + // verify the required parameter 'linkId' is set + if (linkId == null) { + throw new ApiException("Missing the required parameter 'linkId' when calling getPageLinkAnnotation(Async)"); } - com.squareup.okhttp.Call call = getPagePolygonAnnotationsCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getPageLinkAnnotationCall(name, pageNumber, linkId, storage, folder, progressListener, progressRequestListener); return call; } /** - * Read document page polygon annotations. + * Read document page link annotation by ID. * * @param name The document name. (required) * @param pageNumber The page number. (required) + * @param linkId The link ID. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) - * @return PolygonAnnotationsResponse + * @return LinkAnnotationResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @deprecated */ - public PolygonAnnotationsResponse getPagePolygonAnnotations(String name, Integer pageNumber, String storage, String folder) throws ApiException { + @Deprecated + public LinkAnnotationResponse getPageLinkAnnotation(String name, Integer pageNumber, String linkId, String storage, String folder) throws ApiException { try { - ApiResponse resp = getPagePolygonAnnotationsWithHttpInfo(name, pageNumber, storage, folder); + ApiResponse resp = getPageLinkAnnotationWithHttpInfo(name, pageNumber, linkId, storage, folder); return resp.getData(); } catch (ApiException ex) @@ -11488,7 +11870,7 @@ public PolygonAnnotationsResponse getPagePolygonAnnotations(String name, Integer if (ex.getCode() == 401) { apiClient.refreshToken(); - ApiResponse resp = getPagePolygonAnnotationsWithHttpInfo(name, pageNumber, storage, folder); + ApiResponse resp = getPageLinkAnnotationWithHttpInfo(name, pageNumber, linkId, storage, folder); return resp.getData(); } throw ex; @@ -11496,33 +11878,39 @@ public PolygonAnnotationsResponse getPagePolygonAnnotations(String name, Integer } /** - * Read document page polygon annotations. + * Read document page link annotation by ID. * * @param name The document name. (required) * @param pageNumber The page number. (required) + * @param linkId The link ID. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) - * @return ApiResponse<PolygonAnnotationsResponse> + * @return ApiResponse<LinkAnnotationResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @deprecated */ - public ApiResponse getPagePolygonAnnotationsWithHttpInfo(String name, Integer pageNumber, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = getPagePolygonAnnotationsValidateBeforeCall(name, pageNumber, storage, folder, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + @Deprecated + public ApiResponse getPageLinkAnnotationWithHttpInfo(String name, Integer pageNumber, String linkId, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = getPageLinkAnnotationValidateBeforeCall(name, pageNumber, linkId, storage, folder, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Read document page polygon annotations. (asynchronously) + * Read document page link annotation by ID. (asynchronously) * * @param name The document name. (required) * @param pageNumber The page number. (required) + * @param linkId The link ID. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) * @param callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @deprecated */ - public com.squareup.okhttp.Call getPagePolygonAnnotationsAsync(String name, Integer pageNumber, String storage, String folder, final ApiCallback callback) throws ApiException { + @Deprecated + public com.squareup.okhttp.Call getPageLinkAnnotationAsync(String name, Integer pageNumber, String linkId, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -11543,13 +11931,13 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = getPagePolygonAnnotationsValidateBeforeCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = getPageLinkAnnotationValidateBeforeCall(name, pageNumber, linkId, storage, folder, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for getPagePopupAnnotations + * Build call for getPageLinkAnnotations * @param name The document name. (required) * @param pageNumber The page number. (required) * @param storage The document storage. (optional) @@ -11559,11 +11947,11 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call getPagePopupAnnotationsCall(String name, Integer pageNumber, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call getPageLinkAnnotationsCall(String name, Integer pageNumber, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; // create path and map variables - String localVarPath = "/pdf/{name}/pages/{pageNumber}/annotations/popup" + String localVarPath = "/pdf/{name}/pages/{pageNumber}/links" .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) .replaceAll("\\{" + "pageNumber" + "\\}", apiClient.escapeString(pageNumber.toString())); @@ -11607,38 +11995,38 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getPagePopupAnnotationsValidateBeforeCall(String name, Integer pageNumber, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call getPageLinkAnnotationsValidateBeforeCall(String name, Integer pageNumber, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { // verify the required parameter 'name' is set if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling getPagePopupAnnotations(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling getPageLinkAnnotations(Async)"); } // verify the required parameter 'pageNumber' is set if (pageNumber == null) { - throw new ApiException("Missing the required parameter 'pageNumber' when calling getPagePopupAnnotations(Async)"); + throw new ApiException("Missing the required parameter 'pageNumber' when calling getPageLinkAnnotations(Async)"); } - com.squareup.okhttp.Call call = getPagePopupAnnotationsCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getPageLinkAnnotationsCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); return call; } /** - * Read document page popup annotations. + * Read document page link annotations. * * @param name The document name. (required) * @param pageNumber The page number. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) - * @return PopupAnnotationsResponse + * @return LinkAnnotationsResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public PopupAnnotationsResponse getPagePopupAnnotations(String name, Integer pageNumber, String storage, String folder) throws ApiException { + public LinkAnnotationsResponse getPageLinkAnnotations(String name, Integer pageNumber, String storage, String folder) throws ApiException { try { - ApiResponse resp = getPagePopupAnnotationsWithHttpInfo(name, pageNumber, storage, folder); + ApiResponse resp = getPageLinkAnnotationsWithHttpInfo(name, pageNumber, storage, folder); return resp.getData(); } catch (ApiException ex) @@ -11646,7 +12034,7 @@ public PopupAnnotationsResponse getPagePopupAnnotations(String name, Integer pag if (ex.getCode() == 401) { apiClient.refreshToken(); - ApiResponse resp = getPagePopupAnnotationsWithHttpInfo(name, pageNumber, storage, folder); + ApiResponse resp = getPageLinkAnnotationsWithHttpInfo(name, pageNumber, storage, folder); return resp.getData(); } throw ex; @@ -11654,23 +12042,23 @@ public PopupAnnotationsResponse getPagePopupAnnotations(String name, Integer pag } /** - * Read document page popup annotations. + * Read document page link annotations. * * @param name The document name. (required) * @param pageNumber The page number. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) - * @return ApiResponse<PopupAnnotationsResponse> + * @return ApiResponse<LinkAnnotationsResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse getPagePopupAnnotationsWithHttpInfo(String name, Integer pageNumber, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = getPagePopupAnnotationsValidateBeforeCall(name, pageNumber, storage, folder, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse getPageLinkAnnotationsWithHttpInfo(String name, Integer pageNumber, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = getPageLinkAnnotationsValidateBeforeCall(name, pageNumber, storage, folder, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Read document page popup annotations. (asynchronously) + * Read document page link annotations. (asynchronously) * * @param name The document name. (required) * @param pageNumber The page number. (required) @@ -11680,7 +12068,7 @@ public ApiResponse getPagePopupAnnotationsWithHttpInfo * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call getPagePopupAnnotationsAsync(String name, Integer pageNumber, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call getPageLinkAnnotationsAsync(String name, Integer pageNumber, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -11701,13 +12089,13 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = getPagePopupAnnotationsValidateBeforeCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = getPageLinkAnnotationsValidateBeforeCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for getPageSquareAnnotations + * Build call for getPagePolyLineAnnotations * @param name The document name. (required) * @param pageNumber The page number. (required) * @param storage The document storage. (optional) @@ -11717,11 +12105,11 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call getPageSquareAnnotationsCall(String name, Integer pageNumber, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call getPagePolyLineAnnotationsCall(String name, Integer pageNumber, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; // create path and map variables - String localVarPath = "/pdf/{name}/pages/{pageNumber}/annotations/square" + String localVarPath = "/pdf/{name}/pages/{pageNumber}/annotations/polyline" .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) .replaceAll("\\{" + "pageNumber" + "\\}", apiClient.escapeString(pageNumber.toString())); @@ -11765,38 +12153,38 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getPageSquareAnnotationsValidateBeforeCall(String name, Integer pageNumber, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call getPagePolyLineAnnotationsValidateBeforeCall(String name, Integer pageNumber, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { // verify the required parameter 'name' is set if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling getPageSquareAnnotations(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling getPagePolyLineAnnotations(Async)"); } // verify the required parameter 'pageNumber' is set if (pageNumber == null) { - throw new ApiException("Missing the required parameter 'pageNumber' when calling getPageSquareAnnotations(Async)"); + throw new ApiException("Missing the required parameter 'pageNumber' when calling getPagePolyLineAnnotations(Async)"); } - com.squareup.okhttp.Call call = getPageSquareAnnotationsCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getPagePolyLineAnnotationsCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); return call; } /** - * Read document page square annotations. + * Read document page polyline annotations. * * @param name The document name. (required) * @param pageNumber The page number. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) - * @return SquareAnnotationsResponse + * @return PolyLineAnnotationsResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public SquareAnnotationsResponse getPageSquareAnnotations(String name, Integer pageNumber, String storage, String folder) throws ApiException { + public PolyLineAnnotationsResponse getPagePolyLineAnnotations(String name, Integer pageNumber, String storage, String folder) throws ApiException { try { - ApiResponse resp = getPageSquareAnnotationsWithHttpInfo(name, pageNumber, storage, folder); + ApiResponse resp = getPagePolyLineAnnotationsWithHttpInfo(name, pageNumber, storage, folder); return resp.getData(); } catch (ApiException ex) @@ -11804,7 +12192,7 @@ public SquareAnnotationsResponse getPageSquareAnnotations(String name, Integer p if (ex.getCode() == 401) { apiClient.refreshToken(); - ApiResponse resp = getPageSquareAnnotationsWithHttpInfo(name, pageNumber, storage, folder); + ApiResponse resp = getPagePolyLineAnnotationsWithHttpInfo(name, pageNumber, storage, folder); return resp.getData(); } throw ex; @@ -11812,23 +12200,23 @@ public SquareAnnotationsResponse getPageSquareAnnotations(String name, Integer p } /** - * Read document page square annotations. + * Read document page polyline annotations. * * @param name The document name. (required) * @param pageNumber The page number. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) - * @return ApiResponse<SquareAnnotationsResponse> + * @return ApiResponse<PolyLineAnnotationsResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse getPageSquareAnnotationsWithHttpInfo(String name, Integer pageNumber, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = getPageSquareAnnotationsValidateBeforeCall(name, pageNumber, storage, folder, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse getPagePolyLineAnnotationsWithHttpInfo(String name, Integer pageNumber, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = getPagePolyLineAnnotationsValidateBeforeCall(name, pageNumber, storage, folder, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Read document page square annotations. (asynchronously) + * Read document page polyline annotations. (asynchronously) * * @param name The document name. (required) * @param pageNumber The page number. (required) @@ -11838,7 +12226,7 @@ public ApiResponse getPageSquareAnnotationsWithHttpIn * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call getPageSquareAnnotationsAsync(String name, Integer pageNumber, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call getPagePolyLineAnnotationsAsync(String name, Integer pageNumber, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -11859,13 +12247,13 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = getPageSquareAnnotationsValidateBeforeCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = getPagePolyLineAnnotationsValidateBeforeCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for getPageSquigglyAnnotations + * Build call for getPagePolygonAnnotations * @param name The document name. (required) * @param pageNumber The page number. (required) * @param storage The document storage. (optional) @@ -11875,11 +12263,11 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call getPageSquigglyAnnotationsCall(String name, Integer pageNumber, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call getPagePolygonAnnotationsCall(String name, Integer pageNumber, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; // create path and map variables - String localVarPath = "/pdf/{name}/pages/{pageNumber}/annotations/squiggly" + String localVarPath = "/pdf/{name}/pages/{pageNumber}/annotations/polygon" .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) .replaceAll("\\{" + "pageNumber" + "\\}", apiClient.escapeString(pageNumber.toString())); @@ -11923,38 +12311,38 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getPageSquigglyAnnotationsValidateBeforeCall(String name, Integer pageNumber, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call getPagePolygonAnnotationsValidateBeforeCall(String name, Integer pageNumber, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { // verify the required parameter 'name' is set if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling getPageSquigglyAnnotations(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling getPagePolygonAnnotations(Async)"); } // verify the required parameter 'pageNumber' is set if (pageNumber == null) { - throw new ApiException("Missing the required parameter 'pageNumber' when calling getPageSquigglyAnnotations(Async)"); + throw new ApiException("Missing the required parameter 'pageNumber' when calling getPagePolygonAnnotations(Async)"); } - com.squareup.okhttp.Call call = getPageSquigglyAnnotationsCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getPagePolygonAnnotationsCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); return call; } /** - * Read document page squiggly annotations. + * Read document page polygon annotations. * * @param name The document name. (required) * @param pageNumber The page number. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) - * @return SquigglyAnnotationsResponse + * @return PolygonAnnotationsResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public SquigglyAnnotationsResponse getPageSquigglyAnnotations(String name, Integer pageNumber, String storage, String folder) throws ApiException { + public PolygonAnnotationsResponse getPagePolygonAnnotations(String name, Integer pageNumber, String storage, String folder) throws ApiException { try { - ApiResponse resp = getPageSquigglyAnnotationsWithHttpInfo(name, pageNumber, storage, folder); + ApiResponse resp = getPagePolygonAnnotationsWithHttpInfo(name, pageNumber, storage, folder); return resp.getData(); } catch (ApiException ex) @@ -11962,7 +12350,7 @@ public SquigglyAnnotationsResponse getPageSquigglyAnnotations(String name, Integ if (ex.getCode() == 401) { apiClient.refreshToken(); - ApiResponse resp = getPageSquigglyAnnotationsWithHttpInfo(name, pageNumber, storage, folder); + ApiResponse resp = getPagePolygonAnnotationsWithHttpInfo(name, pageNumber, storage, folder); return resp.getData(); } throw ex; @@ -11970,23 +12358,23 @@ public SquigglyAnnotationsResponse getPageSquigglyAnnotations(String name, Integ } /** - * Read document page squiggly annotations. + * Read document page polygon annotations. * * @param name The document name. (required) * @param pageNumber The page number. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) - * @return ApiResponse<SquigglyAnnotationsResponse> + * @return ApiResponse<PolygonAnnotationsResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse getPageSquigglyAnnotationsWithHttpInfo(String name, Integer pageNumber, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = getPageSquigglyAnnotationsValidateBeforeCall(name, pageNumber, storage, folder, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse getPagePolygonAnnotationsWithHttpInfo(String name, Integer pageNumber, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = getPagePolygonAnnotationsValidateBeforeCall(name, pageNumber, storage, folder, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Read document page squiggly annotations. (asynchronously) + * Read document page polygon annotations. (asynchronously) * * @param name The document name. (required) * @param pageNumber The page number. (required) @@ -11996,7 +12384,7 @@ public ApiResponse getPageSquigglyAnnotationsWithHt * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call getPageSquigglyAnnotationsAsync(String name, Integer pageNumber, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call getPagePolygonAnnotationsAsync(String name, Integer pageNumber, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -12017,13 +12405,13 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = getPageSquigglyAnnotationsValidateBeforeCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = getPagePolygonAnnotationsValidateBeforeCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for getPageStrikeOutAnnotations + * Build call for getPagePopupAnnotations * @param name The document name. (required) * @param pageNumber The page number. (required) * @param storage The document storage. (optional) @@ -12033,11 +12421,11 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call getPageStrikeOutAnnotationsCall(String name, Integer pageNumber, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call getPagePopupAnnotationsCall(String name, Integer pageNumber, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; // create path and map variables - String localVarPath = "/pdf/{name}/pages/{pageNumber}/annotations/strikeout" + String localVarPath = "/pdf/{name}/pages/{pageNumber}/annotations/popup" .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) .replaceAll("\\{" + "pageNumber" + "\\}", apiClient.escapeString(pageNumber.toString())); @@ -12081,38 +12469,38 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getPageStrikeOutAnnotationsValidateBeforeCall(String name, Integer pageNumber, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call getPagePopupAnnotationsValidateBeforeCall(String name, Integer pageNumber, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { // verify the required parameter 'name' is set if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling getPageStrikeOutAnnotations(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling getPagePopupAnnotations(Async)"); } // verify the required parameter 'pageNumber' is set if (pageNumber == null) { - throw new ApiException("Missing the required parameter 'pageNumber' when calling getPageStrikeOutAnnotations(Async)"); + throw new ApiException("Missing the required parameter 'pageNumber' when calling getPagePopupAnnotations(Async)"); } - com.squareup.okhttp.Call call = getPageStrikeOutAnnotationsCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getPagePopupAnnotationsCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); return call; } /** - * Read document page StrikeOut annotations. + * Read document page popup annotations. * * @param name The document name. (required) * @param pageNumber The page number. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) - * @return StrikeOutAnnotationsResponse + * @return PopupAnnotationsResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public StrikeOutAnnotationsResponse getPageStrikeOutAnnotations(String name, Integer pageNumber, String storage, String folder) throws ApiException { + public PopupAnnotationsResponse getPagePopupAnnotations(String name, Integer pageNumber, String storage, String folder) throws ApiException { try { - ApiResponse resp = getPageStrikeOutAnnotationsWithHttpInfo(name, pageNumber, storage, folder); + ApiResponse resp = getPagePopupAnnotationsWithHttpInfo(name, pageNumber, storage, folder); return resp.getData(); } catch (ApiException ex) @@ -12120,7 +12508,7 @@ public StrikeOutAnnotationsResponse getPageStrikeOutAnnotations(String name, Int if (ex.getCode() == 401) { apiClient.refreshToken(); - ApiResponse resp = getPageStrikeOutAnnotationsWithHttpInfo(name, pageNumber, storage, folder); + ApiResponse resp = getPagePopupAnnotationsWithHttpInfo(name, pageNumber, storage, folder); return resp.getData(); } throw ex; @@ -12128,23 +12516,23 @@ public StrikeOutAnnotationsResponse getPageStrikeOutAnnotations(String name, Int } /** - * Read document page StrikeOut annotations. + * Read document page popup annotations. * * @param name The document name. (required) * @param pageNumber The page number. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) - * @return ApiResponse<StrikeOutAnnotationsResponse> + * @return ApiResponse<PopupAnnotationsResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse getPageStrikeOutAnnotationsWithHttpInfo(String name, Integer pageNumber, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = getPageStrikeOutAnnotationsValidateBeforeCall(name, pageNumber, storage, folder, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse getPagePopupAnnotationsWithHttpInfo(String name, Integer pageNumber, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = getPagePopupAnnotationsValidateBeforeCall(name, pageNumber, storage, folder, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Read document page StrikeOut annotations. (asynchronously) + * Read document page popup annotations. (asynchronously) * * @param name The document name. (required) * @param pageNumber The page number. (required) @@ -12154,7 +12542,7 @@ public ApiResponse getPageStrikeOutAnnotationsWith * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call getPageStrikeOutAnnotationsAsync(String name, Integer pageNumber, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call getPagePopupAnnotationsAsync(String name, Integer pageNumber, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -12175,57 +12563,36 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = getPageStrikeOutAnnotationsValidateBeforeCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = getPagePopupAnnotationsValidateBeforeCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for getPageText + * Build call for getPageSquareAnnotations * @param name The document name. (required) - * @param pageNumber Number of page (starting from 1). (required) - * @param LLX (required) - * @param LLY (required) - * @param URX (required) - * @param URY (required) - * @param format List of formats for search. (optional) - * @param regex Formats are specified as a regular expression. (optional) - * @param splitRects Split result fragments (default is true). (optional) - * @param folder The document folder. (optional) + * @param pageNumber The page number. (required) * @param storage The document storage. (optional) + * @param folder The document folder. (optional) * @param progressListener Progress listener * @param progressRequestListener Progress request listener * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call getPageTextCall(String name, Integer pageNumber, Double LLX, Double LLY, Double URX, Double URY, List format, String regex, Boolean splitRects, String folder, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call getPageSquareAnnotationsCall(String name, Integer pageNumber, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; // create path and map variables - String localVarPath = "/pdf/{name}/pages/{pageNumber}/text" + String localVarPath = "/pdf/{name}/pages/{pageNumber}/annotations/square" .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) .replaceAll("\\{" + "pageNumber" + "\\}", apiClient.escapeString(pageNumber.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (format != null) - localVarCollectionQueryParams.addAll(apiClient.parameterToPairs("multi", "format", format)); - if (regex != null) - localVarQueryParams.addAll(apiClient.parameterToPair("regex", regex)); - if (splitRects != null) - localVarQueryParams.addAll(apiClient.parameterToPair("splitRects", splitRects)); - if (folder != null) - localVarQueryParams.addAll(apiClient.parameterToPair("folder", folder)); - if (LLX != null) - localVarQueryParams.addAll(apiClient.parameterToPair("LLX", LLX)); - if (LLY != null) - localVarQueryParams.addAll(apiClient.parameterToPair("LLY", LLY)); - if (URX != null) - localVarQueryParams.addAll(apiClient.parameterToPair("URX", URX)); - if (URY != null) - localVarQueryParams.addAll(apiClient.parameterToPair("URY", URY)); if (storage != null) localVarQueryParams.addAll(apiClient.parameterToPair("storage", storage)); + if (folder != null) + localVarQueryParams.addAll(apiClient.parameterToPair("folder", folder)); Map localVarHeaderParams = new HashMap(); @@ -12260,65 +12627,38 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getPageTextValidateBeforeCall(String name, Integer pageNumber, Double LLX, Double LLY, Double URX, Double URY, List format, String regex, Boolean splitRects, String folder, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call getPageSquareAnnotationsValidateBeforeCall(String name, Integer pageNumber, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { // verify the required parameter 'name' is set if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling getPageText(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling getPageSquareAnnotations(Async)"); } // verify the required parameter 'pageNumber' is set if (pageNumber == null) { - throw new ApiException("Missing the required parameter 'pageNumber' when calling getPageText(Async)"); - } - - // verify the required parameter 'LLX' is set - if (LLX == null) { - throw new ApiException("Missing the required parameter 'LLX' when calling getPageText(Async)"); - } - - // verify the required parameter 'LLY' is set - if (LLY == null) { - throw new ApiException("Missing the required parameter 'LLY' when calling getPageText(Async)"); - } - - // verify the required parameter 'URX' is set - if (URX == null) { - throw new ApiException("Missing the required parameter 'URX' when calling getPageText(Async)"); - } - - // verify the required parameter 'URY' is set - if (URY == null) { - throw new ApiException("Missing the required parameter 'URY' when calling getPageText(Async)"); + throw new ApiException("Missing the required parameter 'pageNumber' when calling getPageSquareAnnotations(Async)"); } - com.squareup.okhttp.Call call = getPageTextCall(name, pageNumber, LLX, LLY, URX, URY, format, regex, splitRects, folder, storage, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getPageSquareAnnotationsCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); return call; } /** - * Read page text items. + * Read document page square annotations. * * @param name The document name. (required) - * @param pageNumber Number of page (starting from 1). (required) - * @param LLX (required) - * @param LLY (required) - * @param URX (required) - * @param URY (required) - * @param format List of formats for search. (optional) - * @param regex Formats are specified as a regular expression. (optional) - * @param splitRects Split result fragments (default is true). (optional) - * @param folder The document folder. (optional) + * @param pageNumber The page number. (required) * @param storage The document storage. (optional) - * @return TextRectsResponse + * @param folder The document folder. (optional) + * @return SquareAnnotationsResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public TextRectsResponse getPageText(String name, Integer pageNumber, Double LLX, Double LLY, Double URX, Double URY, List format, String regex, Boolean splitRects, String folder, String storage) throws ApiException { + public SquareAnnotationsResponse getPageSquareAnnotations(String name, Integer pageNumber, String storage, String folder) throws ApiException { try { - ApiResponse resp = getPageTextWithHttpInfo(name, pageNumber, LLX, LLY, URX, URY, format, regex, splitRects, folder, storage); + ApiResponse resp = getPageSquareAnnotationsWithHttpInfo(name, pageNumber, storage, folder); return resp.getData(); } catch (ApiException ex) @@ -12326,7 +12666,7 @@ public TextRectsResponse getPageText(String name, Integer pageNumber, Double LLX if (ex.getCode() == 401) { apiClient.refreshToken(); - ApiResponse resp = getPageTextWithHttpInfo(name, pageNumber, LLX, LLY, URX, URY, format, regex, splitRects, folder, storage); + ApiResponse resp = getPageSquareAnnotationsWithHttpInfo(name, pageNumber, storage, folder); return resp.getData(); } throw ex; @@ -12334,47 +12674,33 @@ public TextRectsResponse getPageText(String name, Integer pageNumber, Double LLX } /** - * Read page text items. + * Read document page square annotations. * * @param name The document name. (required) - * @param pageNumber Number of page (starting from 1). (required) - * @param LLX (required) - * @param LLY (required) - * @param URX (required) - * @param URY (required) - * @param format List of formats for search. (optional) - * @param regex Formats are specified as a regular expression. (optional) - * @param splitRects Split result fragments (default is true). (optional) - * @param folder The document folder. (optional) + * @param pageNumber The page number. (required) * @param storage The document storage. (optional) - * @return ApiResponse<TextRectsResponse> + * @param folder The document folder. (optional) + * @return ApiResponse<SquareAnnotationsResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse getPageTextWithHttpInfo(String name, Integer pageNumber, Double LLX, Double LLY, Double URX, Double URY, List format, String regex, Boolean splitRects, String folder, String storage) throws ApiException { - com.squareup.okhttp.Call call = getPageTextValidateBeforeCall(name, pageNumber, LLX, LLY, URX, URY, format, regex, splitRects, folder, storage, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse getPageSquareAnnotationsWithHttpInfo(String name, Integer pageNumber, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = getPageSquareAnnotationsValidateBeforeCall(name, pageNumber, storage, folder, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Read page text items. (asynchronously) + * Read document page square annotations. (asynchronously) * * @param name The document name. (required) - * @param pageNumber Number of page (starting from 1). (required) - * @param LLX (required) - * @param LLY (required) - * @param URX (required) - * @param URY (required) - * @param format List of formats for search. (optional) - * @param regex Formats are specified as a regular expression. (optional) - * @param splitRects Split result fragments (default is true). (optional) - * @param folder The document folder. (optional) + * @param pageNumber The page number. (required) * @param storage The document storage. (optional) + * @param folder The document folder. (optional) * @param callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call getPageTextAsync(String name, Integer pageNumber, Double LLX, Double LLY, Double URX, Double URY, List format, String regex, Boolean splitRects, String folder, String storage, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call getPageSquareAnnotationsAsync(String name, Integer pageNumber, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -12395,13 +12721,13 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = getPageTextValidateBeforeCall(name, pageNumber, LLX, LLY, URX, URY, format, regex, splitRects, folder, storage, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = getPageSquareAnnotationsValidateBeforeCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for getPageTextAnnotations + * Build call for getPageSquigglyAnnotations * @param name The document name. (required) * @param pageNumber The page number. (required) * @param storage The document storage. (optional) @@ -12411,11 +12737,11 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call getPageTextAnnotationsCall(String name, Integer pageNumber, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call getPageSquigglyAnnotationsCall(String name, Integer pageNumber, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; // create path and map variables - String localVarPath = "/pdf/{name}/pages/{pageNumber}/annotations/text" + String localVarPath = "/pdf/{name}/pages/{pageNumber}/annotations/squiggly" .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) .replaceAll("\\{" + "pageNumber" + "\\}", apiClient.escapeString(pageNumber.toString())); @@ -12459,38 +12785,38 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getPageTextAnnotationsValidateBeforeCall(String name, Integer pageNumber, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call getPageSquigglyAnnotationsValidateBeforeCall(String name, Integer pageNumber, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { // verify the required parameter 'name' is set if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling getPageTextAnnotations(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling getPageSquigglyAnnotations(Async)"); } // verify the required parameter 'pageNumber' is set if (pageNumber == null) { - throw new ApiException("Missing the required parameter 'pageNumber' when calling getPageTextAnnotations(Async)"); + throw new ApiException("Missing the required parameter 'pageNumber' when calling getPageSquigglyAnnotations(Async)"); } - com.squareup.okhttp.Call call = getPageTextAnnotationsCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getPageSquigglyAnnotationsCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); return call; } /** - * Read document page text annotations. + * Read document page squiggly annotations. * * @param name The document name. (required) * @param pageNumber The page number. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) - * @return TextAnnotationsResponse + * @return SquigglyAnnotationsResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public TextAnnotationsResponse getPageTextAnnotations(String name, Integer pageNumber, String storage, String folder) throws ApiException { + public SquigglyAnnotationsResponse getPageSquigglyAnnotations(String name, Integer pageNumber, String storage, String folder) throws ApiException { try { - ApiResponse resp = getPageTextAnnotationsWithHttpInfo(name, pageNumber, storage, folder); + ApiResponse resp = getPageSquigglyAnnotationsWithHttpInfo(name, pageNumber, storage, folder); return resp.getData(); } catch (ApiException ex) @@ -12498,7 +12824,7 @@ public TextAnnotationsResponse getPageTextAnnotations(String name, Integer pageN if (ex.getCode() == 401) { apiClient.refreshToken(); - ApiResponse resp = getPageTextAnnotationsWithHttpInfo(name, pageNumber, storage, folder); + ApiResponse resp = getPageSquigglyAnnotationsWithHttpInfo(name, pageNumber, storage, folder); return resp.getData(); } throw ex; @@ -12506,23 +12832,23 @@ public TextAnnotationsResponse getPageTextAnnotations(String name, Integer pageN } /** - * Read document page text annotations. + * Read document page squiggly annotations. * * @param name The document name. (required) * @param pageNumber The page number. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) - * @return ApiResponse<TextAnnotationsResponse> + * @return ApiResponse<SquigglyAnnotationsResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse getPageTextAnnotationsWithHttpInfo(String name, Integer pageNumber, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = getPageTextAnnotationsValidateBeforeCall(name, pageNumber, storage, folder, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse getPageSquigglyAnnotationsWithHttpInfo(String name, Integer pageNumber, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = getPageSquigglyAnnotationsValidateBeforeCall(name, pageNumber, storage, folder, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Read document page text annotations. (asynchronously) + * Read document page squiggly annotations. (asynchronously) * * @param name The document name. (required) * @param pageNumber The page number. (required) @@ -12532,7 +12858,7 @@ public ApiResponse getPageTextAnnotationsWithHttpInfo(S * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call getPageTextAnnotationsAsync(String name, Integer pageNumber, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call getPageSquigglyAnnotationsAsync(String name, Integer pageNumber, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -12553,13 +12879,13 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = getPageTextAnnotationsValidateBeforeCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = getPageSquigglyAnnotationsValidateBeforeCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for getPageUnderlineAnnotations + * Build call for getPageStrikeOutAnnotations * @param name The document name. (required) * @param pageNumber The page number. (required) * @param storage The document storage. (optional) @@ -12569,11 +12895,11 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call getPageUnderlineAnnotationsCall(String name, Integer pageNumber, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call getPageStrikeOutAnnotationsCall(String name, Integer pageNumber, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; // create path and map variables - String localVarPath = "/pdf/{name}/pages/{pageNumber}/annotations/underline" + String localVarPath = "/pdf/{name}/pages/{pageNumber}/annotations/strikeout" .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) .replaceAll("\\{" + "pageNumber" + "\\}", apiClient.escapeString(pageNumber.toString())); @@ -12617,38 +12943,38 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getPageUnderlineAnnotationsValidateBeforeCall(String name, Integer pageNumber, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call getPageStrikeOutAnnotationsValidateBeforeCall(String name, Integer pageNumber, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { // verify the required parameter 'name' is set if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling getPageUnderlineAnnotations(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling getPageStrikeOutAnnotations(Async)"); } // verify the required parameter 'pageNumber' is set if (pageNumber == null) { - throw new ApiException("Missing the required parameter 'pageNumber' when calling getPageUnderlineAnnotations(Async)"); + throw new ApiException("Missing the required parameter 'pageNumber' when calling getPageStrikeOutAnnotations(Async)"); } - com.squareup.okhttp.Call call = getPageUnderlineAnnotationsCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getPageStrikeOutAnnotationsCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); return call; } /** - * Read document page underline annotations. + * Read document page StrikeOut annotations. * * @param name The document name. (required) * @param pageNumber The page number. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) - * @return UnderlineAnnotationsResponse + * @return StrikeOutAnnotationsResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public UnderlineAnnotationsResponse getPageUnderlineAnnotations(String name, Integer pageNumber, String storage, String folder) throws ApiException { + public StrikeOutAnnotationsResponse getPageStrikeOutAnnotations(String name, Integer pageNumber, String storage, String folder) throws ApiException { try { - ApiResponse resp = getPageUnderlineAnnotationsWithHttpInfo(name, pageNumber, storage, folder); + ApiResponse resp = getPageStrikeOutAnnotationsWithHttpInfo(name, pageNumber, storage, folder); return resp.getData(); } catch (ApiException ex) @@ -12656,7 +12982,7 @@ public UnderlineAnnotationsResponse getPageUnderlineAnnotations(String name, Int if (ex.getCode() == 401) { apiClient.refreshToken(); - ApiResponse resp = getPageUnderlineAnnotationsWithHttpInfo(name, pageNumber, storage, folder); + ApiResponse resp = getPageStrikeOutAnnotationsWithHttpInfo(name, pageNumber, storage, folder); return resp.getData(); } throw ex; @@ -12664,23 +12990,23 @@ public UnderlineAnnotationsResponse getPageUnderlineAnnotations(String name, Int } /** - * Read document page underline annotations. + * Read document page StrikeOut annotations. * * @param name The document name. (required) * @param pageNumber The page number. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) - * @return ApiResponse<UnderlineAnnotationsResponse> + * @return ApiResponse<StrikeOutAnnotationsResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse getPageUnderlineAnnotationsWithHttpInfo(String name, Integer pageNumber, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = getPageUnderlineAnnotationsValidateBeforeCall(name, pageNumber, storage, folder, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse getPageStrikeOutAnnotationsWithHttpInfo(String name, Integer pageNumber, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = getPageStrikeOutAnnotationsValidateBeforeCall(name, pageNumber, storage, folder, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Read document page underline annotations. (asynchronously) + * Read document page StrikeOut annotations. (asynchronously) * * @param name The document name. (required) * @param pageNumber The page number. (required) @@ -12690,7 +13016,7 @@ public ApiResponse getPageUnderlineAnnotationsWith * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call getPageUnderlineAnnotationsAsync(String name, Integer pageNumber, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call getPageStrikeOutAnnotationsAsync(String name, Integer pageNumber, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -12711,34 +13037,57 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = getPageUnderlineAnnotationsValidateBeforeCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); + com.squareup.okhttp.Call call = getPageStrikeOutAnnotationsValidateBeforeCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for getPages + * Build call for getPageText * @param name The document name. (required) - * @param storage The document storage. (optional) + * @param pageNumber Number of page (starting from 1). (required) + * @param LLX X-coordinate of lower - left corner. (required) + * @param LLY Y - coordinate of lower-left corner. (required) + * @param URX X - coordinate of upper-right corner. (required) + * @param URY Y - coordinate of upper-right corner. (required) + * @param format List of formats for search. (optional) + * @param regex Formats are specified as a regular expression. (optional) + * @param splitRects Split result fragments (default is true). (optional) * @param folder The document folder. (optional) + * @param storage The document storage. (optional) * @param progressListener Progress listener * @param progressRequestListener Progress request listener * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call getPagesCall(String name, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call getPageTextCall(String name, Integer pageNumber, Double LLX, Double LLY, Double URX, Double URY, List format, String regex, Boolean splitRects, String folder, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; // create path and map variables - String localVarPath = "/pdf/{name}/pages" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + String localVarPath = "/pdf/{name}/pages/{pageNumber}/text" + .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) + .replaceAll("\\{" + "pageNumber" + "\\}", apiClient.escapeString(pageNumber.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (storage != null) - localVarQueryParams.addAll(apiClient.parameterToPair("storage", storage)); + if (format != null) + localVarCollectionQueryParams.addAll(apiClient.parameterToPairs("multi", "format", format)); + if (regex != null) + localVarQueryParams.addAll(apiClient.parameterToPair("regex", regex)); + if (splitRects != null) + localVarQueryParams.addAll(apiClient.parameterToPair("splitRects", splitRects)); if (folder != null) localVarQueryParams.addAll(apiClient.parameterToPair("folder", folder)); + if (LLX != null) + localVarQueryParams.addAll(apiClient.parameterToPair("LLX", LLX)); + if (LLY != null) + localVarQueryParams.addAll(apiClient.parameterToPair("LLY", LLY)); + if (URX != null) + localVarQueryParams.addAll(apiClient.parameterToPair("URX", URX)); + if (URY != null) + localVarQueryParams.addAll(apiClient.parameterToPair("URY", URY)); + if (storage != null) + localVarQueryParams.addAll(apiClient.parameterToPair("storage", storage)); Map localVarHeaderParams = new HashMap(); @@ -12773,32 +13122,65 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getPagesValidateBeforeCall(String name, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call getPageTextValidateBeforeCall(String name, Integer pageNumber, Double LLX, Double LLY, Double URX, Double URY, List format, String regex, Boolean splitRects, String folder, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { // verify the required parameter 'name' is set if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling getPages(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling getPageText(Async)"); + } + + // verify the required parameter 'pageNumber' is set + if (pageNumber == null) { + throw new ApiException("Missing the required parameter 'pageNumber' when calling getPageText(Async)"); + } + + // verify the required parameter 'LLX' is set + if (LLX == null) { + throw new ApiException("Missing the required parameter 'LLX' when calling getPageText(Async)"); + } + + // verify the required parameter 'LLY' is set + if (LLY == null) { + throw new ApiException("Missing the required parameter 'LLY' when calling getPageText(Async)"); + } + + // verify the required parameter 'URX' is set + if (URX == null) { + throw new ApiException("Missing the required parameter 'URX' when calling getPageText(Async)"); + } + + // verify the required parameter 'URY' is set + if (URY == null) { + throw new ApiException("Missing the required parameter 'URY' when calling getPageText(Async)"); } - com.squareup.okhttp.Call call = getPagesCall(name, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getPageTextCall(name, pageNumber, LLX, LLY, URX, URY, format, regex, splitRects, folder, storage, progressListener, progressRequestListener); return call; } /** - * Read document pages info. + * Read page text items. * * @param name The document name. (required) - * @param storage The document storage. (optional) + * @param pageNumber Number of page (starting from 1). (required) + * @param LLX X-coordinate of lower - left corner. (required) + * @param LLY Y - coordinate of lower-left corner. (required) + * @param URX X - coordinate of upper-right corner. (required) + * @param URY Y - coordinate of upper-right corner. (required) + * @param format List of formats for search. (optional) + * @param regex Formats are specified as a regular expression. (optional) + * @param splitRects Split result fragments (default is true). (optional) * @param folder The document folder. (optional) - * @return DocumentPagesResponse + * @param storage The document storage. (optional) + * @return TextRectsResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public DocumentPagesResponse getPages(String name, String storage, String folder) throws ApiException { + public TextRectsResponse getPageText(String name, Integer pageNumber, Double LLX, Double LLY, Double URX, Double URY, List format, String regex, Boolean splitRects, String folder, String storage) throws ApiException { try { - ApiResponse resp = getPagesWithHttpInfo(name, storage, folder); + ApiResponse resp = getPageTextWithHttpInfo(name, pageNumber, LLX, LLY, URX, URY, format, regex, splitRects, folder, storage); return resp.getData(); } catch (ApiException ex) @@ -12806,7 +13188,7 @@ public DocumentPagesResponse getPages(String name, String storage, String folder if (ex.getCode() == 401) { apiClient.refreshToken(); - ApiResponse resp = getPagesWithHttpInfo(name, storage, folder); + ApiResponse resp = getPageTextWithHttpInfo(name, pageNumber, LLX, LLY, URX, URY, format, regex, splitRects, folder, storage); return resp.getData(); } throw ex; @@ -12814,31 +13196,47 @@ public DocumentPagesResponse getPages(String name, String storage, String folder } /** - * Read document pages info. + * Read page text items. * * @param name The document name. (required) - * @param storage The document storage. (optional) + * @param pageNumber Number of page (starting from 1). (required) + * @param LLX X-coordinate of lower - left corner. (required) + * @param LLY Y - coordinate of lower-left corner. (required) + * @param URX X - coordinate of upper-right corner. (required) + * @param URY Y - coordinate of upper-right corner. (required) + * @param format List of formats for search. (optional) + * @param regex Formats are specified as a regular expression. (optional) + * @param splitRects Split result fragments (default is true). (optional) * @param folder The document folder. (optional) - * @return ApiResponse<DocumentPagesResponse> + * @param storage The document storage. (optional) + * @return ApiResponse<TextRectsResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse getPagesWithHttpInfo(String name, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = getPagesValidateBeforeCall(name, storage, folder, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse getPageTextWithHttpInfo(String name, Integer pageNumber, Double LLX, Double LLY, Double URX, Double URY, List format, String regex, Boolean splitRects, String folder, String storage) throws ApiException { + com.squareup.okhttp.Call call = getPageTextValidateBeforeCall(name, pageNumber, LLX, LLY, URX, URY, format, regex, splitRects, folder, storage, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Read document pages info. (asynchronously) + * Read page text items. (asynchronously) * * @param name The document name. (required) - * @param storage The document storage. (optional) + * @param pageNumber Number of page (starting from 1). (required) + * @param LLX X-coordinate of lower - left corner. (required) + * @param LLY Y - coordinate of lower-left corner. (required) + * @param URX X - coordinate of upper-right corner. (required) + * @param URY Y - coordinate of upper-right corner. (required) + * @param format List of formats for search. (optional) + * @param regex Formats are specified as a regular expression. (optional) + * @param splitRects Split result fragments (default is true). (optional) * @param folder The document folder. (optional) + * @param storage The document storage. (optional) * @param callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call getPagesAsync(String name, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call getPageTextAsync(String name, Integer pageNumber, Double LLX, Double LLY, Double URX, Double URY, List format, String regex, Boolean splitRects, String folder, String storage, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -12859,39 +13257,43 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = getPagesValidateBeforeCall(name, storage, folder, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = getPageTextValidateBeforeCall(name, pageNumber, LLX, LLY, URX, URY, format, regex, splitRects, folder, storage, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for getPclInStorageToPdf - * @param srcPath Full source filename (ex. /folder1/folder2/template.pcl) (required) + * Build call for getPageTextAnnotations + * @param name The document name. (required) + * @param pageNumber The page number. (required) * @param storage The document storage. (optional) + * @param folder The document folder. (optional) * @param progressListener Progress listener * @param progressRequestListener Progress request listener * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call getPclInStorageToPdfCall(String srcPath, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call getPageTextAnnotationsCall(String name, Integer pageNumber, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; // create path and map variables - String localVarPath = "/pdf/create/pcl"; + String localVarPath = "/pdf/{name}/pages/{pageNumber}/annotations/text" + .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) + .replaceAll("\\{" + "pageNumber" + "\\}", apiClient.escapeString(pageNumber.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (srcPath != null) - localVarQueryParams.addAll(apiClient.parameterToPair("srcPath", srcPath)); if (storage != null) localVarQueryParams.addAll(apiClient.parameterToPair("storage", storage)); + if (folder != null) + localVarQueryParams.addAll(apiClient.parameterToPair("folder", folder)); Map localVarHeaderParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "multipart/form-data" + "application/json" }; final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); @@ -12919,31 +13321,38 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getPclInStorageToPdfValidateBeforeCall(String srcPath, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call getPageTextAnnotationsValidateBeforeCall(String name, Integer pageNumber, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - // verify the required parameter 'srcPath' is set - if (srcPath == null) { - throw new ApiException("Missing the required parameter 'srcPath' when calling getPclInStorageToPdf(Async)"); + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling getPageTextAnnotations(Async)"); + } + + // verify the required parameter 'pageNumber' is set + if (pageNumber == null) { + throw new ApiException("Missing the required parameter 'pageNumber' when calling getPageTextAnnotations(Async)"); } - com.squareup.okhttp.Call call = getPclInStorageToPdfCall(srcPath, storage, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getPageTextAnnotationsCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); return call; } /** - * Convert PCL file (located on storage) to PDF format and return resulting file in response. + * Read document page text annotations. * - * @param srcPath Full source filename (ex. /folder1/folder2/template.pcl) (required) + * @param name The document name. (required) + * @param pageNumber The page number. (required) * @param storage The document storage. (optional) - * @return File + * @param folder The document folder. (optional) + * @return TextAnnotationsResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public File getPclInStorageToPdf(String srcPath, String storage) throws ApiException { + public TextAnnotationsResponse getPageTextAnnotations(String name, Integer pageNumber, String storage, String folder) throws ApiException { try { - ApiResponse resp = getPclInStorageToPdfWithHttpInfo(srcPath, storage); + ApiResponse resp = getPageTextAnnotationsWithHttpInfo(name, pageNumber, storage, folder); return resp.getData(); } catch (ApiException ex) @@ -12951,7 +13360,7 @@ public File getPclInStorageToPdf(String srcPath, String storage) throws ApiExcep if (ex.getCode() == 401) { apiClient.refreshToken(); - ApiResponse resp = getPclInStorageToPdfWithHttpInfo(srcPath, storage); + ApiResponse resp = getPageTextAnnotationsWithHttpInfo(name, pageNumber, storage, folder); return resp.getData(); } throw ex; @@ -12959,29 +13368,33 @@ public File getPclInStorageToPdf(String srcPath, String storage) throws ApiExcep } /** - * Convert PCL file (located on storage) to PDF format and return resulting file in response. + * Read document page text annotations. * - * @param srcPath Full source filename (ex. /folder1/folder2/template.pcl) (required) + * @param name The document name. (required) + * @param pageNumber The page number. (required) * @param storage The document storage. (optional) - * @return ApiResponse<File> + * @param folder The document folder. (optional) + * @return ApiResponse<TextAnnotationsResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse getPclInStorageToPdfWithHttpInfo(String srcPath, String storage) throws ApiException { - com.squareup.okhttp.Call call = getPclInStorageToPdfValidateBeforeCall(srcPath, storage, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse getPageTextAnnotationsWithHttpInfo(String name, Integer pageNumber, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = getPageTextAnnotationsValidateBeforeCall(name, pageNumber, storage, folder, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Convert PCL file (located on storage) to PDF format and return resulting file in response. (asynchronously) + * Read document page text annotations. (asynchronously) * - * @param srcPath Full source filename (ex. /folder1/folder2/template.pcl) (required) + * @param name The document name. (required) + * @param pageNumber The page number. (required) * @param storage The document storage. (optional) + * @param folder The document folder. (optional) * @param callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call getPclInStorageToPdfAsync(String srcPath, String storage, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call getPageTextAnnotationsAsync(String name, Integer pageNumber, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -13002,65 +13415,43 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = getPclInStorageToPdfValidateBeforeCall(srcPath, storage, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = getPageTextAnnotationsValidateBeforeCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for getPdfInStorageToDoc + * Build call for getPageUnderlineAnnotations * @param name The document name. (required) - * @param addReturnToLineEnd Add return to line end. (optional) - * @param format Allows to specify .doc or .docx file format. (optional) - * @param imageResolutionX Image resolution X. (optional) - * @param imageResolutionY Image resolution Y. (optional) - * @param maxDistanceBetweenTextLines Max distance between text lines. (optional) - * @param mode Allows to control how a PDF document is converted into a word processing document. (optional) - * @param recognizeBullets Recognize bullets. (optional) - * @param relativeHorizontalProximity Relative horizontal proximity. (optional) - * @param folder The document folder. (optional) + * @param pageNumber The page number. (required) * @param storage The document storage. (optional) + * @param folder The document folder. (optional) * @param progressListener Progress listener * @param progressRequestListener Progress request listener * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call getPdfInStorageToDocCall(String name, Boolean addReturnToLineEnd, String format, Integer imageResolutionX, Integer imageResolutionY, Double maxDistanceBetweenTextLines, String mode, Boolean recognizeBullets, Double relativeHorizontalProximity, String folder, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call getPageUnderlineAnnotationsCall(String name, Integer pageNumber, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; // create path and map variables - String localVarPath = "/pdf/{name}/convert/doc" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + String localVarPath = "/pdf/{name}/pages/{pageNumber}/annotations/underline" + .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) + .replaceAll("\\{" + "pageNumber" + "\\}", apiClient.escapeString(pageNumber.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (addReturnToLineEnd != null) - localVarQueryParams.addAll(apiClient.parameterToPair("addReturnToLineEnd", addReturnToLineEnd)); - if (format != null) - localVarQueryParams.addAll(apiClient.parameterToPair("format", format)); - if (imageResolutionX != null) - localVarQueryParams.addAll(apiClient.parameterToPair("imageResolutionX", imageResolutionX)); - if (imageResolutionY != null) - localVarQueryParams.addAll(apiClient.parameterToPair("imageResolutionY", imageResolutionY)); - if (maxDistanceBetweenTextLines != null) - localVarQueryParams.addAll(apiClient.parameterToPair("maxDistanceBetweenTextLines", maxDistanceBetweenTextLines)); - if (mode != null) - localVarQueryParams.addAll(apiClient.parameterToPair("mode", mode)); - if (recognizeBullets != null) - localVarQueryParams.addAll(apiClient.parameterToPair("recognizeBullets", recognizeBullets)); - if (relativeHorizontalProximity != null) - localVarQueryParams.addAll(apiClient.parameterToPair("relativeHorizontalProximity", relativeHorizontalProximity)); - if (folder != null) - localVarQueryParams.addAll(apiClient.parameterToPair("folder", folder)); if (storage != null) localVarQueryParams.addAll(apiClient.parameterToPair("storage", storage)); + if (folder != null) + localVarQueryParams.addAll(apiClient.parameterToPair("folder", folder)); Map localVarHeaderParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "multipart/form-data" + "application/json" }; final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); @@ -13088,37 +13479,508 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getPdfInStorageToDocValidateBeforeCall(String name, Boolean addReturnToLineEnd, String format, Integer imageResolutionX, Integer imageResolutionY, Double maxDistanceBetweenTextLines, String mode, Boolean recognizeBullets, Double relativeHorizontalProximity, String folder, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call getPageUnderlineAnnotationsValidateBeforeCall(String name, Integer pageNumber, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { // verify the required parameter 'name' is set if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling getPdfInStorageToDoc(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling getPageUnderlineAnnotations(Async)"); + } + + // verify the required parameter 'pageNumber' is set + if (pageNumber == null) { + throw new ApiException("Missing the required parameter 'pageNumber' when calling getPageUnderlineAnnotations(Async)"); } - com.squareup.okhttp.Call call = getPdfInStorageToDocCall(name, addReturnToLineEnd, format, imageResolutionX, imageResolutionY, maxDistanceBetweenTextLines, mode, recognizeBullets, relativeHorizontalProximity, folder, storage, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getPageUnderlineAnnotationsCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); return call; } /** - * Converts PDF document (located on storage) to DOC format and returns resulting file in response content + * Read document page underline annotations. * * @param name The document name. (required) - * @param addReturnToLineEnd Add return to line end. (optional) - * @param format Allows to specify .doc or .docx file format. (optional) - * @param imageResolutionX Image resolution X. (optional) - * @param imageResolutionY Image resolution Y. (optional) - * @param maxDistanceBetweenTextLines Max distance between text lines. (optional) - * @param mode Allows to control how a PDF document is converted into a word processing document. (optional) - * @param recognizeBullets Recognize bullets. (optional) - * @param relativeHorizontalProximity Relative horizontal proximity. (optional) - * @param folder The document folder. (optional) + * @param pageNumber The page number. (required) * @param storage The document storage. (optional) - * @return File + * @param folder The document folder. (optional) + * @return UnderlineAnnotationsResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public File getPdfInStorageToDoc(String name, Boolean addReturnToLineEnd, String format, Integer imageResolutionX, Integer imageResolutionY, Double maxDistanceBetweenTextLines, String mode, Boolean recognizeBullets, Double relativeHorizontalProximity, String folder, String storage) throws ApiException { + public UnderlineAnnotationsResponse getPageUnderlineAnnotations(String name, Integer pageNumber, String storage, String folder) throws ApiException { + try + { + ApiResponse resp = getPageUnderlineAnnotationsWithHttpInfo(name, pageNumber, storage, folder); + return resp.getData(); + } + catch (ApiException ex) + { + if (ex.getCode() == 401) + { + apiClient.refreshToken(); + ApiResponse resp = getPageUnderlineAnnotationsWithHttpInfo(name, pageNumber, storage, folder); + return resp.getData(); + } + throw ex; + } + } + + /** + * Read document page underline annotations. + * + * @param name The document name. (required) + * @param pageNumber The page number. (required) + * @param storage The document storage. (optional) + * @param folder The document folder. (optional) + * @return ApiResponse<UnderlineAnnotationsResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse getPageUnderlineAnnotationsWithHttpInfo(String name, Integer pageNumber, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = getPageUnderlineAnnotationsValidateBeforeCall(name, pageNumber, storage, folder, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Read document page underline annotations. (asynchronously) + * + * @param name The document name. (required) + * @param pageNumber The page number. (required) + * @param storage The document storage. (optional) + * @param folder The document folder. (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call getPageUnderlineAnnotationsAsync(String name, Integer pageNumber, String storage, String folder, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = getPageUnderlineAnnotationsValidateBeforeCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for getPages + * @param name The document name. (required) + * @param storage The document storage. (optional) + * @param folder The document folder. (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call getPagesCall(String name, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/pdf/{name}/pages" + .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (storage != null) + localVarQueryParams.addAll(apiClient.parameterToPair("storage", storage)); + if (folder != null) + localVarQueryParams.addAll(apiClient.parameterToPair("folder", folder)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call getPagesValidateBeforeCall(String name, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling getPages(Async)"); + } + + + com.squareup.okhttp.Call call = getPagesCall(name, storage, folder, progressListener, progressRequestListener); + return call; + + } + + /** + * Read document pages info. + * + * @param name The document name. (required) + * @param storage The document storage. (optional) + * @param folder The document folder. (optional) + * @return DocumentPagesResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public DocumentPagesResponse getPages(String name, String storage, String folder) throws ApiException { + try + { + ApiResponse resp = getPagesWithHttpInfo(name, storage, folder); + return resp.getData(); + } + catch (ApiException ex) + { + if (ex.getCode() == 401) + { + apiClient.refreshToken(); + ApiResponse resp = getPagesWithHttpInfo(name, storage, folder); + return resp.getData(); + } + throw ex; + } + } + + /** + * Read document pages info. + * + * @param name The document name. (required) + * @param storage The document storage. (optional) + * @param folder The document folder. (optional) + * @return ApiResponse<DocumentPagesResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse getPagesWithHttpInfo(String name, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = getPagesValidateBeforeCall(name, storage, folder, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Read document pages info. (asynchronously) + * + * @param name The document name. (required) + * @param storage The document storage. (optional) + * @param folder The document folder. (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call getPagesAsync(String name, String storage, String folder, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = getPagesValidateBeforeCall(name, storage, folder, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for getPclInStorageToPdf + * @param srcPath Full source filename (ex. /folder1/folder2/template.pcl) (required) + * @param storage The document storage. (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call getPclInStorageToPdfCall(String srcPath, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/pdf/create/pcl"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (srcPath != null) + localVarQueryParams.addAll(apiClient.parameterToPair("srcPath", srcPath)); + if (storage != null) + localVarQueryParams.addAll(apiClient.parameterToPair("storage", storage)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "multipart/form-data" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call getPclInStorageToPdfValidateBeforeCall(String srcPath, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'srcPath' is set + if (srcPath == null) { + throw new ApiException("Missing the required parameter 'srcPath' when calling getPclInStorageToPdf(Async)"); + } + + + com.squareup.okhttp.Call call = getPclInStorageToPdfCall(srcPath, storage, progressListener, progressRequestListener); + return call; + + } + + /** + * Convert PCL file (located on storage) to PDF format and return resulting file in response. + * + * @param srcPath Full source filename (ex. /folder1/folder2/template.pcl) (required) + * @param storage The document storage. (optional) + * @return File + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public File getPclInStorageToPdf(String srcPath, String storage) throws ApiException { + try + { + ApiResponse resp = getPclInStorageToPdfWithHttpInfo(srcPath, storage); + return resp.getData(); + } + catch (ApiException ex) + { + if (ex.getCode() == 401) + { + apiClient.refreshToken(); + ApiResponse resp = getPclInStorageToPdfWithHttpInfo(srcPath, storage); + return resp.getData(); + } + throw ex; + } + } + + /** + * Convert PCL file (located on storage) to PDF format and return resulting file in response. + * + * @param srcPath Full source filename (ex. /folder1/folder2/template.pcl) (required) + * @param storage The document storage. (optional) + * @return ApiResponse<File> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse getPclInStorageToPdfWithHttpInfo(String srcPath, String storage) throws ApiException { + com.squareup.okhttp.Call call = getPclInStorageToPdfValidateBeforeCall(srcPath, storage, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Convert PCL file (located on storage) to PDF format and return resulting file in response. (asynchronously) + * + * @param srcPath Full source filename (ex. /folder1/folder2/template.pcl) (required) + * @param storage The document storage. (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call getPclInStorageToPdfAsync(String srcPath, String storage, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = getPclInStorageToPdfValidateBeforeCall(srcPath, storage, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for getPdfInStorageToDoc + * @param name The document name. (required) + * @param addReturnToLineEnd Add return to line end. (optional) + * @param format Allows to specify .doc or .docx file format. (optional) + * @param imageResolutionX Image resolution X. (optional) + * @param imageResolutionY Image resolution Y. (optional) + * @param maxDistanceBetweenTextLines Max distance between text lines. (optional) + * @param mode Allows to control how a PDF document is converted into a word processing document. (optional) + * @param recognizeBullets Recognize bullets. (optional) + * @param relativeHorizontalProximity Relative horizontal proximity. (optional) + * @param folder The document folder. (optional) + * @param storage The document storage. (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call getPdfInStorageToDocCall(String name, Boolean addReturnToLineEnd, String format, Integer imageResolutionX, Integer imageResolutionY, Double maxDistanceBetweenTextLines, String mode, Boolean recognizeBullets, Double relativeHorizontalProximity, String folder, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/pdf/{name}/convert/doc" + .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (addReturnToLineEnd != null) + localVarQueryParams.addAll(apiClient.parameterToPair("addReturnToLineEnd", addReturnToLineEnd)); + if (format != null) + localVarQueryParams.addAll(apiClient.parameterToPair("format", format)); + if (imageResolutionX != null) + localVarQueryParams.addAll(apiClient.parameterToPair("imageResolutionX", imageResolutionX)); + if (imageResolutionY != null) + localVarQueryParams.addAll(apiClient.parameterToPair("imageResolutionY", imageResolutionY)); + if (maxDistanceBetweenTextLines != null) + localVarQueryParams.addAll(apiClient.parameterToPair("maxDistanceBetweenTextLines", maxDistanceBetweenTextLines)); + if (mode != null) + localVarQueryParams.addAll(apiClient.parameterToPair("mode", mode)); + if (recognizeBullets != null) + localVarQueryParams.addAll(apiClient.parameterToPair("recognizeBullets", recognizeBullets)); + if (relativeHorizontalProximity != null) + localVarQueryParams.addAll(apiClient.parameterToPair("relativeHorizontalProximity", relativeHorizontalProximity)); + if (folder != null) + localVarQueryParams.addAll(apiClient.parameterToPair("folder", folder)); + if (storage != null) + localVarQueryParams.addAll(apiClient.parameterToPair("storage", storage)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "multipart/form-data" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call getPdfInStorageToDocValidateBeforeCall(String name, Boolean addReturnToLineEnd, String format, Integer imageResolutionX, Integer imageResolutionY, Double maxDistanceBetweenTextLines, String mode, Boolean recognizeBullets, Double relativeHorizontalProximity, String folder, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling getPdfInStorageToDoc(Async)"); + } + + + com.squareup.okhttp.Call call = getPdfInStorageToDocCall(name, addReturnToLineEnd, format, imageResolutionX, imageResolutionY, maxDistanceBetweenTextLines, mode, recognizeBullets, relativeHorizontalProximity, folder, storage, progressListener, progressRequestListener); + return call; + + } + + /** + * Converts PDF document (located on storage) to DOC format and returns resulting file in response content + * + * @param name The document name. (required) + * @param addReturnToLineEnd Add return to line end. (optional) + * @param format Allows to specify .doc or .docx file format. (optional) + * @param imageResolutionX Image resolution X. (optional) + * @param imageResolutionY Image resolution Y. (optional) + * @param maxDistanceBetweenTextLines Max distance between text lines. (optional) + * @param mode Allows to control how a PDF document is converted into a word processing document. (optional) + * @param recognizeBullets Recognize bullets. (optional) + * @param relativeHorizontalProximity Relative horizontal proximity. (optional) + * @param folder The document folder. (optional) + * @param storage The document storage. (optional) + * @return File + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public File getPdfInStorageToDoc(String name, Boolean addReturnToLineEnd, String format, Integer imageResolutionX, Integer imageResolutionY, Double maxDistanceBetweenTextLines, String mode, Boolean recognizeBullets, Double relativeHorizontalProximity, String folder, String storage) throws ApiException { try { ApiResponse resp = getPdfInStorageToDocWithHttpInfo(name, addReturnToLineEnd, format, imageResolutionX, imageResolutionY, maxDistanceBetweenTextLines, mode, recognizeBullets, relativeHorizontalProximity, folder, storage); @@ -13129,7 +13991,437 @@ public File getPdfInStorageToDoc(String name, Boolean addReturnToLineEnd, String if (ex.getCode() == 401) { apiClient.refreshToken(); - ApiResponse resp = getPdfInStorageToDocWithHttpInfo(name, addReturnToLineEnd, format, imageResolutionX, imageResolutionY, maxDistanceBetweenTextLines, mode, recognizeBullets, relativeHorizontalProximity, folder, storage); + ApiResponse resp = getPdfInStorageToDocWithHttpInfo(name, addReturnToLineEnd, format, imageResolutionX, imageResolutionY, maxDistanceBetweenTextLines, mode, recognizeBullets, relativeHorizontalProximity, folder, storage); + return resp.getData(); + } + throw ex; + } + } + + /** + * Converts PDF document (located on storage) to DOC format and returns resulting file in response content + * + * @param name The document name. (required) + * @param addReturnToLineEnd Add return to line end. (optional) + * @param format Allows to specify .doc or .docx file format. (optional) + * @param imageResolutionX Image resolution X. (optional) + * @param imageResolutionY Image resolution Y. (optional) + * @param maxDistanceBetweenTextLines Max distance between text lines. (optional) + * @param mode Allows to control how a PDF document is converted into a word processing document. (optional) + * @param recognizeBullets Recognize bullets. (optional) + * @param relativeHorizontalProximity Relative horizontal proximity. (optional) + * @param folder The document folder. (optional) + * @param storage The document storage. (optional) + * @return ApiResponse<File> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse getPdfInStorageToDocWithHttpInfo(String name, Boolean addReturnToLineEnd, String format, Integer imageResolutionX, Integer imageResolutionY, Double maxDistanceBetweenTextLines, String mode, Boolean recognizeBullets, Double relativeHorizontalProximity, String folder, String storage) throws ApiException { + com.squareup.okhttp.Call call = getPdfInStorageToDocValidateBeforeCall(name, addReturnToLineEnd, format, imageResolutionX, imageResolutionY, maxDistanceBetweenTextLines, mode, recognizeBullets, relativeHorizontalProximity, folder, storage, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Converts PDF document (located on storage) to DOC format and returns resulting file in response content (asynchronously) + * + * @param name The document name. (required) + * @param addReturnToLineEnd Add return to line end. (optional) + * @param format Allows to specify .doc or .docx file format. (optional) + * @param imageResolutionX Image resolution X. (optional) + * @param imageResolutionY Image resolution Y. (optional) + * @param maxDistanceBetweenTextLines Max distance between text lines. (optional) + * @param mode Allows to control how a PDF document is converted into a word processing document. (optional) + * @param recognizeBullets Recognize bullets. (optional) + * @param relativeHorizontalProximity Relative horizontal proximity. (optional) + * @param folder The document folder. (optional) + * @param storage The document storage. (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call getPdfInStorageToDocAsync(String name, Boolean addReturnToLineEnd, String format, Integer imageResolutionX, Integer imageResolutionY, Double maxDistanceBetweenTextLines, String mode, Boolean recognizeBullets, Double relativeHorizontalProximity, String folder, String storage, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = getPdfInStorageToDocValidateBeforeCall(name, addReturnToLineEnd, format, imageResolutionX, imageResolutionY, maxDistanceBetweenTextLines, mode, recognizeBullets, relativeHorizontalProximity, folder, storage, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for getPdfInStorageToEpub + * @param name The document name. (required) + * @param contentRecognitionMode Property tunes conversion for this or that desirable method of recognition of content. (optional) + * @param folder The document folder. (optional) + * @param storage The document storage. (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call getPdfInStorageToEpubCall(String name, String contentRecognitionMode, String folder, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/pdf/{name}/convert/epub" + .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (contentRecognitionMode != null) + localVarQueryParams.addAll(apiClient.parameterToPair("contentRecognitionMode", contentRecognitionMode)); + if (folder != null) + localVarQueryParams.addAll(apiClient.parameterToPair("folder", folder)); + if (storage != null) + localVarQueryParams.addAll(apiClient.parameterToPair("storage", storage)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "multipart/form-data" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call getPdfInStorageToEpubValidateBeforeCall(String name, String contentRecognitionMode, String folder, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling getPdfInStorageToEpub(Async)"); + } + + + com.squareup.okhttp.Call call = getPdfInStorageToEpubCall(name, contentRecognitionMode, folder, storage, progressListener, progressRequestListener); + return call; + + } + + /** + * Converts PDF document (located on storage) to EPUB format and returns resulting file in response content + * + * @param name The document name. (required) + * @param contentRecognitionMode Property tunes conversion for this or that desirable method of recognition of content. (optional) + * @param folder The document folder. (optional) + * @param storage The document storage. (optional) + * @return File + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public File getPdfInStorageToEpub(String name, String contentRecognitionMode, String folder, String storage) throws ApiException { + try + { + ApiResponse resp = getPdfInStorageToEpubWithHttpInfo(name, contentRecognitionMode, folder, storage); + return resp.getData(); + } + catch (ApiException ex) + { + if (ex.getCode() == 401) + { + apiClient.refreshToken(); + ApiResponse resp = getPdfInStorageToEpubWithHttpInfo(name, contentRecognitionMode, folder, storage); + return resp.getData(); + } + throw ex; + } + } + + /** + * Converts PDF document (located on storage) to EPUB format and returns resulting file in response content + * + * @param name The document name. (required) + * @param contentRecognitionMode Property tunes conversion for this or that desirable method of recognition of content. (optional) + * @param folder The document folder. (optional) + * @param storage The document storage. (optional) + * @return ApiResponse<File> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse getPdfInStorageToEpubWithHttpInfo(String name, String contentRecognitionMode, String folder, String storage) throws ApiException { + com.squareup.okhttp.Call call = getPdfInStorageToEpubValidateBeforeCall(name, contentRecognitionMode, folder, storage, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Converts PDF document (located on storage) to EPUB format and returns resulting file in response content (asynchronously) + * + * @param name The document name. (required) + * @param contentRecognitionMode Property tunes conversion for this or that desirable method of recognition of content. (optional) + * @param folder The document folder. (optional) + * @param storage The document storage. (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call getPdfInStorageToEpubAsync(String name, String contentRecognitionMode, String folder, String storage, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = getPdfInStorageToEpubValidateBeforeCall(name, contentRecognitionMode, folder, storage, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for getPdfInStorageToHtml + * @param name The document name. (required) + * @param additionalMarginWidthInPoints Defines width of margin that will be forcibly left around that output HTML-areas. (optional) + * @param compressSvgGraphicsIfAny The flag that indicates whether found SVG graphics(if any) will be compressed(zipped) into SVGZ format during saving. (optional) + * @param convertMarkedContentToLayers If attribute ConvertMarkedContentToLayers set to true then an all elements inside a PDF marked content (layer) will be put into an HTML div with \"data-pdflayer\" attribute specifying a layer name. This layer name will be extracted from optional properties of PDF marked content. If this attribute is false (by default) then no any layers will be created from PDF marked content. (optional) + * @param defaultFontName Specifies the name of an installed font which is used to substitute any document font that is not embedded and not installed in the system. If null then default substitution font is used. (optional) + * @param documentType Result document type. (optional) + * @param fixedLayout The value indicating whether that HTML is created as fixed layout. (optional) + * @param imageResolution Resolution for image rendering. (optional) + * @param minimalLineWidth This attribute sets minimal width of graphic path line. If thickness of line is less than 1px Adobe Acrobat rounds it to this value. So this attribute can be used to emulate this behavior for HTML browsers. (optional) + * @param preventGlyphsGrouping This attribute switch on the mode when text glyphs will not be grouped into words and strings This mode allows to keep maximum precision during positioning of glyphs on the page and it can be used for conversion documents with music notes or glyphs that should be placed separately each other. This parameter will be applied to document only when the value of FixedLayout attribute is true. (optional) + * @param splitCssIntoPages When multipage-mode selected(i.e 'SplitIntoPages' is 'true'), then this attribute defines whether should be created separate CSS-file for each result HTML page. (optional) + * @param splitIntoPages The flag that indicates whether each page of source document will be converted into it's own target HTML document, i.e whether result HTML will be splitted into several HTML-pages. (optional) + * @param useZOrder If attribute UseZORder set to true, graphics and text are added to resultant HTML document accordingly Z-order in original PDF document. If this attribute is false all graphics is put as single layer which may cause some unnecessary effects for overlapped objects. (optional) + * @param antialiasingProcessing The parameter defines required antialiasing measures during conversion of compound background images from PDF to HTML. (optional) + * @param cssClassNamesPrefix When PDFtoHTML converter generates result CSSs, CSS class names (something like \".stl_01 {}\" ... \".stl_NN {}) are generated and used in result CSS. This property allows forcibly set class name prefix. (optional) + * @param explicitListOfSavedPages With this property You can explicitely define what pages of document should be converted. Pages in this list must have 1-based numbers. I.e. valid numbers of pages must be taken from range (1...[NumberOfPagesInConvertedDocument]) Order of appearing of pages in this list does not affect their order in result HTML page(s) - in result pages allways will go in order in which they are present in source PDF. (optional) + * @param fontEncodingStrategy Defines encoding special rule to tune PDF decoding for current document. (optional) + * @param fontSavingMode Defines font saving mode that will be used during saving of PDF to desirable format. (optional) + * @param htmlMarkupGenerationMode Sometimes specific reqirments to generation of HTML markup are present. This parameter defines HTML preparing modes that can be used during conversion of PDF to HTML to match such specific requirments. (optional) + * @param lettersPositioningMethod The mode of positioning of letters in words in result HTML. (optional) + * @param pagesFlowTypeDependsOnViewersScreenSize If attribute 'SplitOnPages=false', than whole HTML representing all input PDF pages will be put into one big result HTML file. This flag defines whether result HTML will be generated in such way that flow of areas that represent PDF pages in result HTML will depend on screen resolution of viewer. (optional) + * @param partsEmbeddingMode It defines whether referenced files (HTML, Fonts,Images, CSSes) will be embedded into main HTML file or will be generated as apart binary entities. (optional) + * @param rasterImagesSavingMode Converted PDF can contain raster images This parameter defines how they should be handled during conversion of PDF to HTML. (optional) + * @param removeEmptyAreasOnTopAndBottom Defines whether in created HTML will be removed top and bottom empty area without any content (if any). (optional) + * @param saveShadowedTextsAsTransparentTexts Pdf can contain texts that are shadowed by another elements (f.e. by images) but can be selected to clipboard in Acrobat Reader (usually it happen when document contains images and OCRed texts extracted from it). This settings tells to converter whether we need save such texts as transparent selectable texts in result HTML to mimic behaviour of Acrobat Reader (othervise such texts are usually saved as hidden, not available for copying to clipboard). (optional) + * @param saveTransparentTexts Pdf can contain transparent texts that can be selected to clipboard (usually it happen when document contains images and OCRed texts extracted from it). This settings tells to converter whether we need save such texts as transparent selectable texts in result HTML. (optional) + * @param specialFolderForAllImages The path to directory to which must be saved any images if they are encountered during saving of document as HTML. If parameter is empty or null then image files(if any) wil be saved together with other files linked to HTML It does not affect anything if CustomImageSavingStrategy property was successfully used to process relevant image file. (optional) + * @param specialFolderForSvgImages The path to directory to which must be saved only SVG-images if they are encountered during saving of document as HTML. If parameter is empty or null then SVG files(if any) wil be saved together with other image-files (near to output file) or in special folder for images (if it specified in SpecialImagesFolderIfAny option). It does not affect anything if CustomImageSavingStrategy property was successfully used to process relevant image file. (optional) + * @param trySaveTextUnderliningAndStrikeoutingInCss PDF itself does not contain underlining markers for texts. It emulated with line situated under text. This option allows converter try guess that this or that line is a text's underlining and put this info into CSS instead of drawing of underlining graphically. (optional) + * @param folder The document folder. (optional) + * @param storage The document storage. (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call getPdfInStorageToHtmlCall(String name, Integer additionalMarginWidthInPoints, Boolean compressSvgGraphicsIfAny, Boolean convertMarkedContentToLayers, String defaultFontName, String documentType, Boolean fixedLayout, Integer imageResolution, Integer minimalLineWidth, Boolean preventGlyphsGrouping, Boolean splitCssIntoPages, Boolean splitIntoPages, Boolean useZOrder, String antialiasingProcessing, String cssClassNamesPrefix, List explicitListOfSavedPages, String fontEncodingStrategy, String fontSavingMode, String htmlMarkupGenerationMode, String lettersPositioningMethod, Boolean pagesFlowTypeDependsOnViewersScreenSize, String partsEmbeddingMode, String rasterImagesSavingMode, Boolean removeEmptyAreasOnTopAndBottom, Boolean saveShadowedTextsAsTransparentTexts, Boolean saveTransparentTexts, String specialFolderForAllImages, String specialFolderForSvgImages, Boolean trySaveTextUnderliningAndStrikeoutingInCss, String folder, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/pdf/{name}/convert/html" + .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (additionalMarginWidthInPoints != null) + localVarQueryParams.addAll(apiClient.parameterToPair("additionalMarginWidthInPoints", additionalMarginWidthInPoints)); + if (compressSvgGraphicsIfAny != null) + localVarQueryParams.addAll(apiClient.parameterToPair("compressSvgGraphicsIfAny", compressSvgGraphicsIfAny)); + if (convertMarkedContentToLayers != null) + localVarQueryParams.addAll(apiClient.parameterToPair("convertMarkedContentToLayers", convertMarkedContentToLayers)); + if (defaultFontName != null) + localVarQueryParams.addAll(apiClient.parameterToPair("defaultFontName", defaultFontName)); + if (documentType != null) + localVarQueryParams.addAll(apiClient.parameterToPair("documentType", documentType)); + if (fixedLayout != null) + localVarQueryParams.addAll(apiClient.parameterToPair("fixedLayout", fixedLayout)); + if (imageResolution != null) + localVarQueryParams.addAll(apiClient.parameterToPair("imageResolution", imageResolution)); + if (minimalLineWidth != null) + localVarQueryParams.addAll(apiClient.parameterToPair("minimalLineWidth", minimalLineWidth)); + if (preventGlyphsGrouping != null) + localVarQueryParams.addAll(apiClient.parameterToPair("preventGlyphsGrouping", preventGlyphsGrouping)); + if (splitCssIntoPages != null) + localVarQueryParams.addAll(apiClient.parameterToPair("splitCssIntoPages", splitCssIntoPages)); + if (splitIntoPages != null) + localVarQueryParams.addAll(apiClient.parameterToPair("splitIntoPages", splitIntoPages)); + if (useZOrder != null) + localVarQueryParams.addAll(apiClient.parameterToPair("useZOrder", useZOrder)); + if (antialiasingProcessing != null) + localVarQueryParams.addAll(apiClient.parameterToPair("antialiasingProcessing", antialiasingProcessing)); + if (cssClassNamesPrefix != null) + localVarQueryParams.addAll(apiClient.parameterToPair("cssClassNamesPrefix", cssClassNamesPrefix)); + if (explicitListOfSavedPages != null) + localVarCollectionQueryParams.addAll(apiClient.parameterToPairs("multi", "explicitListOfSavedPages", explicitListOfSavedPages)); + if (fontEncodingStrategy != null) + localVarQueryParams.addAll(apiClient.parameterToPair("fontEncodingStrategy", fontEncodingStrategy)); + if (fontSavingMode != null) + localVarQueryParams.addAll(apiClient.parameterToPair("fontSavingMode", fontSavingMode)); + if (htmlMarkupGenerationMode != null) + localVarQueryParams.addAll(apiClient.parameterToPair("htmlMarkupGenerationMode", htmlMarkupGenerationMode)); + if (lettersPositioningMethod != null) + localVarQueryParams.addAll(apiClient.parameterToPair("lettersPositioningMethod", lettersPositioningMethod)); + if (pagesFlowTypeDependsOnViewersScreenSize != null) + localVarQueryParams.addAll(apiClient.parameterToPair("pagesFlowTypeDependsOnViewersScreenSize", pagesFlowTypeDependsOnViewersScreenSize)); + if (partsEmbeddingMode != null) + localVarQueryParams.addAll(apiClient.parameterToPair("partsEmbeddingMode", partsEmbeddingMode)); + if (rasterImagesSavingMode != null) + localVarQueryParams.addAll(apiClient.parameterToPair("rasterImagesSavingMode", rasterImagesSavingMode)); + if (removeEmptyAreasOnTopAndBottom != null) + localVarQueryParams.addAll(apiClient.parameterToPair("removeEmptyAreasOnTopAndBottom", removeEmptyAreasOnTopAndBottom)); + if (saveShadowedTextsAsTransparentTexts != null) + localVarQueryParams.addAll(apiClient.parameterToPair("saveShadowedTextsAsTransparentTexts", saveShadowedTextsAsTransparentTexts)); + if (saveTransparentTexts != null) + localVarQueryParams.addAll(apiClient.parameterToPair("saveTransparentTexts", saveTransparentTexts)); + if (specialFolderForAllImages != null) + localVarQueryParams.addAll(apiClient.parameterToPair("specialFolderForAllImages", specialFolderForAllImages)); + if (specialFolderForSvgImages != null) + localVarQueryParams.addAll(apiClient.parameterToPair("specialFolderForSvgImages", specialFolderForSvgImages)); + if (trySaveTextUnderliningAndStrikeoutingInCss != null) + localVarQueryParams.addAll(apiClient.parameterToPair("trySaveTextUnderliningAndStrikeoutingInCss", trySaveTextUnderliningAndStrikeoutingInCss)); + if (folder != null) + localVarQueryParams.addAll(apiClient.parameterToPair("folder", folder)); + if (storage != null) + localVarQueryParams.addAll(apiClient.parameterToPair("storage", storage)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "multipart/form-data" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call getPdfInStorageToHtmlValidateBeforeCall(String name, Integer additionalMarginWidthInPoints, Boolean compressSvgGraphicsIfAny, Boolean convertMarkedContentToLayers, String defaultFontName, String documentType, Boolean fixedLayout, Integer imageResolution, Integer minimalLineWidth, Boolean preventGlyphsGrouping, Boolean splitCssIntoPages, Boolean splitIntoPages, Boolean useZOrder, String antialiasingProcessing, String cssClassNamesPrefix, List explicitListOfSavedPages, String fontEncodingStrategy, String fontSavingMode, String htmlMarkupGenerationMode, String lettersPositioningMethod, Boolean pagesFlowTypeDependsOnViewersScreenSize, String partsEmbeddingMode, String rasterImagesSavingMode, Boolean removeEmptyAreasOnTopAndBottom, Boolean saveShadowedTextsAsTransparentTexts, Boolean saveTransparentTexts, String specialFolderForAllImages, String specialFolderForSvgImages, Boolean trySaveTextUnderliningAndStrikeoutingInCss, String folder, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling getPdfInStorageToHtml(Async)"); + } + + + com.squareup.okhttp.Call call = getPdfInStorageToHtmlCall(name, additionalMarginWidthInPoints, compressSvgGraphicsIfAny, convertMarkedContentToLayers, defaultFontName, documentType, fixedLayout, imageResolution, minimalLineWidth, preventGlyphsGrouping, splitCssIntoPages, splitIntoPages, useZOrder, antialiasingProcessing, cssClassNamesPrefix, explicitListOfSavedPages, fontEncodingStrategy, fontSavingMode, htmlMarkupGenerationMode, lettersPositioningMethod, pagesFlowTypeDependsOnViewersScreenSize, partsEmbeddingMode, rasterImagesSavingMode, removeEmptyAreasOnTopAndBottom, saveShadowedTextsAsTransparentTexts, saveTransparentTexts, specialFolderForAllImages, specialFolderForSvgImages, trySaveTextUnderliningAndStrikeoutingInCss, folder, storage, progressListener, progressRequestListener); + return call; + + } + + /** + * Converts PDF document (located on storage) to Html format and returns resulting file in response content + * + * @param name The document name. (required) + * @param additionalMarginWidthInPoints Defines width of margin that will be forcibly left around that output HTML-areas. (optional) + * @param compressSvgGraphicsIfAny The flag that indicates whether found SVG graphics(if any) will be compressed(zipped) into SVGZ format during saving. (optional) + * @param convertMarkedContentToLayers If attribute ConvertMarkedContentToLayers set to true then an all elements inside a PDF marked content (layer) will be put into an HTML div with \"data-pdflayer\" attribute specifying a layer name. This layer name will be extracted from optional properties of PDF marked content. If this attribute is false (by default) then no any layers will be created from PDF marked content. (optional) + * @param defaultFontName Specifies the name of an installed font which is used to substitute any document font that is not embedded and not installed in the system. If null then default substitution font is used. (optional) + * @param documentType Result document type. (optional) + * @param fixedLayout The value indicating whether that HTML is created as fixed layout. (optional) + * @param imageResolution Resolution for image rendering. (optional) + * @param minimalLineWidth This attribute sets minimal width of graphic path line. If thickness of line is less than 1px Adobe Acrobat rounds it to this value. So this attribute can be used to emulate this behavior for HTML browsers. (optional) + * @param preventGlyphsGrouping This attribute switch on the mode when text glyphs will not be grouped into words and strings This mode allows to keep maximum precision during positioning of glyphs on the page and it can be used for conversion documents with music notes or glyphs that should be placed separately each other. This parameter will be applied to document only when the value of FixedLayout attribute is true. (optional) + * @param splitCssIntoPages When multipage-mode selected(i.e 'SplitIntoPages' is 'true'), then this attribute defines whether should be created separate CSS-file for each result HTML page. (optional) + * @param splitIntoPages The flag that indicates whether each page of source document will be converted into it's own target HTML document, i.e whether result HTML will be splitted into several HTML-pages. (optional) + * @param useZOrder If attribute UseZORder set to true, graphics and text are added to resultant HTML document accordingly Z-order in original PDF document. If this attribute is false all graphics is put as single layer which may cause some unnecessary effects for overlapped objects. (optional) + * @param antialiasingProcessing The parameter defines required antialiasing measures during conversion of compound background images from PDF to HTML. (optional) + * @param cssClassNamesPrefix When PDFtoHTML converter generates result CSSs, CSS class names (something like \".stl_01 {}\" ... \".stl_NN {}) are generated and used in result CSS. This property allows forcibly set class name prefix. (optional) + * @param explicitListOfSavedPages With this property You can explicitely define what pages of document should be converted. Pages in this list must have 1-based numbers. I.e. valid numbers of pages must be taken from range (1...[NumberOfPagesInConvertedDocument]) Order of appearing of pages in this list does not affect their order in result HTML page(s) - in result pages allways will go in order in which they are present in source PDF. (optional) + * @param fontEncodingStrategy Defines encoding special rule to tune PDF decoding for current document. (optional) + * @param fontSavingMode Defines font saving mode that will be used during saving of PDF to desirable format. (optional) + * @param htmlMarkupGenerationMode Sometimes specific reqirments to generation of HTML markup are present. This parameter defines HTML preparing modes that can be used during conversion of PDF to HTML to match such specific requirments. (optional) + * @param lettersPositioningMethod The mode of positioning of letters in words in result HTML. (optional) + * @param pagesFlowTypeDependsOnViewersScreenSize If attribute 'SplitOnPages=false', than whole HTML representing all input PDF pages will be put into one big result HTML file. This flag defines whether result HTML will be generated in such way that flow of areas that represent PDF pages in result HTML will depend on screen resolution of viewer. (optional) + * @param partsEmbeddingMode It defines whether referenced files (HTML, Fonts,Images, CSSes) will be embedded into main HTML file or will be generated as apart binary entities. (optional) + * @param rasterImagesSavingMode Converted PDF can contain raster images This parameter defines how they should be handled during conversion of PDF to HTML. (optional) + * @param removeEmptyAreasOnTopAndBottom Defines whether in created HTML will be removed top and bottom empty area without any content (if any). (optional) + * @param saveShadowedTextsAsTransparentTexts Pdf can contain texts that are shadowed by another elements (f.e. by images) but can be selected to clipboard in Acrobat Reader (usually it happen when document contains images and OCRed texts extracted from it). This settings tells to converter whether we need save such texts as transparent selectable texts in result HTML to mimic behaviour of Acrobat Reader (othervise such texts are usually saved as hidden, not available for copying to clipboard). (optional) + * @param saveTransparentTexts Pdf can contain transparent texts that can be selected to clipboard (usually it happen when document contains images and OCRed texts extracted from it). This settings tells to converter whether we need save such texts as transparent selectable texts in result HTML. (optional) + * @param specialFolderForAllImages The path to directory to which must be saved any images if they are encountered during saving of document as HTML. If parameter is empty or null then image files(if any) wil be saved together with other files linked to HTML It does not affect anything if CustomImageSavingStrategy property was successfully used to process relevant image file. (optional) + * @param specialFolderForSvgImages The path to directory to which must be saved only SVG-images if they are encountered during saving of document as HTML. If parameter is empty or null then SVG files(if any) wil be saved together with other image-files (near to output file) or in special folder for images (if it specified in SpecialImagesFolderIfAny option). It does not affect anything if CustomImageSavingStrategy property was successfully used to process relevant image file. (optional) + * @param trySaveTextUnderliningAndStrikeoutingInCss PDF itself does not contain underlining markers for texts. It emulated with line situated under text. This option allows converter try guess that this or that line is a text's underlining and put this info into CSS instead of drawing of underlining graphically. (optional) + * @param folder The document folder. (optional) + * @param storage The document storage. (optional) + * @return File + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public File getPdfInStorageToHtml(String name, Integer additionalMarginWidthInPoints, Boolean compressSvgGraphicsIfAny, Boolean convertMarkedContentToLayers, String defaultFontName, String documentType, Boolean fixedLayout, Integer imageResolution, Integer minimalLineWidth, Boolean preventGlyphsGrouping, Boolean splitCssIntoPages, Boolean splitIntoPages, Boolean useZOrder, String antialiasingProcessing, String cssClassNamesPrefix, List explicitListOfSavedPages, String fontEncodingStrategy, String fontSavingMode, String htmlMarkupGenerationMode, String lettersPositioningMethod, Boolean pagesFlowTypeDependsOnViewersScreenSize, String partsEmbeddingMode, String rasterImagesSavingMode, Boolean removeEmptyAreasOnTopAndBottom, Boolean saveShadowedTextsAsTransparentTexts, Boolean saveTransparentTexts, String specialFolderForAllImages, String specialFolderForSvgImages, Boolean trySaveTextUnderliningAndStrikeoutingInCss, String folder, String storage) throws ApiException { + try + { + ApiResponse resp = getPdfInStorageToHtmlWithHttpInfo(name, additionalMarginWidthInPoints, compressSvgGraphicsIfAny, convertMarkedContentToLayers, defaultFontName, documentType, fixedLayout, imageResolution, minimalLineWidth, preventGlyphsGrouping, splitCssIntoPages, splitIntoPages, useZOrder, antialiasingProcessing, cssClassNamesPrefix, explicitListOfSavedPages, fontEncodingStrategy, fontSavingMode, htmlMarkupGenerationMode, lettersPositioningMethod, pagesFlowTypeDependsOnViewersScreenSize, partsEmbeddingMode, rasterImagesSavingMode, removeEmptyAreasOnTopAndBottom, saveShadowedTextsAsTransparentTexts, saveTransparentTexts, specialFolderForAllImages, specialFolderForSvgImages, trySaveTextUnderliningAndStrikeoutingInCss, folder, storage); + return resp.getData(); + } + catch (ApiException ex) + { + if (ex.getCode() == 401) + { + apiClient.refreshToken(); + ApiResponse resp = getPdfInStorageToHtmlWithHttpInfo(name, additionalMarginWidthInPoints, compressSvgGraphicsIfAny, convertMarkedContentToLayers, defaultFontName, documentType, fixedLayout, imageResolution, minimalLineWidth, preventGlyphsGrouping, splitCssIntoPages, splitIntoPages, useZOrder, antialiasingProcessing, cssClassNamesPrefix, explicitListOfSavedPages, fontEncodingStrategy, fontSavingMode, htmlMarkupGenerationMode, lettersPositioningMethod, pagesFlowTypeDependsOnViewersScreenSize, partsEmbeddingMode, rasterImagesSavingMode, removeEmptyAreasOnTopAndBottom, saveShadowedTextsAsTransparentTexts, saveTransparentTexts, specialFolderForAllImages, specialFolderForSvgImages, trySaveTextUnderliningAndStrikeoutingInCss, folder, storage); return resp.getData(); } throw ex; @@ -13137,47 +14429,241 @@ public File getPdfInStorageToDoc(String name, Boolean addReturnToLineEnd, String } /** - * Converts PDF document (located on storage) to DOC format and returns resulting file in response content + * Converts PDF document (located on storage) to Html format and returns resulting file in response content * * @param name The document name. (required) - * @param addReturnToLineEnd Add return to line end. (optional) - * @param format Allows to specify .doc or .docx file format. (optional) - * @param imageResolutionX Image resolution X. (optional) - * @param imageResolutionY Image resolution Y. (optional) - * @param maxDistanceBetweenTextLines Max distance between text lines. (optional) - * @param mode Allows to control how a PDF document is converted into a word processing document. (optional) - * @param recognizeBullets Recognize bullets. (optional) - * @param relativeHorizontalProximity Relative horizontal proximity. (optional) + * @param additionalMarginWidthInPoints Defines width of margin that will be forcibly left around that output HTML-areas. (optional) + * @param compressSvgGraphicsIfAny The flag that indicates whether found SVG graphics(if any) will be compressed(zipped) into SVGZ format during saving. (optional) + * @param convertMarkedContentToLayers If attribute ConvertMarkedContentToLayers set to true then an all elements inside a PDF marked content (layer) will be put into an HTML div with \"data-pdflayer\" attribute specifying a layer name. This layer name will be extracted from optional properties of PDF marked content. If this attribute is false (by default) then no any layers will be created from PDF marked content. (optional) + * @param defaultFontName Specifies the name of an installed font which is used to substitute any document font that is not embedded and not installed in the system. If null then default substitution font is used. (optional) + * @param documentType Result document type. (optional) + * @param fixedLayout The value indicating whether that HTML is created as fixed layout. (optional) + * @param imageResolution Resolution for image rendering. (optional) + * @param minimalLineWidth This attribute sets minimal width of graphic path line. If thickness of line is less than 1px Adobe Acrobat rounds it to this value. So this attribute can be used to emulate this behavior for HTML browsers. (optional) + * @param preventGlyphsGrouping This attribute switch on the mode when text glyphs will not be grouped into words and strings This mode allows to keep maximum precision during positioning of glyphs on the page and it can be used for conversion documents with music notes or glyphs that should be placed separately each other. This parameter will be applied to document only when the value of FixedLayout attribute is true. (optional) + * @param splitCssIntoPages When multipage-mode selected(i.e 'SplitIntoPages' is 'true'), then this attribute defines whether should be created separate CSS-file for each result HTML page. (optional) + * @param splitIntoPages The flag that indicates whether each page of source document will be converted into it's own target HTML document, i.e whether result HTML will be splitted into several HTML-pages. (optional) + * @param useZOrder If attribute UseZORder set to true, graphics and text are added to resultant HTML document accordingly Z-order in original PDF document. If this attribute is false all graphics is put as single layer which may cause some unnecessary effects for overlapped objects. (optional) + * @param antialiasingProcessing The parameter defines required antialiasing measures during conversion of compound background images from PDF to HTML. (optional) + * @param cssClassNamesPrefix When PDFtoHTML converter generates result CSSs, CSS class names (something like \".stl_01 {}\" ... \".stl_NN {}) are generated and used in result CSS. This property allows forcibly set class name prefix. (optional) + * @param explicitListOfSavedPages With this property You can explicitely define what pages of document should be converted. Pages in this list must have 1-based numbers. I.e. valid numbers of pages must be taken from range (1...[NumberOfPagesInConvertedDocument]) Order of appearing of pages in this list does not affect their order in result HTML page(s) - in result pages allways will go in order in which they are present in source PDF. (optional) + * @param fontEncodingStrategy Defines encoding special rule to tune PDF decoding for current document. (optional) + * @param fontSavingMode Defines font saving mode that will be used during saving of PDF to desirable format. (optional) + * @param htmlMarkupGenerationMode Sometimes specific reqirments to generation of HTML markup are present. This parameter defines HTML preparing modes that can be used during conversion of PDF to HTML to match such specific requirments. (optional) + * @param lettersPositioningMethod The mode of positioning of letters in words in result HTML. (optional) + * @param pagesFlowTypeDependsOnViewersScreenSize If attribute 'SplitOnPages=false', than whole HTML representing all input PDF pages will be put into one big result HTML file. This flag defines whether result HTML will be generated in such way that flow of areas that represent PDF pages in result HTML will depend on screen resolution of viewer. (optional) + * @param partsEmbeddingMode It defines whether referenced files (HTML, Fonts,Images, CSSes) will be embedded into main HTML file or will be generated as apart binary entities. (optional) + * @param rasterImagesSavingMode Converted PDF can contain raster images This parameter defines how they should be handled during conversion of PDF to HTML. (optional) + * @param removeEmptyAreasOnTopAndBottom Defines whether in created HTML will be removed top and bottom empty area without any content (if any). (optional) + * @param saveShadowedTextsAsTransparentTexts Pdf can contain texts that are shadowed by another elements (f.e. by images) but can be selected to clipboard in Acrobat Reader (usually it happen when document contains images and OCRed texts extracted from it). This settings tells to converter whether we need save such texts as transparent selectable texts in result HTML to mimic behaviour of Acrobat Reader (othervise such texts are usually saved as hidden, not available for copying to clipboard). (optional) + * @param saveTransparentTexts Pdf can contain transparent texts that can be selected to clipboard (usually it happen when document contains images and OCRed texts extracted from it). This settings tells to converter whether we need save such texts as transparent selectable texts in result HTML. (optional) + * @param specialFolderForAllImages The path to directory to which must be saved any images if they are encountered during saving of document as HTML. If parameter is empty or null then image files(if any) wil be saved together with other files linked to HTML It does not affect anything if CustomImageSavingStrategy property was successfully used to process relevant image file. (optional) + * @param specialFolderForSvgImages The path to directory to which must be saved only SVG-images if they are encountered during saving of document as HTML. If parameter is empty or null then SVG files(if any) wil be saved together with other image-files (near to output file) or in special folder for images (if it specified in SpecialImagesFolderIfAny option). It does not affect anything if CustomImageSavingStrategy property was successfully used to process relevant image file. (optional) + * @param trySaveTextUnderliningAndStrikeoutingInCss PDF itself does not contain underlining markers for texts. It emulated with line situated under text. This option allows converter try guess that this or that line is a text's underlining and put this info into CSS instead of drawing of underlining graphically. (optional) * @param folder The document folder. (optional) * @param storage The document storage. (optional) * @return ApiResponse<File> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse getPdfInStorageToDocWithHttpInfo(String name, Boolean addReturnToLineEnd, String format, Integer imageResolutionX, Integer imageResolutionY, Double maxDistanceBetweenTextLines, String mode, Boolean recognizeBullets, Double relativeHorizontalProximity, String folder, String storage) throws ApiException { - com.squareup.okhttp.Call call = getPdfInStorageToDocValidateBeforeCall(name, addReturnToLineEnd, format, imageResolutionX, imageResolutionY, maxDistanceBetweenTextLines, mode, recognizeBullets, relativeHorizontalProximity, folder, storage, null, null); + public ApiResponse getPdfInStorageToHtmlWithHttpInfo(String name, Integer additionalMarginWidthInPoints, Boolean compressSvgGraphicsIfAny, Boolean convertMarkedContentToLayers, String defaultFontName, String documentType, Boolean fixedLayout, Integer imageResolution, Integer minimalLineWidth, Boolean preventGlyphsGrouping, Boolean splitCssIntoPages, Boolean splitIntoPages, Boolean useZOrder, String antialiasingProcessing, String cssClassNamesPrefix, List explicitListOfSavedPages, String fontEncodingStrategy, String fontSavingMode, String htmlMarkupGenerationMode, String lettersPositioningMethod, Boolean pagesFlowTypeDependsOnViewersScreenSize, String partsEmbeddingMode, String rasterImagesSavingMode, Boolean removeEmptyAreasOnTopAndBottom, Boolean saveShadowedTextsAsTransparentTexts, Boolean saveTransparentTexts, String specialFolderForAllImages, String specialFolderForSvgImages, Boolean trySaveTextUnderliningAndStrikeoutingInCss, String folder, String storage) throws ApiException { + com.squareup.okhttp.Call call = getPdfInStorageToHtmlValidateBeforeCall(name, additionalMarginWidthInPoints, compressSvgGraphicsIfAny, convertMarkedContentToLayers, defaultFontName, documentType, fixedLayout, imageResolution, minimalLineWidth, preventGlyphsGrouping, splitCssIntoPages, splitIntoPages, useZOrder, antialiasingProcessing, cssClassNamesPrefix, explicitListOfSavedPages, fontEncodingStrategy, fontSavingMode, htmlMarkupGenerationMode, lettersPositioningMethod, pagesFlowTypeDependsOnViewersScreenSize, partsEmbeddingMode, rasterImagesSavingMode, removeEmptyAreasOnTopAndBottom, saveShadowedTextsAsTransparentTexts, saveTransparentTexts, specialFolderForAllImages, specialFolderForSvgImages, trySaveTextUnderliningAndStrikeoutingInCss, folder, storage, null, null); Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Converts PDF document (located on storage) to DOC format and returns resulting file in response content (asynchronously) + * Converts PDF document (located on storage) to Html format and returns resulting file in response content (asynchronously) * * @param name The document name. (required) - * @param addReturnToLineEnd Add return to line end. (optional) - * @param format Allows to specify .doc or .docx file format. (optional) - * @param imageResolutionX Image resolution X. (optional) - * @param imageResolutionY Image resolution Y. (optional) - * @param maxDistanceBetweenTextLines Max distance between text lines. (optional) - * @param mode Allows to control how a PDF document is converted into a word processing document. (optional) - * @param recognizeBullets Recognize bullets. (optional) - * @param relativeHorizontalProximity Relative horizontal proximity. (optional) + * @param additionalMarginWidthInPoints Defines width of margin that will be forcibly left around that output HTML-areas. (optional) + * @param compressSvgGraphicsIfAny The flag that indicates whether found SVG graphics(if any) will be compressed(zipped) into SVGZ format during saving. (optional) + * @param convertMarkedContentToLayers If attribute ConvertMarkedContentToLayers set to true then an all elements inside a PDF marked content (layer) will be put into an HTML div with \"data-pdflayer\" attribute specifying a layer name. This layer name will be extracted from optional properties of PDF marked content. If this attribute is false (by default) then no any layers will be created from PDF marked content. (optional) + * @param defaultFontName Specifies the name of an installed font which is used to substitute any document font that is not embedded and not installed in the system. If null then default substitution font is used. (optional) + * @param documentType Result document type. (optional) + * @param fixedLayout The value indicating whether that HTML is created as fixed layout. (optional) + * @param imageResolution Resolution for image rendering. (optional) + * @param minimalLineWidth This attribute sets minimal width of graphic path line. If thickness of line is less than 1px Adobe Acrobat rounds it to this value. So this attribute can be used to emulate this behavior for HTML browsers. (optional) + * @param preventGlyphsGrouping This attribute switch on the mode when text glyphs will not be grouped into words and strings This mode allows to keep maximum precision during positioning of glyphs on the page and it can be used for conversion documents with music notes or glyphs that should be placed separately each other. This parameter will be applied to document only when the value of FixedLayout attribute is true. (optional) + * @param splitCssIntoPages When multipage-mode selected(i.e 'SplitIntoPages' is 'true'), then this attribute defines whether should be created separate CSS-file for each result HTML page. (optional) + * @param splitIntoPages The flag that indicates whether each page of source document will be converted into it's own target HTML document, i.e whether result HTML will be splitted into several HTML-pages. (optional) + * @param useZOrder If attribute UseZORder set to true, graphics and text are added to resultant HTML document accordingly Z-order in original PDF document. If this attribute is false all graphics is put as single layer which may cause some unnecessary effects for overlapped objects. (optional) + * @param antialiasingProcessing The parameter defines required antialiasing measures during conversion of compound background images from PDF to HTML. (optional) + * @param cssClassNamesPrefix When PDFtoHTML converter generates result CSSs, CSS class names (something like \".stl_01 {}\" ... \".stl_NN {}) are generated and used in result CSS. This property allows forcibly set class name prefix. (optional) + * @param explicitListOfSavedPages With this property You can explicitely define what pages of document should be converted. Pages in this list must have 1-based numbers. I.e. valid numbers of pages must be taken from range (1...[NumberOfPagesInConvertedDocument]) Order of appearing of pages in this list does not affect their order in result HTML page(s) - in result pages allways will go in order in which they are present in source PDF. (optional) + * @param fontEncodingStrategy Defines encoding special rule to tune PDF decoding for current document. (optional) + * @param fontSavingMode Defines font saving mode that will be used during saving of PDF to desirable format. (optional) + * @param htmlMarkupGenerationMode Sometimes specific reqirments to generation of HTML markup are present. This parameter defines HTML preparing modes that can be used during conversion of PDF to HTML to match such specific requirments. (optional) + * @param lettersPositioningMethod The mode of positioning of letters in words in result HTML. (optional) + * @param pagesFlowTypeDependsOnViewersScreenSize If attribute 'SplitOnPages=false', than whole HTML representing all input PDF pages will be put into one big result HTML file. This flag defines whether result HTML will be generated in such way that flow of areas that represent PDF pages in result HTML will depend on screen resolution of viewer. (optional) + * @param partsEmbeddingMode It defines whether referenced files (HTML, Fonts,Images, CSSes) will be embedded into main HTML file or will be generated as apart binary entities. (optional) + * @param rasterImagesSavingMode Converted PDF can contain raster images This parameter defines how they should be handled during conversion of PDF to HTML. (optional) + * @param removeEmptyAreasOnTopAndBottom Defines whether in created HTML will be removed top and bottom empty area without any content (if any). (optional) + * @param saveShadowedTextsAsTransparentTexts Pdf can contain texts that are shadowed by another elements (f.e. by images) but can be selected to clipboard in Acrobat Reader (usually it happen when document contains images and OCRed texts extracted from it). This settings tells to converter whether we need save such texts as transparent selectable texts in result HTML to mimic behaviour of Acrobat Reader (othervise such texts are usually saved as hidden, not available for copying to clipboard). (optional) + * @param saveTransparentTexts Pdf can contain transparent texts that can be selected to clipboard (usually it happen when document contains images and OCRed texts extracted from it). This settings tells to converter whether we need save such texts as transparent selectable texts in result HTML. (optional) + * @param specialFolderForAllImages The path to directory to which must be saved any images if they are encountered during saving of document as HTML. If parameter is empty or null then image files(if any) wil be saved together with other files linked to HTML It does not affect anything if CustomImageSavingStrategy property was successfully used to process relevant image file. (optional) + * @param specialFolderForSvgImages The path to directory to which must be saved only SVG-images if they are encountered during saving of document as HTML. If parameter is empty or null then SVG files(if any) wil be saved together with other image-files (near to output file) or in special folder for images (if it specified in SpecialImagesFolderIfAny option). It does not affect anything if CustomImageSavingStrategy property was successfully used to process relevant image file. (optional) + * @param trySaveTextUnderliningAndStrikeoutingInCss PDF itself does not contain underlining markers for texts. It emulated with line situated under text. This option allows converter try guess that this or that line is a text's underlining and put this info into CSS instead of drawing of underlining graphically. (optional) * @param folder The document folder. (optional) * @param storage The document storage. (optional) * @param callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call getPdfInStorageToDocAsync(String name, Boolean addReturnToLineEnd, String format, Integer imageResolutionX, Integer imageResolutionY, Double maxDistanceBetweenTextLines, String mode, Boolean recognizeBullets, Double relativeHorizontalProximity, String folder, String storage, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call getPdfInStorageToHtmlAsync(String name, Integer additionalMarginWidthInPoints, Boolean compressSvgGraphicsIfAny, Boolean convertMarkedContentToLayers, String defaultFontName, String documentType, Boolean fixedLayout, Integer imageResolution, Integer minimalLineWidth, Boolean preventGlyphsGrouping, Boolean splitCssIntoPages, Boolean splitIntoPages, Boolean useZOrder, String antialiasingProcessing, String cssClassNamesPrefix, List explicitListOfSavedPages, String fontEncodingStrategy, String fontSavingMode, String htmlMarkupGenerationMode, String lettersPositioningMethod, Boolean pagesFlowTypeDependsOnViewersScreenSize, String partsEmbeddingMode, String rasterImagesSavingMode, Boolean removeEmptyAreasOnTopAndBottom, Boolean saveShadowedTextsAsTransparentTexts, Boolean saveTransparentTexts, String specialFolderForAllImages, String specialFolderForSvgImages, Boolean trySaveTextUnderliningAndStrikeoutingInCss, String folder, String storage, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = getPdfInStorageToHtmlValidateBeforeCall(name, additionalMarginWidthInPoints, compressSvgGraphicsIfAny, convertMarkedContentToLayers, defaultFontName, documentType, fixedLayout, imageResolution, minimalLineWidth, preventGlyphsGrouping, splitCssIntoPages, splitIntoPages, useZOrder, antialiasingProcessing, cssClassNamesPrefix, explicitListOfSavedPages, fontEncodingStrategy, fontSavingMode, htmlMarkupGenerationMode, lettersPositioningMethod, pagesFlowTypeDependsOnViewersScreenSize, partsEmbeddingMode, rasterImagesSavingMode, removeEmptyAreasOnTopAndBottom, saveShadowedTextsAsTransparentTexts, saveTransparentTexts, specialFolderForAllImages, specialFolderForSvgImages, trySaveTextUnderliningAndStrikeoutingInCss, folder, storage, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for getPdfInStorageToLaTeX + * @param name The document name. (required) + * @param pagesCount Pages count. (optional) + * @param folder The document folder. (optional) + * @param storage The document storage. (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call getPdfInStorageToLaTeXCall(String name, Integer pagesCount, String folder, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/pdf/{name}/convert/latex" + .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pagesCount != null) + localVarQueryParams.addAll(apiClient.parameterToPair("pagesCount", pagesCount)); + if (folder != null) + localVarQueryParams.addAll(apiClient.parameterToPair("folder", folder)); + if (storage != null) + localVarQueryParams.addAll(apiClient.parameterToPair("storage", storage)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "multipart/form-data" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call getPdfInStorageToLaTeXValidateBeforeCall(String name, Integer pagesCount, String folder, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling getPdfInStorageToLaTeX(Async)"); + } + + + com.squareup.okhttp.Call call = getPdfInStorageToLaTeXCall(name, pagesCount, folder, storage, progressListener, progressRequestListener); + return call; + + } + + /** + * Converts PDF document (located on storage) to LaTeX format and returns resulting file in response content + * + * @param name The document name. (required) + * @param pagesCount Pages count. (optional) + * @param folder The document folder. (optional) + * @param storage The document storage. (optional) + * @return File + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public File getPdfInStorageToLaTeX(String name, Integer pagesCount, String folder, String storage) throws ApiException { + try + { + ApiResponse resp = getPdfInStorageToLaTeXWithHttpInfo(name, pagesCount, folder, storage); + return resp.getData(); + } + catch (ApiException ex) + { + if (ex.getCode() == 401) + { + apiClient.refreshToken(); + ApiResponse resp = getPdfInStorageToLaTeXWithHttpInfo(name, pagesCount, folder, storage); + return resp.getData(); + } + throw ex; + } + } + + /** + * Converts PDF document (located on storage) to LaTeX format and returns resulting file in response content + * + * @param name The document name. (required) + * @param pagesCount Pages count. (optional) + * @param folder The document folder. (optional) + * @param storage The document storage. (optional) + * @return ApiResponse<File> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse getPdfInStorageToLaTeXWithHttpInfo(String name, Integer pagesCount, String folder, String storage) throws ApiException { + com.squareup.okhttp.Call call = getPdfInStorageToLaTeXValidateBeforeCall(name, pagesCount, folder, storage, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Converts PDF document (located on storage) to LaTeX format and returns resulting file in response content (asynchronously) + * + * @param name The document name. (required) + * @param pagesCount Pages count. (optional) + * @param folder The document folder. (optional) + * @param storage The document storage. (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call getPdfInStorageToLaTeXAsync(String name, Integer pagesCount, String folder, String storage, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -13198,15 +14684,14 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = getPdfInStorageToDocValidateBeforeCall(name, addReturnToLineEnd, format, imageResolutionX, imageResolutionY, maxDistanceBetweenTextLines, mode, recognizeBullets, relativeHorizontalProximity, folder, storage, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getPdfInStorageToLaTeXValidateBeforeCall(name, pagesCount, folder, storage, progressListener, progressRequestListener); Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for getPdfInStorageToEpub + * Build call for getPdfInStorageToMobiXml * @param name The document name. (required) - * @param contentRecognitionMode Рroperty tunes conversion for this or that desirable method of recognition of content. (optional) * @param folder The document folder. (optional) * @param storage The document storage. (optional) * @param progressListener Progress listener @@ -13214,17 +14699,15 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call getPdfInStorageToEpubCall(String name, String contentRecognitionMode, String folder, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call getPdfInStorageToMobiXmlCall(String name, String folder, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; // create path and map variables - String localVarPath = "/pdf/{name}/convert/epub" + String localVarPath = "/pdf/{name}/convert/mobixml" .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (contentRecognitionMode != null) - localVarQueryParams.addAll(apiClient.parameterToPair("contentRecognitionMode", contentRecognitionMode)); if (folder != null) localVarQueryParams.addAll(apiClient.parameterToPair("folder", folder)); if (storage != null) @@ -13263,33 +14746,32 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getPdfInStorageToEpubValidateBeforeCall(String name, String contentRecognitionMode, String folder, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call getPdfInStorageToMobiXmlValidateBeforeCall(String name, String folder, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { // verify the required parameter 'name' is set if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling getPdfInStorageToEpub(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling getPdfInStorageToMobiXml(Async)"); } - com.squareup.okhttp.Call call = getPdfInStorageToEpubCall(name, contentRecognitionMode, folder, storage, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getPdfInStorageToMobiXmlCall(name, folder, storage, progressListener, progressRequestListener); return call; } /** - * Converts PDF document (located on storage) to EPUB format and returns resulting file in response content + * Converts PDF document (located on storage) to MOBIXML format and returns resulting file in response content * * @param name The document name. (required) - * @param contentRecognitionMode Рroperty tunes conversion for this or that desirable method of recognition of content. (optional) * @param folder The document folder. (optional) * @param storage The document storage. (optional) * @return File * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public File getPdfInStorageToEpub(String name, String contentRecognitionMode, String folder, String storage) throws ApiException { + public File getPdfInStorageToMobiXml(String name, String folder, String storage) throws ApiException { try { - ApiResponse resp = getPdfInStorageToEpubWithHttpInfo(name, contentRecognitionMode, folder, storage); + ApiResponse resp = getPdfInStorageToMobiXmlWithHttpInfo(name, folder, storage); return resp.getData(); } catch (ApiException ex) @@ -13297,7 +14779,7 @@ public File getPdfInStorageToEpub(String name, String contentRecognitionMode, St if (ex.getCode() == 401) { apiClient.refreshToken(); - ApiResponse resp = getPdfInStorageToEpubWithHttpInfo(name, contentRecognitionMode, folder, storage); + ApiResponse resp = getPdfInStorageToMobiXmlWithHttpInfo(name, folder, storage); return resp.getData(); } throw ex; @@ -13305,33 +14787,31 @@ public File getPdfInStorageToEpub(String name, String contentRecognitionMode, St } /** - * Converts PDF document (located on storage) to EPUB format and returns resulting file in response content + * Converts PDF document (located on storage) to MOBIXML format and returns resulting file in response content * * @param name The document name. (required) - * @param contentRecognitionMode Рroperty tunes conversion for this or that desirable method of recognition of content. (optional) * @param folder The document folder. (optional) * @param storage The document storage. (optional) * @return ApiResponse<File> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse getPdfInStorageToEpubWithHttpInfo(String name, String contentRecognitionMode, String folder, String storage) throws ApiException { - com.squareup.okhttp.Call call = getPdfInStorageToEpubValidateBeforeCall(name, contentRecognitionMode, folder, storage, null, null); + public ApiResponse getPdfInStorageToMobiXmlWithHttpInfo(String name, String folder, String storage) throws ApiException { + com.squareup.okhttp.Call call = getPdfInStorageToMobiXmlValidateBeforeCall(name, folder, storage, null, null); Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Converts PDF document (located on storage) to EPUB format and returns resulting file in response content (asynchronously) + * Converts PDF document (located on storage) to MOBIXML format and returns resulting file in response content (asynchronously) * * @param name The document name. (required) - * @param contentRecognitionMode Рroperty tunes conversion for this or that desirable method of recognition of content. (optional) * @param folder The document folder. (optional) * @param storage The document storage. (optional) * @param callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call getPdfInStorageToEpubAsync(String name, String contentRecognitionMode, String folder, String storage, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call getPdfInStorageToMobiXmlAsync(String name, String folder, String storage, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -13352,42 +14832,15 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = getPdfInStorageToEpubValidateBeforeCall(name, contentRecognitionMode, folder, storage, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getPdfInStorageToMobiXmlValidateBeforeCall(name, folder, storage, progressListener, progressRequestListener); Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for getPdfInStorageToHtml + * Build call for getPdfInStorageToPdfA * @param name The document name. (required) - * @param additionalMarginWidthInPoints Defines width of margin that will be forcibly left around that output HTML-areas. (optional) - * @param compressSvgGraphicsIfAny The flag that indicates whether found SVG graphics(if any) will be compressed(zipped) into SVGZ format during saving. (optional) - * @param convertMarkedContentToLayers If attribute ConvertMarkedContentToLayers set to true then an all elements inside a PDF marked content (layer) will be put into an HTML div with \"data-pdflayer\" attribute specifying a layer name. This layer name will be extracted from optional properties of PDF marked content. If this attribute is false (by default) then no any layers will be created from PDF marked content. (optional) - * @param defaultFontName Specifies the name of an installed font which is used to substitute any document font that is not embedded and not installed in the system. If null then default substitution font is used. (optional) - * @param documentType Result document type. (optional) - * @param fixedLayout The value indicating whether that HTML is created as fixed layout. (optional) - * @param imageResolution Resolution for image rendering. (optional) - * @param minimalLineWidth This attribute sets minimal width of graphic path line. If thickness of line is less than 1px Adobe Acrobat rounds it to this value. So this attribute can be used to emulate this behavior for HTML browsers. (optional) - * @param preventGlyphsGrouping This attribute switch on the mode when text glyphs will not be grouped into words and strings This mode allows to keep maximum precision during positioning of glyphs on the page and it can be used for conversion documents with music notes or glyphs that should be placed separately each other. This parameter will be applied to document only when the value of FixedLayout attribute is true. (optional) - * @param splitCssIntoPages When multipage-mode selected(i.e 'SplitIntoPages' is 'true'), then this attribute defines whether should be created separate CSS-file for each result HTML page. (optional) - * @param splitIntoPages The flag that indicates whether each page of source document will be converted into it's own target HTML document, i.e whether result HTML will be splitted into several HTML-pages. (optional) - * @param useZOrder If attribute UseZORder set to true, graphics and text are added to resultant HTML document accordingly Z-order in original PDF document. If this attribute is false all graphics is put as single layer which may cause some unnecessary effects for overlapped objects. (optional) - * @param antialiasingProcessing The parameter defines required antialiasing measures during conversion of compound background images from PDF to HTML. (optional) - * @param cssClassNamesPrefix When PDFtoHTML converter generates result CSSs, CSS class names (something like \".stl_01 {}\" ... \".stl_NN {}) are generated and used in result CSS. This property allows forcibly set class name prefix. (optional) - * @param explicitListOfSavedPages With this property You can explicitely define what pages of document should be converted. Pages in this list must have 1-based numbers. I.e. valid numbers of pages must be taken from range (1...[NumberOfPagesInConvertedDocument]) Order of appearing of pages in this list does not affect their order in result HTML page(s) - in result pages allways will go in order in which they are present in source PDF. (optional) - * @param fontEncodingStrategy Defines encoding special rule to tune PDF decoding for current document. (optional) - * @param fontSavingMode Defines font saving mode that will be used during saving of PDF to desirable format. (optional) - * @param htmlMarkupGenerationMode Sometimes specific reqirments to generation of HTML markup are present. This parameter defines HTML preparing modes that can be used during conversion of PDF to HTML to match such specific requirments. (optional) - * @param lettersPositioningMethod The mode of positioning of letters in words in result HTML. (optional) - * @param pagesFlowTypeDependsOnViewersScreenSize If attribute 'SplitOnPages=false', than whole HTML representing all input PDF pages will be put into one big result HTML file. This flag defines whether result HTML will be generated in such way that flow of areas that represent PDF pages in result HTML will depend on screen resolution of viewer. (optional) - * @param partsEmbeddingMode It defines whether referenced files (HTML, Fonts,Images, CSSes) will be embedded into main HTML file or will be generated as apart binary entities. (optional) - * @param rasterImagesSavingMode Converted PDF can contain raster images This parameter defines how they should be handled during conversion of PDF to HTML. (optional) - * @param removeEmptyAreasOnTopAndBottom Defines whether in created HTML will be removed top and bottom empty area without any content (if any). (optional) - * @param saveShadowedTextsAsTransparentTexts Pdf can contain texts that are shadowed by another elements (f.e. by images) but can be selected to clipboard in Acrobat Reader (usually it happen when document contains images and OCRed texts extracted from it). This settings tells to converter whether we need save such texts as transparent selectable texts in result HTML to mimic behaviour of Acrobat Reader (othervise such texts are usually saved as hidden, not available for copying to clipboard). (optional) - * @param saveTransparentTexts Pdf can contain transparent texts that can be selected to clipboard (usually it happen when document contains images and OCRed texts extracted from it). This settings tells to converter whether we need save such texts as transparent selectable texts in result HTML. (optional) - * @param specialFolderForAllImages The path to directory to which must be saved any images if they are encountered during saving of document as HTML. If parameter is empty or null then image files(if any) wil be saved together with other files linked to HTML It does not affect anything if CustomImageSavingStrategy property was successfully used to process relevant image file. (optional) - * @param specialFolderForSvgImages The path to directory to which must be saved only SVG-images if they are encountered during saving of document as HTML. If parameter is empty or null then SVG files(if any) wil be saved together with other image-files (near to output file) or in special folder for images (if it specified in SpecialImagesFolderIfAny option). It does not affect anything if CustomImageSavingStrategy property was successfully used to process relevant image file. (optional) - * @param trySaveTextUnderliningAndStrikeoutingInCss PDF itself does not contain underlining markers for texts. It emulated with line situated under text. This option allows converter try guess that this or that line is a text's underlining and put this info into CSS instead of drawing of underlining graphically. (optional) + * @param type Type of PdfA format. (required) * @param folder The document folder. (optional) * @param storage The document storage. (optional) * @param progressListener Progress listener @@ -13395,71 +14848,17 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call getPdfInStorageToHtmlCall(String name, Integer additionalMarginWidthInPoints, Boolean compressSvgGraphicsIfAny, Boolean convertMarkedContentToLayers, String defaultFontName, String documentType, Boolean fixedLayout, Integer imageResolution, Integer minimalLineWidth, Boolean preventGlyphsGrouping, Boolean splitCssIntoPages, Boolean splitIntoPages, Boolean useZOrder, String antialiasingProcessing, String cssClassNamesPrefix, List explicitListOfSavedPages, String fontEncodingStrategy, String fontSavingMode, String htmlMarkupGenerationMode, String lettersPositioningMethod, Boolean pagesFlowTypeDependsOnViewersScreenSize, String partsEmbeddingMode, String rasterImagesSavingMode, Boolean removeEmptyAreasOnTopAndBottom, Boolean saveShadowedTextsAsTransparentTexts, Boolean saveTransparentTexts, String specialFolderForAllImages, String specialFolderForSvgImages, Boolean trySaveTextUnderliningAndStrikeoutingInCss, String folder, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call getPdfInStorageToPdfACall(String name, String type, String folder, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; // create path and map variables - String localVarPath = "/pdf/{name}/convert/html" + String localVarPath = "/pdf/{name}/convert/pdfa" .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (additionalMarginWidthInPoints != null) - localVarQueryParams.addAll(apiClient.parameterToPair("additionalMarginWidthInPoints", additionalMarginWidthInPoints)); - if (compressSvgGraphicsIfAny != null) - localVarQueryParams.addAll(apiClient.parameterToPair("compressSvgGraphicsIfAny", compressSvgGraphicsIfAny)); - if (convertMarkedContentToLayers != null) - localVarQueryParams.addAll(apiClient.parameterToPair("convertMarkedContentToLayers", convertMarkedContentToLayers)); - if (defaultFontName != null) - localVarQueryParams.addAll(apiClient.parameterToPair("defaultFontName", defaultFontName)); - if (documentType != null) - localVarQueryParams.addAll(apiClient.parameterToPair("documentType", documentType)); - if (fixedLayout != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fixedLayout", fixedLayout)); - if (imageResolution != null) - localVarQueryParams.addAll(apiClient.parameterToPair("imageResolution", imageResolution)); - if (minimalLineWidth != null) - localVarQueryParams.addAll(apiClient.parameterToPair("minimalLineWidth", minimalLineWidth)); - if (preventGlyphsGrouping != null) - localVarQueryParams.addAll(apiClient.parameterToPair("preventGlyphsGrouping", preventGlyphsGrouping)); - if (splitCssIntoPages != null) - localVarQueryParams.addAll(apiClient.parameterToPair("splitCssIntoPages", splitCssIntoPages)); - if (splitIntoPages != null) - localVarQueryParams.addAll(apiClient.parameterToPair("splitIntoPages", splitIntoPages)); - if (useZOrder != null) - localVarQueryParams.addAll(apiClient.parameterToPair("useZOrder", useZOrder)); - if (antialiasingProcessing != null) - localVarQueryParams.addAll(apiClient.parameterToPair("antialiasingProcessing", antialiasingProcessing)); - if (cssClassNamesPrefix != null) - localVarQueryParams.addAll(apiClient.parameterToPair("cssClassNamesPrefix", cssClassNamesPrefix)); - if (explicitListOfSavedPages != null) - localVarCollectionQueryParams.addAll(apiClient.parameterToPairs("multi", "explicitListOfSavedPages", explicitListOfSavedPages)); - if (fontEncodingStrategy != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fontEncodingStrategy", fontEncodingStrategy)); - if (fontSavingMode != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fontSavingMode", fontSavingMode)); - if (htmlMarkupGenerationMode != null) - localVarQueryParams.addAll(apiClient.parameterToPair("htmlMarkupGenerationMode", htmlMarkupGenerationMode)); - if (lettersPositioningMethod != null) - localVarQueryParams.addAll(apiClient.parameterToPair("lettersPositioningMethod", lettersPositioningMethod)); - if (pagesFlowTypeDependsOnViewersScreenSize != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pagesFlowTypeDependsOnViewersScreenSize", pagesFlowTypeDependsOnViewersScreenSize)); - if (partsEmbeddingMode != null) - localVarQueryParams.addAll(apiClient.parameterToPair("partsEmbeddingMode", partsEmbeddingMode)); - if (rasterImagesSavingMode != null) - localVarQueryParams.addAll(apiClient.parameterToPair("rasterImagesSavingMode", rasterImagesSavingMode)); - if (removeEmptyAreasOnTopAndBottom != null) - localVarQueryParams.addAll(apiClient.parameterToPair("removeEmptyAreasOnTopAndBottom", removeEmptyAreasOnTopAndBottom)); - if (saveShadowedTextsAsTransparentTexts != null) - localVarQueryParams.addAll(apiClient.parameterToPair("saveShadowedTextsAsTransparentTexts", saveShadowedTextsAsTransparentTexts)); - if (saveTransparentTexts != null) - localVarQueryParams.addAll(apiClient.parameterToPair("saveTransparentTexts", saveTransparentTexts)); - if (specialFolderForAllImages != null) - localVarQueryParams.addAll(apiClient.parameterToPair("specialFolderForAllImages", specialFolderForAllImages)); - if (specialFolderForSvgImages != null) - localVarQueryParams.addAll(apiClient.parameterToPair("specialFolderForSvgImages", specialFolderForSvgImages)); - if (trySaveTextUnderliningAndStrikeoutingInCss != null) - localVarQueryParams.addAll(apiClient.parameterToPair("trySaveTextUnderliningAndStrikeoutingInCss", trySaveTextUnderliningAndStrikeoutingInCss)); + if (type != null) + localVarQueryParams.addAll(apiClient.parameterToPair("type", type)); if (folder != null) localVarQueryParams.addAll(apiClient.parameterToPair("folder", folder)); if (storage != null) @@ -13498,60 +14897,38 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getPdfInStorageToHtmlValidateBeforeCall(String name, Integer additionalMarginWidthInPoints, Boolean compressSvgGraphicsIfAny, Boolean convertMarkedContentToLayers, String defaultFontName, String documentType, Boolean fixedLayout, Integer imageResolution, Integer minimalLineWidth, Boolean preventGlyphsGrouping, Boolean splitCssIntoPages, Boolean splitIntoPages, Boolean useZOrder, String antialiasingProcessing, String cssClassNamesPrefix, List explicitListOfSavedPages, String fontEncodingStrategy, String fontSavingMode, String htmlMarkupGenerationMode, String lettersPositioningMethod, Boolean pagesFlowTypeDependsOnViewersScreenSize, String partsEmbeddingMode, String rasterImagesSavingMode, Boolean removeEmptyAreasOnTopAndBottom, Boolean saveShadowedTextsAsTransparentTexts, Boolean saveTransparentTexts, String specialFolderForAllImages, String specialFolderForSvgImages, Boolean trySaveTextUnderliningAndStrikeoutingInCss, String folder, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call getPdfInStorageToPdfAValidateBeforeCall(String name, String type, String folder, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { // verify the required parameter 'name' is set if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling getPdfInStorageToHtml(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling getPdfInStorageToPdfA(Async)"); + } + + // verify the required parameter 'type' is set + if (type == null) { + throw new ApiException("Missing the required parameter 'type' when calling getPdfInStorageToPdfA(Async)"); } - com.squareup.okhttp.Call call = getPdfInStorageToHtmlCall(name, additionalMarginWidthInPoints, compressSvgGraphicsIfAny, convertMarkedContentToLayers, defaultFontName, documentType, fixedLayout, imageResolution, minimalLineWidth, preventGlyphsGrouping, splitCssIntoPages, splitIntoPages, useZOrder, antialiasingProcessing, cssClassNamesPrefix, explicitListOfSavedPages, fontEncodingStrategy, fontSavingMode, htmlMarkupGenerationMode, lettersPositioningMethod, pagesFlowTypeDependsOnViewersScreenSize, partsEmbeddingMode, rasterImagesSavingMode, removeEmptyAreasOnTopAndBottom, saveShadowedTextsAsTransparentTexts, saveTransparentTexts, specialFolderForAllImages, specialFolderForSvgImages, trySaveTextUnderliningAndStrikeoutingInCss, folder, storage, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getPdfInStorageToPdfACall(name, type, folder, storage, progressListener, progressRequestListener); return call; } /** - * Converts PDF document (located on storage) to Html format and returns resulting file in response content + * Converts PDF document (located on storage) to PdfA format and returns resulting file in response content * * @param name The document name. (required) - * @param additionalMarginWidthInPoints Defines width of margin that will be forcibly left around that output HTML-areas. (optional) - * @param compressSvgGraphicsIfAny The flag that indicates whether found SVG graphics(if any) will be compressed(zipped) into SVGZ format during saving. (optional) - * @param convertMarkedContentToLayers If attribute ConvertMarkedContentToLayers set to true then an all elements inside a PDF marked content (layer) will be put into an HTML div with \"data-pdflayer\" attribute specifying a layer name. This layer name will be extracted from optional properties of PDF marked content. If this attribute is false (by default) then no any layers will be created from PDF marked content. (optional) - * @param defaultFontName Specifies the name of an installed font which is used to substitute any document font that is not embedded and not installed in the system. If null then default substitution font is used. (optional) - * @param documentType Result document type. (optional) - * @param fixedLayout The value indicating whether that HTML is created as fixed layout. (optional) - * @param imageResolution Resolution for image rendering. (optional) - * @param minimalLineWidth This attribute sets minimal width of graphic path line. If thickness of line is less than 1px Adobe Acrobat rounds it to this value. So this attribute can be used to emulate this behavior for HTML browsers. (optional) - * @param preventGlyphsGrouping This attribute switch on the mode when text glyphs will not be grouped into words and strings This mode allows to keep maximum precision during positioning of glyphs on the page and it can be used for conversion documents with music notes or glyphs that should be placed separately each other. This parameter will be applied to document only when the value of FixedLayout attribute is true. (optional) - * @param splitCssIntoPages When multipage-mode selected(i.e 'SplitIntoPages' is 'true'), then this attribute defines whether should be created separate CSS-file for each result HTML page. (optional) - * @param splitIntoPages The flag that indicates whether each page of source document will be converted into it's own target HTML document, i.e whether result HTML will be splitted into several HTML-pages. (optional) - * @param useZOrder If attribute UseZORder set to true, graphics and text are added to resultant HTML document accordingly Z-order in original PDF document. If this attribute is false all graphics is put as single layer which may cause some unnecessary effects for overlapped objects. (optional) - * @param antialiasingProcessing The parameter defines required antialiasing measures during conversion of compound background images from PDF to HTML. (optional) - * @param cssClassNamesPrefix When PDFtoHTML converter generates result CSSs, CSS class names (something like \".stl_01 {}\" ... \".stl_NN {}) are generated and used in result CSS. This property allows forcibly set class name prefix. (optional) - * @param explicitListOfSavedPages With this property You can explicitely define what pages of document should be converted. Pages in this list must have 1-based numbers. I.e. valid numbers of pages must be taken from range (1...[NumberOfPagesInConvertedDocument]) Order of appearing of pages in this list does not affect their order in result HTML page(s) - in result pages allways will go in order in which they are present in source PDF. (optional) - * @param fontEncodingStrategy Defines encoding special rule to tune PDF decoding for current document. (optional) - * @param fontSavingMode Defines font saving mode that will be used during saving of PDF to desirable format. (optional) - * @param htmlMarkupGenerationMode Sometimes specific reqirments to generation of HTML markup are present. This parameter defines HTML preparing modes that can be used during conversion of PDF to HTML to match such specific requirments. (optional) - * @param lettersPositioningMethod The mode of positioning of letters in words in result HTML. (optional) - * @param pagesFlowTypeDependsOnViewersScreenSize If attribute 'SplitOnPages=false', than whole HTML representing all input PDF pages will be put into one big result HTML file. This flag defines whether result HTML will be generated in such way that flow of areas that represent PDF pages in result HTML will depend on screen resolution of viewer. (optional) - * @param partsEmbeddingMode It defines whether referenced files (HTML, Fonts,Images, CSSes) will be embedded into main HTML file or will be generated as apart binary entities. (optional) - * @param rasterImagesSavingMode Converted PDF can contain raster images This parameter defines how they should be handled during conversion of PDF to HTML. (optional) - * @param removeEmptyAreasOnTopAndBottom Defines whether in created HTML will be removed top and bottom empty area without any content (if any). (optional) - * @param saveShadowedTextsAsTransparentTexts Pdf can contain texts that are shadowed by another elements (f.e. by images) but can be selected to clipboard in Acrobat Reader (usually it happen when document contains images and OCRed texts extracted from it). This settings tells to converter whether we need save such texts as transparent selectable texts in result HTML to mimic behaviour of Acrobat Reader (othervise such texts are usually saved as hidden, not available for copying to clipboard). (optional) - * @param saveTransparentTexts Pdf can contain transparent texts that can be selected to clipboard (usually it happen when document contains images and OCRed texts extracted from it). This settings tells to converter whether we need save such texts as transparent selectable texts in result HTML. (optional) - * @param specialFolderForAllImages The path to directory to which must be saved any images if they are encountered during saving of document as HTML. If parameter is empty or null then image files(if any) wil be saved together with other files linked to HTML It does not affect anything if CustomImageSavingStrategy property was successfully used to process relevant image file. (optional) - * @param specialFolderForSvgImages The path to directory to which must be saved only SVG-images if they are encountered during saving of document as HTML. If parameter is empty or null then SVG files(if any) wil be saved together with other image-files (near to output file) or in special folder for images (if it specified in SpecialImagesFolderIfAny option). It does not affect anything if CustomImageSavingStrategy property was successfully used to process relevant image file. (optional) - * @param trySaveTextUnderliningAndStrikeoutingInCss PDF itself does not contain underlining markers for texts. It emulated with line situated under text. This option allows converter try guess that this or that line is a text's underlining and put this info into CSS instead of drawing of underlining graphically. (optional) + * @param type Type of PdfA format. (required) * @param folder The document folder. (optional) * @param storage The document storage. (optional) * @return File * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public File getPdfInStorageToHtml(String name, Integer additionalMarginWidthInPoints, Boolean compressSvgGraphicsIfAny, Boolean convertMarkedContentToLayers, String defaultFontName, String documentType, Boolean fixedLayout, Integer imageResolution, Integer minimalLineWidth, Boolean preventGlyphsGrouping, Boolean splitCssIntoPages, Boolean splitIntoPages, Boolean useZOrder, String antialiasingProcessing, String cssClassNamesPrefix, List explicitListOfSavedPages, String fontEncodingStrategy, String fontSavingMode, String htmlMarkupGenerationMode, String lettersPositioningMethod, Boolean pagesFlowTypeDependsOnViewersScreenSize, String partsEmbeddingMode, String rasterImagesSavingMode, Boolean removeEmptyAreasOnTopAndBottom, Boolean saveShadowedTextsAsTransparentTexts, Boolean saveTransparentTexts, String specialFolderForAllImages, String specialFolderForSvgImages, Boolean trySaveTextUnderliningAndStrikeoutingInCss, String folder, String storage) throws ApiException { + public File getPdfInStorageToPdfA(String name, String type, String folder, String storage) throws ApiException { try { - ApiResponse resp = getPdfInStorageToHtmlWithHttpInfo(name, additionalMarginWidthInPoints, compressSvgGraphicsIfAny, convertMarkedContentToLayers, defaultFontName, documentType, fixedLayout, imageResolution, minimalLineWidth, preventGlyphsGrouping, splitCssIntoPages, splitIntoPages, useZOrder, antialiasingProcessing, cssClassNamesPrefix, explicitListOfSavedPages, fontEncodingStrategy, fontSavingMode, htmlMarkupGenerationMode, lettersPositioningMethod, pagesFlowTypeDependsOnViewersScreenSize, partsEmbeddingMode, rasterImagesSavingMode, removeEmptyAreasOnTopAndBottom, saveShadowedTextsAsTransparentTexts, saveTransparentTexts, specialFolderForAllImages, specialFolderForSvgImages, trySaveTextUnderliningAndStrikeoutingInCss, folder, storage); + ApiResponse resp = getPdfInStorageToPdfAWithHttpInfo(name, type, folder, storage); return resp.getData(); } catch (ApiException ex) @@ -13559,7 +14936,7 @@ public File getPdfInStorageToHtml(String name, Integer additionalMarginWidthInPo if (ex.getCode() == 401) { apiClient.refreshToken(); - ApiResponse resp = getPdfInStorageToHtmlWithHttpInfo(name, additionalMarginWidthInPoints, compressSvgGraphicsIfAny, convertMarkedContentToLayers, defaultFontName, documentType, fixedLayout, imageResolution, minimalLineWidth, preventGlyphsGrouping, splitCssIntoPages, splitIntoPages, useZOrder, antialiasingProcessing, cssClassNamesPrefix, explicitListOfSavedPages, fontEncodingStrategy, fontSavingMode, htmlMarkupGenerationMode, lettersPositioningMethod, pagesFlowTypeDependsOnViewersScreenSize, partsEmbeddingMode, rasterImagesSavingMode, removeEmptyAreasOnTopAndBottom, saveShadowedTextsAsTransparentTexts, saveTransparentTexts, specialFolderForAllImages, specialFolderForSvgImages, trySaveTextUnderliningAndStrikeoutingInCss, folder, storage); + ApiResponse resp = getPdfInStorageToPdfAWithHttpInfo(name, type, folder, storage); return resp.getData(); } throw ex; @@ -13567,87 +14944,33 @@ public File getPdfInStorageToHtml(String name, Integer additionalMarginWidthInPo } /** - * Converts PDF document (located on storage) to Html format and returns resulting file in response content + * Converts PDF document (located on storage) to PdfA format and returns resulting file in response content * * @param name The document name. (required) - * @param additionalMarginWidthInPoints Defines width of margin that will be forcibly left around that output HTML-areas. (optional) - * @param compressSvgGraphicsIfAny The flag that indicates whether found SVG graphics(if any) will be compressed(zipped) into SVGZ format during saving. (optional) - * @param convertMarkedContentToLayers If attribute ConvertMarkedContentToLayers set to true then an all elements inside a PDF marked content (layer) will be put into an HTML div with \"data-pdflayer\" attribute specifying a layer name. This layer name will be extracted from optional properties of PDF marked content. If this attribute is false (by default) then no any layers will be created from PDF marked content. (optional) - * @param defaultFontName Specifies the name of an installed font which is used to substitute any document font that is not embedded and not installed in the system. If null then default substitution font is used. (optional) - * @param documentType Result document type. (optional) - * @param fixedLayout The value indicating whether that HTML is created as fixed layout. (optional) - * @param imageResolution Resolution for image rendering. (optional) - * @param minimalLineWidth This attribute sets minimal width of graphic path line. If thickness of line is less than 1px Adobe Acrobat rounds it to this value. So this attribute can be used to emulate this behavior for HTML browsers. (optional) - * @param preventGlyphsGrouping This attribute switch on the mode when text glyphs will not be grouped into words and strings This mode allows to keep maximum precision during positioning of glyphs on the page and it can be used for conversion documents with music notes or glyphs that should be placed separately each other. This parameter will be applied to document only when the value of FixedLayout attribute is true. (optional) - * @param splitCssIntoPages When multipage-mode selected(i.e 'SplitIntoPages' is 'true'), then this attribute defines whether should be created separate CSS-file for each result HTML page. (optional) - * @param splitIntoPages The flag that indicates whether each page of source document will be converted into it's own target HTML document, i.e whether result HTML will be splitted into several HTML-pages. (optional) - * @param useZOrder If attribute UseZORder set to true, graphics and text are added to resultant HTML document accordingly Z-order in original PDF document. If this attribute is false all graphics is put as single layer which may cause some unnecessary effects for overlapped objects. (optional) - * @param antialiasingProcessing The parameter defines required antialiasing measures during conversion of compound background images from PDF to HTML. (optional) - * @param cssClassNamesPrefix When PDFtoHTML converter generates result CSSs, CSS class names (something like \".stl_01 {}\" ... \".stl_NN {}) are generated and used in result CSS. This property allows forcibly set class name prefix. (optional) - * @param explicitListOfSavedPages With this property You can explicitely define what pages of document should be converted. Pages in this list must have 1-based numbers. I.e. valid numbers of pages must be taken from range (1...[NumberOfPagesInConvertedDocument]) Order of appearing of pages in this list does not affect their order in result HTML page(s) - in result pages allways will go in order in which they are present in source PDF. (optional) - * @param fontEncodingStrategy Defines encoding special rule to tune PDF decoding for current document. (optional) - * @param fontSavingMode Defines font saving mode that will be used during saving of PDF to desirable format. (optional) - * @param htmlMarkupGenerationMode Sometimes specific reqirments to generation of HTML markup are present. This parameter defines HTML preparing modes that can be used during conversion of PDF to HTML to match such specific requirments. (optional) - * @param lettersPositioningMethod The mode of positioning of letters in words in result HTML. (optional) - * @param pagesFlowTypeDependsOnViewersScreenSize If attribute 'SplitOnPages=false', than whole HTML representing all input PDF pages will be put into one big result HTML file. This flag defines whether result HTML will be generated in such way that flow of areas that represent PDF pages in result HTML will depend on screen resolution of viewer. (optional) - * @param partsEmbeddingMode It defines whether referenced files (HTML, Fonts,Images, CSSes) will be embedded into main HTML file or will be generated as apart binary entities. (optional) - * @param rasterImagesSavingMode Converted PDF can contain raster images This parameter defines how they should be handled during conversion of PDF to HTML. (optional) - * @param removeEmptyAreasOnTopAndBottom Defines whether in created HTML will be removed top and bottom empty area without any content (if any). (optional) - * @param saveShadowedTextsAsTransparentTexts Pdf can contain texts that are shadowed by another elements (f.e. by images) but can be selected to clipboard in Acrobat Reader (usually it happen when document contains images and OCRed texts extracted from it). This settings tells to converter whether we need save such texts as transparent selectable texts in result HTML to mimic behaviour of Acrobat Reader (othervise such texts are usually saved as hidden, not available for copying to clipboard). (optional) - * @param saveTransparentTexts Pdf can contain transparent texts that can be selected to clipboard (usually it happen when document contains images and OCRed texts extracted from it). This settings tells to converter whether we need save such texts as transparent selectable texts in result HTML. (optional) - * @param specialFolderForAllImages The path to directory to which must be saved any images if they are encountered during saving of document as HTML. If parameter is empty or null then image files(if any) wil be saved together with other files linked to HTML It does not affect anything if CustomImageSavingStrategy property was successfully used to process relevant image file. (optional) - * @param specialFolderForSvgImages The path to directory to which must be saved only SVG-images if they are encountered during saving of document as HTML. If parameter is empty or null then SVG files(if any) wil be saved together with other image-files (near to output file) or in special folder for images (if it specified in SpecialImagesFolderIfAny option). It does not affect anything if CustomImageSavingStrategy property was successfully used to process relevant image file. (optional) - * @param trySaveTextUnderliningAndStrikeoutingInCss PDF itself does not contain underlining markers for texts. It emulated with line situated under text. This option allows converter try guess that this or that line is a text's underlining and put this info into CSS instead of drawing of underlining graphically. (optional) + * @param type Type of PdfA format. (required) * @param folder The document folder. (optional) * @param storage The document storage. (optional) * @return ApiResponse<File> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse getPdfInStorageToHtmlWithHttpInfo(String name, Integer additionalMarginWidthInPoints, Boolean compressSvgGraphicsIfAny, Boolean convertMarkedContentToLayers, String defaultFontName, String documentType, Boolean fixedLayout, Integer imageResolution, Integer minimalLineWidth, Boolean preventGlyphsGrouping, Boolean splitCssIntoPages, Boolean splitIntoPages, Boolean useZOrder, String antialiasingProcessing, String cssClassNamesPrefix, List explicitListOfSavedPages, String fontEncodingStrategy, String fontSavingMode, String htmlMarkupGenerationMode, String lettersPositioningMethod, Boolean pagesFlowTypeDependsOnViewersScreenSize, String partsEmbeddingMode, String rasterImagesSavingMode, Boolean removeEmptyAreasOnTopAndBottom, Boolean saveShadowedTextsAsTransparentTexts, Boolean saveTransparentTexts, String specialFolderForAllImages, String specialFolderForSvgImages, Boolean trySaveTextUnderliningAndStrikeoutingInCss, String folder, String storage) throws ApiException { - com.squareup.okhttp.Call call = getPdfInStorageToHtmlValidateBeforeCall(name, additionalMarginWidthInPoints, compressSvgGraphicsIfAny, convertMarkedContentToLayers, defaultFontName, documentType, fixedLayout, imageResolution, minimalLineWidth, preventGlyphsGrouping, splitCssIntoPages, splitIntoPages, useZOrder, antialiasingProcessing, cssClassNamesPrefix, explicitListOfSavedPages, fontEncodingStrategy, fontSavingMode, htmlMarkupGenerationMode, lettersPositioningMethod, pagesFlowTypeDependsOnViewersScreenSize, partsEmbeddingMode, rasterImagesSavingMode, removeEmptyAreasOnTopAndBottom, saveShadowedTextsAsTransparentTexts, saveTransparentTexts, specialFolderForAllImages, specialFolderForSvgImages, trySaveTextUnderliningAndStrikeoutingInCss, folder, storage, null, null); + public ApiResponse getPdfInStorageToPdfAWithHttpInfo(String name, String type, String folder, String storage) throws ApiException { + com.squareup.okhttp.Call call = getPdfInStorageToPdfAValidateBeforeCall(name, type, folder, storage, null, null); Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Converts PDF document (located on storage) to Html format and returns resulting file in response content (asynchronously) + * Converts PDF document (located on storage) to PdfA format and returns resulting file in response content (asynchronously) * * @param name The document name. (required) - * @param additionalMarginWidthInPoints Defines width of margin that will be forcibly left around that output HTML-areas. (optional) - * @param compressSvgGraphicsIfAny The flag that indicates whether found SVG graphics(if any) will be compressed(zipped) into SVGZ format during saving. (optional) - * @param convertMarkedContentToLayers If attribute ConvertMarkedContentToLayers set to true then an all elements inside a PDF marked content (layer) will be put into an HTML div with \"data-pdflayer\" attribute specifying a layer name. This layer name will be extracted from optional properties of PDF marked content. If this attribute is false (by default) then no any layers will be created from PDF marked content. (optional) - * @param defaultFontName Specifies the name of an installed font which is used to substitute any document font that is not embedded and not installed in the system. If null then default substitution font is used. (optional) - * @param documentType Result document type. (optional) - * @param fixedLayout The value indicating whether that HTML is created as fixed layout. (optional) - * @param imageResolution Resolution for image rendering. (optional) - * @param minimalLineWidth This attribute sets minimal width of graphic path line. If thickness of line is less than 1px Adobe Acrobat rounds it to this value. So this attribute can be used to emulate this behavior for HTML browsers. (optional) - * @param preventGlyphsGrouping This attribute switch on the mode when text glyphs will not be grouped into words and strings This mode allows to keep maximum precision during positioning of glyphs on the page and it can be used for conversion documents with music notes or glyphs that should be placed separately each other. This parameter will be applied to document only when the value of FixedLayout attribute is true. (optional) - * @param splitCssIntoPages When multipage-mode selected(i.e 'SplitIntoPages' is 'true'), then this attribute defines whether should be created separate CSS-file for each result HTML page. (optional) - * @param splitIntoPages The flag that indicates whether each page of source document will be converted into it's own target HTML document, i.e whether result HTML will be splitted into several HTML-pages. (optional) - * @param useZOrder If attribute UseZORder set to true, graphics and text are added to resultant HTML document accordingly Z-order in original PDF document. If this attribute is false all graphics is put as single layer which may cause some unnecessary effects for overlapped objects. (optional) - * @param antialiasingProcessing The parameter defines required antialiasing measures during conversion of compound background images from PDF to HTML. (optional) - * @param cssClassNamesPrefix When PDFtoHTML converter generates result CSSs, CSS class names (something like \".stl_01 {}\" ... \".stl_NN {}) are generated and used in result CSS. This property allows forcibly set class name prefix. (optional) - * @param explicitListOfSavedPages With this property You can explicitely define what pages of document should be converted. Pages in this list must have 1-based numbers. I.e. valid numbers of pages must be taken from range (1...[NumberOfPagesInConvertedDocument]) Order of appearing of pages in this list does not affect their order in result HTML page(s) - in result pages allways will go in order in which they are present in source PDF. (optional) - * @param fontEncodingStrategy Defines encoding special rule to tune PDF decoding for current document. (optional) - * @param fontSavingMode Defines font saving mode that will be used during saving of PDF to desirable format. (optional) - * @param htmlMarkupGenerationMode Sometimes specific reqirments to generation of HTML markup are present. This parameter defines HTML preparing modes that can be used during conversion of PDF to HTML to match such specific requirments. (optional) - * @param lettersPositioningMethod The mode of positioning of letters in words in result HTML. (optional) - * @param pagesFlowTypeDependsOnViewersScreenSize If attribute 'SplitOnPages=false', than whole HTML representing all input PDF pages will be put into one big result HTML file. This flag defines whether result HTML will be generated in such way that flow of areas that represent PDF pages in result HTML will depend on screen resolution of viewer. (optional) - * @param partsEmbeddingMode It defines whether referenced files (HTML, Fonts,Images, CSSes) will be embedded into main HTML file or will be generated as apart binary entities. (optional) - * @param rasterImagesSavingMode Converted PDF can contain raster images This parameter defines how they should be handled during conversion of PDF to HTML. (optional) - * @param removeEmptyAreasOnTopAndBottom Defines whether in created HTML will be removed top and bottom empty area without any content (if any). (optional) - * @param saveShadowedTextsAsTransparentTexts Pdf can contain texts that are shadowed by another elements (f.e. by images) but can be selected to clipboard in Acrobat Reader (usually it happen when document contains images and OCRed texts extracted from it). This settings tells to converter whether we need save such texts as transparent selectable texts in result HTML to mimic behaviour of Acrobat Reader (othervise such texts are usually saved as hidden, not available for copying to clipboard). (optional) - * @param saveTransparentTexts Pdf can contain transparent texts that can be selected to clipboard (usually it happen when document contains images and OCRed texts extracted from it). This settings tells to converter whether we need save such texts as transparent selectable texts in result HTML. (optional) - * @param specialFolderForAllImages The path to directory to which must be saved any images if they are encountered during saving of document as HTML. If parameter is empty or null then image files(if any) wil be saved together with other files linked to HTML It does not affect anything if CustomImageSavingStrategy property was successfully used to process relevant image file. (optional) - * @param specialFolderForSvgImages The path to directory to which must be saved only SVG-images if they are encountered during saving of document as HTML. If parameter is empty or null then SVG files(if any) wil be saved together with other image-files (near to output file) or in special folder for images (if it specified in SpecialImagesFolderIfAny option). It does not affect anything if CustomImageSavingStrategy property was successfully used to process relevant image file. (optional) - * @param trySaveTextUnderliningAndStrikeoutingInCss PDF itself does not contain underlining markers for texts. It emulated with line situated under text. This option allows converter try guess that this or that line is a text's underlining and put this info into CSS instead of drawing of underlining graphically. (optional) + * @param type Type of PdfA format. (required) * @param folder The document folder. (optional) * @param storage The document storage. (optional) * @param callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call getPdfInStorageToHtmlAsync(String name, Integer additionalMarginWidthInPoints, Boolean compressSvgGraphicsIfAny, Boolean convertMarkedContentToLayers, String defaultFontName, String documentType, Boolean fixedLayout, Integer imageResolution, Integer minimalLineWidth, Boolean preventGlyphsGrouping, Boolean splitCssIntoPages, Boolean splitIntoPages, Boolean useZOrder, String antialiasingProcessing, String cssClassNamesPrefix, List explicitListOfSavedPages, String fontEncodingStrategy, String fontSavingMode, String htmlMarkupGenerationMode, String lettersPositioningMethod, Boolean pagesFlowTypeDependsOnViewersScreenSize, String partsEmbeddingMode, String rasterImagesSavingMode, Boolean removeEmptyAreasOnTopAndBottom, Boolean saveShadowedTextsAsTransparentTexts, Boolean saveTransparentTexts, String specialFolderForAllImages, String specialFolderForSvgImages, Boolean trySaveTextUnderliningAndStrikeoutingInCss, String folder, String storage, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call getPdfInStorageToPdfAAsync(String name, String type, String folder, String storage, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -13668,15 +14991,16 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = getPdfInStorageToHtmlValidateBeforeCall(name, additionalMarginWidthInPoints, compressSvgGraphicsIfAny, convertMarkedContentToLayers, defaultFontName, documentType, fixedLayout, imageResolution, minimalLineWidth, preventGlyphsGrouping, splitCssIntoPages, splitIntoPages, useZOrder, antialiasingProcessing, cssClassNamesPrefix, explicitListOfSavedPages, fontEncodingStrategy, fontSavingMode, htmlMarkupGenerationMode, lettersPositioningMethod, pagesFlowTypeDependsOnViewersScreenSize, partsEmbeddingMode, rasterImagesSavingMode, removeEmptyAreasOnTopAndBottom, saveShadowedTextsAsTransparentTexts, saveTransparentTexts, specialFolderForAllImages, specialFolderForSvgImages, trySaveTextUnderliningAndStrikeoutingInCss, folder, storage, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getPdfInStorageToPdfAValidateBeforeCall(name, type, folder, storage, progressListener, progressRequestListener); Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for getPdfInStorageToLaTeX + * Build call for getPdfInStorageToPptx * @param name The document name. (required) - * @param pagesCount Pages count. (optional) + * @param separateImages Separate images. (optional) + * @param slidesAsImages Slides as images. (optional) * @param folder The document folder. (optional) * @param storage The document storage. (optional) * @param progressListener Progress listener @@ -13684,17 +15008,19 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call getPdfInStorageToLaTeXCall(String name, Integer pagesCount, String folder, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call getPdfInStorageToPptxCall(String name, Boolean separateImages, Boolean slidesAsImages, String folder, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; // create path and map variables - String localVarPath = "/pdf/{name}/convert/latex" + String localVarPath = "/pdf/{name}/convert/pptx" .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pagesCount != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pagesCount", pagesCount)); + if (separateImages != null) + localVarQueryParams.addAll(apiClient.parameterToPair("separateImages", separateImages)); + if (slidesAsImages != null) + localVarQueryParams.addAll(apiClient.parameterToPair("slidesAsImages", slidesAsImages)); if (folder != null) localVarQueryParams.addAll(apiClient.parameterToPair("folder", folder)); if (storage != null) @@ -13733,33 +15059,34 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getPdfInStorageToLaTeXValidateBeforeCall(String name, Integer pagesCount, String folder, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call getPdfInStorageToPptxValidateBeforeCall(String name, Boolean separateImages, Boolean slidesAsImages, String folder, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { // verify the required parameter 'name' is set if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling getPdfInStorageToLaTeX(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling getPdfInStorageToPptx(Async)"); } - com.squareup.okhttp.Call call = getPdfInStorageToLaTeXCall(name, pagesCount, folder, storage, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getPdfInStorageToPptxCall(name, separateImages, slidesAsImages, folder, storage, progressListener, progressRequestListener); return call; } /** - * Converts PDF document (located on storage) to LaTeX format and returns resulting file in response content + * Converts PDF document (located on storage) to PPTX format and returns resulting file in response content * * @param name The document name. (required) - * @param pagesCount Pages count. (optional) + * @param separateImages Separate images. (optional) + * @param slidesAsImages Slides as images. (optional) * @param folder The document folder. (optional) * @param storage The document storage. (optional) * @return File * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public File getPdfInStorageToLaTeX(String name, Integer pagesCount, String folder, String storage) throws ApiException { + public File getPdfInStorageToPptx(String name, Boolean separateImages, Boolean slidesAsImages, String folder, String storage) throws ApiException { try { - ApiResponse resp = getPdfInStorageToLaTeXWithHttpInfo(name, pagesCount, folder, storage); + ApiResponse resp = getPdfInStorageToPptxWithHttpInfo(name, separateImages, slidesAsImages, folder, storage); return resp.getData(); } catch (ApiException ex) @@ -13767,7 +15094,7 @@ public File getPdfInStorageToLaTeX(String name, Integer pagesCount, String folde if (ex.getCode() == 401) { apiClient.refreshToken(); - ApiResponse resp = getPdfInStorageToLaTeXWithHttpInfo(name, pagesCount, folder, storage); + ApiResponse resp = getPdfInStorageToPptxWithHttpInfo(name, separateImages, slidesAsImages, folder, storage); return resp.getData(); } throw ex; @@ -13775,33 +15102,35 @@ public File getPdfInStorageToLaTeX(String name, Integer pagesCount, String folde } /** - * Converts PDF document (located on storage) to LaTeX format and returns resulting file in response content + * Converts PDF document (located on storage) to PPTX format and returns resulting file in response content * * @param name The document name. (required) - * @param pagesCount Pages count. (optional) + * @param separateImages Separate images. (optional) + * @param slidesAsImages Slides as images. (optional) * @param folder The document folder. (optional) * @param storage The document storage. (optional) * @return ApiResponse<File> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse getPdfInStorageToLaTeXWithHttpInfo(String name, Integer pagesCount, String folder, String storage) throws ApiException { - com.squareup.okhttp.Call call = getPdfInStorageToLaTeXValidateBeforeCall(name, pagesCount, folder, storage, null, null); + public ApiResponse getPdfInStorageToPptxWithHttpInfo(String name, Boolean separateImages, Boolean slidesAsImages, String folder, String storage) throws ApiException { + com.squareup.okhttp.Call call = getPdfInStorageToPptxValidateBeforeCall(name, separateImages, slidesAsImages, folder, storage, null, null); Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Converts PDF document (located on storage) to LaTeX format and returns resulting file in response content (asynchronously) + * Converts PDF document (located on storage) to PPTX format and returns resulting file in response content (asynchronously) * * @param name The document name. (required) - * @param pagesCount Pages count. (optional) + * @param separateImages Separate images. (optional) + * @param slidesAsImages Slides as images. (optional) * @param folder The document folder. (optional) * @param storage The document storage. (optional) * @param callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call getPdfInStorageToLaTeXAsync(String name, Integer pagesCount, String folder, String storage, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call getPdfInStorageToPptxAsync(String name, Boolean separateImages, Boolean slidesAsImages, String folder, String storage, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -13822,14 +15151,15 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = getPdfInStorageToLaTeXValidateBeforeCall(name, pagesCount, folder, storage, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getPdfInStorageToPptxValidateBeforeCall(name, separateImages, slidesAsImages, folder, storage, progressListener, progressRequestListener); Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for getPdfInStorageToMobiXml + * Build call for getPdfInStorageToSvg * @param name The document name. (required) + * @param compressOutputToZipArchive Specifies whether output will be created as one zip-archive. (optional) * @param folder The document folder. (optional) * @param storage The document storage. (optional) * @param progressListener Progress listener @@ -13837,15 +15167,17 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call getPdfInStorageToMobiXmlCall(String name, String folder, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call getPdfInStorageToSvgCall(String name, Boolean compressOutputToZipArchive, String folder, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; // create path and map variables - String localVarPath = "/pdf/{name}/convert/mobixml" + String localVarPath = "/pdf/{name}/convert/svg" .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + if (compressOutputToZipArchive != null) + localVarQueryParams.addAll(apiClient.parameterToPair("compressOutputToZipArchive", compressOutputToZipArchive)); if (folder != null) localVarQueryParams.addAll(apiClient.parameterToPair("folder", folder)); if (storage != null) @@ -13884,32 +15216,33 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getPdfInStorageToMobiXmlValidateBeforeCall(String name, String folder, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call getPdfInStorageToSvgValidateBeforeCall(String name, Boolean compressOutputToZipArchive, String folder, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { // verify the required parameter 'name' is set if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling getPdfInStorageToMobiXml(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling getPdfInStorageToSvg(Async)"); } - com.squareup.okhttp.Call call = getPdfInStorageToMobiXmlCall(name, folder, storage, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getPdfInStorageToSvgCall(name, compressOutputToZipArchive, folder, storage, progressListener, progressRequestListener); return call; } /** - * Converts PDF document (located on storage) to MOBIXML format and returns resulting file in response content + * Converts PDF document (located on storage) to SVG format and returns resulting file in response content * * @param name The document name. (required) + * @param compressOutputToZipArchive Specifies whether output will be created as one zip-archive. (optional) * @param folder The document folder. (optional) * @param storage The document storage. (optional) * @return File * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public File getPdfInStorageToMobiXml(String name, String folder, String storage) throws ApiException { + public File getPdfInStorageToSvg(String name, Boolean compressOutputToZipArchive, String folder, String storage) throws ApiException { try { - ApiResponse resp = getPdfInStorageToMobiXmlWithHttpInfo(name, folder, storage); + ApiResponse resp = getPdfInStorageToSvgWithHttpInfo(name, compressOutputToZipArchive, folder, storage); return resp.getData(); } catch (ApiException ex) @@ -13917,7 +15250,7 @@ public File getPdfInStorageToMobiXml(String name, String folder, String storage) if (ex.getCode() == 401) { apiClient.refreshToken(); - ApiResponse resp = getPdfInStorageToMobiXmlWithHttpInfo(name, folder, storage); + ApiResponse resp = getPdfInStorageToSvgWithHttpInfo(name, compressOutputToZipArchive, folder, storage); return resp.getData(); } throw ex; @@ -13925,31 +15258,33 @@ public File getPdfInStorageToMobiXml(String name, String folder, String storage) } /** - * Converts PDF document (located on storage) to MOBIXML format and returns resulting file in response content + * Converts PDF document (located on storage) to SVG format and returns resulting file in response content * * @param name The document name. (required) + * @param compressOutputToZipArchive Specifies whether output will be created as one zip-archive. (optional) * @param folder The document folder. (optional) * @param storage The document storage. (optional) * @return ApiResponse<File> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse getPdfInStorageToMobiXmlWithHttpInfo(String name, String folder, String storage) throws ApiException { - com.squareup.okhttp.Call call = getPdfInStorageToMobiXmlValidateBeforeCall(name, folder, storage, null, null); + public ApiResponse getPdfInStorageToSvgWithHttpInfo(String name, Boolean compressOutputToZipArchive, String folder, String storage) throws ApiException { + com.squareup.okhttp.Call call = getPdfInStorageToSvgValidateBeforeCall(name, compressOutputToZipArchive, folder, storage, null, null); Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Converts PDF document (located on storage) to MOBIXML format and returns resulting file in response content (asynchronously) + * Converts PDF document (located on storage) to SVG format and returns resulting file in response content (asynchronously) * * @param name The document name. (required) + * @param compressOutputToZipArchive Specifies whether output will be created as one zip-archive. (optional) * @param folder The document folder. (optional) * @param storage The document storage. (optional) * @param callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call getPdfInStorageToMobiXmlAsync(String name, String folder, String storage, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call getPdfInStorageToSvgAsync(String name, Boolean compressOutputToZipArchive, String folder, String storage, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -13970,15 +15305,29 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = getPdfInStorageToMobiXmlValidateBeforeCall(name, folder, storage, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getPdfInStorageToSvgValidateBeforeCall(name, compressOutputToZipArchive, folder, storage, progressListener, progressRequestListener); Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for getPdfInStorageToPdfA + * Build call for getPdfInStorageToTiff * @param name The document name. (required) - * @param type Type of PdfA format. (required) + * @param brightness Image brightness. (optional) + * @param compression Tiff compression. Possible values are: LZW, CCITT4, CCITT3, RLE, None. (optional) + * @param colorDepth Image color depth. Possible valuse are: Default, Format8bpp, Format4bpp, Format1bpp. (optional) + * @param leftMargin Left image margin. (optional) + * @param rightMargin Right image margin. (optional) + * @param topMargin Top image margin. (optional) + * @param bottomMargin Bottom image margin. (optional) + * @param orientation Image orientation. Possible values are: None, Landscape, Portait. (optional) + * @param skipBlankPages Skip blank pages flag. (optional) + * @param width Image width. (optional) + * @param height Image height. (optional) + * @param xResolution Horizontal resolution. (optional) + * @param yResolution Vertical resolution. (optional) + * @param pageIndex Start page to export. (optional) + * @param pageCount Number of pages to export. (optional) * @param folder The document folder. (optional) * @param storage The document storage. (optional) * @param progressListener Progress listener @@ -13986,17 +15335,45 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call getPdfInStorageToPdfACall(String name, String type, String folder, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call getPdfInStorageToTiffCall(String name, Double brightness, String compression, String colorDepth, Integer leftMargin, Integer rightMargin, Integer topMargin, Integer bottomMargin, String orientation, Boolean skipBlankPages, Integer width, Integer height, Integer xResolution, Integer yResolution, Integer pageIndex, Integer pageCount, String folder, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; // create path and map variables - String localVarPath = "/pdf/{name}/convert/pdfa" + String localVarPath = "/pdf/{name}/convert/tiff" .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (type != null) - localVarQueryParams.addAll(apiClient.parameterToPair("type", type)); + if (brightness != null) + localVarQueryParams.addAll(apiClient.parameterToPair("brightness", brightness)); + if (compression != null) + localVarQueryParams.addAll(apiClient.parameterToPair("compression", compression)); + if (colorDepth != null) + localVarQueryParams.addAll(apiClient.parameterToPair("colorDepth", colorDepth)); + if (leftMargin != null) + localVarQueryParams.addAll(apiClient.parameterToPair("leftMargin", leftMargin)); + if (rightMargin != null) + localVarQueryParams.addAll(apiClient.parameterToPair("rightMargin", rightMargin)); + if (topMargin != null) + localVarQueryParams.addAll(apiClient.parameterToPair("topMargin", topMargin)); + if (bottomMargin != null) + localVarQueryParams.addAll(apiClient.parameterToPair("bottomMargin", bottomMargin)); + if (orientation != null) + localVarQueryParams.addAll(apiClient.parameterToPair("orientation", orientation)); + if (skipBlankPages != null) + localVarQueryParams.addAll(apiClient.parameterToPair("skipBlankPages", skipBlankPages)); + if (width != null) + localVarQueryParams.addAll(apiClient.parameterToPair("width", width)); + if (height != null) + localVarQueryParams.addAll(apiClient.parameterToPair("height", height)); + if (xResolution != null) + localVarQueryParams.addAll(apiClient.parameterToPair("xResolution", xResolution)); + if (yResolution != null) + localVarQueryParams.addAll(apiClient.parameterToPair("yResolution", yResolution)); + if (pageIndex != null) + localVarQueryParams.addAll(apiClient.parameterToPair("pageIndex", pageIndex)); + if (pageCount != null) + localVarQueryParams.addAll(apiClient.parameterToPair("pageCount", pageCount)); if (folder != null) localVarQueryParams.addAll(apiClient.parameterToPair("folder", folder)); if (storage != null) @@ -14035,38 +15412,47 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getPdfInStorageToPdfAValidateBeforeCall(String name, String type, String folder, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call getPdfInStorageToTiffValidateBeforeCall(String name, Double brightness, String compression, String colorDepth, Integer leftMargin, Integer rightMargin, Integer topMargin, Integer bottomMargin, String orientation, Boolean skipBlankPages, Integer width, Integer height, Integer xResolution, Integer yResolution, Integer pageIndex, Integer pageCount, String folder, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { // verify the required parameter 'name' is set if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling getPdfInStorageToPdfA(Async)"); - } - - // verify the required parameter 'type' is set - if (type == null) { - throw new ApiException("Missing the required parameter 'type' when calling getPdfInStorageToPdfA(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling getPdfInStorageToTiff(Async)"); } - com.squareup.okhttp.Call call = getPdfInStorageToPdfACall(name, type, folder, storage, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getPdfInStorageToTiffCall(name, brightness, compression, colorDepth, leftMargin, rightMargin, topMargin, bottomMargin, orientation, skipBlankPages, width, height, xResolution, yResolution, pageIndex, pageCount, folder, storage, progressListener, progressRequestListener); return call; } /** - * Converts PDF document (located on storage) to PdfA format and returns resulting file in response content + * Converts PDF document (located on storage) to TIFF format and returns resulting file in response content * * @param name The document name. (required) - * @param type Type of PdfA format. (required) + * @param brightness Image brightness. (optional) + * @param compression Tiff compression. Possible values are: LZW, CCITT4, CCITT3, RLE, None. (optional) + * @param colorDepth Image color depth. Possible valuse are: Default, Format8bpp, Format4bpp, Format1bpp. (optional) + * @param leftMargin Left image margin. (optional) + * @param rightMargin Right image margin. (optional) + * @param topMargin Top image margin. (optional) + * @param bottomMargin Bottom image margin. (optional) + * @param orientation Image orientation. Possible values are: None, Landscape, Portait. (optional) + * @param skipBlankPages Skip blank pages flag. (optional) + * @param width Image width. (optional) + * @param height Image height. (optional) + * @param xResolution Horizontal resolution. (optional) + * @param yResolution Vertical resolution. (optional) + * @param pageIndex Start page to export. (optional) + * @param pageCount Number of pages to export. (optional) * @param folder The document folder. (optional) * @param storage The document storage. (optional) * @return File * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public File getPdfInStorageToPdfA(String name, String type, String folder, String storage) throws ApiException { + public File getPdfInStorageToTiff(String name, Double brightness, String compression, String colorDepth, Integer leftMargin, Integer rightMargin, Integer topMargin, Integer bottomMargin, String orientation, Boolean skipBlankPages, Integer width, Integer height, Integer xResolution, Integer yResolution, Integer pageIndex, Integer pageCount, String folder, String storage) throws ApiException { try { - ApiResponse resp = getPdfInStorageToPdfAWithHttpInfo(name, type, folder, storage); + ApiResponse resp = getPdfInStorageToTiffWithHttpInfo(name, brightness, compression, colorDepth, leftMargin, rightMargin, topMargin, bottomMargin, orientation, skipBlankPages, width, height, xResolution, yResolution, pageIndex, pageCount, folder, storage); return resp.getData(); } catch (ApiException ex) @@ -14074,7 +15460,7 @@ public File getPdfInStorageToPdfA(String name, String type, String folder, Strin if (ex.getCode() == 401) { apiClient.refreshToken(); - ApiResponse resp = getPdfInStorageToPdfAWithHttpInfo(name, type, folder, storage); + ApiResponse resp = getPdfInStorageToTiffWithHttpInfo(name, brightness, compression, colorDepth, leftMargin, rightMargin, topMargin, bottomMargin, orientation, skipBlankPages, width, height, xResolution, yResolution, pageIndex, pageCount, folder, storage); return resp.getData(); } throw ex; @@ -14082,33 +15468,61 @@ public File getPdfInStorageToPdfA(String name, String type, String folder, Strin } /** - * Converts PDF document (located on storage) to PdfA format and returns resulting file in response content + * Converts PDF document (located on storage) to TIFF format and returns resulting file in response content * * @param name The document name. (required) - * @param type Type of PdfA format. (required) + * @param brightness Image brightness. (optional) + * @param compression Tiff compression. Possible values are: LZW, CCITT4, CCITT3, RLE, None. (optional) + * @param colorDepth Image color depth. Possible valuse are: Default, Format8bpp, Format4bpp, Format1bpp. (optional) + * @param leftMargin Left image margin. (optional) + * @param rightMargin Right image margin. (optional) + * @param topMargin Top image margin. (optional) + * @param bottomMargin Bottom image margin. (optional) + * @param orientation Image orientation. Possible values are: None, Landscape, Portait. (optional) + * @param skipBlankPages Skip blank pages flag. (optional) + * @param width Image width. (optional) + * @param height Image height. (optional) + * @param xResolution Horizontal resolution. (optional) + * @param yResolution Vertical resolution. (optional) + * @param pageIndex Start page to export. (optional) + * @param pageCount Number of pages to export. (optional) * @param folder The document folder. (optional) * @param storage The document storage. (optional) * @return ApiResponse<File> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse getPdfInStorageToPdfAWithHttpInfo(String name, String type, String folder, String storage) throws ApiException { - com.squareup.okhttp.Call call = getPdfInStorageToPdfAValidateBeforeCall(name, type, folder, storage, null, null); + public ApiResponse getPdfInStorageToTiffWithHttpInfo(String name, Double brightness, String compression, String colorDepth, Integer leftMargin, Integer rightMargin, Integer topMargin, Integer bottomMargin, String orientation, Boolean skipBlankPages, Integer width, Integer height, Integer xResolution, Integer yResolution, Integer pageIndex, Integer pageCount, String folder, String storage) throws ApiException { + com.squareup.okhttp.Call call = getPdfInStorageToTiffValidateBeforeCall(name, brightness, compression, colorDepth, leftMargin, rightMargin, topMargin, bottomMargin, orientation, skipBlankPages, width, height, xResolution, yResolution, pageIndex, pageCount, folder, storage, null, null); Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Converts PDF document (located on storage) to PdfA format and returns resulting file in response content (asynchronously) + * Converts PDF document (located on storage) to TIFF format and returns resulting file in response content (asynchronously) * * @param name The document name. (required) - * @param type Type of PdfA format. (required) + * @param brightness Image brightness. (optional) + * @param compression Tiff compression. Possible values are: LZW, CCITT4, CCITT3, RLE, None. (optional) + * @param colorDepth Image color depth. Possible valuse are: Default, Format8bpp, Format4bpp, Format1bpp. (optional) + * @param leftMargin Left image margin. (optional) + * @param rightMargin Right image margin. (optional) + * @param topMargin Top image margin. (optional) + * @param bottomMargin Bottom image margin. (optional) + * @param orientation Image orientation. Possible values are: None, Landscape, Portait. (optional) + * @param skipBlankPages Skip blank pages flag. (optional) + * @param width Image width. (optional) + * @param height Image height. (optional) + * @param xResolution Horizontal resolution. (optional) + * @param yResolution Vertical resolution. (optional) + * @param pageIndex Start page to export. (optional) + * @param pageCount Number of pages to export. (optional) * @param folder The document folder. (optional) * @param storage The document storage. (optional) * @param callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call getPdfInStorageToPdfAAsync(String name, String type, String folder, String storage, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call getPdfInStorageToTiffAsync(String name, Double brightness, String compression, String colorDepth, Integer leftMargin, Integer rightMargin, Integer topMargin, Integer bottomMargin, String orientation, Boolean skipBlankPages, Integer width, Integer height, Integer xResolution, Integer yResolution, Integer pageIndex, Integer pageCount, String folder, String storage, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -14129,16 +15543,18 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = getPdfInStorageToPdfAValidateBeforeCall(name, type, folder, storage, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getPdfInStorageToTiffValidateBeforeCall(name, brightness, compression, colorDepth, leftMargin, rightMargin, topMargin, bottomMargin, orientation, skipBlankPages, width, height, xResolution, yResolution, pageIndex, pageCount, folder, storage, progressListener, progressRequestListener); Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for getPdfInStorageToPptx + * Build call for getPdfInStorageToXls * @param name The document name. (required) - * @param separateImages Separate images. (optional) - * @param slidesAsImages Slides as images. (optional) + * @param insertBlankColumnAtFirst Insert blank column at first (optional) + * @param minimizeTheNumberOfWorksheets Minimize the number of worksheets (optional) + * @param scaleFactor Scale factor (optional) + * @param uniformWorksheets Uniform worksheets (optional) * @param folder The document folder. (optional) * @param storage The document storage. (optional) * @param progressListener Progress listener @@ -14146,19 +15562,23 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call getPdfInStorageToPptxCall(String name, Boolean separateImages, Boolean slidesAsImages, String folder, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call getPdfInStorageToXlsCall(String name, Boolean insertBlankColumnAtFirst, Boolean minimizeTheNumberOfWorksheets, Double scaleFactor, Boolean uniformWorksheets, String folder, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; // create path and map variables - String localVarPath = "/pdf/{name}/convert/pptx" + String localVarPath = "/pdf/{name}/convert/xls" .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (separateImages != null) - localVarQueryParams.addAll(apiClient.parameterToPair("separateImages", separateImages)); - if (slidesAsImages != null) - localVarQueryParams.addAll(apiClient.parameterToPair("slidesAsImages", slidesAsImages)); + if (insertBlankColumnAtFirst != null) + localVarQueryParams.addAll(apiClient.parameterToPair("insertBlankColumnAtFirst", insertBlankColumnAtFirst)); + if (minimizeTheNumberOfWorksheets != null) + localVarQueryParams.addAll(apiClient.parameterToPair("minimizeTheNumberOfWorksheets", minimizeTheNumberOfWorksheets)); + if (scaleFactor != null) + localVarQueryParams.addAll(apiClient.parameterToPair("scaleFactor", scaleFactor)); + if (uniformWorksheets != null) + localVarQueryParams.addAll(apiClient.parameterToPair("uniformWorksheets", uniformWorksheets)); if (folder != null) localVarQueryParams.addAll(apiClient.parameterToPair("folder", folder)); if (storage != null) @@ -14197,34 +15617,36 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getPdfInStorageToPptxValidateBeforeCall(String name, Boolean separateImages, Boolean slidesAsImages, String folder, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call getPdfInStorageToXlsValidateBeforeCall(String name, Boolean insertBlankColumnAtFirst, Boolean minimizeTheNumberOfWorksheets, Double scaleFactor, Boolean uniformWorksheets, String folder, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { // verify the required parameter 'name' is set if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling getPdfInStorageToPptx(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling getPdfInStorageToXls(Async)"); } - com.squareup.okhttp.Call call = getPdfInStorageToPptxCall(name, separateImages, slidesAsImages, folder, storage, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getPdfInStorageToXlsCall(name, insertBlankColumnAtFirst, minimizeTheNumberOfWorksheets, scaleFactor, uniformWorksheets, folder, storage, progressListener, progressRequestListener); return call; } /** - * Converts PDF document (located on storage) to PPTX format and returns resulting file in response content + * Converts PDF document (located on storage) to XLS format and returns resulting file in response content * * @param name The document name. (required) - * @param separateImages Separate images. (optional) - * @param slidesAsImages Slides as images. (optional) + * @param insertBlankColumnAtFirst Insert blank column at first (optional) + * @param minimizeTheNumberOfWorksheets Minimize the number of worksheets (optional) + * @param scaleFactor Scale factor (optional) + * @param uniformWorksheets Uniform worksheets (optional) * @param folder The document folder. (optional) * @param storage The document storage. (optional) * @return File * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public File getPdfInStorageToPptx(String name, Boolean separateImages, Boolean slidesAsImages, String folder, String storage) throws ApiException { + public File getPdfInStorageToXls(String name, Boolean insertBlankColumnAtFirst, Boolean minimizeTheNumberOfWorksheets, Double scaleFactor, Boolean uniformWorksheets, String folder, String storage) throws ApiException { try { - ApiResponse resp = getPdfInStorageToPptxWithHttpInfo(name, separateImages, slidesAsImages, folder, storage); + ApiResponse resp = getPdfInStorageToXlsWithHttpInfo(name, insertBlankColumnAtFirst, minimizeTheNumberOfWorksheets, scaleFactor, uniformWorksheets, folder, storage); return resp.getData(); } catch (ApiException ex) @@ -14232,7 +15654,7 @@ public File getPdfInStorageToPptx(String name, Boolean separateImages, Boolean s if (ex.getCode() == 401) { apiClient.refreshToken(); - ApiResponse resp = getPdfInStorageToPptxWithHttpInfo(name, separateImages, slidesAsImages, folder, storage); + ApiResponse resp = getPdfInStorageToXlsWithHttpInfo(name, insertBlankColumnAtFirst, minimizeTheNumberOfWorksheets, scaleFactor, uniformWorksheets, folder, storage); return resp.getData(); } throw ex; @@ -14240,35 +15662,39 @@ public File getPdfInStorageToPptx(String name, Boolean separateImages, Boolean s } /** - * Converts PDF document (located on storage) to PPTX format and returns resulting file in response content + * Converts PDF document (located on storage) to XLS format and returns resulting file in response content * * @param name The document name. (required) - * @param separateImages Separate images. (optional) - * @param slidesAsImages Slides as images. (optional) + * @param insertBlankColumnAtFirst Insert blank column at first (optional) + * @param minimizeTheNumberOfWorksheets Minimize the number of worksheets (optional) + * @param scaleFactor Scale factor (optional) + * @param uniformWorksheets Uniform worksheets (optional) * @param folder The document folder. (optional) * @param storage The document storage. (optional) * @return ApiResponse<File> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse getPdfInStorageToPptxWithHttpInfo(String name, Boolean separateImages, Boolean slidesAsImages, String folder, String storage) throws ApiException { - com.squareup.okhttp.Call call = getPdfInStorageToPptxValidateBeforeCall(name, separateImages, slidesAsImages, folder, storage, null, null); + public ApiResponse getPdfInStorageToXlsWithHttpInfo(String name, Boolean insertBlankColumnAtFirst, Boolean minimizeTheNumberOfWorksheets, Double scaleFactor, Boolean uniformWorksheets, String folder, String storage) throws ApiException { + com.squareup.okhttp.Call call = getPdfInStorageToXlsValidateBeforeCall(name, insertBlankColumnAtFirst, minimizeTheNumberOfWorksheets, scaleFactor, uniformWorksheets, folder, storage, null, null); Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Converts PDF document (located on storage) to PPTX format and returns resulting file in response content (asynchronously) + * Converts PDF document (located on storage) to XLS format and returns resulting file in response content (asynchronously) * * @param name The document name. (required) - * @param separateImages Separate images. (optional) - * @param slidesAsImages Slides as images. (optional) + * @param insertBlankColumnAtFirst Insert blank column at first (optional) + * @param minimizeTheNumberOfWorksheets Minimize the number of worksheets (optional) + * @param scaleFactor Scale factor (optional) + * @param uniformWorksheets Uniform worksheets (optional) * @param folder The document folder. (optional) * @param storage The document storage. (optional) * @param callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call getPdfInStorageToPptxAsync(String name, Boolean separateImages, Boolean slidesAsImages, String folder, String storage, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call getPdfInStorageToXlsAsync(String name, Boolean insertBlankColumnAtFirst, Boolean minimizeTheNumberOfWorksheets, Double scaleFactor, Boolean uniformWorksheets, String folder, String storage, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -14289,15 +15715,14 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = getPdfInStorageToPptxValidateBeforeCall(name, separateImages, slidesAsImages, folder, storage, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getPdfInStorageToXlsValidateBeforeCall(name, insertBlankColumnAtFirst, minimizeTheNumberOfWorksheets, scaleFactor, uniformWorksheets, folder, storage, progressListener, progressRequestListener); Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for getPdfInStorageToSvg + * Build call for getPdfInStorageToXml * @param name The document name. (required) - * @param compressOutputToZipArchive Specifies whether output will be created as one zip-archive. (optional) * @param folder The document folder. (optional) * @param storage The document storage. (optional) * @param progressListener Progress listener @@ -14305,17 +15730,15 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call getPdfInStorageToSvgCall(String name, Boolean compressOutputToZipArchive, String folder, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call getPdfInStorageToXmlCall(String name, String folder, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; // create path and map variables - String localVarPath = "/pdf/{name}/convert/svg" + String localVarPath = "/pdf/{name}/convert/xml" .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (compressOutputToZipArchive != null) - localVarQueryParams.addAll(apiClient.parameterToPair("compressOutputToZipArchive", compressOutputToZipArchive)); if (folder != null) localVarQueryParams.addAll(apiClient.parameterToPair("folder", folder)); if (storage != null) @@ -14354,33 +15777,32 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getPdfInStorageToSvgValidateBeforeCall(String name, Boolean compressOutputToZipArchive, String folder, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call getPdfInStorageToXmlValidateBeforeCall(String name, String folder, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { // verify the required parameter 'name' is set if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling getPdfInStorageToSvg(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling getPdfInStorageToXml(Async)"); } - com.squareup.okhttp.Call call = getPdfInStorageToSvgCall(name, compressOutputToZipArchive, folder, storage, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getPdfInStorageToXmlCall(name, folder, storage, progressListener, progressRequestListener); return call; } /** - * Converts PDF document (located on storage) to SVG format and returns resulting file in response content + * Converts PDF document (located on storage) to XML format and returns resulting file in response content * * @param name The document name. (required) - * @param compressOutputToZipArchive Specifies whether output will be created as one zip-archive. (optional) * @param folder The document folder. (optional) * @param storage The document storage. (optional) * @return File * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public File getPdfInStorageToSvg(String name, Boolean compressOutputToZipArchive, String folder, String storage) throws ApiException { + public File getPdfInStorageToXml(String name, String folder, String storage) throws ApiException { try { - ApiResponse resp = getPdfInStorageToSvgWithHttpInfo(name, compressOutputToZipArchive, folder, storage); + ApiResponse resp = getPdfInStorageToXmlWithHttpInfo(name, folder, storage); return resp.getData(); } catch (ApiException ex) @@ -14388,7 +15810,7 @@ public File getPdfInStorageToSvg(String name, Boolean compressOutputToZipArchive if (ex.getCode() == 401) { apiClient.refreshToken(); - ApiResponse resp = getPdfInStorageToSvgWithHttpInfo(name, compressOutputToZipArchive, folder, storage); + ApiResponse resp = getPdfInStorageToXmlWithHttpInfo(name, folder, storage); return resp.getData(); } throw ex; @@ -14396,33 +15818,31 @@ public File getPdfInStorageToSvg(String name, Boolean compressOutputToZipArchive } /** - * Converts PDF document (located on storage) to SVG format and returns resulting file in response content + * Converts PDF document (located on storage) to XML format and returns resulting file in response content * * @param name The document name. (required) - * @param compressOutputToZipArchive Specifies whether output will be created as one zip-archive. (optional) * @param folder The document folder. (optional) * @param storage The document storage. (optional) * @return ApiResponse<File> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse getPdfInStorageToSvgWithHttpInfo(String name, Boolean compressOutputToZipArchive, String folder, String storage) throws ApiException { - com.squareup.okhttp.Call call = getPdfInStorageToSvgValidateBeforeCall(name, compressOutputToZipArchive, folder, storage, null, null); + public ApiResponse getPdfInStorageToXmlWithHttpInfo(String name, String folder, String storage) throws ApiException { + com.squareup.okhttp.Call call = getPdfInStorageToXmlValidateBeforeCall(name, folder, storage, null, null); Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Converts PDF document (located on storage) to SVG format and returns resulting file in response content (asynchronously) + * Converts PDF document (located on storage) to XML format and returns resulting file in response content (asynchronously) * * @param name The document name. (required) - * @param compressOutputToZipArchive Specifies whether output will be created as one zip-archive. (optional) * @param folder The document folder. (optional) * @param storage The document storage. (optional) * @param callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call getPdfInStorageToSvgAsync(String name, Boolean compressOutputToZipArchive, String folder, String storage, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call getPdfInStorageToXmlAsync(String name, String folder, String storage, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -14443,29 +15863,14 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = getPdfInStorageToSvgValidateBeforeCall(name, compressOutputToZipArchive, folder, storage, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getPdfInStorageToXmlValidateBeforeCall(name, folder, storage, progressListener, progressRequestListener); Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for getPdfInStorageToTiff + * Build call for getPdfInStorageToXps * @param name The document name. (required) - * @param brightness Image brightness. (optional) - * @param compression Tiff compression. Possible values are: LZW, CCITT4, CCITT3, RLE, None. (optional) - * @param colorDepth Image color depth. Possible valuse are: Default, Format8bpp, Format4bpp, Format1bpp. (optional) - * @param leftMargin Left image margin. (optional) - * @param rightMargin Right image margin. (optional) - * @param topMargin Top image margin. (optional) - * @param bottomMargin Bottom image margin. (optional) - * @param orientation Image orientation. Possible values are: None, Landscape, Portait. (optional) - * @param skipBlankPages Skip blank pages flag. (optional) - * @param width Image width. (optional) - * @param height Image height. (optional) - * @param xResolution Horizontal resolution. (optional) - * @param yResolution Vertical resolution. (optional) - * @param pageIndex Start page to export. (optional) - * @param pageCount Number of pages to export. (optional) * @param folder The document folder. (optional) * @param storage The document storage. (optional) * @param progressListener Progress listener @@ -14473,45 +15878,15 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call getPdfInStorageToTiffCall(String name, Double brightness, String compression, String colorDepth, Integer leftMargin, Integer rightMargin, Integer topMargin, Integer bottomMargin, String orientation, Boolean skipBlankPages, Integer width, Integer height, Integer xResolution, Integer yResolution, Integer pageIndex, Integer pageCount, String folder, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call getPdfInStorageToXpsCall(String name, String folder, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; // create path and map variables - String localVarPath = "/pdf/{name}/convert/tiff" + String localVarPath = "/pdf/{name}/convert/xps" .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (brightness != null) - localVarQueryParams.addAll(apiClient.parameterToPair("brightness", brightness)); - if (compression != null) - localVarQueryParams.addAll(apiClient.parameterToPair("compression", compression)); - if (colorDepth != null) - localVarQueryParams.addAll(apiClient.parameterToPair("colorDepth", colorDepth)); - if (leftMargin != null) - localVarQueryParams.addAll(apiClient.parameterToPair("leftMargin", leftMargin)); - if (rightMargin != null) - localVarQueryParams.addAll(apiClient.parameterToPair("rightMargin", rightMargin)); - if (topMargin != null) - localVarQueryParams.addAll(apiClient.parameterToPair("topMargin", topMargin)); - if (bottomMargin != null) - localVarQueryParams.addAll(apiClient.parameterToPair("bottomMargin", bottomMargin)); - if (orientation != null) - localVarQueryParams.addAll(apiClient.parameterToPair("orientation", orientation)); - if (skipBlankPages != null) - localVarQueryParams.addAll(apiClient.parameterToPair("skipBlankPages", skipBlankPages)); - if (width != null) - localVarQueryParams.addAll(apiClient.parameterToPair("width", width)); - if (height != null) - localVarQueryParams.addAll(apiClient.parameterToPair("height", height)); - if (xResolution != null) - localVarQueryParams.addAll(apiClient.parameterToPair("xResolution", xResolution)); - if (yResolution != null) - localVarQueryParams.addAll(apiClient.parameterToPair("yResolution", yResolution)); - if (pageIndex != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pageIndex", pageIndex)); - if (pageCount != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pageCount", pageCount)); if (folder != null) localVarQueryParams.addAll(apiClient.parameterToPair("folder", folder)); if (storage != null) @@ -14550,47 +15925,32 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getPdfInStorageToTiffValidateBeforeCall(String name, Double brightness, String compression, String colorDepth, Integer leftMargin, Integer rightMargin, Integer topMargin, Integer bottomMargin, String orientation, Boolean skipBlankPages, Integer width, Integer height, Integer xResolution, Integer yResolution, Integer pageIndex, Integer pageCount, String folder, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call getPdfInStorageToXpsValidateBeforeCall(String name, String folder, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { // verify the required parameter 'name' is set if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling getPdfInStorageToTiff(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling getPdfInStorageToXps(Async)"); } - com.squareup.okhttp.Call call = getPdfInStorageToTiffCall(name, brightness, compression, colorDepth, leftMargin, rightMargin, topMargin, bottomMargin, orientation, skipBlankPages, width, height, xResolution, yResolution, pageIndex, pageCount, folder, storage, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getPdfInStorageToXpsCall(name, folder, storage, progressListener, progressRequestListener); return call; } /** - * Converts PDF document (located on storage) to TIFF format and returns resulting file in response content + * Converts PDF document (located on storage) to XPS format and returns resulting file in response content * * @param name The document name. (required) - * @param brightness Image brightness. (optional) - * @param compression Tiff compression. Possible values are: LZW, CCITT4, CCITT3, RLE, None. (optional) - * @param colorDepth Image color depth. Possible valuse are: Default, Format8bpp, Format4bpp, Format1bpp. (optional) - * @param leftMargin Left image margin. (optional) - * @param rightMargin Right image margin. (optional) - * @param topMargin Top image margin. (optional) - * @param bottomMargin Bottom image margin. (optional) - * @param orientation Image orientation. Possible values are: None, Landscape, Portait. (optional) - * @param skipBlankPages Skip blank pages flag. (optional) - * @param width Image width. (optional) - * @param height Image height. (optional) - * @param xResolution Horizontal resolution. (optional) - * @param yResolution Vertical resolution. (optional) - * @param pageIndex Start page to export. (optional) - * @param pageCount Number of pages to export. (optional) * @param folder The document folder. (optional) * @param storage The document storage. (optional) * @return File * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public File getPdfInStorageToTiff(String name, Double brightness, String compression, String colorDepth, Integer leftMargin, Integer rightMargin, Integer topMargin, Integer bottomMargin, String orientation, Boolean skipBlankPages, Integer width, Integer height, Integer xResolution, Integer yResolution, Integer pageIndex, Integer pageCount, String folder, String storage) throws ApiException { + public File getPdfInStorageToXps(String name, String folder, String storage) throws ApiException { try { - ApiResponse resp = getPdfInStorageToTiffWithHttpInfo(name, brightness, compression, colorDepth, leftMargin, rightMargin, topMargin, bottomMargin, orientation, skipBlankPages, width, height, xResolution, yResolution, pageIndex, pageCount, folder, storage); + ApiResponse resp = getPdfInStorageToXpsWithHttpInfo(name, folder, storage); return resp.getData(); } catch (ApiException ex) @@ -14598,7 +15958,7 @@ public File getPdfInStorageToTiff(String name, Double brightness, String compres if (ex.getCode() == 401) { apiClient.refreshToken(); - ApiResponse resp = getPdfInStorageToTiffWithHttpInfo(name, brightness, compression, colorDepth, leftMargin, rightMargin, topMargin, bottomMargin, orientation, skipBlankPages, width, height, xResolution, yResolution, pageIndex, pageCount, folder, storage); + ApiResponse resp = getPdfInStorageToXpsWithHttpInfo(name, folder, storage); return resp.getData(); } throw ex; @@ -14606,61 +15966,31 @@ public File getPdfInStorageToTiff(String name, Double brightness, String compres } /** - * Converts PDF document (located on storage) to TIFF format and returns resulting file in response content + * Converts PDF document (located on storage) to XPS format and returns resulting file in response content * * @param name The document name. (required) - * @param brightness Image brightness. (optional) - * @param compression Tiff compression. Possible values are: LZW, CCITT4, CCITT3, RLE, None. (optional) - * @param colorDepth Image color depth. Possible valuse are: Default, Format8bpp, Format4bpp, Format1bpp. (optional) - * @param leftMargin Left image margin. (optional) - * @param rightMargin Right image margin. (optional) - * @param topMargin Top image margin. (optional) - * @param bottomMargin Bottom image margin. (optional) - * @param orientation Image orientation. Possible values are: None, Landscape, Portait. (optional) - * @param skipBlankPages Skip blank pages flag. (optional) - * @param width Image width. (optional) - * @param height Image height. (optional) - * @param xResolution Horizontal resolution. (optional) - * @param yResolution Vertical resolution. (optional) - * @param pageIndex Start page to export. (optional) - * @param pageCount Number of pages to export. (optional) * @param folder The document folder. (optional) * @param storage The document storage. (optional) * @return ApiResponse<File> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse getPdfInStorageToTiffWithHttpInfo(String name, Double brightness, String compression, String colorDepth, Integer leftMargin, Integer rightMargin, Integer topMargin, Integer bottomMargin, String orientation, Boolean skipBlankPages, Integer width, Integer height, Integer xResolution, Integer yResolution, Integer pageIndex, Integer pageCount, String folder, String storage) throws ApiException { - com.squareup.okhttp.Call call = getPdfInStorageToTiffValidateBeforeCall(name, brightness, compression, colorDepth, leftMargin, rightMargin, topMargin, bottomMargin, orientation, skipBlankPages, width, height, xResolution, yResolution, pageIndex, pageCount, folder, storage, null, null); + public ApiResponse getPdfInStorageToXpsWithHttpInfo(String name, String folder, String storage) throws ApiException { + com.squareup.okhttp.Call call = getPdfInStorageToXpsValidateBeforeCall(name, folder, storage, null, null); Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Converts PDF document (located on storage) to TIFF format and returns resulting file in response content (asynchronously) + * Converts PDF document (located on storage) to XPS format and returns resulting file in response content (asynchronously) * * @param name The document name. (required) - * @param brightness Image brightness. (optional) - * @param compression Tiff compression. Possible values are: LZW, CCITT4, CCITT3, RLE, None. (optional) - * @param colorDepth Image color depth. Possible valuse are: Default, Format8bpp, Format4bpp, Format1bpp. (optional) - * @param leftMargin Left image margin. (optional) - * @param rightMargin Right image margin. (optional) - * @param topMargin Top image margin. (optional) - * @param bottomMargin Bottom image margin. (optional) - * @param orientation Image orientation. Possible values are: None, Landscape, Portait. (optional) - * @param skipBlankPages Skip blank pages flag. (optional) - * @param width Image width. (optional) - * @param height Image height. (optional) - * @param xResolution Horizontal resolution. (optional) - * @param yResolution Vertical resolution. (optional) - * @param pageIndex Start page to export. (optional) - * @param pageCount Number of pages to export. (optional) * @param folder The document folder. (optional) * @param storage The document storage. (optional) * @param callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call getPdfInStorageToTiffAsync(String name, Double brightness, String compression, String colorDepth, Integer leftMargin, Integer rightMargin, Integer topMargin, Integer bottomMargin, String orientation, Boolean skipBlankPages, Integer width, Integer height, Integer xResolution, Integer yResolution, Integer pageIndex, Integer pageCount, String folder, String storage, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call getPdfInStorageToXpsAsync(String name, String folder, String storage, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -14681,53 +16011,43 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = getPdfInStorageToTiffValidateBeforeCall(name, brightness, compression, colorDepth, leftMargin, rightMargin, topMargin, bottomMargin, orientation, skipBlankPages, width, height, xResolution, yResolution, pageIndex, pageCount, folder, storage, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getPdfInStorageToXpsValidateBeforeCall(name, folder, storage, progressListener, progressRequestListener); Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for getPdfInStorageToXls + * Build call for getPolyLineAnnotation * @param name The document name. (required) - * @param insertBlankColumnAtFirst Insert blank column at first (optional) - * @param minimizeTheNumberOfWorksheets Minimize the number of worksheets (optional) - * @param scaleFactor Scale factor (optional) - * @param uniformWorksheets Uniform worksheets (optional) - * @param folder The document folder. (optional) + * @param annotationId The annotation ID. (required) * @param storage The document storage. (optional) + * @param folder The document folder. (optional) * @param progressListener Progress listener * @param progressRequestListener Progress request listener * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call getPdfInStorageToXlsCall(String name, Boolean insertBlankColumnAtFirst, Boolean minimizeTheNumberOfWorksheets, Double scaleFactor, Boolean uniformWorksheets, String folder, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call getPolyLineAnnotationCall(String name, String annotationId, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; // create path and map variables - String localVarPath = "/pdf/{name}/convert/xls" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + String localVarPath = "/pdf/{name}/annotations/polyline/{annotationId}" + .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) + .replaceAll("\\{" + "annotationId" + "\\}", apiClient.escapeString(annotationId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (insertBlankColumnAtFirst != null) - localVarQueryParams.addAll(apiClient.parameterToPair("insertBlankColumnAtFirst", insertBlankColumnAtFirst)); - if (minimizeTheNumberOfWorksheets != null) - localVarQueryParams.addAll(apiClient.parameterToPair("minimizeTheNumberOfWorksheets", minimizeTheNumberOfWorksheets)); - if (scaleFactor != null) - localVarQueryParams.addAll(apiClient.parameterToPair("scaleFactor", scaleFactor)); - if (uniformWorksheets != null) - localVarQueryParams.addAll(apiClient.parameterToPair("uniformWorksheets", uniformWorksheets)); - if (folder != null) - localVarQueryParams.addAll(apiClient.parameterToPair("folder", folder)); if (storage != null) localVarQueryParams.addAll(apiClient.parameterToPair("storage", storage)); + if (folder != null) + localVarQueryParams.addAll(apiClient.parameterToPair("folder", folder)); Map localVarHeaderParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "multipart/form-data" + "application/json" }; final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); @@ -14755,36 +16075,38 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getPdfInStorageToXlsValidateBeforeCall(String name, Boolean insertBlankColumnAtFirst, Boolean minimizeTheNumberOfWorksheets, Double scaleFactor, Boolean uniformWorksheets, String folder, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call getPolyLineAnnotationValidateBeforeCall(String name, String annotationId, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { // verify the required parameter 'name' is set if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling getPdfInStorageToXls(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling getPolyLineAnnotation(Async)"); + } + + // verify the required parameter 'annotationId' is set + if (annotationId == null) { + throw new ApiException("Missing the required parameter 'annotationId' when calling getPolyLineAnnotation(Async)"); } - com.squareup.okhttp.Call call = getPdfInStorageToXlsCall(name, insertBlankColumnAtFirst, minimizeTheNumberOfWorksheets, scaleFactor, uniformWorksheets, folder, storage, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getPolyLineAnnotationCall(name, annotationId, storage, folder, progressListener, progressRequestListener); return call; } /** - * Converts PDF document (located on storage) to XLS format and returns resulting file in response content + * Read document page polyline annotation by ID. * * @param name The document name. (required) - * @param insertBlankColumnAtFirst Insert blank column at first (optional) - * @param minimizeTheNumberOfWorksheets Minimize the number of worksheets (optional) - * @param scaleFactor Scale factor (optional) - * @param uniformWorksheets Uniform worksheets (optional) - * @param folder The document folder. (optional) + * @param annotationId The annotation ID. (required) * @param storage The document storage. (optional) - * @return File + * @param folder The document folder. (optional) + * @return PolyLineAnnotationResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public File getPdfInStorageToXls(String name, Boolean insertBlankColumnAtFirst, Boolean minimizeTheNumberOfWorksheets, Double scaleFactor, Boolean uniformWorksheets, String folder, String storage) throws ApiException { + public PolyLineAnnotationResponse getPolyLineAnnotation(String name, String annotationId, String storage, String folder) throws ApiException { try { - ApiResponse resp = getPdfInStorageToXlsWithHttpInfo(name, insertBlankColumnAtFirst, minimizeTheNumberOfWorksheets, scaleFactor, uniformWorksheets, folder, storage); + ApiResponse resp = getPolyLineAnnotationWithHttpInfo(name, annotationId, storage, folder); return resp.getData(); } catch (ApiException ex) @@ -14792,7 +16114,7 @@ public File getPdfInStorageToXls(String name, Boolean insertBlankColumnAtFirst, if (ex.getCode() == 401) { apiClient.refreshToken(); - ApiResponse resp = getPdfInStorageToXlsWithHttpInfo(name, insertBlankColumnAtFirst, minimizeTheNumberOfWorksheets, scaleFactor, uniformWorksheets, folder, storage); + ApiResponse resp = getPolyLineAnnotationWithHttpInfo(name, annotationId, storage, folder); return resp.getData(); } throw ex; @@ -14800,39 +16122,33 @@ public File getPdfInStorageToXls(String name, Boolean insertBlankColumnAtFirst, } /** - * Converts PDF document (located on storage) to XLS format and returns resulting file in response content + * Read document page polyline annotation by ID. * * @param name The document name. (required) - * @param insertBlankColumnAtFirst Insert blank column at first (optional) - * @param minimizeTheNumberOfWorksheets Minimize the number of worksheets (optional) - * @param scaleFactor Scale factor (optional) - * @param uniformWorksheets Uniform worksheets (optional) - * @param folder The document folder. (optional) + * @param annotationId The annotation ID. (required) * @param storage The document storage. (optional) - * @return ApiResponse<File> + * @param folder The document folder. (optional) + * @return ApiResponse<PolyLineAnnotationResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse getPdfInStorageToXlsWithHttpInfo(String name, Boolean insertBlankColumnAtFirst, Boolean minimizeTheNumberOfWorksheets, Double scaleFactor, Boolean uniformWorksheets, String folder, String storage) throws ApiException { - com.squareup.okhttp.Call call = getPdfInStorageToXlsValidateBeforeCall(name, insertBlankColumnAtFirst, minimizeTheNumberOfWorksheets, scaleFactor, uniformWorksheets, folder, storage, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse getPolyLineAnnotationWithHttpInfo(String name, String annotationId, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = getPolyLineAnnotationValidateBeforeCall(name, annotationId, storage, folder, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Converts PDF document (located on storage) to XLS format and returns resulting file in response content (asynchronously) + * Read document page polyline annotation by ID. (asynchronously) * * @param name The document name. (required) - * @param insertBlankColumnAtFirst Insert blank column at first (optional) - * @param minimizeTheNumberOfWorksheets Minimize the number of worksheets (optional) - * @param scaleFactor Scale factor (optional) - * @param uniformWorksheets Uniform worksheets (optional) - * @param folder The document folder. (optional) + * @param annotationId The annotation ID. (required) * @param storage The document storage. (optional) + * @param folder The document folder. (optional) * @param callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call getPdfInStorageToXlsAsync(String name, Boolean insertBlankColumnAtFirst, Boolean minimizeTheNumberOfWorksheets, Double scaleFactor, Boolean uniformWorksheets, String folder, String storage, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call getPolyLineAnnotationAsync(String name, String annotationId, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -14853,41 +16169,43 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = getPdfInStorageToXlsValidateBeforeCall(name, insertBlankColumnAtFirst, minimizeTheNumberOfWorksheets, scaleFactor, uniformWorksheets, folder, storage, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = getPolyLineAnnotationValidateBeforeCall(name, annotationId, storage, folder, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for getPdfInStorageToXml + * Build call for getPolygonAnnotation * @param name The document name. (required) - * @param folder The document folder. (optional) + * @param annotationId The annotation ID. (required) * @param storage The document storage. (optional) + * @param folder The document folder. (optional) * @param progressListener Progress listener * @param progressRequestListener Progress request listener * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call getPdfInStorageToXmlCall(String name, String folder, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call getPolygonAnnotationCall(String name, String annotationId, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; // create path and map variables - String localVarPath = "/pdf/{name}/convert/xml" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + String localVarPath = "/pdf/{name}/annotations/polygon/{annotationId}" + .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) + .replaceAll("\\{" + "annotationId" + "\\}", apiClient.escapeString(annotationId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (folder != null) - localVarQueryParams.addAll(apiClient.parameterToPair("folder", folder)); if (storage != null) localVarQueryParams.addAll(apiClient.parameterToPair("storage", storage)); + if (folder != null) + localVarQueryParams.addAll(apiClient.parameterToPair("folder", folder)); Map localVarHeaderParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "multipart/form-data" + "application/json" }; final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); @@ -14915,32 +16233,38 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getPdfInStorageToXmlValidateBeforeCall(String name, String folder, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call getPolygonAnnotationValidateBeforeCall(String name, String annotationId, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { // verify the required parameter 'name' is set if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling getPdfInStorageToXml(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling getPolygonAnnotation(Async)"); + } + + // verify the required parameter 'annotationId' is set + if (annotationId == null) { + throw new ApiException("Missing the required parameter 'annotationId' when calling getPolygonAnnotation(Async)"); } - com.squareup.okhttp.Call call = getPdfInStorageToXmlCall(name, folder, storage, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getPolygonAnnotationCall(name, annotationId, storage, folder, progressListener, progressRequestListener); return call; } /** - * Converts PDF document (located on storage) to XML format and returns resulting file in response content + * Read document page polygon annotation by ID. * * @param name The document name. (required) - * @param folder The document folder. (optional) + * @param annotationId The annotation ID. (required) * @param storage The document storage. (optional) - * @return File + * @param folder The document folder. (optional) + * @return PolygonAnnotationResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public File getPdfInStorageToXml(String name, String folder, String storage) throws ApiException { + public PolygonAnnotationResponse getPolygonAnnotation(String name, String annotationId, String storage, String folder) throws ApiException { try { - ApiResponse resp = getPdfInStorageToXmlWithHttpInfo(name, folder, storage); + ApiResponse resp = getPolygonAnnotationWithHttpInfo(name, annotationId, storage, folder); return resp.getData(); } catch (ApiException ex) @@ -14948,7 +16272,7 @@ public File getPdfInStorageToXml(String name, String folder, String storage) thr if (ex.getCode() == 401) { apiClient.refreshToken(); - ApiResponse resp = getPdfInStorageToXmlWithHttpInfo(name, folder, storage); + ApiResponse resp = getPolygonAnnotationWithHttpInfo(name, annotationId, storage, folder); return resp.getData(); } throw ex; @@ -14956,31 +16280,33 @@ public File getPdfInStorageToXml(String name, String folder, String storage) thr } /** - * Converts PDF document (located on storage) to XML format and returns resulting file in response content + * Read document page polygon annotation by ID. * * @param name The document name. (required) - * @param folder The document folder. (optional) + * @param annotationId The annotation ID. (required) * @param storage The document storage. (optional) - * @return ApiResponse<File> + * @param folder The document folder. (optional) + * @return ApiResponse<PolygonAnnotationResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse getPdfInStorageToXmlWithHttpInfo(String name, String folder, String storage) throws ApiException { - com.squareup.okhttp.Call call = getPdfInStorageToXmlValidateBeforeCall(name, folder, storage, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse getPolygonAnnotationWithHttpInfo(String name, String annotationId, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = getPolygonAnnotationValidateBeforeCall(name, annotationId, storage, folder, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Converts PDF document (located on storage) to XML format and returns resulting file in response content (asynchronously) + * Read document page polygon annotation by ID. (asynchronously) * * @param name The document name. (required) - * @param folder The document folder. (optional) + * @param annotationId The annotation ID. (required) * @param storage The document storage. (optional) + * @param folder The document folder. (optional) * @param callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call getPdfInStorageToXmlAsync(String name, String folder, String storage, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call getPolygonAnnotationAsync(String name, String annotationId, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -15001,41 +16327,43 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = getPdfInStorageToXmlValidateBeforeCall(name, folder, storage, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = getPolygonAnnotationValidateBeforeCall(name, annotationId, storage, folder, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for getPdfInStorageToXps + * Build call for getPopupAnnotation * @param name The document name. (required) - * @param folder The document folder. (optional) + * @param annotationId The annotation ID. (required) * @param storage The document storage. (optional) + * @param folder The document folder. (optional) * @param progressListener Progress listener * @param progressRequestListener Progress request listener * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call getPdfInStorageToXpsCall(String name, String folder, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call getPopupAnnotationCall(String name, String annotationId, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; // create path and map variables - String localVarPath = "/pdf/{name}/convert/xps" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + String localVarPath = "/pdf/{name}/annotations/popup/{annotationId}" + .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) + .replaceAll("\\{" + "annotationId" + "\\}", apiClient.escapeString(annotationId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (folder != null) - localVarQueryParams.addAll(apiClient.parameterToPair("folder", folder)); if (storage != null) localVarQueryParams.addAll(apiClient.parameterToPair("storage", storage)); + if (folder != null) + localVarQueryParams.addAll(apiClient.parameterToPair("folder", folder)); Map localVarHeaderParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "multipart/form-data" + "application/json" }; final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); @@ -15063,32 +16391,38 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getPdfInStorageToXpsValidateBeforeCall(String name, String folder, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call getPopupAnnotationValidateBeforeCall(String name, String annotationId, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { // verify the required parameter 'name' is set if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling getPdfInStorageToXps(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling getPopupAnnotation(Async)"); + } + + // verify the required parameter 'annotationId' is set + if (annotationId == null) { + throw new ApiException("Missing the required parameter 'annotationId' when calling getPopupAnnotation(Async)"); } - com.squareup.okhttp.Call call = getPdfInStorageToXpsCall(name, folder, storage, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getPopupAnnotationCall(name, annotationId, storage, folder, progressListener, progressRequestListener); return call; } /** - * Converts PDF document (located on storage) to XPS format and returns resulting file in response content + * Read document page popup annotation by ID. * * @param name The document name. (required) - * @param folder The document folder. (optional) + * @param annotationId The annotation ID. (required) * @param storage The document storage. (optional) - * @return File + * @param folder The document folder. (optional) + * @return PopupAnnotationResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public File getPdfInStorageToXps(String name, String folder, String storage) throws ApiException { + public PopupAnnotationResponse getPopupAnnotation(String name, String annotationId, String storage, String folder) throws ApiException { try { - ApiResponse resp = getPdfInStorageToXpsWithHttpInfo(name, folder, storage); + ApiResponse resp = getPopupAnnotationWithHttpInfo(name, annotationId, storage, folder); return resp.getData(); } catch (ApiException ex) @@ -15096,7 +16430,7 @@ public File getPdfInStorageToXps(String name, String folder, String storage) thr if (ex.getCode() == 401) { apiClient.refreshToken(); - ApiResponse resp = getPdfInStorageToXpsWithHttpInfo(name, folder, storage); + ApiResponse resp = getPopupAnnotationWithHttpInfo(name, annotationId, storage, folder); return resp.getData(); } throw ex; @@ -15104,31 +16438,33 @@ public File getPdfInStorageToXps(String name, String folder, String storage) thr } /** - * Converts PDF document (located on storage) to XPS format and returns resulting file in response content + * Read document page popup annotation by ID. * * @param name The document name. (required) - * @param folder The document folder. (optional) + * @param annotationId The annotation ID. (required) * @param storage The document storage. (optional) - * @return ApiResponse<File> + * @param folder The document folder. (optional) + * @return ApiResponse<PopupAnnotationResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse getPdfInStorageToXpsWithHttpInfo(String name, String folder, String storage) throws ApiException { - com.squareup.okhttp.Call call = getPdfInStorageToXpsValidateBeforeCall(name, folder, storage, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse getPopupAnnotationWithHttpInfo(String name, String annotationId, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = getPopupAnnotationValidateBeforeCall(name, annotationId, storage, folder, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Converts PDF document (located on storage) to XPS format and returns resulting file in response content (asynchronously) + * Read document page popup annotation by ID. (asynchronously) * * @param name The document name. (required) - * @param folder The document folder. (optional) + * @param annotationId The annotation ID. (required) * @param storage The document storage. (optional) + * @param folder The document folder. (optional) * @param callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call getPdfInStorageToXpsAsync(String name, String folder, String storage, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call getPopupAnnotationAsync(String name, String annotationId, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -15149,43 +16485,39 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = getPdfInStorageToXpsValidateBeforeCall(name, folder, storage, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = getPopupAnnotationValidateBeforeCall(name, annotationId, storage, folder, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for getPolyLineAnnotation - * @param name The document name. (required) - * @param annotationId The annotation ID. (required) + * Build call for getPsInStorageToPdf + * @param srcPath Full source filename (ex. /folder1/folder2/template.ps) (required) * @param storage The document storage. (optional) - * @param folder The document folder. (optional) * @param progressListener Progress listener * @param progressRequestListener Progress request listener * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call getPolyLineAnnotationCall(String name, String annotationId, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call getPsInStorageToPdfCall(String srcPath, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; // create path and map variables - String localVarPath = "/pdf/{name}/annotations/polyline/{annotationId}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "annotationId" + "\\}", apiClient.escapeString(annotationId.toString())); + String localVarPath = "/pdf/create/ps"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + if (srcPath != null) + localVarQueryParams.addAll(apiClient.parameterToPair("srcPath", srcPath)); if (storage != null) localVarQueryParams.addAll(apiClient.parameterToPair("storage", storage)); - if (folder != null) - localVarQueryParams.addAll(apiClient.parameterToPair("folder", folder)); Map localVarHeaderParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "multipart/form-data" }; final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); @@ -15213,38 +16545,31 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getPolyLineAnnotationValidateBeforeCall(String name, String annotationId, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - - // verify the required parameter 'name' is set - if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling getPolyLineAnnotation(Async)"); - } + private com.squareup.okhttp.Call getPsInStorageToPdfValidateBeforeCall(String srcPath, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - // verify the required parameter 'annotationId' is set - if (annotationId == null) { - throw new ApiException("Missing the required parameter 'annotationId' when calling getPolyLineAnnotation(Async)"); + // verify the required parameter 'srcPath' is set + if (srcPath == null) { + throw new ApiException("Missing the required parameter 'srcPath' when calling getPsInStorageToPdf(Async)"); } - com.squareup.okhttp.Call call = getPolyLineAnnotationCall(name, annotationId, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getPsInStorageToPdfCall(srcPath, storage, progressListener, progressRequestListener); return call; } /** - * Read document page polyline annotation by ID. + * Convert PS file (located on storage) to PDF format and return resulting file in response. * - * @param name The document name. (required) - * @param annotationId The annotation ID. (required) + * @param srcPath Full source filename (ex. /folder1/folder2/template.ps) (required) * @param storage The document storage. (optional) - * @param folder The document folder. (optional) - * @return PolyLineAnnotationResponse + * @return File * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public PolyLineAnnotationResponse getPolyLineAnnotation(String name, String annotationId, String storage, String folder) throws ApiException { + public File getPsInStorageToPdf(String srcPath, String storage) throws ApiException { try { - ApiResponse resp = getPolyLineAnnotationWithHttpInfo(name, annotationId, storage, folder); + ApiResponse resp = getPsInStorageToPdfWithHttpInfo(srcPath, storage); return resp.getData(); } catch (ApiException ex) @@ -15252,7 +16577,7 @@ public PolyLineAnnotationResponse getPolyLineAnnotation(String name, String anno if (ex.getCode() == 401) { apiClient.refreshToken(); - ApiResponse resp = getPolyLineAnnotationWithHttpInfo(name, annotationId, storage, folder); + ApiResponse resp = getPsInStorageToPdfWithHttpInfo(srcPath, storage); return resp.getData(); } throw ex; @@ -15260,33 +16585,29 @@ public PolyLineAnnotationResponse getPolyLineAnnotation(String name, String anno } /** - * Read document page polyline annotation by ID. + * Convert PS file (located on storage) to PDF format and return resulting file in response. * - * @param name The document name. (required) - * @param annotationId The annotation ID. (required) + * @param srcPath Full source filename (ex. /folder1/folder2/template.ps) (required) * @param storage The document storage. (optional) - * @param folder The document folder. (optional) - * @return ApiResponse<PolyLineAnnotationResponse> + * @return ApiResponse<File> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse getPolyLineAnnotationWithHttpInfo(String name, String annotationId, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = getPolyLineAnnotationValidateBeforeCall(name, annotationId, storage, folder, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse getPsInStorageToPdfWithHttpInfo(String srcPath, String storage) throws ApiException { + com.squareup.okhttp.Call call = getPsInStorageToPdfValidateBeforeCall(srcPath, storage, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Read document page polyline annotation by ID. (asynchronously) + * Convert PS file (located on storage) to PDF format and return resulting file in response. (asynchronously) * - * @param name The document name. (required) - * @param annotationId The annotation ID. (required) + * @param srcPath Full source filename (ex. /folder1/folder2/template.ps) (required) * @param storage The document storage. (optional) - * @param folder The document folder. (optional) * @param callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call getPolyLineAnnotationAsync(String name, String annotationId, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call getPsInStorageToPdfAsync(String srcPath, String storage, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -15307,13 +16628,13 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = getPolyLineAnnotationValidateBeforeCall(name, annotationId, storage, folder, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = getPsInStorageToPdfValidateBeforeCall(srcPath, storage, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for getPolygonAnnotation + * Build call for getSquareAnnotation * @param name The document name. (required) * @param annotationId The annotation ID. (required) * @param storage The document storage. (optional) @@ -15323,11 +16644,11 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call getPolygonAnnotationCall(String name, String annotationId, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call getSquareAnnotationCall(String name, String annotationId, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; // create path and map variables - String localVarPath = "/pdf/{name}/annotations/polygon/{annotationId}" + String localVarPath = "/pdf/{name}/annotations/square/{annotationId}" .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) .replaceAll("\\{" + "annotationId" + "\\}", apiClient.escapeString(annotationId.toString())); @@ -15371,38 +16692,38 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getPolygonAnnotationValidateBeforeCall(String name, String annotationId, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call getSquareAnnotationValidateBeforeCall(String name, String annotationId, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { // verify the required parameter 'name' is set if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling getPolygonAnnotation(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling getSquareAnnotation(Async)"); } // verify the required parameter 'annotationId' is set if (annotationId == null) { - throw new ApiException("Missing the required parameter 'annotationId' when calling getPolygonAnnotation(Async)"); + throw new ApiException("Missing the required parameter 'annotationId' when calling getSquareAnnotation(Async)"); } - com.squareup.okhttp.Call call = getPolygonAnnotationCall(name, annotationId, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getSquareAnnotationCall(name, annotationId, storage, folder, progressListener, progressRequestListener); return call; } /** - * Read document page polygon annotation by ID. + * Read document page square annotation by ID. * * @param name The document name. (required) * @param annotationId The annotation ID. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) - * @return PolygonAnnotationResponse + * @return SquareAnnotationResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public PolygonAnnotationResponse getPolygonAnnotation(String name, String annotationId, String storage, String folder) throws ApiException { + public SquareAnnotationResponse getSquareAnnotation(String name, String annotationId, String storage, String folder) throws ApiException { try { - ApiResponse resp = getPolygonAnnotationWithHttpInfo(name, annotationId, storage, folder); + ApiResponse resp = getSquareAnnotationWithHttpInfo(name, annotationId, storage, folder); return resp.getData(); } catch (ApiException ex) @@ -15410,7 +16731,7 @@ public PolygonAnnotationResponse getPolygonAnnotation(String name, String annota if (ex.getCode() == 401) { apiClient.refreshToken(); - ApiResponse resp = getPolygonAnnotationWithHttpInfo(name, annotationId, storage, folder); + ApiResponse resp = getSquareAnnotationWithHttpInfo(name, annotationId, storage, folder); return resp.getData(); } throw ex; @@ -15418,23 +16739,23 @@ public PolygonAnnotationResponse getPolygonAnnotation(String name, String annota } /** - * Read document page polygon annotation by ID. + * Read document page square annotation by ID. * * @param name The document name. (required) * @param annotationId The annotation ID. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) - * @return ApiResponse<PolygonAnnotationResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public ApiResponse getPolygonAnnotationWithHttpInfo(String name, String annotationId, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = getPolygonAnnotationValidateBeforeCall(name, annotationId, storage, folder, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + * @return ApiResponse<SquareAnnotationResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse getSquareAnnotationWithHttpInfo(String name, String annotationId, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = getSquareAnnotationValidateBeforeCall(name, annotationId, storage, folder, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Read document page polygon annotation by ID. (asynchronously) + * Read document page square annotation by ID. (asynchronously) * * @param name The document name. (required) * @param annotationId The annotation ID. (required) @@ -15444,7 +16765,7 @@ public ApiResponse getPolygonAnnotationWithHttpInfo(S * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call getPolygonAnnotationAsync(String name, String annotationId, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call getSquareAnnotationAsync(String name, String annotationId, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -15465,13 +16786,13 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = getPolygonAnnotationValidateBeforeCall(name, annotationId, storage, folder, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = getSquareAnnotationValidateBeforeCall(name, annotationId, storage, folder, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for getPopupAnnotation + * Build call for getSquigglyAnnotation * @param name The document name. (required) * @param annotationId The annotation ID. (required) * @param storage The document storage. (optional) @@ -15481,11 +16802,11 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call getPopupAnnotationCall(String name, String annotationId, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call getSquigglyAnnotationCall(String name, String annotationId, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; // create path and map variables - String localVarPath = "/pdf/{name}/annotations/popup/{annotationId}" + String localVarPath = "/pdf/{name}/annotations/squiggly/{annotationId}" .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) .replaceAll("\\{" + "annotationId" + "\\}", apiClient.escapeString(annotationId.toString())); @@ -15529,38 +16850,38 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getPopupAnnotationValidateBeforeCall(String name, String annotationId, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call getSquigglyAnnotationValidateBeforeCall(String name, String annotationId, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { // verify the required parameter 'name' is set if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling getPopupAnnotation(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling getSquigglyAnnotation(Async)"); } // verify the required parameter 'annotationId' is set if (annotationId == null) { - throw new ApiException("Missing the required parameter 'annotationId' when calling getPopupAnnotation(Async)"); + throw new ApiException("Missing the required parameter 'annotationId' when calling getSquigglyAnnotation(Async)"); } - com.squareup.okhttp.Call call = getPopupAnnotationCall(name, annotationId, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getSquigglyAnnotationCall(name, annotationId, storage, folder, progressListener, progressRequestListener); return call; } /** - * Read document page popup annotation by ID. + * Read document page squiggly annotation by ID. * * @param name The document name. (required) * @param annotationId The annotation ID. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) - * @return PopupAnnotationResponse + * @return SquigglyAnnotationResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public PopupAnnotationResponse getPopupAnnotation(String name, String annotationId, String storage, String folder) throws ApiException { + public SquigglyAnnotationResponse getSquigglyAnnotation(String name, String annotationId, String storage, String folder) throws ApiException { try { - ApiResponse resp = getPopupAnnotationWithHttpInfo(name, annotationId, storage, folder); + ApiResponse resp = getSquigglyAnnotationWithHttpInfo(name, annotationId, storage, folder); return resp.getData(); } catch (ApiException ex) @@ -15568,7 +16889,7 @@ public PopupAnnotationResponse getPopupAnnotation(String name, String annotation if (ex.getCode() == 401) { apiClient.refreshToken(); - ApiResponse resp = getPopupAnnotationWithHttpInfo(name, annotationId, storage, folder); + ApiResponse resp = getSquigglyAnnotationWithHttpInfo(name, annotationId, storage, folder); return resp.getData(); } throw ex; @@ -15576,23 +16897,23 @@ public PopupAnnotationResponse getPopupAnnotation(String name, String annotation } /** - * Read document page popup annotation by ID. + * Read document page squiggly annotation by ID. * * @param name The document name. (required) * @param annotationId The annotation ID. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) - * @return ApiResponse<PopupAnnotationResponse> + * @return ApiResponse<SquigglyAnnotationResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse getPopupAnnotationWithHttpInfo(String name, String annotationId, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = getPopupAnnotationValidateBeforeCall(name, annotationId, storage, folder, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse getSquigglyAnnotationWithHttpInfo(String name, String annotationId, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = getSquigglyAnnotationValidateBeforeCall(name, annotationId, storage, folder, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Read document page popup annotation by ID. (asynchronously) + * Read document page squiggly annotation by ID. (asynchronously) * * @param name The document name. (required) * @param annotationId The annotation ID. (required) @@ -15602,7 +16923,7 @@ public ApiResponse getPopupAnnotationWithHttpInfo(Strin * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call getPopupAnnotationAsync(String name, String annotationId, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call getSquigglyAnnotationAsync(String name, String annotationId, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -15623,39 +16944,43 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = getPopupAnnotationValidateBeforeCall(name, annotationId, storage, folder, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = getSquigglyAnnotationValidateBeforeCall(name, annotationId, storage, folder, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for getPsInStorageToPdf - * @param srcPath Full source filename (ex. /folder1/folder2/template.ps) (required) + * Build call for getStrikeOutAnnotation + * @param name The document name. (required) + * @param annotationId The annotation ID. (required) * @param storage The document storage. (optional) + * @param folder The document folder. (optional) * @param progressListener Progress listener * @param progressRequestListener Progress request listener * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call getPsInStorageToPdfCall(String srcPath, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call getStrikeOutAnnotationCall(String name, String annotationId, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; // create path and map variables - String localVarPath = "/pdf/create/ps"; + String localVarPath = "/pdf/{name}/annotations/strikeout/{annotationId}" + .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) + .replaceAll("\\{" + "annotationId" + "\\}", apiClient.escapeString(annotationId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (srcPath != null) - localVarQueryParams.addAll(apiClient.parameterToPair("srcPath", srcPath)); if (storage != null) localVarQueryParams.addAll(apiClient.parameterToPair("storage", storage)); + if (folder != null) + localVarQueryParams.addAll(apiClient.parameterToPair("folder", folder)); Map localVarHeaderParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "multipart/form-data" + "application/json" }; final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); @@ -15683,31 +17008,38 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getPsInStorageToPdfValidateBeforeCall(String srcPath, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call getStrikeOutAnnotationValidateBeforeCall(String name, String annotationId, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - // verify the required parameter 'srcPath' is set - if (srcPath == null) { - throw new ApiException("Missing the required parameter 'srcPath' when calling getPsInStorageToPdf(Async)"); + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling getStrikeOutAnnotation(Async)"); + } + + // verify the required parameter 'annotationId' is set + if (annotationId == null) { + throw new ApiException("Missing the required parameter 'annotationId' when calling getStrikeOutAnnotation(Async)"); } - com.squareup.okhttp.Call call = getPsInStorageToPdfCall(srcPath, storage, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getStrikeOutAnnotationCall(name, annotationId, storage, folder, progressListener, progressRequestListener); return call; } /** - * Convert PS file (located on storage) to PDF format and return resulting file in response. + * Read document page StrikeOut annotation by ID. * - * @param srcPath Full source filename (ex. /folder1/folder2/template.ps) (required) + * @param name The document name. (required) + * @param annotationId The annotation ID. (required) * @param storage The document storage. (optional) - * @return File + * @param folder The document folder. (optional) + * @return StrikeOutAnnotationResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public File getPsInStorageToPdf(String srcPath, String storage) throws ApiException { + public StrikeOutAnnotationResponse getStrikeOutAnnotation(String name, String annotationId, String storage, String folder) throws ApiException { try { - ApiResponse resp = getPsInStorageToPdfWithHttpInfo(srcPath, storage); + ApiResponse resp = getStrikeOutAnnotationWithHttpInfo(name, annotationId, storage, folder); return resp.getData(); } catch (ApiException ex) @@ -15715,7 +17047,7 @@ public File getPsInStorageToPdf(String srcPath, String storage) throws ApiExcept if (ex.getCode() == 401) { apiClient.refreshToken(); - ApiResponse resp = getPsInStorageToPdfWithHttpInfo(srcPath, storage); + ApiResponse resp = getStrikeOutAnnotationWithHttpInfo(name, annotationId, storage, folder); return resp.getData(); } throw ex; @@ -15723,29 +17055,33 @@ public File getPsInStorageToPdf(String srcPath, String storage) throws ApiExcept } /** - * Convert PS file (located on storage) to PDF format and return resulting file in response. + * Read document page StrikeOut annotation by ID. * - * @param srcPath Full source filename (ex. /folder1/folder2/template.ps) (required) + * @param name The document name. (required) + * @param annotationId The annotation ID. (required) * @param storage The document storage. (optional) - * @return ApiResponse<File> + * @param folder The document folder. (optional) + * @return ApiResponse<StrikeOutAnnotationResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse getPsInStorageToPdfWithHttpInfo(String srcPath, String storage) throws ApiException { - com.squareup.okhttp.Call call = getPsInStorageToPdfValidateBeforeCall(srcPath, storage, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse getStrikeOutAnnotationWithHttpInfo(String name, String annotationId, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = getStrikeOutAnnotationValidateBeforeCall(name, annotationId, storage, folder, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Convert PS file (located on storage) to PDF format and return resulting file in response. (asynchronously) + * Read document page StrikeOut annotation by ID. (asynchronously) * - * @param srcPath Full source filename (ex. /folder1/folder2/template.ps) (required) + * @param name The document name. (required) + * @param annotationId The annotation ID. (required) * @param storage The document storage. (optional) + * @param folder The document folder. (optional) * @param callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call getPsInStorageToPdfAsync(String srcPath, String storage, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call getStrikeOutAnnotationAsync(String name, String annotationId, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -15766,43 +17102,63 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = getPsInStorageToPdfValidateBeforeCall(srcPath, storage, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = getStrikeOutAnnotationValidateBeforeCall(name, annotationId, storage, folder, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for getSquareAnnotation - * @param name The document name. (required) - * @param annotationId The annotation ID. (required) + * Build call for getSvgInStorageToPdf + * @param srcPath Full source filename (ex. /folder1/folder2/template.svg) (required) + * @param adjustPageSize Adjust page size (optional) + * @param height Page height (optional) + * @param width Page width (optional) + * @param isLandscape Is page landscaped (optional) + * @param marginLeft Page margin left (optional) + * @param marginBottom Page margin bottom (optional) + * @param marginRight Page margin right (optional) + * @param marginTop Page margin top (optional) * @param storage The document storage. (optional) - * @param folder The document folder. (optional) * @param progressListener Progress listener * @param progressRequestListener Progress request listener * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call getSquareAnnotationCall(String name, String annotationId, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call getSvgInStorageToPdfCall(String srcPath, Boolean adjustPageSize, Double height, Double width, Boolean isLandscape, Double marginLeft, Double marginBottom, Double marginRight, Double marginTop, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; // create path and map variables - String localVarPath = "/pdf/{name}/annotations/square/{annotationId}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "annotationId" + "\\}", apiClient.escapeString(annotationId.toString())); + String localVarPath = "/pdf/create/svg"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + if (srcPath != null) + localVarQueryParams.addAll(apiClient.parameterToPair("srcPath", srcPath)); + if (adjustPageSize != null) + localVarQueryParams.addAll(apiClient.parameterToPair("adjustPageSize", adjustPageSize)); + if (height != null) + localVarQueryParams.addAll(apiClient.parameterToPair("height", height)); + if (width != null) + localVarQueryParams.addAll(apiClient.parameterToPair("width", width)); + if (isLandscape != null) + localVarQueryParams.addAll(apiClient.parameterToPair("isLandscape", isLandscape)); + if (marginLeft != null) + localVarQueryParams.addAll(apiClient.parameterToPair("marginLeft", marginLeft)); + if (marginBottom != null) + localVarQueryParams.addAll(apiClient.parameterToPair("marginBottom", marginBottom)); + if (marginRight != null) + localVarQueryParams.addAll(apiClient.parameterToPair("marginRight", marginRight)); + if (marginTop != null) + localVarQueryParams.addAll(apiClient.parameterToPair("marginTop", marginTop)); if (storage != null) localVarQueryParams.addAll(apiClient.parameterToPair("storage", storage)); - if (folder != null) - localVarQueryParams.addAll(apiClient.parameterToPair("folder", folder)); Map localVarHeaderParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "multipart/form-data" }; final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); @@ -15830,38 +17186,39 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getSquareAnnotationValidateBeforeCall(String name, String annotationId, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - - // verify the required parameter 'name' is set - if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling getSquareAnnotation(Async)"); - } + private com.squareup.okhttp.Call getSvgInStorageToPdfValidateBeforeCall(String srcPath, Boolean adjustPageSize, Double height, Double width, Boolean isLandscape, Double marginLeft, Double marginBottom, Double marginRight, Double marginTop, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - // verify the required parameter 'annotationId' is set - if (annotationId == null) { - throw new ApiException("Missing the required parameter 'annotationId' when calling getSquareAnnotation(Async)"); + // verify the required parameter 'srcPath' is set + if (srcPath == null) { + throw new ApiException("Missing the required parameter 'srcPath' when calling getSvgInStorageToPdf(Async)"); } - com.squareup.okhttp.Call call = getSquareAnnotationCall(name, annotationId, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getSvgInStorageToPdfCall(srcPath, adjustPageSize, height, width, isLandscape, marginLeft, marginBottom, marginRight, marginTop, storage, progressListener, progressRequestListener); return call; } /** - * Read document page square annotation by ID. + * Convert SVG file (located on storage) to PDF format and return resulting file in response. * - * @param name The document name. (required) - * @param annotationId The annotation ID. (required) + * @param srcPath Full source filename (ex. /folder1/folder2/template.svg) (required) + * @param adjustPageSize Adjust page size (optional) + * @param height Page height (optional) + * @param width Page width (optional) + * @param isLandscape Is page landscaped (optional) + * @param marginLeft Page margin left (optional) + * @param marginBottom Page margin bottom (optional) + * @param marginRight Page margin right (optional) + * @param marginTop Page margin top (optional) * @param storage The document storage. (optional) - * @param folder The document folder. (optional) - * @return SquareAnnotationResponse + * @return File * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public SquareAnnotationResponse getSquareAnnotation(String name, String annotationId, String storage, String folder) throws ApiException { + public File getSvgInStorageToPdf(String srcPath, Boolean adjustPageSize, Double height, Double width, Boolean isLandscape, Double marginLeft, Double marginBottom, Double marginRight, Double marginTop, String storage) throws ApiException { try { - ApiResponse resp = getSquareAnnotationWithHttpInfo(name, annotationId, storage, folder); + ApiResponse resp = getSvgInStorageToPdfWithHttpInfo(srcPath, adjustPageSize, height, width, isLandscape, marginLeft, marginBottom, marginRight, marginTop, storage); return resp.getData(); } catch (ApiException ex) @@ -15869,7 +17226,7 @@ public SquareAnnotationResponse getSquareAnnotation(String name, String annotati if (ex.getCode() == 401) { apiClient.refreshToken(); - ApiResponse resp = getSquareAnnotationWithHttpInfo(name, annotationId, storage, folder); + ApiResponse resp = getSvgInStorageToPdfWithHttpInfo(srcPath, adjustPageSize, height, width, isLandscape, marginLeft, marginBottom, marginRight, marginTop, storage); return resp.getData(); } throw ex; @@ -15877,33 +17234,45 @@ public SquareAnnotationResponse getSquareAnnotation(String name, String annotati } /** - * Read document page square annotation by ID. + * Convert SVG file (located on storage) to PDF format and return resulting file in response. * - * @param name The document name. (required) - * @param annotationId The annotation ID. (required) + * @param srcPath Full source filename (ex. /folder1/folder2/template.svg) (required) + * @param adjustPageSize Adjust page size (optional) + * @param height Page height (optional) + * @param width Page width (optional) + * @param isLandscape Is page landscaped (optional) + * @param marginLeft Page margin left (optional) + * @param marginBottom Page margin bottom (optional) + * @param marginRight Page margin right (optional) + * @param marginTop Page margin top (optional) * @param storage The document storage. (optional) - * @param folder The document folder. (optional) - * @return ApiResponse<SquareAnnotationResponse> + * @return ApiResponse<File> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse getSquareAnnotationWithHttpInfo(String name, String annotationId, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = getSquareAnnotationValidateBeforeCall(name, annotationId, storage, folder, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse getSvgInStorageToPdfWithHttpInfo(String srcPath, Boolean adjustPageSize, Double height, Double width, Boolean isLandscape, Double marginLeft, Double marginBottom, Double marginRight, Double marginTop, String storage) throws ApiException { + com.squareup.okhttp.Call call = getSvgInStorageToPdfValidateBeforeCall(srcPath, adjustPageSize, height, width, isLandscape, marginLeft, marginBottom, marginRight, marginTop, storage, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Read document page square annotation by ID. (asynchronously) + * Convert SVG file (located on storage) to PDF format and return resulting file in response. (asynchronously) * - * @param name The document name. (required) - * @param annotationId The annotation ID. (required) + * @param srcPath Full source filename (ex. /folder1/folder2/template.svg) (required) + * @param adjustPageSize Adjust page size (optional) + * @param height Page height (optional) + * @param width Page width (optional) + * @param isLandscape Is page landscaped (optional) + * @param marginLeft Page margin left (optional) + * @param marginBottom Page margin bottom (optional) + * @param marginRight Page margin right (optional) + * @param marginTop Page margin top (optional) * @param storage The document storage. (optional) - * @param folder The document folder. (optional) * @param callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call getSquareAnnotationAsync(String name, String annotationId, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call getSvgInStorageToPdfAsync(String srcPath, Boolean adjustPageSize, Double height, Double width, Boolean isLandscape, Double marginLeft, Double marginBottom, Double marginRight, Double marginTop, String storage, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -15924,36 +17293,55 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = getSquareAnnotationValidateBeforeCall(name, annotationId, storage, folder, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = getSvgInStorageToPdfValidateBeforeCall(srcPath, adjustPageSize, height, width, isLandscape, marginLeft, marginBottom, marginRight, marginTop, storage, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for getSquigglyAnnotation + * Build call for getText * @param name The document name. (required) - * @param annotationId The annotation ID. (required) - * @param storage The document storage. (optional) + * @param LLX X-coordinate of lower - left corner. (required) + * @param LLY Y - coordinate of lower-left corner. (required) + * @param URX X - coordinate of upper-right corner. (required) + * @param URY Y - coordinate of upper-right corner. (required) + * @param format List of formats for search. (optional) + * @param regex Formats are specified as a regular expression. (optional) + * @param splitRects Split result fragments (default is true). (optional) * @param folder The document folder. (optional) + * @param storage The document storage. (optional) * @param progressListener Progress listener * @param progressRequestListener Progress request listener * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call getSquigglyAnnotationCall(String name, String annotationId, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call getTextCall(String name, Double LLX, Double LLY, Double URX, Double URY, List format, String regex, Boolean splitRects, String folder, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; // create path and map variables - String localVarPath = "/pdf/{name}/annotations/squiggly/{annotationId}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "annotationId" + "\\}", apiClient.escapeString(annotationId.toString())); + String localVarPath = "/pdf/{name}/text" + .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (storage != null) - localVarQueryParams.addAll(apiClient.parameterToPair("storage", storage)); + if (format != null) + localVarCollectionQueryParams.addAll(apiClient.parameterToPairs("multi", "format", format)); + if (regex != null) + localVarQueryParams.addAll(apiClient.parameterToPair("regex", regex)); + if (splitRects != null) + localVarQueryParams.addAll(apiClient.parameterToPair("splitRects", splitRects)); if (folder != null) localVarQueryParams.addAll(apiClient.parameterToPair("folder", folder)); + if (LLX != null) + localVarQueryParams.addAll(apiClient.parameterToPair("LLX", LLX)); + if (LLY != null) + localVarQueryParams.addAll(apiClient.parameterToPair("LLY", LLY)); + if (URX != null) + localVarQueryParams.addAll(apiClient.parameterToPair("URX", URX)); + if (URY != null) + localVarQueryParams.addAll(apiClient.parameterToPair("URY", URY)); + if (storage != null) + localVarQueryParams.addAll(apiClient.parameterToPair("storage", storage)); Map localVarHeaderParams = new HashMap(); @@ -15988,38 +17376,59 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getSquigglyAnnotationValidateBeforeCall(String name, String annotationId, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call getTextValidateBeforeCall(String name, Double LLX, Double LLY, Double URX, Double URY, List format, String regex, Boolean splitRects, String folder, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { // verify the required parameter 'name' is set if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling getSquigglyAnnotation(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling getText(Async)"); } - // verify the required parameter 'annotationId' is set - if (annotationId == null) { - throw new ApiException("Missing the required parameter 'annotationId' when calling getSquigglyAnnotation(Async)"); + // verify the required parameter 'LLX' is set + if (LLX == null) { + throw new ApiException("Missing the required parameter 'LLX' when calling getText(Async)"); + } + + // verify the required parameter 'LLY' is set + if (LLY == null) { + throw new ApiException("Missing the required parameter 'LLY' when calling getText(Async)"); + } + + // verify the required parameter 'URX' is set + if (URX == null) { + throw new ApiException("Missing the required parameter 'URX' when calling getText(Async)"); + } + + // verify the required parameter 'URY' is set + if (URY == null) { + throw new ApiException("Missing the required parameter 'URY' when calling getText(Async)"); } - com.squareup.okhttp.Call call = getSquigglyAnnotationCall(name, annotationId, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getTextCall(name, LLX, LLY, URX, URY, format, regex, splitRects, folder, storage, progressListener, progressRequestListener); return call; } /** - * Read document page squiggly annotation by ID. + * Read document text. * * @param name The document name. (required) - * @param annotationId The annotation ID. (required) - * @param storage The document storage. (optional) + * @param LLX X-coordinate of lower - left corner. (required) + * @param LLY Y - coordinate of lower-left corner. (required) + * @param URX X - coordinate of upper-right corner. (required) + * @param URY Y - coordinate of upper-right corner. (required) + * @param format List of formats for search. (optional) + * @param regex Formats are specified as a regular expression. (optional) + * @param splitRects Split result fragments (default is true). (optional) * @param folder The document folder. (optional) - * @return SquigglyAnnotationResponse + * @param storage The document storage. (optional) + * @return TextRectsResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public SquigglyAnnotationResponse getSquigglyAnnotation(String name, String annotationId, String storage, String folder) throws ApiException { + public TextRectsResponse getText(String name, Double LLX, Double LLY, Double URX, Double URY, List format, String regex, Boolean splitRects, String folder, String storage) throws ApiException { try { - ApiResponse resp = getSquigglyAnnotationWithHttpInfo(name, annotationId, storage, folder); + ApiResponse resp = getTextWithHttpInfo(name, LLX, LLY, URX, URY, format, regex, splitRects, folder, storage); return resp.getData(); } catch (ApiException ex) @@ -16027,7 +17436,7 @@ public SquigglyAnnotationResponse getSquigglyAnnotation(String name, String anno if (ex.getCode() == 401) { apiClient.refreshToken(); - ApiResponse resp = getSquigglyAnnotationWithHttpInfo(name, annotationId, storage, folder); + ApiResponse resp = getTextWithHttpInfo(name, LLX, LLY, URX, URY, format, regex, splitRects, folder, storage); return resp.getData(); } throw ex; @@ -16035,33 +17444,45 @@ public SquigglyAnnotationResponse getSquigglyAnnotation(String name, String anno } /** - * Read document page squiggly annotation by ID. + * Read document text. * * @param name The document name. (required) - * @param annotationId The annotation ID. (required) - * @param storage The document storage. (optional) + * @param LLX X-coordinate of lower - left corner. (required) + * @param LLY Y - coordinate of lower-left corner. (required) + * @param URX X - coordinate of upper-right corner. (required) + * @param URY Y - coordinate of upper-right corner. (required) + * @param format List of formats for search. (optional) + * @param regex Formats are specified as a regular expression. (optional) + * @param splitRects Split result fragments (default is true). (optional) * @param folder The document folder. (optional) - * @return ApiResponse<SquigglyAnnotationResponse> + * @param storage The document storage. (optional) + * @return ApiResponse<TextRectsResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse getSquigglyAnnotationWithHttpInfo(String name, String annotationId, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = getSquigglyAnnotationValidateBeforeCall(name, annotationId, storage, folder, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse getTextWithHttpInfo(String name, Double LLX, Double LLY, Double URX, Double URY, List format, String regex, Boolean splitRects, String folder, String storage) throws ApiException { + com.squareup.okhttp.Call call = getTextValidateBeforeCall(name, LLX, LLY, URX, URY, format, regex, splitRects, folder, storage, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Read document page squiggly annotation by ID. (asynchronously) + * Read document text. (asynchronously) * * @param name The document name. (required) - * @param annotationId The annotation ID. (required) - * @param storage The document storage. (optional) + * @param LLX X-coordinate of lower - left corner. (required) + * @param LLY Y - coordinate of lower-left corner. (required) + * @param URX X - coordinate of upper-right corner. (required) + * @param URY Y - coordinate of upper-right corner. (required) + * @param format List of formats for search. (optional) + * @param regex Formats are specified as a regular expression. (optional) + * @param splitRects Split result fragments (default is true). (optional) * @param folder The document folder. (optional) + * @param storage The document storage. (optional) * @param callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call getSquigglyAnnotationAsync(String name, String annotationId, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call getTextAsync(String name, Double LLX, Double LLY, Double URX, Double URY, List format, String regex, Boolean splitRects, String folder, String storage, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -16082,13 +17503,13 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = getSquigglyAnnotationValidateBeforeCall(name, annotationId, storage, folder, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = getTextValidateBeforeCall(name, LLX, LLY, URX, URY, format, regex, splitRects, folder, storage, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for getStrikeOutAnnotation + * Build call for getTextAnnotation * @param name The document name. (required) * @param annotationId The annotation ID. (required) * @param storage The document storage. (optional) @@ -16098,11 +17519,11 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call getStrikeOutAnnotationCall(String name, String annotationId, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call getTextAnnotationCall(String name, String annotationId, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; // create path and map variables - String localVarPath = "/pdf/{name}/annotations/strikeout/{annotationId}" + String localVarPath = "/pdf/{name}/annotations/text/{annotationId}" .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) .replaceAll("\\{" + "annotationId" + "\\}", apiClient.escapeString(annotationId.toString())); @@ -16146,38 +17567,38 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getStrikeOutAnnotationValidateBeforeCall(String name, String annotationId, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call getTextAnnotationValidateBeforeCall(String name, String annotationId, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { // verify the required parameter 'name' is set if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling getStrikeOutAnnotation(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling getTextAnnotation(Async)"); } // verify the required parameter 'annotationId' is set if (annotationId == null) { - throw new ApiException("Missing the required parameter 'annotationId' when calling getStrikeOutAnnotation(Async)"); + throw new ApiException("Missing the required parameter 'annotationId' when calling getTextAnnotation(Async)"); } - com.squareup.okhttp.Call call = getStrikeOutAnnotationCall(name, annotationId, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getTextAnnotationCall(name, annotationId, storage, folder, progressListener, progressRequestListener); return call; } /** - * Read document page StrikeOut annotation by ID. + * Read document page text annotation by ID. * * @param name The document name. (required) * @param annotationId The annotation ID. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) - * @return StrikeOutAnnotationResponse + * @return TextAnnotationResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public StrikeOutAnnotationResponse getStrikeOutAnnotation(String name, String annotationId, String storage, String folder) throws ApiException { + public TextAnnotationResponse getTextAnnotation(String name, String annotationId, String storage, String folder) throws ApiException { try { - ApiResponse resp = getStrikeOutAnnotationWithHttpInfo(name, annotationId, storage, folder); + ApiResponse resp = getTextAnnotationWithHttpInfo(name, annotationId, storage, folder); return resp.getData(); } catch (ApiException ex) @@ -16185,7 +17606,7 @@ public StrikeOutAnnotationResponse getStrikeOutAnnotation(String name, String an if (ex.getCode() == 401) { apiClient.refreshToken(); - ApiResponse resp = getStrikeOutAnnotationWithHttpInfo(name, annotationId, storage, folder); + ApiResponse resp = getTextAnnotationWithHttpInfo(name, annotationId, storage, folder); return resp.getData(); } throw ex; @@ -16193,23 +17614,23 @@ public StrikeOutAnnotationResponse getStrikeOutAnnotation(String name, String an } /** - * Read document page StrikeOut annotation by ID. + * Read document page text annotation by ID. * * @param name The document name. (required) * @param annotationId The annotation ID. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) - * @return ApiResponse<StrikeOutAnnotationResponse> + * @return ApiResponse<TextAnnotationResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse getStrikeOutAnnotationWithHttpInfo(String name, String annotationId, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = getStrikeOutAnnotationValidateBeforeCall(name, annotationId, storage, folder, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse getTextAnnotationWithHttpInfo(String name, String annotationId, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = getTextAnnotationValidateBeforeCall(name, annotationId, storage, folder, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Read document page StrikeOut annotation by ID. (asynchronously) + * Read document page text annotation by ID. (asynchronously) * * @param name The document name. (required) * @param annotationId The annotation ID. (required) @@ -16219,7 +17640,7 @@ public ApiResponse getStrikeOutAnnotationWithHttpIn * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call getStrikeOutAnnotationAsync(String name, String annotationId, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call getTextAnnotationAsync(String name, String annotationId, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -16240,63 +17661,43 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = getStrikeOutAnnotationValidateBeforeCall(name, annotationId, storage, folder, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = getTextAnnotationValidateBeforeCall(name, annotationId, storage, folder, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for getSvgInStorageToPdf - * @param srcPath Full source filename (ex. /folder1/folder2/template.svg) (required) - * @param adjustPageSize Adjust page size (optional) - * @param height Page height (optional) - * @param width Page width (optional) - * @param isLandscape Is page landscaped (optional) - * @param marginLeft Page margin left (optional) - * @param marginBottom Page margin bottom (optional) - * @param marginRight Page margin right (optional) - * @param marginTop Page margin top (optional) + * Build call for getUnderlineAnnotation + * @param name The document name. (required) + * @param annotationId The annotation ID. (required) * @param storage The document storage. (optional) + * @param folder The document folder. (optional) * @param progressListener Progress listener * @param progressRequestListener Progress request listener * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call getSvgInStorageToPdfCall(String srcPath, Boolean adjustPageSize, Double height, Double width, Boolean isLandscape, Double marginLeft, Double marginBottom, Double marginRight, Double marginTop, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call getUnderlineAnnotationCall(String name, String annotationId, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; // create path and map variables - String localVarPath = "/pdf/create/svg"; + String localVarPath = "/pdf/{name}/annotations/underline/{annotationId}" + .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) + .replaceAll("\\{" + "annotationId" + "\\}", apiClient.escapeString(annotationId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (srcPath != null) - localVarQueryParams.addAll(apiClient.parameterToPair("srcPath", srcPath)); - if (adjustPageSize != null) - localVarQueryParams.addAll(apiClient.parameterToPair("adjustPageSize", adjustPageSize)); - if (height != null) - localVarQueryParams.addAll(apiClient.parameterToPair("height", height)); - if (width != null) - localVarQueryParams.addAll(apiClient.parameterToPair("width", width)); - if (isLandscape != null) - localVarQueryParams.addAll(apiClient.parameterToPair("isLandscape", isLandscape)); - if (marginLeft != null) - localVarQueryParams.addAll(apiClient.parameterToPair("marginLeft", marginLeft)); - if (marginBottom != null) - localVarQueryParams.addAll(apiClient.parameterToPair("marginBottom", marginBottom)); - if (marginRight != null) - localVarQueryParams.addAll(apiClient.parameterToPair("marginRight", marginRight)); - if (marginTop != null) - localVarQueryParams.addAll(apiClient.parameterToPair("marginTop", marginTop)); if (storage != null) localVarQueryParams.addAll(apiClient.parameterToPair("storage", storage)); + if (folder != null) + localVarQueryParams.addAll(apiClient.parameterToPair("folder", folder)); Map localVarHeaderParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "multipart/form-data" + "application/json" }; final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); @@ -16324,39 +17725,38 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getSvgInStorageToPdfValidateBeforeCall(String srcPath, Boolean adjustPageSize, Double height, Double width, Boolean isLandscape, Double marginLeft, Double marginBottom, Double marginRight, Double marginTop, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call getUnderlineAnnotationValidateBeforeCall(String name, String annotationId, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - // verify the required parameter 'srcPath' is set - if (srcPath == null) { - throw new ApiException("Missing the required parameter 'srcPath' when calling getSvgInStorageToPdf(Async)"); + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling getUnderlineAnnotation(Async)"); + } + + // verify the required parameter 'annotationId' is set + if (annotationId == null) { + throw new ApiException("Missing the required parameter 'annotationId' when calling getUnderlineAnnotation(Async)"); } - com.squareup.okhttp.Call call = getSvgInStorageToPdfCall(srcPath, adjustPageSize, height, width, isLandscape, marginLeft, marginBottom, marginRight, marginTop, storage, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getUnderlineAnnotationCall(name, annotationId, storage, folder, progressListener, progressRequestListener); return call; } /** - * Convert SVG file (located on storage) to PDF format and return resulting file in response. + * Read document page underline annotation by ID. * - * @param srcPath Full source filename (ex. /folder1/folder2/template.svg) (required) - * @param adjustPageSize Adjust page size (optional) - * @param height Page height (optional) - * @param width Page width (optional) - * @param isLandscape Is page landscaped (optional) - * @param marginLeft Page margin left (optional) - * @param marginBottom Page margin bottom (optional) - * @param marginRight Page margin right (optional) - * @param marginTop Page margin top (optional) + * @param name The document name. (required) + * @param annotationId The annotation ID. (required) * @param storage The document storage. (optional) - * @return File + * @param folder The document folder. (optional) + * @return UnderlineAnnotationResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public File getSvgInStorageToPdf(String srcPath, Boolean adjustPageSize, Double height, Double width, Boolean isLandscape, Double marginLeft, Double marginBottom, Double marginRight, Double marginTop, String storage) throws ApiException { + public UnderlineAnnotationResponse getUnderlineAnnotation(String name, String annotationId, String storage, String folder) throws ApiException { try { - ApiResponse resp = getSvgInStorageToPdfWithHttpInfo(srcPath, adjustPageSize, height, width, isLandscape, marginLeft, marginBottom, marginRight, marginTop, storage); + ApiResponse resp = getUnderlineAnnotationWithHttpInfo(name, annotationId, storage, folder); return resp.getData(); } catch (ApiException ex) @@ -16364,7 +17764,7 @@ public File getSvgInStorageToPdf(String srcPath, Boolean adjustPageSize, Double if (ex.getCode() == 401) { apiClient.refreshToken(); - ApiResponse resp = getSvgInStorageToPdfWithHttpInfo(srcPath, adjustPageSize, height, width, isLandscape, marginLeft, marginBottom, marginRight, marginTop, storage); + ApiResponse resp = getUnderlineAnnotationWithHttpInfo(name, annotationId, storage, folder); return resp.getData(); } throw ex; @@ -16372,45 +17772,33 @@ public File getSvgInStorageToPdf(String srcPath, Boolean adjustPageSize, Double } /** - * Convert SVG file (located on storage) to PDF format and return resulting file in response. + * Read document page underline annotation by ID. * - * @param srcPath Full source filename (ex. /folder1/folder2/template.svg) (required) - * @param adjustPageSize Adjust page size (optional) - * @param height Page height (optional) - * @param width Page width (optional) - * @param isLandscape Is page landscaped (optional) - * @param marginLeft Page margin left (optional) - * @param marginBottom Page margin bottom (optional) - * @param marginRight Page margin right (optional) - * @param marginTop Page margin top (optional) + * @param name The document name. (required) + * @param annotationId The annotation ID. (required) * @param storage The document storage. (optional) - * @return ApiResponse<File> + * @param folder The document folder. (optional) + * @return ApiResponse<UnderlineAnnotationResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse getSvgInStorageToPdfWithHttpInfo(String srcPath, Boolean adjustPageSize, Double height, Double width, Boolean isLandscape, Double marginLeft, Double marginBottom, Double marginRight, Double marginTop, String storage) throws ApiException { - com.squareup.okhttp.Call call = getSvgInStorageToPdfValidateBeforeCall(srcPath, adjustPageSize, height, width, isLandscape, marginLeft, marginBottom, marginRight, marginTop, storage, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse getUnderlineAnnotationWithHttpInfo(String name, String annotationId, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = getUnderlineAnnotationValidateBeforeCall(name, annotationId, storage, folder, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Convert SVG file (located on storage) to PDF format and return resulting file in response. (asynchronously) + * Read document page underline annotation by ID. (asynchronously) * - * @param srcPath Full source filename (ex. /folder1/folder2/template.svg) (required) - * @param adjustPageSize Adjust page size (optional) - * @param height Page height (optional) - * @param width Page width (optional) - * @param isLandscape Is page landscaped (optional) - * @param marginLeft Page margin left (optional) - * @param marginBottom Page margin bottom (optional) - * @param marginRight Page margin right (optional) - * @param marginTop Page margin top (optional) + * @param name The document name. (required) + * @param annotationId The annotation ID. (required) * @param storage The document storage. (optional) + * @param folder The document folder. (optional) * @param callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call getSvgInStorageToPdfAsync(String srcPath, Boolean adjustPageSize, Double height, Double width, Boolean isLandscape, Double marginLeft, Double marginBottom, Double marginRight, Double marginTop, String storage, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call getUnderlineAnnotationAsync(String name, String annotationId, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -16431,55 +17819,37 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = getSvgInStorageToPdfValidateBeforeCall(srcPath, adjustPageSize, height, width, isLandscape, marginLeft, marginBottom, marginRight, marginTop, storage, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = getUnderlineAnnotationValidateBeforeCall(name, annotationId, storage, folder, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for getText + * Build call for getVerifySignature * @param name The document name. (required) - * @param LLX (required) - * @param LLY (required) - * @param URX (required) - * @param URY (required) - * @param format List of formats for search. (optional) - * @param regex Formats are specified as a regular expression. (optional) - * @param splitRects Split result fragments (default is true). (optional) - * @param folder The document folder. (optional) + * @param signName Sign name. (required) * @param storage The document storage. (optional) + * @param folder The document folder. (optional) * @param progressListener Progress listener * @param progressRequestListener Progress request listener * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call getTextCall(String name, Double LLX, Double LLY, Double URX, Double URY, List format, String regex, Boolean splitRects, String folder, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call getVerifySignatureCall(String name, String signName, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; // create path and map variables - String localVarPath = "/pdf/{name}/text" + String localVarPath = "/pdf/{name}/verifySignature" .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (format != null) - localVarCollectionQueryParams.addAll(apiClient.parameterToPairs("multi", "format", format)); - if (regex != null) - localVarQueryParams.addAll(apiClient.parameterToPair("regex", regex)); - if (splitRects != null) - localVarQueryParams.addAll(apiClient.parameterToPair("splitRects", splitRects)); - if (folder != null) - localVarQueryParams.addAll(apiClient.parameterToPair("folder", folder)); - if (LLX != null) - localVarQueryParams.addAll(apiClient.parameterToPair("LLX", LLX)); - if (LLY != null) - localVarQueryParams.addAll(apiClient.parameterToPair("LLY", LLY)); - if (URX != null) - localVarQueryParams.addAll(apiClient.parameterToPair("URX", URX)); - if (URY != null) - localVarQueryParams.addAll(apiClient.parameterToPair("URY", URY)); + if (signName != null) + localVarQueryParams.addAll(apiClient.parameterToPair("signName", signName)); if (storage != null) localVarQueryParams.addAll(apiClient.parameterToPair("storage", storage)); + if (folder != null) + localVarQueryParams.addAll(apiClient.parameterToPair("folder", folder)); Map localVarHeaderParams = new HashMap(); @@ -16514,59 +17884,38 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getTextValidateBeforeCall(String name, Double LLX, Double LLY, Double URX, Double URY, List format, String regex, Boolean splitRects, String folder, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call getVerifySignatureValidateBeforeCall(String name, String signName, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { // verify the required parameter 'name' is set if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling getText(Async)"); - } - - // verify the required parameter 'LLX' is set - if (LLX == null) { - throw new ApiException("Missing the required parameter 'LLX' when calling getText(Async)"); - } - - // verify the required parameter 'LLY' is set - if (LLY == null) { - throw new ApiException("Missing the required parameter 'LLY' when calling getText(Async)"); - } - - // verify the required parameter 'URX' is set - if (URX == null) { - throw new ApiException("Missing the required parameter 'URX' when calling getText(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling getVerifySignature(Async)"); } - // verify the required parameter 'URY' is set - if (URY == null) { - throw new ApiException("Missing the required parameter 'URY' when calling getText(Async)"); + // verify the required parameter 'signName' is set + if (signName == null) { + throw new ApiException("Missing the required parameter 'signName' when calling getVerifySignature(Async)"); } - com.squareup.okhttp.Call call = getTextCall(name, LLX, LLY, URX, URY, format, regex, splitRects, folder, storage, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getVerifySignatureCall(name, signName, storage, folder, progressListener, progressRequestListener); return call; } /** - * Read document text. + * Verify signature document. * * @param name The document name. (required) - * @param LLX (required) - * @param LLY (required) - * @param URX (required) - * @param URY (required) - * @param format List of formats for search. (optional) - * @param regex Formats are specified as a regular expression. (optional) - * @param splitRects Split result fragments (default is true). (optional) - * @param folder The document folder. (optional) + * @param signName Sign name. (required) * @param storage The document storage. (optional) - * @return TextRectsResponse + * @param folder The document folder. (optional) + * @return SignatureVerifyResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public TextRectsResponse getText(String name, Double LLX, Double LLY, Double URX, Double URY, List format, String regex, Boolean splitRects, String folder, String storage) throws ApiException { + public SignatureVerifyResponse getVerifySignature(String name, String signName, String storage, String folder) throws ApiException { try { - ApiResponse resp = getTextWithHttpInfo(name, LLX, LLY, URX, URY, format, regex, splitRects, folder, storage); + ApiResponse resp = getVerifySignatureWithHttpInfo(name, signName, storage, folder); return resp.getData(); } catch (ApiException ex) @@ -16574,7 +17923,7 @@ public TextRectsResponse getText(String name, Double LLX, Double LLY, Double URX if (ex.getCode() == 401) { apiClient.refreshToken(); - ApiResponse resp = getTextWithHttpInfo(name, LLX, LLY, URX, URY, format, regex, splitRects, folder, storage); + ApiResponse resp = getVerifySignatureWithHttpInfo(name, signName, storage, folder); return resp.getData(); } throw ex; @@ -16582,45 +17931,33 @@ public TextRectsResponse getText(String name, Double LLX, Double LLY, Double URX } /** - * Read document text. + * Verify signature document. * * @param name The document name. (required) - * @param LLX (required) - * @param LLY (required) - * @param URX (required) - * @param URY (required) - * @param format List of formats for search. (optional) - * @param regex Formats are specified as a regular expression. (optional) - * @param splitRects Split result fragments (default is true). (optional) - * @param folder The document folder. (optional) + * @param signName Sign name. (required) * @param storage The document storage. (optional) - * @return ApiResponse<TextRectsResponse> + * @param folder The document folder. (optional) + * @return ApiResponse<SignatureVerifyResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse getTextWithHttpInfo(String name, Double LLX, Double LLY, Double URX, Double URY, List format, String regex, Boolean splitRects, String folder, String storage) throws ApiException { - com.squareup.okhttp.Call call = getTextValidateBeforeCall(name, LLX, LLY, URX, URY, format, regex, splitRects, folder, storage, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse getVerifySignatureWithHttpInfo(String name, String signName, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = getVerifySignatureValidateBeforeCall(name, signName, storage, folder, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Read document text. (asynchronously) + * Verify signature document. (asynchronously) * * @param name The document name. (required) - * @param LLX (required) - * @param LLY (required) - * @param URX (required) - * @param URY (required) - * @param format List of formats for search. (optional) - * @param regex Formats are specified as a regular expression. (optional) - * @param splitRects Split result fragments (default is true). (optional) - * @param folder The document folder. (optional) + * @param signName Sign name. (required) * @param storage The document storage. (optional) + * @param folder The document folder. (optional) * @param callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call getTextAsync(String name, Double LLX, Double LLY, Double URX, Double URY, List format, String regex, Boolean splitRects, String folder, String storage, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call getVerifySignatureAsync(String name, String signName, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -16641,43 +17978,60 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = getTextValidateBeforeCall(name, LLX, LLY, URX, URY, format, regex, splitRects, folder, storage, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = getVerifySignatureValidateBeforeCall(name, signName, storage, folder, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for getTextAnnotation - * @param name The document name. (required) - * @param annotationId The annotation ID. (required) + * Build call for getWebInStorageToPdf + * @param url Source url (required) + * @param height Page height (optional) + * @param width Page width (optional) + * @param isLandscape Is page landscaped (optional) + * @param marginLeft Page margin left (optional) + * @param marginBottom Page margin bottom (optional) + * @param marginRight Page margin right (optional) + * @param marginTop Page margin top (optional) * @param storage The document storage. (optional) - * @param folder The document folder. (optional) * @param progressListener Progress listener * @param progressRequestListener Progress request listener * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call getTextAnnotationCall(String name, String annotationId, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call getWebInStorageToPdfCall(String url, Double height, Double width, Boolean isLandscape, Double marginLeft, Double marginBottom, Double marginRight, Double marginTop, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; // create path and map variables - String localVarPath = "/pdf/{name}/annotations/text/{annotationId}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "annotationId" + "\\}", apiClient.escapeString(annotationId.toString())); + String localVarPath = "/pdf/create/web"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + if (url != null) + localVarQueryParams.addAll(apiClient.parameterToPair("url", url)); + if (height != null) + localVarQueryParams.addAll(apiClient.parameterToPair("height", height)); + if (width != null) + localVarQueryParams.addAll(apiClient.parameterToPair("width", width)); + if (isLandscape != null) + localVarQueryParams.addAll(apiClient.parameterToPair("isLandscape", isLandscape)); + if (marginLeft != null) + localVarQueryParams.addAll(apiClient.parameterToPair("marginLeft", marginLeft)); + if (marginBottom != null) + localVarQueryParams.addAll(apiClient.parameterToPair("marginBottom", marginBottom)); + if (marginRight != null) + localVarQueryParams.addAll(apiClient.parameterToPair("marginRight", marginRight)); + if (marginTop != null) + localVarQueryParams.addAll(apiClient.parameterToPair("marginTop", marginTop)); if (storage != null) localVarQueryParams.addAll(apiClient.parameterToPair("storage", storage)); - if (folder != null) - localVarQueryParams.addAll(apiClient.parameterToPair("folder", folder)); Map localVarHeaderParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "multipart/form-data" }; final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); @@ -16705,38 +18059,38 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getTextAnnotationValidateBeforeCall(String name, String annotationId, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - - // verify the required parameter 'name' is set - if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling getTextAnnotation(Async)"); - } + private com.squareup.okhttp.Call getWebInStorageToPdfValidateBeforeCall(String url, Double height, Double width, Boolean isLandscape, Double marginLeft, Double marginBottom, Double marginRight, Double marginTop, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - // verify the required parameter 'annotationId' is set - if (annotationId == null) { - throw new ApiException("Missing the required parameter 'annotationId' when calling getTextAnnotation(Async)"); + // verify the required parameter 'url' is set + if (url == null) { + throw new ApiException("Missing the required parameter 'url' when calling getWebInStorageToPdf(Async)"); } - com.squareup.okhttp.Call call = getTextAnnotationCall(name, annotationId, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getWebInStorageToPdfCall(url, height, width, isLandscape, marginLeft, marginBottom, marginRight, marginTop, storage, progressListener, progressRequestListener); return call; } /** - * Read document page text annotation by ID. + * Convert web page to PDF format and return resulting file in response. * - * @param name The document name. (required) - * @param annotationId The annotation ID. (required) + * @param url Source url (required) + * @param height Page height (optional) + * @param width Page width (optional) + * @param isLandscape Is page landscaped (optional) + * @param marginLeft Page margin left (optional) + * @param marginBottom Page margin bottom (optional) + * @param marginRight Page margin right (optional) + * @param marginTop Page margin top (optional) * @param storage The document storage. (optional) - * @param folder The document folder. (optional) - * @return TextAnnotationResponse + * @return File * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public TextAnnotationResponse getTextAnnotation(String name, String annotationId, String storage, String folder) throws ApiException { + public File getWebInStorageToPdf(String url, Double height, Double width, Boolean isLandscape, Double marginLeft, Double marginBottom, Double marginRight, Double marginTop, String storage) throws ApiException { try { - ApiResponse resp = getTextAnnotationWithHttpInfo(name, annotationId, storage, folder); + ApiResponse resp = getWebInStorageToPdfWithHttpInfo(url, height, width, isLandscape, marginLeft, marginBottom, marginRight, marginTop, storage); return resp.getData(); } catch (ApiException ex) @@ -16744,7 +18098,7 @@ public TextAnnotationResponse getTextAnnotation(String name, String annotationId if (ex.getCode() == 401) { apiClient.refreshToken(); - ApiResponse resp = getTextAnnotationWithHttpInfo(name, annotationId, storage, folder); + ApiResponse resp = getWebInStorageToPdfWithHttpInfo(url, height, width, isLandscape, marginLeft, marginBottom, marginRight, marginTop, storage); return resp.getData(); } throw ex; @@ -16752,33 +18106,43 @@ public TextAnnotationResponse getTextAnnotation(String name, String annotationId } /** - * Read document page text annotation by ID. + * Convert web page to PDF format and return resulting file in response. * - * @param name The document name. (required) - * @param annotationId The annotation ID. (required) + * @param url Source url (required) + * @param height Page height (optional) + * @param width Page width (optional) + * @param isLandscape Is page landscaped (optional) + * @param marginLeft Page margin left (optional) + * @param marginBottom Page margin bottom (optional) + * @param marginRight Page margin right (optional) + * @param marginTop Page margin top (optional) * @param storage The document storage. (optional) - * @param folder The document folder. (optional) - * @return ApiResponse<TextAnnotationResponse> + * @return ApiResponse<File> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse getTextAnnotationWithHttpInfo(String name, String annotationId, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = getTextAnnotationValidateBeforeCall(name, annotationId, storage, folder, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse getWebInStorageToPdfWithHttpInfo(String url, Double height, Double width, Boolean isLandscape, Double marginLeft, Double marginBottom, Double marginRight, Double marginTop, String storage) throws ApiException { + com.squareup.okhttp.Call call = getWebInStorageToPdfValidateBeforeCall(url, height, width, isLandscape, marginLeft, marginBottom, marginRight, marginTop, storage, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Read document page text annotation by ID. (asynchronously) + * Convert web page to PDF format and return resulting file in response. (asynchronously) * - * @param name The document name. (required) - * @param annotationId The annotation ID. (required) + * @param url Source url (required) + * @param height Page height (optional) + * @param width Page width (optional) + * @param isLandscape Is page landscaped (optional) + * @param marginLeft Page margin left (optional) + * @param marginBottom Page margin bottom (optional) + * @param marginRight Page margin right (optional) + * @param marginTop Page margin top (optional) * @param storage The document storage. (optional) - * @param folder The document folder. (optional) * @param callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call getTextAnnotationAsync(String name, String annotationId, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call getWebInStorageToPdfAsync(String url, Double height, Double width, Boolean isLandscape, Double marginLeft, Double marginBottom, Double marginRight, Double marginTop, String storage, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -16799,15 +18163,14 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = getTextAnnotationValidateBeforeCall(name, annotationId, storage, folder, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = getWebInStorageToPdfValidateBeforeCall(url, height, width, isLandscape, marginLeft, marginBottom, marginRight, marginTop, storage, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for getUnderlineAnnotation + * Build call for getWordsPerPage * @param name The document name. (required) - * @param annotationId The annotation ID. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) * @param progressListener Progress listener @@ -16815,13 +18178,12 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call getUnderlineAnnotationCall(String name, String annotationId, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call getWordsPerPageCall(String name, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; // create path and map variables - String localVarPath = "/pdf/{name}/annotations/underline/{annotationId}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "annotationId" + "\\}", apiClient.escapeString(annotationId.toString())); + String localVarPath = "/pdf/{name}/pages/wordCount" + .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -16863,38 +18225,32 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getUnderlineAnnotationValidateBeforeCall(String name, String annotationId, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call getWordsPerPageValidateBeforeCall(String name, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { // verify the required parameter 'name' is set if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling getUnderlineAnnotation(Async)"); - } - - // verify the required parameter 'annotationId' is set - if (annotationId == null) { - throw new ApiException("Missing the required parameter 'annotationId' when calling getUnderlineAnnotation(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling getWordsPerPage(Async)"); } - com.squareup.okhttp.Call call = getUnderlineAnnotationCall(name, annotationId, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getWordsPerPageCall(name, storage, folder, progressListener, progressRequestListener); return call; } /** - * Read document page underline annotation by ID. + * Get number of words per document page. * * @param name The document name. (required) - * @param annotationId The annotation ID. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) - * @return UnderlineAnnotationResponse + * @return WordCountResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public UnderlineAnnotationResponse getUnderlineAnnotation(String name, String annotationId, String storage, String folder) throws ApiException { + public WordCountResponse getWordsPerPage(String name, String storage, String folder) throws ApiException { try { - ApiResponse resp = getUnderlineAnnotationWithHttpInfo(name, annotationId, storage, folder); + ApiResponse resp = getWordsPerPageWithHttpInfo(name, storage, folder); return resp.getData(); } catch (ApiException ex) @@ -16902,7 +18258,7 @@ public UnderlineAnnotationResponse getUnderlineAnnotation(String name, String an if (ex.getCode() == 401) { apiClient.refreshToken(); - ApiResponse resp = getUnderlineAnnotationWithHttpInfo(name, annotationId, storage, folder); + ApiResponse resp = getWordsPerPageWithHttpInfo(name, storage, folder); return resp.getData(); } throw ex; @@ -16910,33 +18266,31 @@ public UnderlineAnnotationResponse getUnderlineAnnotation(String name, String an } /** - * Read document page underline annotation by ID. + * Get number of words per document page. * * @param name The document name. (required) - * @param annotationId The annotation ID. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) - * @return ApiResponse<UnderlineAnnotationResponse> + * @return ApiResponse<WordCountResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse getUnderlineAnnotationWithHttpInfo(String name, String annotationId, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = getUnderlineAnnotationValidateBeforeCall(name, annotationId, storage, folder, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse getWordsPerPageWithHttpInfo(String name, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = getWordsPerPageValidateBeforeCall(name, storage, folder, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Read document page underline annotation by ID. (asynchronously) + * Get number of words per document page. (asynchronously) * * @param name The document name. (required) - * @param annotationId The annotation ID. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) * @param callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call getUnderlineAnnotationAsync(String name, String annotationId, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call getWordsPerPageAsync(String name, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -16957,44 +18311,41 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = getUnderlineAnnotationValidateBeforeCall(name, annotationId, storage, folder, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = getWordsPerPageValidateBeforeCall(name, storage, folder, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for getVerifySignature + * Build call for getXfaPdfInStorageToAcroForm * @param name The document name. (required) - * @param signName Sign name. (required) - * @param storage The document storage. (optional) * @param folder The document folder. (optional) + * @param storage The document storage. (optional) * @param progressListener Progress listener * @param progressRequestListener Progress request listener * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call getVerifySignatureCall(String name, String signName, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call getXfaPdfInStorageToAcroFormCall(String name, String folder, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; // create path and map variables - String localVarPath = "/pdf/{name}/verifySignature" + String localVarPath = "/pdf/{name}/convert/xfatoacroform" .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (signName != null) - localVarQueryParams.addAll(apiClient.parameterToPair("signName", signName)); - if (storage != null) - localVarQueryParams.addAll(apiClient.parameterToPair("storage", storage)); if (folder != null) localVarQueryParams.addAll(apiClient.parameterToPair("folder", folder)); + if (storage != null) + localVarQueryParams.addAll(apiClient.parameterToPair("storage", storage)); Map localVarHeaderParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "multipart/form-data" }; final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); @@ -17022,38 +18373,32 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getVerifySignatureValidateBeforeCall(String name, String signName, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call getXfaPdfInStorageToAcroFormValidateBeforeCall(String name, String folder, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { // verify the required parameter 'name' is set if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling getVerifySignature(Async)"); - } - - // verify the required parameter 'signName' is set - if (signName == null) { - throw new ApiException("Missing the required parameter 'signName' when calling getVerifySignature(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling getXfaPdfInStorageToAcroForm(Async)"); } - com.squareup.okhttp.Call call = getVerifySignatureCall(name, signName, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getXfaPdfInStorageToAcroFormCall(name, folder, storage, progressListener, progressRequestListener); return call; } /** - * Verify signature document. + * 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. (required) - * @param signName Sign name. (required) - * @param storage The document storage. (optional) * @param folder The document folder. (optional) - * @return SignatureVerifyResponse + * @param storage The document storage. (optional) + * @return File * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public SignatureVerifyResponse getVerifySignature(String name, String signName, String storage, String folder) throws ApiException { + public File getXfaPdfInStorageToAcroForm(String name, String folder, String storage) throws ApiException { try { - ApiResponse resp = getVerifySignatureWithHttpInfo(name, signName, storage, folder); + ApiResponse resp = getXfaPdfInStorageToAcroFormWithHttpInfo(name, folder, storage); return resp.getData(); } catch (ApiException ex) @@ -17061,7 +18406,7 @@ public SignatureVerifyResponse getVerifySignature(String name, String signName, if (ex.getCode() == 401) { apiClient.refreshToken(); - ApiResponse resp = getVerifySignatureWithHttpInfo(name, signName, storage, folder); + ApiResponse resp = getXfaPdfInStorageToAcroFormWithHttpInfo(name, folder, storage); return resp.getData(); } throw ex; @@ -17069,33 +18414,31 @@ public SignatureVerifyResponse getVerifySignature(String name, String signName, } /** - * Verify signature document. + * 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. (required) - * @param signName Sign name. (required) - * @param storage The document storage. (optional) * @param folder The document folder. (optional) - * @return ApiResponse<SignatureVerifyResponse> + * @param storage The document storage. (optional) + * @return ApiResponse<File> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse getVerifySignatureWithHttpInfo(String name, String signName, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = getVerifySignatureValidateBeforeCall(name, signName, storage, folder, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse getXfaPdfInStorageToAcroFormWithHttpInfo(String name, String folder, String storage) throws ApiException { + com.squareup.okhttp.Call call = getXfaPdfInStorageToAcroFormValidateBeforeCall(name, folder, storage, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Verify signature document. (asynchronously) + * Converts PDF document which contatins XFA form (located on storage) to PDF with AcroForm and returns resulting file response content (asynchronously) * * @param name The document name. (required) - * @param signName Sign name. (required) - * @param storage The document storage. (optional) * @param folder The document folder. (optional) + * @param storage The document storage. (optional) * @param callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call getVerifySignatureAsync(String name, String signName, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call getXfaPdfInStorageToAcroFormAsync(String name, String folder, String storage, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -17116,51 +18459,33 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = getVerifySignatureValidateBeforeCall(name, signName, storage, folder, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = getXfaPdfInStorageToAcroFormValidateBeforeCall(name, folder, storage, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for getWebInStorageToPdf - * @param url Source url (required) - * @param height Page height (optional) - * @param width Page width (optional) - * @param isLandscape Is page landscaped (optional) - * @param marginLeft Page margin left (optional) - * @param marginBottom Page margin bottom (optional) - * @param marginRight Page margin right (optional) - * @param marginTop Page margin top (optional) + * Build call for getXmlInStorageToPdf + * @param srcPath Full source filename (ex. /folder1/folder2/template.xml) (required) + * @param xslFilePath Full XSL source filename (ex. /folder1/folder2/template.xsl) (optional) * @param storage The document storage. (optional) * @param progressListener Progress listener * @param progressRequestListener Progress request listener * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call getWebInStorageToPdfCall(String url, Double height, Double width, Boolean isLandscape, Double marginLeft, Double marginBottom, Double marginRight, Double marginTop, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call getXmlInStorageToPdfCall(String srcPath, String xslFilePath, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; // create path and map variables - String localVarPath = "/pdf/create/web"; + String localVarPath = "/pdf/create/xml"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (url != null) - localVarQueryParams.addAll(apiClient.parameterToPair("url", url)); - if (height != null) - localVarQueryParams.addAll(apiClient.parameterToPair("height", height)); - if (width != null) - localVarQueryParams.addAll(apiClient.parameterToPair("width", width)); - if (isLandscape != null) - localVarQueryParams.addAll(apiClient.parameterToPair("isLandscape", isLandscape)); - if (marginLeft != null) - localVarQueryParams.addAll(apiClient.parameterToPair("marginLeft", marginLeft)); - if (marginBottom != null) - localVarQueryParams.addAll(apiClient.parameterToPair("marginBottom", marginBottom)); - if (marginRight != null) - localVarQueryParams.addAll(apiClient.parameterToPair("marginRight", marginRight)); - if (marginTop != null) - localVarQueryParams.addAll(apiClient.parameterToPair("marginTop", marginTop)); + if (srcPath != null) + localVarQueryParams.addAll(apiClient.parameterToPair("srcPath", srcPath)); + if (xslFilePath != null) + localVarQueryParams.addAll(apiClient.parameterToPair("xslFilePath", xslFilePath)); if (storage != null) localVarQueryParams.addAll(apiClient.parameterToPair("storage", storage)); @@ -17197,38 +18522,32 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getWebInStorageToPdfValidateBeforeCall(String url, Double height, Double width, Boolean isLandscape, Double marginLeft, Double marginBottom, Double marginRight, Double marginTop, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call getXmlInStorageToPdfValidateBeforeCall(String srcPath, String xslFilePath, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - // verify the required parameter 'url' is set - if (url == null) { - throw new ApiException("Missing the required parameter 'url' when calling getWebInStorageToPdf(Async)"); + // verify the required parameter 'srcPath' is set + if (srcPath == null) { + throw new ApiException("Missing the required parameter 'srcPath' when calling getXmlInStorageToPdf(Async)"); } - com.squareup.okhttp.Call call = getWebInStorageToPdfCall(url, height, width, isLandscape, marginLeft, marginBottom, marginRight, marginTop, storage, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getXmlInStorageToPdfCall(srcPath, xslFilePath, storage, progressListener, progressRequestListener); return call; } /** - * Convert web page to PDF format and return resulting file in response. + * Convert XML file (located on storage) to PDF format and return resulting file in response. * - * @param url Source url (required) - * @param height Page height (optional) - * @param width Page width (optional) - * @param isLandscape Is page landscaped (optional) - * @param marginLeft Page margin left (optional) - * @param marginBottom Page margin bottom (optional) - * @param marginRight Page margin right (optional) - * @param marginTop Page margin top (optional) + * @param srcPath Full source filename (ex. /folder1/folder2/template.xml) (required) + * @param xslFilePath Full XSL source filename (ex. /folder1/folder2/template.xsl) (optional) * @param storage The document storage. (optional) * @return File * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public File getWebInStorageToPdf(String url, Double height, Double width, Boolean isLandscape, Double marginLeft, Double marginBottom, Double marginRight, Double marginTop, String storage) throws ApiException { + public File getXmlInStorageToPdf(String srcPath, String xslFilePath, String storage) throws ApiException { try { - ApiResponse resp = getWebInStorageToPdfWithHttpInfo(url, height, width, isLandscape, marginLeft, marginBottom, marginRight, marginTop, storage); + ApiResponse resp = getXmlInStorageToPdfWithHttpInfo(srcPath, xslFilePath, storage); return resp.getData(); } catch (ApiException ex) @@ -17236,7 +18555,7 @@ public File getWebInStorageToPdf(String url, Double height, Double width, Boolea if (ex.getCode() == 401) { apiClient.refreshToken(); - ApiResponse resp = getWebInStorageToPdfWithHttpInfo(url, height, width, isLandscape, marginLeft, marginBottom, marginRight, marginTop, storage); + ApiResponse resp = getXmlInStorageToPdfWithHttpInfo(srcPath, xslFilePath, storage); return resp.getData(); } throw ex; @@ -17244,43 +18563,31 @@ public File getWebInStorageToPdf(String url, Double height, Double width, Boolea } /** - * Convert web page to PDF format and return resulting file in response. + * Convert XML file (located on storage) to PDF format and return resulting file in response. * - * @param url Source url (required) - * @param height Page height (optional) - * @param width Page width (optional) - * @param isLandscape Is page landscaped (optional) - * @param marginLeft Page margin left (optional) - * @param marginBottom Page margin bottom (optional) - * @param marginRight Page margin right (optional) - * @param marginTop Page margin top (optional) + * @param srcPath Full source filename (ex. /folder1/folder2/template.xml) (required) + * @param xslFilePath Full XSL source filename (ex. /folder1/folder2/template.xsl) (optional) * @param storage The document storage. (optional) * @return ApiResponse<File> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse getWebInStorageToPdfWithHttpInfo(String url, Double height, Double width, Boolean isLandscape, Double marginLeft, Double marginBottom, Double marginRight, Double marginTop, String storage) throws ApiException { - com.squareup.okhttp.Call call = getWebInStorageToPdfValidateBeforeCall(url, height, width, isLandscape, marginLeft, marginBottom, marginRight, marginTop, storage, null, null); + public ApiResponse getXmlInStorageToPdfWithHttpInfo(String srcPath, String xslFilePath, String storage) throws ApiException { + com.squareup.okhttp.Call call = getXmlInStorageToPdfValidateBeforeCall(srcPath, xslFilePath, storage, null, null); Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Convert web page to PDF format and return resulting file in response. (asynchronously) + * Convert XML file (located on storage) to PDF format and return resulting file in response. (asynchronously) * - * @param url Source url (required) - * @param height Page height (optional) - * @param width Page width (optional) - * @param isLandscape Is page landscaped (optional) - * @param marginLeft Page margin left (optional) - * @param marginBottom Page margin bottom (optional) - * @param marginRight Page margin right (optional) - * @param marginTop Page margin top (optional) + * @param srcPath Full source filename (ex. /folder1/folder2/template.xml) (required) + * @param xslFilePath Full XSL source filename (ex. /folder1/folder2/template.xsl) (optional) * @param storage The document storage. (optional) * @param callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call getWebInStorageToPdfAsync(String url, Double height, Double width, Boolean isLandscape, Double marginLeft, Double marginBottom, Double marginRight, Double marginTop, String storage, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call getXmlInStorageToPdfAsync(String srcPath, String xslFilePath, String storage, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -17301,41 +18608,39 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = getWebInStorageToPdfValidateBeforeCall(url, height, width, isLandscape, marginLeft, marginBottom, marginRight, marginTop, storage, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getXmlInStorageToPdfValidateBeforeCall(srcPath, xslFilePath, storage, progressListener, progressRequestListener); Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for getWordsPerPage - * @param name The document name. (required) + * Build call for getXpsInStorageToPdf + * @param srcPath Full source filename (ex. /folder1/folder2/template.xps) (required) * @param storage The document storage. (optional) - * @param folder The document folder. (optional) * @param progressListener Progress listener * @param progressRequestListener Progress request listener * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call getWordsPerPageCall(String name, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call getXpsInStorageToPdfCall(String srcPath, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; // create path and map variables - String localVarPath = "/pdf/{name}/pages/wordCount" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + String localVarPath = "/pdf/create/xps"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + if (srcPath != null) + localVarQueryParams.addAll(apiClient.parameterToPair("srcPath", srcPath)); if (storage != null) localVarQueryParams.addAll(apiClient.parameterToPair("storage", storage)); - if (folder != null) - localVarQueryParams.addAll(apiClient.parameterToPair("folder", folder)); Map localVarHeaderParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "multipart/form-data" }; final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); @@ -17363,32 +18668,31 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getWordsPerPageValidateBeforeCall(String name, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call getXpsInStorageToPdfValidateBeforeCall(String srcPath, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - // verify the required parameter 'name' is set - if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling getWordsPerPage(Async)"); + // verify the required parameter 'srcPath' is set + if (srcPath == null) { + throw new ApiException("Missing the required parameter 'srcPath' when calling getXpsInStorageToPdf(Async)"); } - com.squareup.okhttp.Call call = getWordsPerPageCall(name, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getXpsInStorageToPdfCall(srcPath, storage, progressListener, progressRequestListener); return call; } /** - * Get number of words per document page. + * Convert XPS file (located on storage) to PDF format and return resulting file in response. * - * @param name The document name. (required) + * @param srcPath Full source filename (ex. /folder1/folder2/template.xps) (required) * @param storage The document storage. (optional) - * @param folder The document folder. (optional) - * @return WordCountResponse + * @return File * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public WordCountResponse getWordsPerPage(String name, String storage, String folder) throws ApiException { + public File getXpsInStorageToPdf(String srcPath, String storage) throws ApiException { try { - ApiResponse resp = getWordsPerPageWithHttpInfo(name, storage, folder); + ApiResponse resp = getXpsInStorageToPdfWithHttpInfo(srcPath, storage); return resp.getData(); } catch (ApiException ex) @@ -17396,7 +18700,7 @@ public WordCountResponse getWordsPerPage(String name, String storage, String fol if (ex.getCode() == 401) { apiClient.refreshToken(); - ApiResponse resp = getWordsPerPageWithHttpInfo(name, storage, folder); + ApiResponse resp = getXpsInStorageToPdfWithHttpInfo(srcPath, storage); return resp.getData(); } throw ex; @@ -17404,31 +18708,29 @@ public WordCountResponse getWordsPerPage(String name, String storage, String fol } /** - * Get number of words per document page. + * Convert XPS file (located on storage) to PDF format and return resulting file in response. * - * @param name The document name. (required) + * @param srcPath Full source filename (ex. /folder1/folder2/template.xps) (required) * @param storage The document storage. (optional) - * @param folder The document folder. (optional) - * @return ApiResponse<WordCountResponse> + * @return ApiResponse<File> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse getWordsPerPageWithHttpInfo(String name, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = getWordsPerPageValidateBeforeCall(name, storage, folder, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse getXpsInStorageToPdfWithHttpInfo(String srcPath, String storage) throws ApiException { + com.squareup.okhttp.Call call = getXpsInStorageToPdfValidateBeforeCall(srcPath, storage, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Get number of words per document page. (asynchronously) + * Convert XPS file (located on storage) to PDF format and return resulting file in response. (asynchronously) * - * @param name The document name. (required) + * @param srcPath Full source filename (ex. /folder1/folder2/template.xps) (required) * @param storage The document storage. (optional) - * @param folder The document folder. (optional) * @param callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call getWordsPerPageAsync(String name, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call getXpsInStorageToPdfAsync(String srcPath, String storage, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -17449,32 +18751,30 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = getWordsPerPageValidateBeforeCall(name, storage, folder, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = getXpsInStorageToPdfValidateBeforeCall(srcPath, storage, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for getXfaPdfInStorageToAcroForm - * @param name The document name. (required) - * @param folder The document folder. (optional) + * Build call for getXslFoInStorageToPdf + * @param srcPath Full source filename (ex. /folder1/folder2/template.xslfo) (required) * @param storage The document storage. (optional) * @param progressListener Progress listener * @param progressRequestListener Progress request listener * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call getXfaPdfInStorageToAcroFormCall(String name, String folder, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call getXslFoInStorageToPdfCall(String srcPath, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; - // create path and map variables - String localVarPath = "/pdf/{name}/convert/xfatoacroform" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + // create path and map variables + String localVarPath = "/pdf/create/xslfo"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (folder != null) - localVarQueryParams.addAll(apiClient.parameterToPair("folder", folder)); + if (srcPath != null) + localVarQueryParams.addAll(apiClient.parameterToPair("srcPath", srcPath)); if (storage != null) localVarQueryParams.addAll(apiClient.parameterToPair("storage", storage)); @@ -17511,32 +18811,31 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getXfaPdfInStorageToAcroFormValidateBeforeCall(String name, String folder, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call getXslFoInStorageToPdfValidateBeforeCall(String srcPath, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - // verify the required parameter 'name' is set - if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling getXfaPdfInStorageToAcroForm(Async)"); + // verify the required parameter 'srcPath' is set + if (srcPath == null) { + throw new ApiException("Missing the required parameter 'srcPath' when calling getXslFoInStorageToPdf(Async)"); } - com.squareup.okhttp.Call call = getXfaPdfInStorageToAcroFormCall(name, folder, storage, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getXslFoInStorageToPdfCall(srcPath, storage, progressListener, progressRequestListener); return call; } /** - * Converts PDF document which contatins XFA form (located on storage) to PDF with AcroForm and returns resulting file response content + * Convert XslFo file (located on storage) to PDF format and return resulting file in response. * - * @param name The document name. (required) - * @param folder The document folder. (optional) + * @param srcPath Full source filename (ex. /folder1/folder2/template.xslfo) (required) * @param storage The document storage. (optional) * @return File * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public File getXfaPdfInStorageToAcroForm(String name, String folder, String storage) throws ApiException { + public File getXslFoInStorageToPdf(String srcPath, String storage) throws ApiException { try { - ApiResponse resp = getXfaPdfInStorageToAcroFormWithHttpInfo(name, folder, storage); + ApiResponse resp = getXslFoInStorageToPdfWithHttpInfo(srcPath, storage); return resp.getData(); } catch (ApiException ex) @@ -17544,7 +18843,7 @@ public File getXfaPdfInStorageToAcroForm(String name, String folder, String stor if (ex.getCode() == 401) { apiClient.refreshToken(); - ApiResponse resp = getXfaPdfInStorageToAcroFormWithHttpInfo(name, folder, storage); + ApiResponse resp = getXslFoInStorageToPdfWithHttpInfo(srcPath, storage); return resp.getData(); } throw ex; @@ -17552,31 +18851,29 @@ public File getXfaPdfInStorageToAcroForm(String name, String folder, String stor } /** - * Converts PDF document which contatins XFA form (located on storage) to PDF with AcroForm and returns resulting file response content + * Convert XslFo file (located on storage) to PDF format and return resulting file in response. * - * @param name The document name. (required) - * @param folder The document folder. (optional) + * @param srcPath Full source filename (ex. /folder1/folder2/template.xslfo) (required) * @param storage The document storage. (optional) * @return ApiResponse<File> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse getXfaPdfInStorageToAcroFormWithHttpInfo(String name, String folder, String storage) throws ApiException { - com.squareup.okhttp.Call call = getXfaPdfInStorageToAcroFormValidateBeforeCall(name, folder, storage, null, null); + public ApiResponse getXslFoInStorageToPdfWithHttpInfo(String srcPath, String storage) throws ApiException { + com.squareup.okhttp.Call call = getXslFoInStorageToPdfValidateBeforeCall(srcPath, storage, null, null); Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Converts PDF document which contatins XFA form (located on storage) to PDF with AcroForm and returns resulting file response content (asynchronously) + * Convert XslFo file (located on storage) to PDF format and return resulting file in response. (asynchronously) * - * @param name The document name. (required) - * @param folder The document folder. (optional) + * @param srcPath Full source filename (ex. /folder1/folder2/template.xslfo) (required) * @param storage The document storage. (optional) * @param callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call getXfaPdfInStorageToAcroFormAsync(String name, String folder, String storage, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call getXslFoInStorageToPdfAsync(String srcPath, String storage, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -17597,42 +18894,51 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = getXfaPdfInStorageToAcroFormValidateBeforeCall(name, folder, storage, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getXslFoInStorageToPdfValidateBeforeCall(srcPath, storage, progressListener, progressRequestListener); Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for getXmlInStorageToPdf - * @param srcPath Full source filename (ex. /folder1/folder2/template.xml) (required) - * @param xslFilePath Full XSL source filename (ex. /folder1/folder2/template.xsl) (optional) - * @param storage The document storage. (optional) + * Build call for postAppendDocument + * @param name The original document name. (required) + * @param appendDocument with the append document data. (optional) + * @param appendFile Append file server path. (optional) + * @param startPage Appending start page. (optional, default to 0) + * @param endPage Appending end page. (optional, default to 0) + * @param storage The documents storage. (optional) + * @param folder The original document folder. (optional) * @param progressListener Progress listener * @param progressRequestListener Progress request listener * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call getXmlInStorageToPdfCall(String srcPath, String xslFilePath, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = null; + public com.squareup.okhttp.Call postAppendDocumentCall(String name, AppendDocument appendDocument, String appendFile, Integer startPage, Integer endPage, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = appendDocument; // create path and map variables - String localVarPath = "/pdf/create/xml"; + String localVarPath = "/pdf/{name}/appendDocument" + .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (srcPath != null) - localVarQueryParams.addAll(apiClient.parameterToPair("srcPath", srcPath)); - if (xslFilePath != null) - localVarQueryParams.addAll(apiClient.parameterToPair("xslFilePath", xslFilePath)); + if (appendFile != null) + localVarQueryParams.addAll(apiClient.parameterToPair("appendFile", appendFile)); + if (startPage != null) + localVarQueryParams.addAll(apiClient.parameterToPair("startPage", startPage)); + if (endPage != null) + localVarQueryParams.addAll(apiClient.parameterToPair("endPage", endPage)); if (storage != null) localVarQueryParams.addAll(apiClient.parameterToPair("storage", storage)); + if (folder != null) + localVarQueryParams.addAll(apiClient.parameterToPair("folder", folder)); Map localVarHeaderParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "multipart/form-data" + "application/json" }; final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); @@ -17656,36 +18962,40 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } String[] localVarAuthNames = new String[] { }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getXmlInStorageToPdfValidateBeforeCall(String srcPath, String xslFilePath, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call postAppendDocumentValidateBeforeCall(String name, AppendDocument appendDocument, String appendFile, Integer startPage, Integer endPage, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - // verify the required parameter 'srcPath' is set - if (srcPath == null) { - throw new ApiException("Missing the required parameter 'srcPath' when calling getXmlInStorageToPdf(Async)"); + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling postAppendDocument(Async)"); } - com.squareup.okhttp.Call call = getXmlInStorageToPdfCall(srcPath, xslFilePath, storage, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = postAppendDocumentCall(name, appendDocument, appendFile, startPage, endPage, storage, folder, progressListener, progressRequestListener); return call; } /** - * Convert XML file (located on storage) to PDF format and return resulting file in response. + * Append document to existing one. * - * @param srcPath Full source filename (ex. /folder1/folder2/template.xml) (required) - * @param xslFilePath Full XSL source filename (ex. /folder1/folder2/template.xsl) (optional) - * @param storage The document storage. (optional) - * @return File + * @param name The original document name. (required) + * @param appendDocument with the append document data. (optional) + * @param appendFile Append file server path. (optional) + * @param startPage Appending start page. (optional, default to 0) + * @param endPage Appending end page. (optional, default to 0) + * @param storage The documents storage. (optional) + * @param folder The original document folder. (optional) + * @return DocumentResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public File getXmlInStorageToPdf(String srcPath, String xslFilePath, String storage) throws ApiException { + public DocumentResponse postAppendDocument(String name, AppendDocument appendDocument, String appendFile, Integer startPage, Integer endPage, String storage, String folder) throws ApiException { try { - ApiResponse resp = getXmlInStorageToPdfWithHttpInfo(srcPath, xslFilePath, storage); + ApiResponse resp = postAppendDocumentWithHttpInfo(name, appendDocument, appendFile, startPage, endPage, storage, folder); return resp.getData(); } catch (ApiException ex) @@ -17693,7 +19003,7 @@ public File getXmlInStorageToPdf(String srcPath, String xslFilePath, String stor if (ex.getCode() == 401) { apiClient.refreshToken(); - ApiResponse resp = getXmlInStorageToPdfWithHttpInfo(srcPath, xslFilePath, storage); + ApiResponse resp = postAppendDocumentWithHttpInfo(name, appendDocument, appendFile, startPage, endPage, storage, folder); return resp.getData(); } throw ex; @@ -17701,31 +19011,39 @@ public File getXmlInStorageToPdf(String srcPath, String xslFilePath, String stor } /** - * Convert XML file (located on storage) to PDF format and return resulting file in response. + * Append document to existing one. * - * @param srcPath Full source filename (ex. /folder1/folder2/template.xml) (required) - * @param xslFilePath Full XSL source filename (ex. /folder1/folder2/template.xsl) (optional) - * @param storage The document storage. (optional) - * @return ApiResponse<File> + * @param name The original document name. (required) + * @param appendDocument with the append document data. (optional) + * @param appendFile Append file server path. (optional) + * @param startPage Appending start page. (optional, default to 0) + * @param endPage Appending end page. (optional, default to 0) + * @param storage The documents storage. (optional) + * @param folder The original document folder. (optional) + * @return ApiResponse<DocumentResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse getXmlInStorageToPdfWithHttpInfo(String srcPath, String xslFilePath, String storage) throws ApiException { - com.squareup.okhttp.Call call = getXmlInStorageToPdfValidateBeforeCall(srcPath, xslFilePath, storage, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse postAppendDocumentWithHttpInfo(String name, AppendDocument appendDocument, String appendFile, Integer startPage, Integer endPage, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = postAppendDocumentValidateBeforeCall(name, appendDocument, appendFile, startPage, endPage, storage, folder, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Convert XML file (located on storage) to PDF format and return resulting file in response. (asynchronously) + * Append document to existing one. (asynchronously) * - * @param srcPath Full source filename (ex. /folder1/folder2/template.xml) (required) - * @param xslFilePath Full XSL source filename (ex. /folder1/folder2/template.xsl) (optional) - * @param storage The document storage. (optional) + * @param name The original document name. (required) + * @param appendDocument with the append document data. (optional) + * @param appendFile Append file server path. (optional) + * @param startPage Appending start page. (optional, default to 0) + * @param endPage Appending end page. (optional, default to 0) + * @param storage The documents storage. (optional) + * @param folder The original document folder. (optional) * @param callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call getXmlInStorageToPdfAsync(String srcPath, String xslFilePath, String storage, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call postAppendDocumentAsync(String name, AppendDocument appendDocument, String appendFile, Integer startPage, Integer endPage, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -17746,39 +19064,45 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = getXmlInStorageToPdfValidateBeforeCall(srcPath, xslFilePath, storage, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = postAppendDocumentValidateBeforeCall(name, appendDocument, appendFile, startPage, endPage, storage, folder, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for getXpsInStorageToPdf - * @param srcPath Full source filename (ex. /folder1/folder2/template.xps) (required) + * Build call for postCreateField + * @param name The document name. (required) + * @param page Document page number. (required) + * @param field with the field data. (optional) * @param storage The document storage. (optional) + * @param folder The document folder. (optional) * @param progressListener Progress listener * @param progressRequestListener Progress request listener * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call getXpsInStorageToPdfCall(String srcPath, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = null; + public com.squareup.okhttp.Call postCreateFieldCall(String name, Integer page, Field field, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = field; // create path and map variables - String localVarPath = "/pdf/create/xps"; + String localVarPath = "/pdf/{name}/fields" + .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (srcPath != null) - localVarQueryParams.addAll(apiClient.parameterToPair("srcPath", srcPath)); + if (page != null) + localVarQueryParams.addAll(apiClient.parameterToPair("page", page)); if (storage != null) localVarQueryParams.addAll(apiClient.parameterToPair("storage", storage)); + if (folder != null) + localVarQueryParams.addAll(apiClient.parameterToPair("folder", folder)); Map localVarHeaderParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "multipart/form-data" + "application/json" }; final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); @@ -17802,35 +19126,43 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } String[] localVarAuthNames = new String[] { }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getXpsInStorageToPdfValidateBeforeCall(String srcPath, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call postCreateFieldValidateBeforeCall(String name, Integer page, Field field, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - // verify the required parameter 'srcPath' is set - if (srcPath == null) { - throw new ApiException("Missing the required parameter 'srcPath' when calling getXpsInStorageToPdf(Async)"); + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling postCreateField(Async)"); + } + + // verify the required parameter 'page' is set + if (page == null) { + throw new ApiException("Missing the required parameter 'page' when calling postCreateField(Async)"); } - com.squareup.okhttp.Call call = getXpsInStorageToPdfCall(srcPath, storage, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = postCreateFieldCall(name, page, field, storage, folder, progressListener, progressRequestListener); return call; } /** - * Convert XPS file (located on storage) to PDF format and return resulting file in response. + * Create field. * - * @param srcPath Full source filename (ex. /folder1/folder2/template.xps) (required) + * @param name The document name. (required) + * @param page Document page number. (required) + * @param field with the field data. (optional) * @param storage The document storage. (optional) - * @return File + * @param folder The document folder. (optional) + * @return AsposeResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public File getXpsInStorageToPdf(String srcPath, String storage) throws ApiException { + public AsposeResponse postCreateField(String name, Integer page, Field field, String storage, String folder) throws ApiException { try { - ApiResponse resp = getXpsInStorageToPdfWithHttpInfo(srcPath, storage); + ApiResponse resp = postCreateFieldWithHttpInfo(name, page, field, storage, folder); return resp.getData(); } catch (ApiException ex) @@ -17838,7 +19170,7 @@ public File getXpsInStorageToPdf(String srcPath, String storage) throws ApiExcep if (ex.getCode() == 401) { apiClient.refreshToken(); - ApiResponse resp = getXpsInStorageToPdfWithHttpInfo(srcPath, storage); + ApiResponse resp = postCreateFieldWithHttpInfo(name, page, field, storage, folder); return resp.getData(); } throw ex; @@ -17846,29 +19178,35 @@ public File getXpsInStorageToPdf(String srcPath, String storage) throws ApiExcep } /** - * Convert XPS file (located on storage) to PDF format and return resulting file in response. + * Create field. * - * @param srcPath Full source filename (ex. /folder1/folder2/template.xps) (required) + * @param name The document name. (required) + * @param page Document page number. (required) + * @param field with the field data. (optional) * @param storage The document storage. (optional) - * @return ApiResponse<File> + * @param folder The document folder. (optional) + * @return ApiResponse<AsposeResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse getXpsInStorageToPdfWithHttpInfo(String srcPath, String storage) throws ApiException { - com.squareup.okhttp.Call call = getXpsInStorageToPdfValidateBeforeCall(srcPath, storage, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse postCreateFieldWithHttpInfo(String name, Integer page, Field field, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = postCreateFieldValidateBeforeCall(name, page, field, storage, folder, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Convert XPS file (located on storage) to PDF format and return resulting file in response. (asynchronously) + * Create field. (asynchronously) * - * @param srcPath Full source filename (ex. /folder1/folder2/template.xps) (required) + * @param name The document name. (required) + * @param page Document page number. (required) + * @param field with the field data. (optional) * @param storage The document storage. (optional) + * @param folder The document folder. (optional) * @param callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call getXpsInStorageToPdfAsync(String srcPath, String storage, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call postCreateFieldAsync(String name, Integer page, Field field, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -17889,39 +19227,42 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = getXpsInStorageToPdfValidateBeforeCall(srcPath, storage, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = postCreateFieldValidateBeforeCall(name, page, field, storage, folder, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for getXslFoInStorageToPdf - * @param srcPath Full source filename (ex. /folder1/folder2/template.xslfo) (required) - * @param storage The document storage. (optional) + * Build call for postDocumentTextReplace + * @param name (required) + * @param textReplace (required) + * @param storage (optional) + * @param folder (optional) * @param progressListener Progress listener * @param progressRequestListener Progress request listener * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call getXslFoInStorageToPdfCall(String srcPath, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = null; + public com.squareup.okhttp.Call postDocumentTextReplaceCall(String name, TextReplaceListRequest textReplace, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = textReplace; // create path and map variables - String localVarPath = "/pdf/create/xslfo"; + String localVarPath = "/pdf/{name}/text/replace" + .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (srcPath != null) - localVarQueryParams.addAll(apiClient.parameterToPair("srcPath", srcPath)); if (storage != null) localVarQueryParams.addAll(apiClient.parameterToPair("storage", storage)); + if (folder != null) + localVarQueryParams.addAll(apiClient.parameterToPair("folder", folder)); Map localVarHeaderParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "multipart/form-data" + "application/json" }; final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); @@ -17945,35 +19286,42 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } String[] localVarAuthNames = new String[] { }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getXslFoInStorageToPdfValidateBeforeCall(String srcPath, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call postDocumentTextReplaceValidateBeforeCall(String name, TextReplaceListRequest textReplace, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling postDocumentTextReplace(Async)"); + } - // verify the required parameter 'srcPath' is set - if (srcPath == null) { - throw new ApiException("Missing the required parameter 'srcPath' when calling getXslFoInStorageToPdf(Async)"); + // verify the required parameter 'textReplace' is set + if (textReplace == null) { + throw new ApiException("Missing the required parameter 'textReplace' when calling postDocumentTextReplace(Async)"); } - com.squareup.okhttp.Call call = getXslFoInStorageToPdfCall(srcPath, storage, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = postDocumentTextReplaceCall(name, textReplace, storage, folder, progressListener, progressRequestListener); return call; } /** - * Convert XslFo file (located on storage) to PDF format and return resulting file in response. + * Document's replace text method. * - * @param srcPath Full source filename (ex. /folder1/folder2/template.xslfo) (required) - * @param storage The document storage. (optional) - * @return File + * @param name (required) + * @param textReplace (required) + * @param storage (optional) + * @param folder (optional) + * @return TextReplaceResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public File getXslFoInStorageToPdf(String srcPath, String storage) throws ApiException { + public TextReplaceResponse postDocumentTextReplace(String name, TextReplaceListRequest textReplace, String storage, String folder) throws ApiException { try { - ApiResponse resp = getXslFoInStorageToPdfWithHttpInfo(srcPath, storage); + ApiResponse resp = postDocumentTextReplaceWithHttpInfo(name, textReplace, storage, folder); return resp.getData(); } catch (ApiException ex) @@ -17981,7 +19329,7 @@ public File getXslFoInStorageToPdf(String srcPath, String storage) throws ApiExc if (ex.getCode() == 401) { apiClient.refreshToken(); - ApiResponse resp = getXslFoInStorageToPdfWithHttpInfo(srcPath, storage); + ApiResponse resp = postDocumentTextReplaceWithHttpInfo(name, textReplace, storage, folder); return resp.getData(); } throw ex; @@ -17989,29 +19337,33 @@ public File getXslFoInStorageToPdf(String srcPath, String storage) throws ApiExc } /** - * Convert XslFo file (located on storage) to PDF format and return resulting file in response. + * Document's replace text method. * - * @param srcPath Full source filename (ex. /folder1/folder2/template.xslfo) (required) - * @param storage The document storage. (optional) - * @return ApiResponse<File> + * @param name (required) + * @param textReplace (required) + * @param storage (optional) + * @param folder (optional) + * @return ApiResponse<TextReplaceResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse getXslFoInStorageToPdfWithHttpInfo(String srcPath, String storage) throws ApiException { - com.squareup.okhttp.Call call = getXslFoInStorageToPdfValidateBeforeCall(srcPath, storage, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse postDocumentTextReplaceWithHttpInfo(String name, TextReplaceListRequest textReplace, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = postDocumentTextReplaceValidateBeforeCall(name, textReplace, storage, folder, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Convert XslFo file (located on storage) to PDF format and return resulting file in response. (asynchronously) + * Document's replace text method. (asynchronously) * - * @param srcPath Full source filename (ex. /folder1/folder2/template.xslfo) (required) - * @param storage The document storage. (optional) + * @param name (required) + * @param textReplace (required) + * @param storage (optional) + * @param folder (optional) * @param callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call getXslFoInStorageToPdfAsync(String srcPath, String storage, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call postDocumentTextReplaceAsync(String name, TextReplaceListRequest textReplace, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -18032,40 +19384,39 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = getXslFoInStorageToPdfValidateBeforeCall(srcPath, storage, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = postDocumentTextReplaceValidateBeforeCall(name, textReplace, storage, folder, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for postAppendDocument - * @param name The original document name. (required) - * @param appendDocument with the append document data. (optional) - * @param appendFile Append file server path. (optional) - * @param startPage Appending start page. (optional, default to 0) - * @param endPage Appending end page. (optional, default to 0) - * @param storage The documents storage. (optional) - * @param folder The original document folder. (optional) + * Build call for postFlattenDocument + * @param name The document name. (required) + * @param updateAppearances If set, all field appearances will be regenerated before flattening. This option may help if field is incorrectly flattened. This option may decrease performance.. (optional) + * @param callEvents If set, formatting and other JavaScript events will be called. (optional) + * @param hideButtons If set, buttons will be removed from flattened document. (optional) + * @param storage The document storage. (optional) + * @param folder The document folder. (optional) * @param progressListener Progress listener * @param progressRequestListener Progress request listener * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call postAppendDocumentCall(String name, AppendDocument appendDocument, String appendFile, Integer startPage, Integer endPage, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = appendDocument; + public com.squareup.okhttp.Call postFlattenDocumentCall(String name, Boolean updateAppearances, Boolean callEvents, Boolean hideButtons, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; // create path and map variables - String localVarPath = "/pdf/{name}/appendDocument" + String localVarPath = "/pdf/{name}/flatten" .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (appendFile != null) - localVarQueryParams.addAll(apiClient.parameterToPair("appendFile", appendFile)); - if (startPage != null) - localVarQueryParams.addAll(apiClient.parameterToPair("startPage", startPage)); - if (endPage != null) - localVarQueryParams.addAll(apiClient.parameterToPair("endPage", endPage)); + if (updateAppearances != null) + localVarQueryParams.addAll(apiClient.parameterToPair("updateAppearances", updateAppearances)); + if (callEvents != null) + localVarQueryParams.addAll(apiClient.parameterToPair("callEvents", callEvents)); + if (hideButtons != null) + localVarQueryParams.addAll(apiClient.parameterToPair("hideButtons", hideButtons)); if (storage != null) localVarQueryParams.addAll(apiClient.parameterToPair("storage", storage)); if (folder != null) @@ -18104,36 +19455,35 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call postAppendDocumentValidateBeforeCall(String name, AppendDocument appendDocument, String appendFile, Integer startPage, Integer endPage, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call postFlattenDocumentValidateBeforeCall(String name, Boolean updateAppearances, Boolean callEvents, Boolean hideButtons, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { // verify the required parameter 'name' is set if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling postAppendDocument(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling postFlattenDocument(Async)"); } - com.squareup.okhttp.Call call = postAppendDocumentCall(name, appendDocument, appendFile, startPage, endPage, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = postFlattenDocumentCall(name, updateAppearances, callEvents, hideButtons, storage, folder, progressListener, progressRequestListener); return call; } /** - * Append document to existing one. + * Removes all fields from the document and place their values instead. * - * @param name The original document name. (required) - * @param appendDocument with the append document data. (optional) - * @param appendFile Append file server path. (optional) - * @param startPage Appending start page. (optional, default to 0) - * @param endPage Appending end page. (optional, default to 0) - * @param storage The documents storage. (optional) - * @param folder The original document folder. (optional) - * @return DocumentResponse + * @param name The document name. (required) + * @param updateAppearances If set, all field appearances will be regenerated before flattening. This option may help if field is incorrectly flattened. This option may decrease performance.. (optional) + * @param callEvents If set, formatting and other JavaScript events will be called. (optional) + * @param hideButtons If set, buttons will be removed from flattened document. (optional) + * @param storage The document storage. (optional) + * @param folder The document folder. (optional) + * @return AsposeResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public DocumentResponse postAppendDocument(String name, AppendDocument appendDocument, String appendFile, Integer startPage, Integer endPage, String storage, String folder) throws ApiException { + public AsposeResponse postFlattenDocument(String name, Boolean updateAppearances, Boolean callEvents, Boolean hideButtons, String storage, String folder) throws ApiException { try { - ApiResponse resp = postAppendDocumentWithHttpInfo(name, appendDocument, appendFile, startPage, endPage, storage, folder); + ApiResponse resp = postFlattenDocumentWithHttpInfo(name, updateAppearances, callEvents, hideButtons, storage, folder); return resp.getData(); } catch (ApiException ex) @@ -18141,7 +19491,7 @@ public DocumentResponse postAppendDocument(String name, AppendDocument appendDoc if (ex.getCode() == 401) { apiClient.refreshToken(); - ApiResponse resp = postAppendDocumentWithHttpInfo(name, appendDocument, appendFile, startPage, endPage, storage, folder); + ApiResponse resp = postFlattenDocumentWithHttpInfo(name, updateAppearances, callEvents, hideButtons, storage, folder); return resp.getData(); } throw ex; @@ -18149,39 +19499,37 @@ public DocumentResponse postAppendDocument(String name, AppendDocument appendDoc } /** - * Append document to existing one. + * Removes all fields from the document and place their values instead. * - * @param name The original document name. (required) - * @param appendDocument with the append document data. (optional) - * @param appendFile Append file server path. (optional) - * @param startPage Appending start page. (optional, default to 0) - * @param endPage Appending end page. (optional, default to 0) - * @param storage The documents storage. (optional) - * @param folder The original document folder. (optional) - * @return ApiResponse<DocumentResponse> + * @param name The document name. (required) + * @param updateAppearances If set, all field appearances will be regenerated before flattening. This option may help if field is incorrectly flattened. This option may decrease performance.. (optional) + * @param callEvents If set, formatting and other JavaScript events will be called. (optional) + * @param hideButtons If set, buttons will be removed from flattened document. (optional) + * @param storage The document storage. (optional) + * @param folder The document folder. (optional) + * @return ApiResponse<AsposeResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse postAppendDocumentWithHttpInfo(String name, AppendDocument appendDocument, String appendFile, Integer startPage, Integer endPage, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = postAppendDocumentValidateBeforeCall(name, appendDocument, appendFile, startPage, endPage, storage, folder, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse postFlattenDocumentWithHttpInfo(String name, Boolean updateAppearances, Boolean callEvents, Boolean hideButtons, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = postFlattenDocumentValidateBeforeCall(name, updateAppearances, callEvents, hideButtons, storage, folder, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Append document to existing one. (asynchronously) + * Removes all fields from the document and place their values instead. (asynchronously) * - * @param name The original document name. (required) - * @param appendDocument with the append document data. (optional) - * @param appendFile Append file server path. (optional) - * @param startPage Appending start page. (optional, default to 0) - * @param endPage Appending end page. (optional, default to 0) - * @param storage The documents storage. (optional) - * @param folder The original document folder. (optional) + * @param name The document name. (required) + * @param updateAppearances If set, all field appearances will be regenerated before flattening. This option may help if field is incorrectly flattened. This option may decrease performance.. (optional) + * @param callEvents If set, formatting and other JavaScript events will be called. (optional) + * @param hideButtons If set, buttons will be removed from flattened document. (optional) + * @param storage The document storage. (optional) + * @param folder The document folder. (optional) * @param callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call postAppendDocumentAsync(String name, AppendDocument appendDocument, String appendFile, Integer startPage, Integer endPage, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call postFlattenDocumentAsync(String name, Boolean updateAppearances, Boolean callEvents, Boolean hideButtons, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -18202,34 +19550,48 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = postAppendDocumentValidateBeforeCall(name, appendDocument, appendFile, startPage, endPage, storage, folder, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = postFlattenDocumentValidateBeforeCall(name, updateAppearances, callEvents, hideButtons, storage, folder, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for postCreateField + * Build call for postInsertImage * @param name The document name. (required) - * @param page Document page number. (required) - * @param field with the field data. (optional) + * @param pageNumber The page number. (required) + * @param llx Coordinate lower left X. (required) + * @param lly Coordinate lower left Y. (required) + * @param urx Coordinate upper right X. (required) + * @param ury Coordinate upper right Y. (required) + * @param imageFilePath Path to image file if specified. Request content is used otherwise. (optional) * @param storage The document storage. (optional) * @param folder The document folder. (optional) + * @param image Image file. (optional) * @param progressListener Progress listener * @param progressRequestListener Progress request listener * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call postCreateFieldCall(String name, Integer page, Field field, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = field; + public com.squareup.okhttp.Call postInsertImageCall(String name, Integer pageNumber, Double llx, Double lly, Double urx, Double ury, String imageFilePath, String storage, String folder, File image, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = image; // create path and map variables - String localVarPath = "/pdf/{name}/fields" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + String localVarPath = "/pdf/{name}/pages/{pageNumber}/images" + .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) + .replaceAll("\\{" + "pageNumber" + "\\}", apiClient.escapeString(pageNumber.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (page != null) - localVarQueryParams.addAll(apiClient.parameterToPair("page", page)); + if (llx != null) + localVarQueryParams.addAll(apiClient.parameterToPair("llx", llx)); + if (lly != null) + localVarQueryParams.addAll(apiClient.parameterToPair("lly", lly)); + if (urx != null) + localVarQueryParams.addAll(apiClient.parameterToPair("urx", urx)); + if (ury != null) + localVarQueryParams.addAll(apiClient.parameterToPair("ury", ury)); + if (imageFilePath != null) + localVarQueryParams.addAll(apiClient.parameterToPair("imageFilePath", imageFilePath)); if (storage != null) localVarQueryParams.addAll(apiClient.parameterToPair("storage", storage)); if (folder != null) @@ -18268,39 +19630,64 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call postCreateFieldValidateBeforeCall(String name, Integer page, Field field, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call postInsertImageValidateBeforeCall(String name, Integer pageNumber, Double llx, Double lly, Double urx, Double ury, String imageFilePath, String storage, String folder, File image, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { // verify the required parameter 'name' is set if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling postCreateField(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling postInsertImage(Async)"); } - // verify the required parameter 'page' is set - if (page == null) { - throw new ApiException("Missing the required parameter 'page' when calling postCreateField(Async)"); + // verify the required parameter 'pageNumber' is set + if (pageNumber == null) { + throw new ApiException("Missing the required parameter 'pageNumber' when calling postInsertImage(Async)"); + } + + // verify the required parameter 'llx' is set + if (llx == null) { + throw new ApiException("Missing the required parameter 'llx' when calling postInsertImage(Async)"); + } + + // verify the required parameter 'lly' is set + if (lly == null) { + throw new ApiException("Missing the required parameter 'lly' when calling postInsertImage(Async)"); + } + + // verify the required parameter 'urx' is set + if (urx == null) { + throw new ApiException("Missing the required parameter 'urx' when calling postInsertImage(Async)"); + } + + // verify the required parameter 'ury' is set + if (ury == null) { + throw new ApiException("Missing the required parameter 'ury' when calling postInsertImage(Async)"); } - com.squareup.okhttp.Call call = postCreateFieldCall(name, page, field, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = postInsertImageCall(name, pageNumber, llx, lly, urx, ury, imageFilePath, storage, folder, image, progressListener, progressRequestListener); return call; } /** - * Create field. + * Insert image to document page. * * @param name The document name. (required) - * @param page Document page number. (required) - * @param field with the field data. (optional) + * @param pageNumber The page number. (required) + * @param llx Coordinate lower left X. (required) + * @param lly Coordinate lower left Y. (required) + * @param urx Coordinate upper right X. (required) + * @param ury Coordinate upper right Y. (required) + * @param imageFilePath Path to image file if specified. Request content is used otherwise. (optional) * @param storage The document storage. (optional) * @param folder The document folder. (optional) + * @param image Image file. (optional) * @return AsposeResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public AsposeResponse postCreateField(String name, Integer page, Field field, String storage, String folder) throws ApiException { + public AsposeResponse postInsertImage(String name, Integer pageNumber, Double llx, Double lly, Double urx, Double ury, String imageFilePath, String storage, String folder, File image) throws ApiException { try { - ApiResponse resp = postCreateFieldWithHttpInfo(name, page, field, storage, folder); + ApiResponse resp = postInsertImageWithHttpInfo(name, pageNumber, llx, lly, urx, ury, imageFilePath, storage, folder, image); return resp.getData(); } catch (ApiException ex) @@ -18308,7 +19695,7 @@ public AsposeResponse postCreateField(String name, Integer page, Field field, St if (ex.getCode() == 401) { apiClient.refreshToken(); - ApiResponse resp = postCreateFieldWithHttpInfo(name, page, field, storage, folder); + ApiResponse resp = postInsertImageWithHttpInfo(name, pageNumber, llx, lly, urx, ury, imageFilePath, storage, folder, image); return resp.getData(); } throw ex; @@ -18316,35 +19703,45 @@ public AsposeResponse postCreateField(String name, Integer page, Field field, St } /** - * Create field. + * Insert image to document page. * * @param name The document name. (required) - * @param page Document page number. (required) - * @param field with the field data. (optional) + * @param pageNumber The page number. (required) + * @param llx Coordinate lower left X. (required) + * @param lly Coordinate lower left Y. (required) + * @param urx Coordinate upper right X. (required) + * @param ury Coordinate upper right Y. (required) + * @param imageFilePath Path to image file if specified. Request content is used otherwise. (optional) * @param storage The document storage. (optional) * @param folder The document folder. (optional) + * @param image Image file. (optional) * @return ApiResponse<AsposeResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse postCreateFieldWithHttpInfo(String name, Integer page, Field field, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = postCreateFieldValidateBeforeCall(name, page, field, storage, folder, null, null); + public ApiResponse postInsertImageWithHttpInfo(String name, Integer pageNumber, Double llx, Double lly, Double urx, Double ury, String imageFilePath, String storage, String folder, File image) throws ApiException { + com.squareup.okhttp.Call call = postInsertImageValidateBeforeCall(name, pageNumber, llx, lly, urx, ury, imageFilePath, storage, folder, image, null, null); Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Create field. (asynchronously) + * Insert image to document page. (asynchronously) * * @param name The document name. (required) - * @param page Document page number. (required) - * @param field with the field data. (optional) + * @param pageNumber The page number. (required) + * @param llx Coordinate lower left X. (required) + * @param lly Coordinate lower left Y. (required) + * @param urx Coordinate upper right X. (required) + * @param ury Coordinate upper right Y. (required) + * @param imageFilePath Path to image file if specified. Request content is used otherwise. (optional) * @param storage The document storage. (optional) * @param folder The document folder. (optional) + * @param image Image file. (optional) * @param callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call postCreateFieldAsync(String name, Integer page, Field field, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call postInsertImageAsync(String name, Integer pageNumber, Double llx, Double lly, Double urx, Double ury, String imageFilePath, String storage, String folder, File image, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -18365,35 +19762,41 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = postCreateFieldValidateBeforeCall(name, page, field, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = postInsertImageValidateBeforeCall(name, pageNumber, llx, lly, urx, ury, imageFilePath, storage, folder, image, progressListener, progressRequestListener); Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for postDocumentTextReplace - * @param name (required) - * @param textReplace (required) - * @param storage (optional) - * @param folder (optional) + * Build call for postMoveFile + * @param src Source file path e.g. /fileSource.ext (required) + * @param dest Destination file path e.g. /fileDestination.ext (required) + * @param versionId Source file's version, (optional) + * @param storage User's source storage name (optional) + * @param destStorage User's destination storage name (optional) * @param progressListener Progress listener * @param progressRequestListener Progress request listener * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call postDocumentTextReplaceCall(String name, TextReplaceListRequest textReplace, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = textReplace; + public com.squareup.okhttp.Call postMoveFileCall(String src, String dest, String versionId, String storage, String destStorage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; // create path and map variables - String localVarPath = "/pdf/{name}/text/replace" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + String localVarPath = "/storage/file"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + if (src != null) + localVarQueryParams.addAll(apiClient.parameterToPair("src", src)); + if (dest != null) + localVarQueryParams.addAll(apiClient.parameterToPair("dest", dest)); + if (versionId != null) + localVarQueryParams.addAll(apiClient.parameterToPair("versionId", versionId)); if (storage != null) localVarQueryParams.addAll(apiClient.parameterToPair("storage", storage)); - if (folder != null) - localVarQueryParams.addAll(apiClient.parameterToPair("folder", folder)); + if (destStorage != null) + localVarQueryParams.addAll(apiClient.parameterToPair("destStorage", destStorage)); Map localVarHeaderParams = new HashMap(); @@ -18428,38 +19831,39 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call postDocumentTextReplaceValidateBeforeCall(String name, TextReplaceListRequest textReplace, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call postMoveFileValidateBeforeCall(String src, String dest, String versionId, String storage, String destStorage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - // verify the required parameter 'name' is set - if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling postDocumentTextReplace(Async)"); + // verify the required parameter 'src' is set + if (src == null) { + throw new ApiException("Missing the required parameter 'src' when calling postMoveFile(Async)"); } - // verify the required parameter 'textReplace' is set - if (textReplace == null) { - throw new ApiException("Missing the required parameter 'textReplace' when calling postDocumentTextReplace(Async)"); + // verify the required parameter 'dest' is set + if (dest == null) { + throw new ApiException("Missing the required parameter 'dest' when calling postMoveFile(Async)"); } - com.squareup.okhttp.Call call = postDocumentTextReplaceCall(name, textReplace, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = postMoveFileCall(src, dest, versionId, storage, destStorage, progressListener, progressRequestListener); return call; } /** - * Document's replace text method. + * Move a specific file * - * @param name (required) - * @param textReplace (required) - * @param storage (optional) - * @param folder (optional) - * @return TextReplaceResponse + * @param src Source file path e.g. /fileSource.ext (required) + * @param dest Destination file path e.g. /fileDestination.ext (required) + * @param versionId Source file's version, (optional) + * @param storage User's source storage name (optional) + * @param destStorage User's destination storage name (optional) + * @return AsposeResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public TextReplaceResponse postDocumentTextReplace(String name, TextReplaceListRequest textReplace, String storage, String folder) throws ApiException { + public AsposeResponse postMoveFile(String src, String dest, String versionId, String storage, String destStorage) throws ApiException { try { - ApiResponse resp = postDocumentTextReplaceWithHttpInfo(name, textReplace, storage, folder); + ApiResponse resp = postMoveFileWithHttpInfo(src, dest, versionId, storage, destStorage); return resp.getData(); } catch (ApiException ex) @@ -18467,7 +19871,7 @@ public TextReplaceResponse postDocumentTextReplace(String name, TextReplaceListR if (ex.getCode() == 401) { apiClient.refreshToken(); - ApiResponse resp = postDocumentTextReplaceWithHttpInfo(name, textReplace, storage, folder); + ApiResponse resp = postMoveFileWithHttpInfo(src, dest, versionId, storage, destStorage); return resp.getData(); } throw ex; @@ -18475,33 +19879,35 @@ public TextReplaceResponse postDocumentTextReplace(String name, TextReplaceListR } /** - * Document's replace text method. + * Move a specific file * - * @param name (required) - * @param textReplace (required) - * @param storage (optional) - * @param folder (optional) - * @return ApiResponse<TextReplaceResponse> + * @param src Source file path e.g. /fileSource.ext (required) + * @param dest Destination file path e.g. /fileDestination.ext (required) + * @param versionId Source file's version, (optional) + * @param storage User's source storage name (optional) + * @param destStorage User's destination storage name (optional) + * @return ApiResponse<AsposeResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse postDocumentTextReplaceWithHttpInfo(String name, TextReplaceListRequest textReplace, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = postDocumentTextReplaceValidateBeforeCall(name, textReplace, storage, folder, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse postMoveFileWithHttpInfo(String src, String dest, String versionId, String storage, String destStorage) throws ApiException { + com.squareup.okhttp.Call call = postMoveFileValidateBeforeCall(src, dest, versionId, storage, destStorage, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Document's replace text method. (asynchronously) + * Move a specific file (asynchronously) * - * @param name (required) - * @param textReplace (required) - * @param storage (optional) - * @param folder (optional) + * @param src Source file path e.g. /fileSource.ext (required) + * @param dest Destination file path e.g. /fileDestination.ext (required) + * @param versionId Source file's version, (optional) + * @param storage User's source storage name (optional) + * @param destStorage User's destination storage name (optional) * @param callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call postDocumentTextReplaceAsync(String name, TextReplaceListRequest textReplace, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call postMoveFileAsync(String src, String dest, String versionId, String storage, String destStorage, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -18522,52 +19928,38 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = postDocumentTextReplaceValidateBeforeCall(name, textReplace, storage, folder, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = postMoveFileValidateBeforeCall(src, dest, versionId, storage, destStorage, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for postInsertImage - * @param name The document name. (required) - * @param pageNumber The page number. (required) - * @param llx Coordinate lower left X. (required) - * @param lly Coordinate lower left Y. (required) - * @param urx Coordinate upper right X. (required) - * @param ury Coordinate upper right Y. (required) - * @param imageFilePath Path to image file if specified. Request content is used otherwise. (optional) - * @param storage The document storage. (optional) - * @param folder The document folder. (optional) - * @param image Image file. (optional) + * Build call for postMoveFolder + * @param src Source folder path e.g. /Folder1 (required) + * @param dest Destination folder path e.g. /Folder2 (required) + * @param storage User's source storage name (optional) + * @param destStorage User's destination storage name (optional) * @param progressListener Progress listener * @param progressRequestListener Progress request listener * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call postInsertImageCall(String name, Integer pageNumber, Double llx, Double lly, Double urx, Double ury, String imageFilePath, String storage, String folder, File image, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = image; + public com.squareup.okhttp.Call postMoveFolderCall(String src, String dest, String storage, String destStorage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; // create path and map variables - String localVarPath = "/pdf/{name}/pages/{pageNumber}/images" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "pageNumber" + "\\}", apiClient.escapeString(pageNumber.toString())); + String localVarPath = "/storage/folder"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (llx != null) - localVarQueryParams.addAll(apiClient.parameterToPair("llx", llx)); - if (lly != null) - localVarQueryParams.addAll(apiClient.parameterToPair("lly", lly)); - if (urx != null) - localVarQueryParams.addAll(apiClient.parameterToPair("urx", urx)); - if (ury != null) - localVarQueryParams.addAll(apiClient.parameterToPair("ury", ury)); - if (imageFilePath != null) - localVarQueryParams.addAll(apiClient.parameterToPair("imageFilePath", imageFilePath)); + if (src != null) + localVarQueryParams.addAll(apiClient.parameterToPair("src", src)); + if (dest != null) + localVarQueryParams.addAll(apiClient.parameterToPair("dest", dest)); if (storage != null) localVarQueryParams.addAll(apiClient.parameterToPair("storage", storage)); - if (folder != null) - localVarQueryParams.addAll(apiClient.parameterToPair("folder", folder)); + if (destStorage != null) + localVarQueryParams.addAll(apiClient.parameterToPair("destStorage", destStorage)); Map localVarHeaderParams = new HashMap(); @@ -18602,64 +19994,38 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call postInsertImageValidateBeforeCall(String name, Integer pageNumber, Double llx, Double lly, Double urx, Double ury, String imageFilePath, String storage, String folder, File image, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - - // verify the required parameter 'name' is set - if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling postInsertImage(Async)"); - } - - // verify the required parameter 'pageNumber' is set - if (pageNumber == null) { - throw new ApiException("Missing the required parameter 'pageNumber' when calling postInsertImage(Async)"); - } - - // verify the required parameter 'llx' is set - if (llx == null) { - throw new ApiException("Missing the required parameter 'llx' when calling postInsertImage(Async)"); - } - - // verify the required parameter 'lly' is set - if (lly == null) { - throw new ApiException("Missing the required parameter 'lly' when calling postInsertImage(Async)"); - } + private com.squareup.okhttp.Call postMoveFolderValidateBeforeCall(String src, String dest, String storage, String destStorage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - // verify the required parameter 'urx' is set - if (urx == null) { - throw new ApiException("Missing the required parameter 'urx' when calling postInsertImage(Async)"); + // verify the required parameter 'src' is set + if (src == null) { + throw new ApiException("Missing the required parameter 'src' when calling postMoveFolder(Async)"); } - // verify the required parameter 'ury' is set - if (ury == null) { - throw new ApiException("Missing the required parameter 'ury' when calling postInsertImage(Async)"); + // verify the required parameter 'dest' is set + if (dest == null) { + throw new ApiException("Missing the required parameter 'dest' when calling postMoveFolder(Async)"); } - com.squareup.okhttp.Call call = postInsertImageCall(name, pageNumber, llx, lly, urx, ury, imageFilePath, storage, folder, image, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = postMoveFolderCall(src, dest, storage, destStorage, progressListener, progressRequestListener); return call; } /** - * Insert image to document page. + * Move a specific folder * - * @param name The document name. (required) - * @param pageNumber The page number. (required) - * @param llx Coordinate lower left X. (required) - * @param lly Coordinate lower left Y. (required) - * @param urx Coordinate upper right X. (required) - * @param ury Coordinate upper right Y. (required) - * @param imageFilePath Path to image file if specified. Request content is used otherwise. (optional) - * @param storage The document storage. (optional) - * @param folder The document folder. (optional) - * @param image Image file. (optional) + * @param src Source folder path e.g. /Folder1 (required) + * @param dest Destination folder path e.g. /Folder2 (required) + * @param storage User's source storage name (optional) + * @param destStorage User's destination storage name (optional) * @return AsposeResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public AsposeResponse postInsertImage(String name, Integer pageNumber, Double llx, Double lly, Double urx, Double ury, String imageFilePath, String storage, String folder, File image) throws ApiException { + public AsposeResponse postMoveFolder(String src, String dest, String storage, String destStorage) throws ApiException { try { - ApiResponse resp = postInsertImageWithHttpInfo(name, pageNumber, llx, lly, urx, ury, imageFilePath, storage, folder, image); + ApiResponse resp = postMoveFolderWithHttpInfo(src, dest, storage, destStorage); return resp.getData(); } catch (ApiException ex) @@ -18667,7 +20033,7 @@ public AsposeResponse postInsertImage(String name, Integer pageNumber, Double ll if (ex.getCode() == 401) { apiClient.refreshToken(); - ApiResponse resp = postInsertImageWithHttpInfo(name, pageNumber, llx, lly, urx, ury, imageFilePath, storage, folder, image); + ApiResponse resp = postMoveFolderWithHttpInfo(src, dest, storage, destStorage); return resp.getData(); } throw ex; @@ -18675,45 +20041,33 @@ public AsposeResponse postInsertImage(String name, Integer pageNumber, Double ll } /** - * Insert image to document page. + * Move a specific folder * - * @param name The document name. (required) - * @param pageNumber The page number. (required) - * @param llx Coordinate lower left X. (required) - * @param lly Coordinate lower left Y. (required) - * @param urx Coordinate upper right X. (required) - * @param ury Coordinate upper right Y. (required) - * @param imageFilePath Path to image file if specified. Request content is used otherwise. (optional) - * @param storage The document storage. (optional) - * @param folder The document folder. (optional) - * @param image Image file. (optional) + * @param src Source folder path e.g. /Folder1 (required) + * @param dest Destination folder path e.g. /Folder2 (required) + * @param storage User's source storage name (optional) + * @param destStorage User's destination storage name (optional) * @return ApiResponse<AsposeResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse postInsertImageWithHttpInfo(String name, Integer pageNumber, Double llx, Double lly, Double urx, Double ury, String imageFilePath, String storage, String folder, File image) throws ApiException { - com.squareup.okhttp.Call call = postInsertImageValidateBeforeCall(name, pageNumber, llx, lly, urx, ury, imageFilePath, storage, folder, image, null, null); + public ApiResponse postMoveFolderWithHttpInfo(String src, String dest, String storage, String destStorage) throws ApiException { + com.squareup.okhttp.Call call = postMoveFolderValidateBeforeCall(src, dest, storage, destStorage, null, null); Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Insert image to document page. (asynchronously) + * Move a specific folder (asynchronously) * - * @param name The document name. (required) - * @param pageNumber The page number. (required) - * @param llx Coordinate lower left X. (required) - * @param lly Coordinate lower left Y. (required) - * @param urx Coordinate upper right X. (required) - * @param ury Coordinate upper right Y. (required) - * @param imageFilePath Path to image file if specified. Request content is used otherwise. (optional) - * @param storage The document storage. (optional) - * @param folder The document folder. (optional) - * @param image Image file. (optional) + * @param src Source folder path e.g. /Folder1 (required) + * @param dest Destination folder path e.g. /Folder2 (required) + * @param storage User's source storage name (optional) + * @param destStorage User's destination storage name (optional) * @param callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call postInsertImageAsync(String name, Integer pageNumber, Double llx, Double lly, Double urx, Double ury, String imageFilePath, String storage, String folder, File image, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call postMoveFolderAsync(String src, String dest, String storage, String destStorage, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -18734,7 +20088,7 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = postInsertImageValidateBeforeCall(name, pageNumber, llx, lly, urx, ury, imageFilePath, storage, folder, image, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = postMoveFolderValidateBeforeCall(src, dest, storage, destStorage, progressListener, progressRequestListener); Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; @@ -23162,6 +24516,155 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don apiClient.executeAsync(call, localVarReturnType, callback); return call; } + /** + * Build call for putCreateFolder + * @param path Target folder's path e.g. Folder1/Folder2/. The folders will be created recursively (required) + * @param storage User's source storage name (optional) + * @param destStorage User's destination storage name (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call putCreateFolderCall(String path, String storage, String destStorage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/storage/folder"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (path != null) + localVarQueryParams.addAll(apiClient.parameterToPair("path", path)); + if (storage != null) + localVarQueryParams.addAll(apiClient.parameterToPair("storage", storage)); + if (destStorage != null) + localVarQueryParams.addAll(apiClient.parameterToPair("destStorage", destStorage)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { }; + return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call putCreateFolderValidateBeforeCall(String path, String storage, String destStorage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'path' is set + if (path == null) { + throw new ApiException("Missing the required parameter 'path' when calling putCreateFolder(Async)"); + } + + + com.squareup.okhttp.Call call = putCreateFolderCall(path, storage, destStorage, progressListener, progressRequestListener); + return call; + + } + + /** + * Create the folder + * + * @param path Target folder's path e.g. Folder1/Folder2/. The folders will be created recursively (required) + * @param storage User's source storage name (optional) + * @param destStorage User's destination storage name (optional) + * @return AsposeResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public AsposeResponse putCreateFolder(String path, String storage, String destStorage) throws ApiException { + try + { + ApiResponse resp = putCreateFolderWithHttpInfo(path, storage, destStorage); + return resp.getData(); + } + catch (ApiException ex) + { + if (ex.getCode() == 401) + { + apiClient.refreshToken(); + ApiResponse resp = putCreateFolderWithHttpInfo(path, storage, destStorage); + return resp.getData(); + } + throw ex; + } + } + + /** + * Create the folder + * + * @param path Target folder's path e.g. Folder1/Folder2/. The folders will be created recursively (required) + * @param storage User's source storage name (optional) + * @param destStorage User's destination storage name (optional) + * @return ApiResponse<AsposeResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse putCreateFolderWithHttpInfo(String path, String storage, String destStorage) throws ApiException { + com.squareup.okhttp.Call call = putCreateFolderValidateBeforeCall(path, storage, destStorage, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Create the folder (asynchronously) + * + * @param path Target folder's path e.g. Folder1/Folder2/. The folders will be created recursively (required) + * @param storage User's source storage name (optional) + * @param destStorage User's destination storage name (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call putCreateFolderAsync(String path, String storage, String destStorage, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = putCreateFolderValidateBeforeCall(path, storage, destStorage, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } /** * Build call for putEpubInStorageToPdf * @param name The document name. (required) @@ -28156,7 +29659,7 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don /** * Build call for putPdfInRequestToEpub * @param outPath Full resulting filename (ex. /folder1/folder2/result.epub) (required) - * @param contentRecognitionMode Рroperty tunes conversion for this or that desirable method of recognition of content. (optional) + * @param contentRecognitionMode Property tunes conversion for this or that desirable method of recognition of content. (optional) * @param storage The document storage. (optional) * @param file A file to be converted. (optional) * @param progressListener Progress listener @@ -28229,7 +29732,7 @@ private com.squareup.okhttp.Call putPdfInRequestToEpubValidateBeforeCall(String * Converts PDF document (in request content) to EPUB format and uploads resulting file to storage. * * @param outPath Full resulting filename (ex. /folder1/folder2/result.epub) (required) - * @param contentRecognitionMode Рroperty tunes conversion for this or that desirable method of recognition of content. (optional) + * @param contentRecognitionMode Property tunes conversion for this or that desirable method of recognition of content. (optional) * @param storage The document storage. (optional) * @param file A file to be converted. (optional) * @return AsposeResponse @@ -28257,7 +29760,7 @@ public AsposeResponse putPdfInRequestToEpub(String outPath, String contentRecogn * Converts PDF document (in request content) to EPUB format and uploads resulting file to storage. * * @param outPath Full resulting filename (ex. /folder1/folder2/result.epub) (required) - * @param contentRecognitionMode Рroperty tunes conversion for this or that desirable method of recognition of content. (optional) + * @param contentRecognitionMode Property tunes conversion for this or that desirable method of recognition of content. (optional) * @param storage The document storage. (optional) * @param file A file to be converted. (optional) * @return ApiResponse<AsposeResponse> @@ -28273,7 +29776,7 @@ public ApiResponse putPdfInRequestToEpubWithHttpInfo(String outP * Converts PDF document (in request content) to EPUB format and uploads resulting file to storage. (asynchronously) * * @param outPath Full resulting filename (ex. /folder1/folder2/result.epub) (required) - * @param contentRecognitionMode Рroperty tunes conversion for this or that desirable method of recognition of content. (optional) + * @param contentRecognitionMode Property tunes conversion for this or that desirable method of recognition of content. (optional) * @param storage The document storage. (optional) * @param file A file to be converted. (optional) * @param callback The callback to be executed when the API call finishes @@ -30298,7 +31801,7 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * Build call for putPdfInStorageToEpub * @param name The document name. (required) * @param outPath Full resulting filename (ex. /folder1/folder2/result.epub) (required) - * @param contentRecognitionMode Рroperty tunes conversion for this or that desirable method of recognition of content. (optional) + * @param contentRecognitionMode Property tunes conversion for this or that desirable method of recognition of content. (optional) * @param folder The document folder. (optional) * @param storage The document storage. (optional) * @param progressListener Progress listener @@ -30380,7 +31883,7 @@ private com.squareup.okhttp.Call putPdfInStorageToEpubValidateBeforeCall(String * * @param name The document name. (required) * @param outPath Full resulting filename (ex. /folder1/folder2/result.epub) (required) - * @param contentRecognitionMode Рroperty tunes conversion for this or that desirable method of recognition of content. (optional) + * @param contentRecognitionMode Property tunes conversion for this or that desirable method of recognition of content. (optional) * @param folder The document folder. (optional) * @param storage The document storage. (optional) * @return AsposeResponse @@ -30409,7 +31912,7 @@ public AsposeResponse putPdfInStorageToEpub(String name, String outPath, String * * @param name The document name. (required) * @param outPath Full resulting filename (ex. /folder1/folder2/result.epub) (required) - * @param contentRecognitionMode Рroperty tunes conversion for this or that desirable method of recognition of content. (optional) + * @param contentRecognitionMode Property tunes conversion for this or that desirable method of recognition of content. (optional) * @param folder The document folder. (optional) * @param storage The document storage. (optional) * @return ApiResponse<AsposeResponse> @@ -30426,7 +31929,7 @@ public ApiResponse putPdfInStorageToEpubWithHttpInfo(String name * * @param name The document name. (required) * @param outPath Full resulting filename (ex. /folder1/folder2/result.epub) (required) - * @param contentRecognitionMode Рroperty tunes conversion for this or that desirable method of recognition of content. (optional) + * @param contentRecognitionMode Property tunes conversion for this or that desirable method of recognition of content. (optional) * @param folder The document folder. (optional) * @param storage The document storage. (optional) * @param callback The callback to be executed when the API call finishes diff --git a/src/main/java/com/aspose/asposecloudpdf/model/Annotation.java b/src/main/java/com/aspose/asposecloudpdf/model/Annotation.java index fbc78e6..4d701af 100644 --- a/src/main/java/com/aspose/asposecloudpdf/model/Annotation.java +++ b/src/main/java/com/aspose/asposecloudpdf/model/Annotation.java @@ -24,10 +24,11 @@ import java.util.Objects; import com.aspose.asposecloudpdf.model.AnnotationFlags; +import com.aspose.asposecloudpdf.model.Color; import com.aspose.asposecloudpdf.model.HorizontalAlignment; import com.aspose.asposecloudpdf.model.Link; import com.aspose.asposecloudpdf.model.LinkElement; -import com.aspose.asposecloudpdf.model.RectanglePdf; +import com.aspose.asposecloudpdf.model.Rectangle; import com.aspose.asposecloudpdf.model.VerticalAlignment; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -46,6 +47,9 @@ @ApiModel(description = "Provides annotation.") public class Annotation extends LinkElement { + @SerializedName("Color") + private Color color = null; + @SerializedName("Contents") private String contents = null; @@ -62,7 +66,7 @@ public class Annotation extends LinkElement { private String name = null; @SerializedName("Rect") - private RectanglePdf rect = null; + private Rectangle rect = null; @SerializedName("PageIndex") private Integer pageIndex = null; @@ -76,6 +80,24 @@ public class Annotation extends LinkElement { @SerializedName("VerticalAlignment") private VerticalAlignment verticalAlignment = null; + public Annotation color(Color color) { + this.color = color; + return this; + } + + /** + * Color of the annotation. + * @return color + **/ + @ApiModelProperty(value = "Color of the annotation.") + public Color getColor() { + return color; + } + + public void setColor(Color color) { + this.color = color; + } + public Annotation contents(String contents) { this.contents = contents; return this; @@ -174,7 +196,7 @@ public void setName(String name) { this.name = name; } - public Annotation rect(RectanglePdf rect) { + public Annotation rect(Rectangle rect) { this.rect = rect; return this; } @@ -184,11 +206,11 @@ public Annotation rect(RectanglePdf rect) { * @return rect **/ @ApiModelProperty(value = "Gets Rect of the annotation.") - public RectanglePdf getRect() { + public Rectangle getRect() { return rect; } - public void setRect(RectanglePdf rect) { + public void setRect(Rectangle rect) { this.rect = rect; } @@ -274,7 +296,8 @@ public boolean equals(java.lang.Object o) { return false; } Annotation annotation = (Annotation) o; - return Objects.equals(this.contents, annotation.contents) && + return Objects.equals(this.color, annotation.color) && + Objects.equals(this.contents, annotation.contents) && Objects.equals(this.modified, annotation.modified) && Objects.equals(this.id, annotation.id) && Objects.equals(this.flags, annotation.flags) && @@ -289,7 +312,7 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(contents, modified, id, flags, name, rect, pageIndex, zindex, horizontalAlignment, verticalAlignment, super.hashCode()); + return Objects.hash(color, contents, modified, id, flags, name, rect, pageIndex, zindex, horizontalAlignment, verticalAlignment, super.hashCode()); } @@ -298,6 +321,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class Annotation {\n"); sb.append(" ").append(toIndentedString(super.toString())).append("\n"); + sb.append(" color: ").append(toIndentedString(color)).append("\n"); sb.append(" contents: ").append(toIndentedString(contents)).append("\n"); sb.append(" modified: ").append(toIndentedString(modified)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); diff --git a/src/main/java/com/aspose/asposecloudpdf/model/AnnotationInfo.java b/src/main/java/com/aspose/asposecloudpdf/model/AnnotationInfo.java index 0973776..6bb6e1c 100644 --- a/src/main/java/com/aspose/asposecloudpdf/model/AnnotationInfo.java +++ b/src/main/java/com/aspose/asposecloudpdf/model/AnnotationInfo.java @@ -26,9 +26,10 @@ import com.aspose.asposecloudpdf.model.Annotation; import com.aspose.asposecloudpdf.model.AnnotationFlags; import com.aspose.asposecloudpdf.model.AnnotationType; +import com.aspose.asposecloudpdf.model.Color; import com.aspose.asposecloudpdf.model.HorizontalAlignment; import com.aspose.asposecloudpdf.model.Link; -import com.aspose.asposecloudpdf.model.RectanglePdf; +import com.aspose.asposecloudpdf.model.Rectangle; import com.aspose.asposecloudpdf.model.VerticalAlignment; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; diff --git a/src/main/java/com/aspose/asposecloudpdf/model/AnnotationsInfo.java b/src/main/java/com/aspose/asposecloudpdf/model/AnnotationsInfo.java index 09968fc..2ba081b 100644 --- a/src/main/java/com/aspose/asposecloudpdf/model/AnnotationsInfo.java +++ b/src/main/java/com/aspose/asposecloudpdf/model/AnnotationsInfo.java @@ -38,9 +38,9 @@ import java.util.List; /** - * List of annotations. + * Object representing a list of annotation info objects. */ -@ApiModel(description = "List of annotations.") +@ApiModel(description = "Object representing a list of annotation info objects.") public class AnnotationsInfo extends LinkElement { @SerializedName("List") @@ -60,10 +60,10 @@ public AnnotationsInfo addListItem(AnnotationInfo listItem) { } /** - * Get list + * List of annotation info objects. * @return list **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "List of annotation info objects.") public List getList() { return list; } diff --git a/src/main/java/com/aspose/asposecloudpdf/model/AnnotationsInfoResponse.java b/src/main/java/com/aspose/asposecloudpdf/model/AnnotationsInfoResponse.java index 3305321..e25649d 100644 --- a/src/main/java/com/aspose/asposecloudpdf/model/AnnotationsInfoResponse.java +++ b/src/main/java/com/aspose/asposecloudpdf/model/AnnotationsInfoResponse.java @@ -35,8 +35,9 @@ import java.io.IOException; /** - * AnnotationsInfoResponse + * Represents multiple annotations info reponse */ +@ApiModel(description = "Represents multiple annotations info reponse") public class AnnotationsInfoResponse extends AsposeResponse { @SerializedName("Annotations") @@ -48,10 +49,10 @@ public AnnotationsInfoResponse annotations(AnnotationsInfo annotations) { } /** - * Get annotations + * Annotations info * @return annotations **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "Annotations info") public AnnotationsInfo getAnnotations() { return annotations; } diff --git a/src/main/java/com/aspose/asposecloudpdf/model/AttachmentResponse.java b/src/main/java/com/aspose/asposecloudpdf/model/AttachmentResponse.java index bdbe3b4..e4bf0ff 100644 --- a/src/main/java/com/aspose/asposecloudpdf/model/AttachmentResponse.java +++ b/src/main/java/com/aspose/asposecloudpdf/model/AttachmentResponse.java @@ -35,8 +35,9 @@ import java.io.IOException; /** - * AttachmentResponse + * Represents response containing single attachment info */ +@ApiModel(description = "Represents response containing single attachment info") public class AttachmentResponse extends AsposeResponse { @SerializedName("Attachment") @@ -48,10 +49,10 @@ public AttachmentResponse attachment(Attachment attachment) { } /** - * Get attachment + * Attachment object * @return attachment **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "Attachment object") public Attachment getAttachment() { return attachment; } diff --git a/src/main/java/com/aspose/asposecloudpdf/model/Attachments.java b/src/main/java/com/aspose/asposecloudpdf/model/Attachments.java index 1123ce8..ba612a5 100644 --- a/src/main/java/com/aspose/asposecloudpdf/model/Attachments.java +++ b/src/main/java/com/aspose/asposecloudpdf/model/Attachments.java @@ -37,9 +37,9 @@ import java.util.List; /** - * List of attachment. + * Represents list of attachment. */ -@ApiModel(description = "List of attachment.") +@ApiModel(description = "Represents list of attachment.") public class Attachments extends LinkElement { @SerializedName("List") @@ -59,10 +59,10 @@ public Attachments addListItem(LinkElement listItem) { } /** - * Get list + * List of annotations. * @return list **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "List of annotations.") public List getList() { return list; } diff --git a/src/main/java/com/aspose/asposecloudpdf/model/AttachmentsResponse.java b/src/main/java/com/aspose/asposecloudpdf/model/AttachmentsResponse.java index 9423c04..bc0a952 100644 --- a/src/main/java/com/aspose/asposecloudpdf/model/AttachmentsResponse.java +++ b/src/main/java/com/aspose/asposecloudpdf/model/AttachmentsResponse.java @@ -35,8 +35,9 @@ import java.io.IOException; /** - * AttachmentsResponse + * Represents response containing multiple attachments info */ +@ApiModel(description = "Represents response containing multiple attachments info") public class AttachmentsResponse extends AsposeResponse { @SerializedName("Attachments") @@ -48,10 +49,10 @@ public AttachmentsResponse attachments(Attachments attachments) { } /** - * Get attachments + * Attachments object * @return attachments **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "Attachments object") public Attachments getAttachments() { return attachments; } diff --git a/src/main/java/com/aspose/asposecloudpdf/model/CaretAnnotation.java b/src/main/java/com/aspose/asposecloudpdf/model/CaretAnnotation.java index 6345e35..90cc838 100644 --- a/src/main/java/com/aspose/asposecloudpdf/model/CaretAnnotation.java +++ b/src/main/java/com/aspose/asposecloudpdf/model/CaretAnnotation.java @@ -29,7 +29,7 @@ import com.aspose.asposecloudpdf.model.HorizontalAlignment; import com.aspose.asposecloudpdf.model.Link; import com.aspose.asposecloudpdf.model.MarkupAnnotation; -import com.aspose.asposecloudpdf.model.RectanglePdf; +import com.aspose.asposecloudpdf.model.Rectangle; import com.aspose.asposecloudpdf.model.VerticalAlignment; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -47,34 +47,13 @@ @ApiModel(description = "Provides CaretAnnotation.") public class CaretAnnotation extends MarkupAnnotation { - @SerializedName("Color") - private Color color = null; - @SerializedName("Frame") - private RectanglePdf frame = null; + private Rectangle frame = null; @SerializedName("Symbol") private CaretSymbol symbol = null; - public CaretAnnotation color(Color color) { - this.color = color; - return this; - } - - /** - * Color of the annotation. - * @return color - **/ - @ApiModelProperty(value = "Color of the annotation.") - public Color getColor() { - return color; - } - - public void setColor(Color color) { - this.color = color; - } - - public CaretAnnotation frame(RectanglePdf frame) { + public CaretAnnotation frame(Rectangle frame) { this.frame = frame; return this; } @@ -84,11 +63,11 @@ public CaretAnnotation frame(RectanglePdf frame) { * @return frame **/ @ApiModelProperty(value = "Gets or sets caret rectangle.") - public RectanglePdf getFrame() { + public Rectangle getFrame() { return frame; } - public void setFrame(RectanglePdf frame) { + public void setFrame(Rectangle frame) { this.frame = frame; } @@ -120,15 +99,14 @@ public boolean equals(java.lang.Object o) { return false; } CaretAnnotation caretAnnotation = (CaretAnnotation) o; - return Objects.equals(this.color, caretAnnotation.color) && - Objects.equals(this.frame, caretAnnotation.frame) && + return Objects.equals(this.frame, caretAnnotation.frame) && Objects.equals(this.symbol, caretAnnotation.symbol) && super.equals(o); } @Override public int hashCode() { - return Objects.hash(color, frame, symbol, super.hashCode()); + return Objects.hash(frame, symbol, super.hashCode()); } @@ -137,7 +115,6 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CaretAnnotation {\n"); sb.append(" ").append(toIndentedString(super.toString())).append("\n"); - sb.append(" color: ").append(toIndentedString(color)).append("\n"); sb.append(" frame: ").append(toIndentedString(frame)).append("\n"); sb.append(" symbol: ").append(toIndentedString(symbol)).append("\n"); sb.append("}"); diff --git a/src/main/java/com/aspose/asposecloudpdf/model/CaretAnnotationResponse.java b/src/main/java/com/aspose/asposecloudpdf/model/CaretAnnotationResponse.java index aa72b15..157a8d0 100644 --- a/src/main/java/com/aspose/asposecloudpdf/model/CaretAnnotationResponse.java +++ b/src/main/java/com/aspose/asposecloudpdf/model/CaretAnnotationResponse.java @@ -35,8 +35,9 @@ import java.io.IOException; /** - * CaretAnnotationResponse + * Represents response containing single caret annotation object */ +@ApiModel(description = "Represents response containing single caret annotation object") public class CaretAnnotationResponse extends AsposeResponse { @SerializedName("Annotation") @@ -48,10 +49,10 @@ public CaretAnnotationResponse annotation(CaretAnnotation annotation) { } /** - * Get annotation + * Caret annotation object * @return annotation **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "Caret annotation object") public CaretAnnotation getAnnotation() { return annotation; } diff --git a/src/main/java/com/aspose/asposecloudpdf/model/CaretAnnotations.java b/src/main/java/com/aspose/asposecloudpdf/model/CaretAnnotations.java index fce60df..81a27eb 100644 --- a/src/main/java/com/aspose/asposecloudpdf/model/CaretAnnotations.java +++ b/src/main/java/com/aspose/asposecloudpdf/model/CaretAnnotations.java @@ -38,9 +38,9 @@ import java.util.List; /** - * List of annotations. + * Object representing a list of caret annotations. */ -@ApiModel(description = "List of annotations.") +@ApiModel(description = "Object representing a list of caret annotations.") public class CaretAnnotations extends LinkElement { @SerializedName("List") @@ -60,10 +60,10 @@ public CaretAnnotations addListItem(CaretAnnotation listItem) { } /** - * Get list + * List of caret annotations. * @return list **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "List of caret annotations.") public List getList() { return list; } diff --git a/src/main/java/com/aspose/asposecloudpdf/model/CaretAnnotationsResponse.java b/src/main/java/com/aspose/asposecloudpdf/model/CaretAnnotationsResponse.java index 26702ac..eecd621 100644 --- a/src/main/java/com/aspose/asposecloudpdf/model/CaretAnnotationsResponse.java +++ b/src/main/java/com/aspose/asposecloudpdf/model/CaretAnnotationsResponse.java @@ -35,8 +35,9 @@ import java.io.IOException; /** - * CaretAnnotationsResponse + * Represents response containing multiple caret annotation objects */ +@ApiModel(description = "Represents response containing multiple caret annotation objects") public class CaretAnnotationsResponse extends AsposeResponse { @SerializedName("Annotations") @@ -48,10 +49,10 @@ public CaretAnnotationsResponse annotations(CaretAnnotations annotations) { } /** - * Get annotations + * Caret annotations object * @return annotations **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "Caret annotations object") public CaretAnnotations getAnnotations() { return annotations; } diff --git a/src/main/java/com/aspose/asposecloudpdf/model/CircleAnnotation.java b/src/main/java/com/aspose/asposecloudpdf/model/CircleAnnotation.java index ad7855b..c2ef293 100644 --- a/src/main/java/com/aspose/asposecloudpdf/model/CircleAnnotation.java +++ b/src/main/java/com/aspose/asposecloudpdf/model/CircleAnnotation.java @@ -28,16 +28,9 @@ import com.aspose.asposecloudpdf.model.CommonFigureAnnotation; import com.aspose.asposecloudpdf.model.HorizontalAlignment; import com.aspose.asposecloudpdf.model.Link; -import com.aspose.asposecloudpdf.model.RectanglePdf; +import com.aspose.asposecloudpdf.model.Rectangle; import com.aspose.asposecloudpdf.model.VerticalAlignment; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; import java.util.List; /** @@ -46,27 +39,6 @@ @ApiModel(description = "Provides CircleAnnotation.") public class CircleAnnotation extends CommonFigureAnnotation { - @SerializedName("Color") - private Color color = null; - - public CircleAnnotation color(Color color) { - this.color = color; - return this; - } - - /** - * Color of the annotation. - * @return color - **/ - @ApiModelProperty(value = "Color of the annotation.") - public Color getColor() { - return color; - } - - public void setColor(Color color) { - this.color = color; - } - @Override public boolean equals(java.lang.Object o) { @@ -76,14 +48,12 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - CircleAnnotation circleAnnotation = (CircleAnnotation) o; - return Objects.equals(this.color, circleAnnotation.color) && - super.equals(o); + return super.equals(o); } @Override public int hashCode() { - return Objects.hash(color, super.hashCode()); + return Objects.hash(super.hashCode()); } @@ -92,7 +62,6 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CircleAnnotation {\n"); sb.append(" ").append(toIndentedString(super.toString())).append("\n"); - sb.append(" color: ").append(toIndentedString(color)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/aspose/asposecloudpdf/model/CircleAnnotationResponse.java b/src/main/java/com/aspose/asposecloudpdf/model/CircleAnnotationResponse.java index ecafe31..c43109a 100644 --- a/src/main/java/com/aspose/asposecloudpdf/model/CircleAnnotationResponse.java +++ b/src/main/java/com/aspose/asposecloudpdf/model/CircleAnnotationResponse.java @@ -35,8 +35,9 @@ import java.io.IOException; /** - * CircleAnnotationResponse + * Represents response containing single circle annotation object */ +@ApiModel(description = "Represents response containing single circle annotation object") public class CircleAnnotationResponse extends AsposeResponse { @SerializedName("Annotation") @@ -48,10 +49,10 @@ public CircleAnnotationResponse annotation(CircleAnnotation annotation) { } /** - * Get annotation + * Circle annotation object * @return annotation **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "Circle annotation object") public CircleAnnotation getAnnotation() { return annotation; } diff --git a/src/main/java/com/aspose/asposecloudpdf/model/CircleAnnotations.java b/src/main/java/com/aspose/asposecloudpdf/model/CircleAnnotations.java index e79b5b9..254605c 100644 --- a/src/main/java/com/aspose/asposecloudpdf/model/CircleAnnotations.java +++ b/src/main/java/com/aspose/asposecloudpdf/model/CircleAnnotations.java @@ -38,9 +38,9 @@ import java.util.List; /** - * List of annotations. + * Object representing a list of circle annotations. */ -@ApiModel(description = "List of annotations.") +@ApiModel(description = "Object representing a list of circle annotations.") public class CircleAnnotations extends LinkElement { @SerializedName("List") @@ -60,10 +60,10 @@ public CircleAnnotations addListItem(CircleAnnotation listItem) { } /** - * Get list + * List of circle annotations. * @return list **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "List of circle annotations.") public List getList() { return list; } diff --git a/src/main/java/com/aspose/asposecloudpdf/model/CircleAnnotationsResponse.java b/src/main/java/com/aspose/asposecloudpdf/model/CircleAnnotationsResponse.java index 98cace5..1dd2a93 100644 --- a/src/main/java/com/aspose/asposecloudpdf/model/CircleAnnotationsResponse.java +++ b/src/main/java/com/aspose/asposecloudpdf/model/CircleAnnotationsResponse.java @@ -35,8 +35,9 @@ import java.io.IOException; /** - * CircleAnnotationsResponse + * Represents response containing multiple circle annotation objects */ +@ApiModel(description = "Represents response containing multiple circle annotation objects") public class CircleAnnotationsResponse extends AsposeResponse { @SerializedName("Annotations") @@ -48,10 +49,10 @@ public CircleAnnotationsResponse annotations(CircleAnnotations annotations) { } /** - * Get annotations + * Circle annotations object * @return annotations **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "Circle annotations object") public CircleAnnotations getAnnotations() { return annotations; } diff --git a/src/main/java/com/aspose/asposecloudpdf/model/Color.java b/src/main/java/com/aspose/asposecloudpdf/model/Color.java index 045b8ed..aaa1eaf 100644 --- a/src/main/java/com/aspose/asposecloudpdf/model/Color.java +++ b/src/main/java/com/aspose/asposecloudpdf/model/Color.java @@ -56,10 +56,10 @@ public Color A(Integer A) { } /** - * Get A + * Alpha component. * @return A **/ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty(required = true, value = "Alpha component.") public Integer getA() { return A; } @@ -74,10 +74,10 @@ public Color R(Integer R) { } /** - * Get R + * Red component. * @return R **/ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty(required = true, value = "Red component.") public Integer getR() { return R; } @@ -92,10 +92,10 @@ public Color G(Integer G) { } /** - * Get G + * Green component. * @return G **/ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty(required = true, value = "Green component.") public Integer getG() { return G; } @@ -110,10 +110,10 @@ public Color B(Integer B) { } /** - * Get B + * Blue component. * @return B **/ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty(required = true, value = "Blue component.") public Integer getB() { return B; } diff --git a/src/main/java/com/aspose/asposecloudpdf/model/CommonFigureAnnotation.java b/src/main/java/com/aspose/asposecloudpdf/model/CommonFigureAnnotation.java index eb71b3c..369aaaf 100644 --- a/src/main/java/com/aspose/asposecloudpdf/model/CommonFigureAnnotation.java +++ b/src/main/java/com/aspose/asposecloudpdf/model/CommonFigureAnnotation.java @@ -28,7 +28,7 @@ import com.aspose.asposecloudpdf.model.HorizontalAlignment; import com.aspose.asposecloudpdf.model.Link; import com.aspose.asposecloudpdf.model.MarkupAnnotation; -import com.aspose.asposecloudpdf.model.RectanglePdf; +import com.aspose.asposecloudpdf.model.Rectangle; import com.aspose.asposecloudpdf.model.VerticalAlignment; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -50,7 +50,7 @@ public class CommonFigureAnnotation extends MarkupAnnotation { private Color interiorColor = null; @SerializedName("Frame") - private RectanglePdf frame = null; + private Rectangle frame = null; public CommonFigureAnnotation interiorColor(Color interiorColor) { this.interiorColor = interiorColor; @@ -70,7 +70,7 @@ public void setInteriorColor(Color interiorColor) { this.interiorColor = interiorColor; } - public CommonFigureAnnotation frame(RectanglePdf frame) { + public CommonFigureAnnotation frame(Rectangle frame) { this.frame = frame; return this; } @@ -80,11 +80,11 @@ public CommonFigureAnnotation frame(RectanglePdf frame) { * @return frame **/ @ApiModelProperty(value = "Get or set the annotation Rectangle of frame.") - public RectanglePdf getFrame() { + public Rectangle getFrame() { return frame; } - public void setFrame(RectanglePdf frame) { + public void setFrame(Rectangle frame) { this.frame = frame; } diff --git a/src/main/java/com/aspose/asposecloudpdf/model/DiscUsage.java b/src/main/java/com/aspose/asposecloudpdf/model/DiscUsage.java new file mode 100644 index 0000000..e7f6244 --- /dev/null +++ b/src/main/java/com/aspose/asposecloudpdf/model/DiscUsage.java @@ -0,0 +1,125 @@ +/** + * + * Copyright (c) 2018 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. + * + */ + + +package com.aspose.asposecloudpdf.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * DiscUsage + */ + +public class DiscUsage { + @SerializedName("UsedSize") + private Long usedSize = null; + + @SerializedName("TotalSize") + private Long totalSize = null; + + public DiscUsage usedSize(Long usedSize) { + this.usedSize = usedSize; + return this; + } + + /** + * Get usedSize + * @return usedSize + **/ + @ApiModelProperty(required = true, value = "") + public Long getUsedSize() { + return usedSize; + } + + public void setUsedSize(Long usedSize) { + this.usedSize = usedSize; + } + + public DiscUsage totalSize(Long totalSize) { + this.totalSize = totalSize; + return this; + } + + /** + * Get totalSize + * @return totalSize + **/ + @ApiModelProperty(required = true, value = "") + public Long getTotalSize() { + return totalSize; + } + + public void setTotalSize(Long totalSize) { + this.totalSize = totalSize; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DiscUsage discUsage = (DiscUsage) o; + return Objects.equals(this.usedSize, discUsage.usedSize) && + Objects.equals(this.totalSize, discUsage.totalSize); + } + + @Override + public int hashCode() { + return Objects.hash(usedSize, totalSize); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DiscUsage {\n"); + + sb.append(" usedSize: ").append(toIndentedString(usedSize)).append("\n"); + sb.append(" totalSize: ").append(toIndentedString(totalSize)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/aspose/asposecloudpdf/model/DiscUsageResponse.java b/src/main/java/com/aspose/asposecloudpdf/model/DiscUsageResponse.java new file mode 100644 index 0000000..ec08d72 --- /dev/null +++ b/src/main/java/com/aspose/asposecloudpdf/model/DiscUsageResponse.java @@ -0,0 +1,105 @@ +/** + * + * Copyright (c) 2018 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. + * + */ + + +package com.aspose.asposecloudpdf.model; + +import java.util.Objects; +import com.aspose.asposecloudpdf.model.AsposeResponse; +import com.aspose.asposecloudpdf.model.DiscUsage; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * DiscUsageResponse + */ + +public class DiscUsageResponse extends AsposeResponse { + @SerializedName("DiscUsage") + private DiscUsage discUsage = null; + + public DiscUsageResponse discUsage(DiscUsage discUsage) { + this.discUsage = discUsage; + return this; + } + + /** + * Get discUsage + * @return discUsage + **/ + @ApiModelProperty(value = "") + public DiscUsage getDiscUsage() { + return discUsage; + } + + public void setDiscUsage(DiscUsage discUsage) { + this.discUsage = discUsage; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DiscUsageResponse discUsageResponse = (DiscUsageResponse) o; + return Objects.equals(this.discUsage, discUsageResponse.discUsage) && + super.equals(o); + } + + @Override + public int hashCode() { + return Objects.hash(discUsage, super.hashCode()); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DiscUsageResponse {\n"); + sb.append(" ").append(toIndentedString(super.toString())).append("\n"); + sb.append(" discUsage: ").append(toIndentedString(discUsage)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/aspose/asposecloudpdf/model/DocumentPageResponse.java b/src/main/java/com/aspose/asposecloudpdf/model/DocumentPageResponse.java index aa94b44..6c3e0a1 100644 --- a/src/main/java/com/aspose/asposecloudpdf/model/DocumentPageResponse.java +++ b/src/main/java/com/aspose/asposecloudpdf/model/DocumentPageResponse.java @@ -35,8 +35,9 @@ import java.io.IOException; /** - * DocumentPageResponse + * Represents response containing single page info */ +@ApiModel(description = "Represents response containing single page info") public class DocumentPageResponse extends AsposeResponse { @SerializedName("Page") @@ -48,10 +49,10 @@ public DocumentPageResponse page(Page page) { } /** - * Get page + * Page object * @return page **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "Page object") public Page getPage() { return page; } diff --git a/src/main/java/com/aspose/asposecloudpdf/model/DocumentPagesResponse.java b/src/main/java/com/aspose/asposecloudpdf/model/DocumentPagesResponse.java index 63381fc..b2c4f73 100644 --- a/src/main/java/com/aspose/asposecloudpdf/model/DocumentPagesResponse.java +++ b/src/main/java/com/aspose/asposecloudpdf/model/DocumentPagesResponse.java @@ -35,8 +35,9 @@ import java.io.IOException; /** - * DocumentPagesResponse + * Represents response containing multiple pages info */ +@ApiModel(description = "Represents response containing multiple pages info") public class DocumentPagesResponse extends AsposeResponse { @SerializedName("Pages") @@ -48,10 +49,10 @@ public DocumentPagesResponse pages(Pages pages) { } /** - * Get pages + * Page object * @return pages **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "Page object") public Pages getPages() { return pages; } diff --git a/src/main/java/com/aspose/asposecloudpdf/model/DocumentProperties.java b/src/main/java/com/aspose/asposecloudpdf/model/DocumentProperties.java index 97f1d17..dbe60fc 100644 --- a/src/main/java/com/aspose/asposecloudpdf/model/DocumentProperties.java +++ b/src/main/java/com/aspose/asposecloudpdf/model/DocumentProperties.java @@ -38,9 +38,9 @@ import java.util.List; /** - * Pdf document properties. + * Represents list of PDF document properties. */ -@ApiModel(description = "Pdf document properties.") +@ApiModel(description = "Represents list of PDF document properties.") public class DocumentProperties extends LinkElement { @SerializedName("List") @@ -60,10 +60,10 @@ public DocumentProperties addListItem(DocumentProperty listItem) { } /** - * Get list + * List of PDF document properties. * @return list **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "List of PDF document properties.") public List getList() { return list; } diff --git a/src/main/java/com/aspose/asposecloudpdf/model/DocumentPropertiesResponse.java b/src/main/java/com/aspose/asposecloudpdf/model/DocumentPropertiesResponse.java index bc8ead3..dd86ceb 100644 --- a/src/main/java/com/aspose/asposecloudpdf/model/DocumentPropertiesResponse.java +++ b/src/main/java/com/aspose/asposecloudpdf/model/DocumentPropertiesResponse.java @@ -35,8 +35,9 @@ import java.io.IOException; /** - * DocumentPropertiesResponse + * Represents response containing multiple document properties info */ +@ApiModel(description = "Represents response containing multiple document properties info") public class DocumentPropertiesResponse extends AsposeResponse { @SerializedName("DocumentProperties") @@ -48,10 +49,10 @@ public DocumentPropertiesResponse documentProperties(DocumentProperties document } /** - * Get documentProperties + * DocumentProperties object * @return documentProperties **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "DocumentProperties object") public DocumentProperties getDocumentProperties() { return documentProperties; } diff --git a/src/main/java/com/aspose/asposecloudpdf/model/DocumentProperty.java b/src/main/java/com/aspose/asposecloudpdf/model/DocumentProperty.java index 7fc0570..e63304f 100644 --- a/src/main/java/com/aspose/asposecloudpdf/model/DocumentProperty.java +++ b/src/main/java/com/aspose/asposecloudpdf/model/DocumentProperty.java @@ -56,10 +56,10 @@ public DocumentProperty name(String name) { } /** - * Get name + * Pame of the property. * @return name **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "Pame of the property.") public String getName() { return name; } @@ -74,10 +74,10 @@ public DocumentProperty value(String value) { } /** - * Get value + * Property value. * @return value **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "Property value.") public String getValue() { return value; } @@ -92,10 +92,10 @@ public DocumentProperty builtIn(Boolean builtIn) { } /** - * Get builtIn + * Value indicating whether it is a built-in property. * @return builtIn **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "Value indicating whether it is a built-in property.") public Boolean isBuiltIn() { return builtIn; } diff --git a/src/main/java/com/aspose/asposecloudpdf/model/DocumentPropertyResponse.java b/src/main/java/com/aspose/asposecloudpdf/model/DocumentPropertyResponse.java index d9afdaf..6b13ba7 100644 --- a/src/main/java/com/aspose/asposecloudpdf/model/DocumentPropertyResponse.java +++ b/src/main/java/com/aspose/asposecloudpdf/model/DocumentPropertyResponse.java @@ -35,8 +35,9 @@ import java.io.IOException; /** - * DocumentPropertyResponse + * Represents response containing single document property info */ +@ApiModel(description = "Represents response containing single document property info") public class DocumentPropertyResponse extends AsposeResponse { @SerializedName("DocumentProperty") @@ -48,10 +49,10 @@ public DocumentPropertyResponse documentProperty(DocumentProperty documentProper } /** - * Get documentProperty + * DocumentProperty object * @return documentProperty **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "DocumentProperty object") public DocumentProperty getDocumentProperty() { return documentProperty; } diff --git a/src/main/java/com/aspose/asposecloudpdf/model/DocumentResponse.java b/src/main/java/com/aspose/asposecloudpdf/model/DocumentResponse.java index 0ff637f..07b028a 100644 --- a/src/main/java/com/aspose/asposecloudpdf/model/DocumentResponse.java +++ b/src/main/java/com/aspose/asposecloudpdf/model/DocumentResponse.java @@ -37,8 +37,9 @@ import java.util.List; /** - * DocumentResponse + * Represents response containing document info */ +@ApiModel(description = "Represents response containing document info") public class DocumentResponse extends AsposeResponse { @SerializedName("Document") @@ -53,10 +54,10 @@ public DocumentResponse document(Document document) { } /** - * Get document + * Document object * @return document **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "Document object") public Document getDocument() { return document; } @@ -79,10 +80,10 @@ public DocumentResponse addMessagesItem(String messagesItem) { } /** - * Get messages + * A list of messages obtained while producing the responce * @return messages **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "A list of messages obtained while producing the responce") public List getMessages() { return messages; } diff --git a/src/main/java/com/aspose/asposecloudpdf/model/Field.java b/src/main/java/com/aspose/asposecloudpdf/model/Field.java index a7849e5..a10c73f 100644 --- a/src/main/java/com/aspose/asposecloudpdf/model/Field.java +++ b/src/main/java/com/aspose/asposecloudpdf/model/Field.java @@ -26,7 +26,7 @@ import com.aspose.asposecloudpdf.model.FieldType; import com.aspose.asposecloudpdf.model.Link; import com.aspose.asposecloudpdf.model.LinkElement; -import com.aspose.asposecloudpdf.model.RectanglePdf; +import com.aspose.asposecloudpdf.model.Rectangle; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -54,7 +54,7 @@ public class Field extends LinkElement { private FieldType type = null; @SerializedName("Rect") - private RectanglePdf rect = null; + private Rectangle rect = null; @SerializedName("Values") private List values = null; @@ -121,7 +121,7 @@ public void setType(FieldType type) { this.type = type; } - public Field rect(RectanglePdf rect) { + public Field rect(Rectangle rect) { this.rect = rect; return this; } @@ -131,11 +131,11 @@ public Field rect(RectanglePdf rect) { * @return rect **/ @ApiModelProperty(value = "Field rectangle.") - public RectanglePdf getRect() { + public Rectangle getRect() { return rect; } - public void setRect(RectanglePdf rect) { + public void setRect(Rectangle rect) { this.rect = rect; } diff --git a/src/main/java/com/aspose/asposecloudpdf/model/FieldResponse.java b/src/main/java/com/aspose/asposecloudpdf/model/FieldResponse.java index 4449007..42f8383 100644 --- a/src/main/java/com/aspose/asposecloudpdf/model/FieldResponse.java +++ b/src/main/java/com/aspose/asposecloudpdf/model/FieldResponse.java @@ -35,8 +35,9 @@ import java.io.IOException; /** - * FieldResponse + * Represents response containing single field info */ +@ApiModel(description = "Represents response containing single field info") public class FieldResponse extends AsposeResponse { @SerializedName("Field") @@ -48,10 +49,10 @@ public FieldResponse field(Field field) { } /** - * Get field + * Field object * @return field **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "Field object") public Field getField() { return field; } diff --git a/src/main/java/com/aspose/asposecloudpdf/model/Fields.java b/src/main/java/com/aspose/asposecloudpdf/model/Fields.java index c6765f8..e643f44 100644 --- a/src/main/java/com/aspose/asposecloudpdf/model/Fields.java +++ b/src/main/java/com/aspose/asposecloudpdf/model/Fields.java @@ -38,9 +38,9 @@ import java.util.List; /** - * List of form fields. + * Represents list of form fields. */ -@ApiModel(description = "List of form fields.") +@ApiModel(description = "Represents list of form fields.") public class Fields extends LinkElement { @SerializedName("List") @@ -60,10 +60,10 @@ public Fields addListItem(Field listItem) { } /** - * Get list + * List of form fields. * @return list **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "List of form fields.") public List getList() { return list; } diff --git a/src/main/java/com/aspose/asposecloudpdf/model/FieldsResponse.java b/src/main/java/com/aspose/asposecloudpdf/model/FieldsResponse.java index d87a39e..477a5fe 100644 --- a/src/main/java/com/aspose/asposecloudpdf/model/FieldsResponse.java +++ b/src/main/java/com/aspose/asposecloudpdf/model/FieldsResponse.java @@ -35,8 +35,9 @@ import java.io.IOException; /** - * FieldsResponse + * Represents response containing multiple fields info */ +@ApiModel(description = "Represents response containing multiple fields info") public class FieldsResponse extends AsposeResponse { @SerializedName("Fields") @@ -48,10 +49,10 @@ public FieldsResponse fields(Fields fields) { } /** - * Get fields + * Fields object * @return fields **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "Fields object") public Fields getFields() { return fields; } diff --git a/src/main/java/com/aspose/asposecloudpdf/model/FileExist.java b/src/main/java/com/aspose/asposecloudpdf/model/FileExist.java new file mode 100644 index 0000000..ae34e13 --- /dev/null +++ b/src/main/java/com/aspose/asposecloudpdf/model/FileExist.java @@ -0,0 +1,125 @@ +/** + * + * Copyright (c) 2018 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. + * + */ + + +package com.aspose.asposecloudpdf.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * FileExist + */ + +public class FileExist { + @SerializedName("IsExist") + private Boolean isExist = null; + + @SerializedName("IsFolder") + private Boolean isFolder = null; + + public FileExist isExist(Boolean isExist) { + this.isExist = isExist; + return this; + } + + /** + * Get isExist + * @return isExist + **/ + @ApiModelProperty(required = true, value = "") + public Boolean isIsExist() { + return isExist; + } + + public void setIsExist(Boolean isExist) { + this.isExist = isExist; + } + + public FileExist isFolder(Boolean isFolder) { + this.isFolder = isFolder; + return this; + } + + /** + * Get isFolder + * @return isFolder + **/ + @ApiModelProperty(required = true, value = "") + public Boolean isIsFolder() { + return isFolder; + } + + public void setIsFolder(Boolean isFolder) { + this.isFolder = isFolder; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + FileExist fileExist = (FileExist) o; + return Objects.equals(this.isExist, fileExist.isExist) && + Objects.equals(this.isFolder, fileExist.isFolder); + } + + @Override + public int hashCode() { + return Objects.hash(isExist, isFolder); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class FileExist {\n"); + + sb.append(" isExist: ").append(toIndentedString(isExist)).append("\n"); + sb.append(" isFolder: ").append(toIndentedString(isFolder)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/aspose/asposecloudpdf/model/FileExistResponse.java b/src/main/java/com/aspose/asposecloudpdf/model/FileExistResponse.java new file mode 100644 index 0000000..9d79049 --- /dev/null +++ b/src/main/java/com/aspose/asposecloudpdf/model/FileExistResponse.java @@ -0,0 +1,105 @@ +/** + * + * Copyright (c) 2018 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. + * + */ + + +package com.aspose.asposecloudpdf.model; + +import java.util.Objects; +import com.aspose.asposecloudpdf.model.AsposeResponse; +import com.aspose.asposecloudpdf.model.FileExist; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * FileExistResponse + */ + +public class FileExistResponse extends AsposeResponse { + @SerializedName("FileExist") + private FileExist fileExist = null; + + public FileExistResponse fileExist(FileExist fileExist) { + this.fileExist = fileExist; + return this; + } + + /** + * Get fileExist + * @return fileExist + **/ + @ApiModelProperty(value = "") + public FileExist getFileExist() { + return fileExist; + } + + public void setFileExist(FileExist fileExist) { + this.fileExist = fileExist; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + FileExistResponse fileExistResponse = (FileExistResponse) o; + return Objects.equals(this.fileExist, fileExistResponse.fileExist) && + super.equals(o); + } + + @Override + public int hashCode() { + return Objects.hash(fileExist, super.hashCode()); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class FileExistResponse {\n"); + sb.append(" ").append(toIndentedString(super.toString())).append("\n"); + sb.append(" fileExist: ").append(toIndentedString(fileExist)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/aspose/asposecloudpdf/model/FileVersion.java b/src/main/java/com/aspose/asposecloudpdf/model/FileVersion.java new file mode 100644 index 0000000..af3a4cc --- /dev/null +++ b/src/main/java/com/aspose/asposecloudpdf/model/FileVersion.java @@ -0,0 +1,127 @@ +/** + * + * Copyright (c) 2018 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. + * + */ + + +package com.aspose.asposecloudpdf.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.threeten.bp.OffsetDateTime; + +/** + * FileVersion + */ + +public class FileVersion extends File { + @SerializedName("VersionId") + private String versionId = null; + + @SerializedName("IsLatest") + private Boolean isLatest = null; + + public FileVersion versionId(String versionId) { + this.versionId = versionId; + return this; + } + + /** + * Get versionId + * @return versionId + **/ + @ApiModelProperty(value = "") + public String getVersionId() { + return versionId; + } + + public void setVersionId(String versionId) { + this.versionId = versionId; + } + + public FileVersion isLatest(Boolean isLatest) { + this.isLatest = isLatest; + return this; + } + + /** + * Get isLatest + * @return isLatest + **/ + @ApiModelProperty(value = "") + public Boolean isIsLatest() { + return isLatest; + } + + public void setIsLatest(Boolean isLatest) { + this.isLatest = isLatest; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + FileVersion fileVersion = (FileVersion) o; + return Objects.equals(this.versionId, fileVersion.versionId) && + Objects.equals(this.isLatest, fileVersion.isLatest) && + super.equals(o); + } + + @Override + public int hashCode() { + return Objects.hash(versionId, isLatest, super.hashCode()); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class FileVersion {\n"); + sb.append(" ").append(toIndentedString(super.toString())).append("\n"); + sb.append(" versionId: ").append(toIndentedString(versionId)).append("\n"); + sb.append(" isLatest: ").append(toIndentedString(isLatest)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/aspose/asposecloudpdf/model/FileVersionsResponse.java b/src/main/java/com/aspose/asposecloudpdf/model/FileVersionsResponse.java new file mode 100644 index 0000000..a710606 --- /dev/null +++ b/src/main/java/com/aspose/asposecloudpdf/model/FileVersionsResponse.java @@ -0,0 +1,115 @@ +/** + * + * Copyright (c) 2018 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. + * + */ + + +package com.aspose.asposecloudpdf.model; + +import java.util.Objects; +import com.aspose.asposecloudpdf.model.AsposeResponse; +import com.aspose.asposecloudpdf.model.FileVersion; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * FileVersionsResponse + */ + +public class FileVersionsResponse extends AsposeResponse { + @SerializedName("FileVersions") + private List fileVersions = null; + + public FileVersionsResponse fileVersions(List fileVersions) { + this.fileVersions = fileVersions; + return this; + } + + public FileVersionsResponse addFileVersionsItem(FileVersion fileVersionsItem) { + if (this.fileVersions == null) { + this.fileVersions = new ArrayList(); + } + this.fileVersions.add(fileVersionsItem); + return this; + } + + /** + * Get fileVersions + * @return fileVersions + **/ + @ApiModelProperty(value = "") + public List getFileVersions() { + return fileVersions; + } + + public void setFileVersions(List fileVersions) { + this.fileVersions = fileVersions; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + FileVersionsResponse fileVersionsResponse = (FileVersionsResponse) o; + return Objects.equals(this.fileVersions, fileVersionsResponse.fileVersions) && + super.equals(o); + } + + @Override + public int hashCode() { + return Objects.hash(fileVersions, super.hashCode()); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class FileVersionsResponse {\n"); + sb.append(" ").append(toIndentedString(super.toString())).append("\n"); + sb.append(" fileVersions: ").append(toIndentedString(fileVersions)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/aspose/asposecloudpdf/model/FreeTextAnnotation.java b/src/main/java/com/aspose/asposecloudpdf/model/FreeTextAnnotation.java index 2bc2cee..ca76127 100644 --- a/src/main/java/com/aspose/asposecloudpdf/model/FreeTextAnnotation.java +++ b/src/main/java/com/aspose/asposecloudpdf/model/FreeTextAnnotation.java @@ -24,12 +24,13 @@ import java.util.Objects; import com.aspose.asposecloudpdf.model.AnnotationFlags; +import com.aspose.asposecloudpdf.model.Color; import com.aspose.asposecloudpdf.model.FreeTextIntent; import com.aspose.asposecloudpdf.model.HorizontalAlignment; import com.aspose.asposecloudpdf.model.Justification; import com.aspose.asposecloudpdf.model.Link; import com.aspose.asposecloudpdf.model.MarkupAnnotation; -import com.aspose.asposecloudpdf.model.RectanglePdf; +import com.aspose.asposecloudpdf.model.Rectangle; import com.aspose.asposecloudpdf.model.Rotation; import com.aspose.asposecloudpdf.model.TextStyle; import com.aspose.asposecloudpdf.model.VerticalAlignment; diff --git a/src/main/java/com/aspose/asposecloudpdf/model/FreeTextAnnotationResponse.java b/src/main/java/com/aspose/asposecloudpdf/model/FreeTextAnnotationResponse.java index 855429a..46fe523 100644 --- a/src/main/java/com/aspose/asposecloudpdf/model/FreeTextAnnotationResponse.java +++ b/src/main/java/com/aspose/asposecloudpdf/model/FreeTextAnnotationResponse.java @@ -35,8 +35,9 @@ import java.io.IOException; /** - * FreeTextAnnotationResponse + * Represents response containing single free text annotation object */ +@ApiModel(description = "Represents response containing single free text annotation object") public class FreeTextAnnotationResponse extends AsposeResponse { @SerializedName("Annotation") @@ -48,10 +49,10 @@ public FreeTextAnnotationResponse annotation(FreeTextAnnotation annotation) { } /** - * Get annotation + * Free text annotation object * @return annotation **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "Free text annotation object") public FreeTextAnnotation getAnnotation() { return annotation; } diff --git a/src/main/java/com/aspose/asposecloudpdf/model/FreeTextAnnotations.java b/src/main/java/com/aspose/asposecloudpdf/model/FreeTextAnnotations.java index 6f660af..39d48d7 100644 --- a/src/main/java/com/aspose/asposecloudpdf/model/FreeTextAnnotations.java +++ b/src/main/java/com/aspose/asposecloudpdf/model/FreeTextAnnotations.java @@ -38,9 +38,9 @@ import java.util.List; /** - * List of annotations. + * Object representing a list of free text annotations. */ -@ApiModel(description = "List of annotations.") +@ApiModel(description = "Object representing a list of free text annotations.") public class FreeTextAnnotations extends LinkElement { @SerializedName("List") @@ -60,10 +60,10 @@ public FreeTextAnnotations addListItem(FreeTextAnnotation listItem) { } /** - * Get list + * List of free text annotations. * @return list **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "List of free text annotations.") public List getList() { return list; } diff --git a/src/main/java/com/aspose/asposecloudpdf/model/FreeTextAnnotationsResponse.java b/src/main/java/com/aspose/asposecloudpdf/model/FreeTextAnnotationsResponse.java index cc61d03..64d40dc 100644 --- a/src/main/java/com/aspose/asposecloudpdf/model/FreeTextAnnotationsResponse.java +++ b/src/main/java/com/aspose/asposecloudpdf/model/FreeTextAnnotationsResponse.java @@ -35,8 +35,9 @@ import java.io.IOException; /** - * FreeTextAnnotationsResponse + * Represents response containing multiple free text annotation objects */ +@ApiModel(description = "Represents response containing multiple free text annotation objects") public class FreeTextAnnotationsResponse extends AsposeResponse { @SerializedName("Annotations") @@ -48,10 +49,10 @@ public FreeTextAnnotationsResponse annotations(FreeTextAnnotations annotations) } /** - * Get annotations + * Free text annotations object * @return annotations **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "Free text annotations object") public FreeTextAnnotations getAnnotations() { return annotations; } diff --git a/src/main/java/com/aspose/asposecloudpdf/model/HighlightAnnotation.java b/src/main/java/com/aspose/asposecloudpdf/model/HighlightAnnotation.java index 4f191bc..696b08e 100644 --- a/src/main/java/com/aspose/asposecloudpdf/model/HighlightAnnotation.java +++ b/src/main/java/com/aspose/asposecloudpdf/model/HighlightAnnotation.java @@ -29,7 +29,7 @@ import com.aspose.asposecloudpdf.model.Link; import com.aspose.asposecloudpdf.model.MarkupAnnotation; import com.aspose.asposecloudpdf.model.Point; -import com.aspose.asposecloudpdf.model.RectanglePdf; +import com.aspose.asposecloudpdf.model.Rectangle; import com.aspose.asposecloudpdf.model.VerticalAlignment; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -48,30 +48,9 @@ @ApiModel(description = "Provides HighlightAnnotation.") public class HighlightAnnotation extends MarkupAnnotation { - @SerializedName("Color") - private Color color = null; - @SerializedName("QuadPoints") private List quadPoints = null; - public HighlightAnnotation color(Color color) { - this.color = color; - return this; - } - - /** - * Color of the annotation. - * @return color - **/ - @ApiModelProperty(value = "Color of the annotation.") - public Color getColor() { - return color; - } - - public void setColor(Color color) { - this.color = color; - } - public HighlightAnnotation quadPoints(List quadPoints) { this.quadPoints = quadPoints; return this; @@ -108,14 +87,13 @@ public boolean equals(java.lang.Object o) { return false; } HighlightAnnotation highlightAnnotation = (HighlightAnnotation) o; - return Objects.equals(this.color, highlightAnnotation.color) && - Objects.equals(this.quadPoints, highlightAnnotation.quadPoints) && + return Objects.equals(this.quadPoints, highlightAnnotation.quadPoints) && super.equals(o); } @Override public int hashCode() { - return Objects.hash(color, quadPoints, super.hashCode()); + return Objects.hash(quadPoints, super.hashCode()); } @@ -124,7 +102,6 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class HighlightAnnotation {\n"); sb.append(" ").append(toIndentedString(super.toString())).append("\n"); - sb.append(" color: ").append(toIndentedString(color)).append("\n"); sb.append(" quadPoints: ").append(toIndentedString(quadPoints)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/src/main/java/com/aspose/asposecloudpdf/model/HighlightAnnotationResponse.java b/src/main/java/com/aspose/asposecloudpdf/model/HighlightAnnotationResponse.java index 24d2530..35f785c 100644 --- a/src/main/java/com/aspose/asposecloudpdf/model/HighlightAnnotationResponse.java +++ b/src/main/java/com/aspose/asposecloudpdf/model/HighlightAnnotationResponse.java @@ -35,8 +35,9 @@ import java.io.IOException; /** - * HighlightAnnotationResponse + * Represents response containing single highlight annotation object */ +@ApiModel(description = "Represents response containing single highlight annotation object") public class HighlightAnnotationResponse extends AsposeResponse { @SerializedName("Annotation") @@ -48,10 +49,10 @@ public HighlightAnnotationResponse annotation(HighlightAnnotation annotation) { } /** - * Get annotation + * Highlight annotation object * @return annotation **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "Highlight annotation object") public HighlightAnnotation getAnnotation() { return annotation; } diff --git a/src/main/java/com/aspose/asposecloudpdf/model/HighlightAnnotations.java b/src/main/java/com/aspose/asposecloudpdf/model/HighlightAnnotations.java index 842d7d6..c12b5fa 100644 --- a/src/main/java/com/aspose/asposecloudpdf/model/HighlightAnnotations.java +++ b/src/main/java/com/aspose/asposecloudpdf/model/HighlightAnnotations.java @@ -38,9 +38,9 @@ import java.util.List; /** - * List of annotations. + * Object representing a list of highlight annotations. */ -@ApiModel(description = "List of annotations.") +@ApiModel(description = "Object representing a list of highlight annotations.") public class HighlightAnnotations extends LinkElement { @SerializedName("List") @@ -60,10 +60,10 @@ public HighlightAnnotations addListItem(HighlightAnnotation listItem) { } /** - * Get list + * List of highlight annotations. * @return list **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "List of highlight annotations.") public List getList() { return list; } diff --git a/src/main/java/com/aspose/asposecloudpdf/model/HighlightAnnotationsResponse.java b/src/main/java/com/aspose/asposecloudpdf/model/HighlightAnnotationsResponse.java index 474551e..85f682c 100644 --- a/src/main/java/com/aspose/asposecloudpdf/model/HighlightAnnotationsResponse.java +++ b/src/main/java/com/aspose/asposecloudpdf/model/HighlightAnnotationsResponse.java @@ -35,8 +35,9 @@ import java.io.IOException; /** - * HighlightAnnotationsResponse + * Represents response containing multiple highlight annotation objects */ +@ApiModel(description = "Represents response containing multiple highlight annotation objects") public class HighlightAnnotationsResponse extends AsposeResponse { @SerializedName("Annotations") @@ -48,10 +49,10 @@ public HighlightAnnotationsResponse annotations(HighlightAnnotations annotations } /** - * Get annotations + * Highlight annotations object * @return annotations **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "Highlight annotations object") public HighlightAnnotations getAnnotations() { return annotations; } diff --git a/src/main/java/com/aspose/asposecloudpdf/model/HorizontalAlignment.java b/src/main/java/com/aspose/asposecloudpdf/model/HorizontalAlignment.java index a4eddf4..586749d 100644 --- a/src/main/java/com/aspose/asposecloudpdf/model/HorizontalAlignment.java +++ b/src/main/java/com/aspose/asposecloudpdf/model/HorizontalAlignment.java @@ -33,7 +33,7 @@ import com.google.gson.stream.JsonWriter; /** - * + * Describes horizontal alignment. */ @JsonAdapter(HorizontalAlignment.Adapter.class) public enum HorizontalAlignment { diff --git a/src/main/java/com/aspose/asposecloudpdf/model/Image.java b/src/main/java/com/aspose/asposecloudpdf/model/Image.java index 193ccee..2482324 100644 --- a/src/main/java/com/aspose/asposecloudpdf/model/Image.java +++ b/src/main/java/com/aspose/asposecloudpdf/model/Image.java @@ -25,7 +25,7 @@ import java.util.Objects; import com.aspose.asposecloudpdf.model.Link; import com.aspose.asposecloudpdf.model.LinkElement; -import com.aspose.asposecloudpdf.model.RectanglePdf; +import com.aspose.asposecloudpdf.model.Rectangle; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -52,7 +52,7 @@ public class Image extends LinkElement { private String id = null; @SerializedName("Rectangle") - private RectanglePdf rectangle = null; + private Rectangle rectangle = null; @SerializedName("PageNumber") private Integer pageNumber = null; @@ -111,7 +111,7 @@ public void setId(String id) { this.id = id; } - public Image rectangle(RectanglePdf rectangle) { + public Image rectangle(Rectangle rectangle) { this.rectangle = rectangle; return this; } @@ -121,11 +121,11 @@ public Image rectangle(RectanglePdf rectangle) { * @return rectangle **/ @ApiModelProperty(value = "Gets rectangle of the image.") - public RectanglePdf getRectangle() { + public Rectangle getRectangle() { return rectangle; } - public void setRectangle(RectanglePdf rectangle) { + public void setRectangle(Rectangle rectangle) { this.rectangle = rectangle; } diff --git a/src/main/java/com/aspose/asposecloudpdf/model/ImageResponse.java b/src/main/java/com/aspose/asposecloudpdf/model/ImageResponse.java index b015263..00bb21b 100644 --- a/src/main/java/com/aspose/asposecloudpdf/model/ImageResponse.java +++ b/src/main/java/com/aspose/asposecloudpdf/model/ImageResponse.java @@ -35,8 +35,9 @@ import java.io.IOException; /** - * ImageResponse + * Represents response containing single image info */ +@ApiModel(description = "Represents response containing single image info") public class ImageResponse extends AsposeResponse { @SerializedName("Image") @@ -48,10 +49,10 @@ public ImageResponse image(Image image) { } /** - * Get image + * Image object * @return image **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "Image object") public Image getImage() { return image; } diff --git a/src/main/java/com/aspose/asposecloudpdf/model/Images.java b/src/main/java/com/aspose/asposecloudpdf/model/Images.java index 07556e6..072f590 100644 --- a/src/main/java/com/aspose/asposecloudpdf/model/Images.java +++ b/src/main/java/com/aspose/asposecloudpdf/model/Images.java @@ -38,9 +38,9 @@ import java.util.List; /** - * List of page images. + * Represents list of images. */ -@ApiModel(description = "List of page images.") +@ApiModel(description = "Represents list of images.") public class Images extends LinkElement { @SerializedName("List") @@ -60,10 +60,10 @@ public Images addListItem(Image listItem) { } /** - * Get list + * List of images. * @return list **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "List of images.") public List getList() { return list; } diff --git a/src/main/java/com/aspose/asposecloudpdf/model/ImagesResponse.java b/src/main/java/com/aspose/asposecloudpdf/model/ImagesResponse.java index d044374..a7ecd3e 100644 --- a/src/main/java/com/aspose/asposecloudpdf/model/ImagesResponse.java +++ b/src/main/java/com/aspose/asposecloudpdf/model/ImagesResponse.java @@ -35,8 +35,9 @@ import java.io.IOException; /** - * ImagesResponse + * Represents response containing multiple images info */ +@ApiModel(description = "Represents response containing multiple images info") public class ImagesResponse extends AsposeResponse { @SerializedName("Images") @@ -48,10 +49,10 @@ public ImagesResponse images(Images images) { } /** - * Get images + * Images object * @return images **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "Images object") public Images getImages() { return images; } diff --git a/src/main/java/com/aspose/asposecloudpdf/model/InkAnnotation.java b/src/main/java/com/aspose/asposecloudpdf/model/InkAnnotation.java index 519f974..783744d 100644 --- a/src/main/java/com/aspose/asposecloudpdf/model/InkAnnotation.java +++ b/src/main/java/com/aspose/asposecloudpdf/model/InkAnnotation.java @@ -30,7 +30,7 @@ import com.aspose.asposecloudpdf.model.Link; import com.aspose.asposecloudpdf.model.MarkupAnnotation; import com.aspose.asposecloudpdf.model.Point; -import com.aspose.asposecloudpdf.model.RectanglePdf; +import com.aspose.asposecloudpdf.model.Rectangle; import com.aspose.asposecloudpdf.model.VerticalAlignment; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -49,33 +49,12 @@ @ApiModel(description = "Provides InkAnnotation.") public class InkAnnotation extends MarkupAnnotation { - @SerializedName("Color") - private Color color = null; - @SerializedName("InkList") private List> inkList = null; @SerializedName("CapStyle") private CapStyle capStyle = null; - public InkAnnotation color(Color color) { - this.color = color; - return this; - } - - /** - * Color of the annotation. - * @return color - **/ - @ApiModelProperty(value = "Color of the annotation.") - public Color getColor() { - return color; - } - - public void setColor(Color color) { - this.color = color; - } - public InkAnnotation inkList(List> inkList) { this.inkList = inkList; return this; @@ -130,15 +109,14 @@ public boolean equals(java.lang.Object o) { return false; } InkAnnotation inkAnnotation = (InkAnnotation) o; - return Objects.equals(this.color, inkAnnotation.color) && - Objects.equals(this.inkList, inkAnnotation.inkList) && + return Objects.equals(this.inkList, inkAnnotation.inkList) && Objects.equals(this.capStyle, inkAnnotation.capStyle) && super.equals(o); } @Override public int hashCode() { - return Objects.hash(color, inkList, capStyle, super.hashCode()); + return Objects.hash(inkList, capStyle, super.hashCode()); } @@ -147,7 +125,6 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class InkAnnotation {\n"); sb.append(" ").append(toIndentedString(super.toString())).append("\n"); - sb.append(" color: ").append(toIndentedString(color)).append("\n"); sb.append(" inkList: ").append(toIndentedString(inkList)).append("\n"); sb.append(" capStyle: ").append(toIndentedString(capStyle)).append("\n"); sb.append("}"); diff --git a/src/main/java/com/aspose/asposecloudpdf/model/InkAnnotationResponse.java b/src/main/java/com/aspose/asposecloudpdf/model/InkAnnotationResponse.java index eca26ee..6e273f3 100644 --- a/src/main/java/com/aspose/asposecloudpdf/model/InkAnnotationResponse.java +++ b/src/main/java/com/aspose/asposecloudpdf/model/InkAnnotationResponse.java @@ -35,8 +35,9 @@ import java.io.IOException; /** - * InkAnnotationResponse + * Represents response containing single ink annotation object */ +@ApiModel(description = "Represents response containing single ink annotation object") public class InkAnnotationResponse extends AsposeResponse { @SerializedName("Annotation") @@ -48,10 +49,10 @@ public InkAnnotationResponse annotation(InkAnnotation annotation) { } /** - * Get annotation + * Ink annotation object * @return annotation **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "Ink annotation object") public InkAnnotation getAnnotation() { return annotation; } diff --git a/src/main/java/com/aspose/asposecloudpdf/model/InkAnnotations.java b/src/main/java/com/aspose/asposecloudpdf/model/InkAnnotations.java index 40019d0..3745d96 100644 --- a/src/main/java/com/aspose/asposecloudpdf/model/InkAnnotations.java +++ b/src/main/java/com/aspose/asposecloudpdf/model/InkAnnotations.java @@ -38,9 +38,9 @@ import java.util.List; /** - * List of annotations. + * Object representing a list of ink annotations. */ -@ApiModel(description = "List of annotations.") +@ApiModel(description = "Object representing a list of ink annotations.") public class InkAnnotations extends LinkElement { @SerializedName("List") @@ -60,10 +60,10 @@ public InkAnnotations addListItem(InkAnnotation listItem) { } /** - * Get list + * List of ink annotations. * @return list **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "List of ink annotations.") public List getList() { return list; } diff --git a/src/main/java/com/aspose/asposecloudpdf/model/InkAnnotationsResponse.java b/src/main/java/com/aspose/asposecloudpdf/model/InkAnnotationsResponse.java index 9fdaa38..353f6da 100644 --- a/src/main/java/com/aspose/asposecloudpdf/model/InkAnnotationsResponse.java +++ b/src/main/java/com/aspose/asposecloudpdf/model/InkAnnotationsResponse.java @@ -35,8 +35,9 @@ import java.io.IOException; /** - * InkAnnotationsResponse + * Represents response containing multiple ink annotation objects */ +@ApiModel(description = "Represents response containing multiple ink annotation objects") public class InkAnnotationsResponse extends AsposeResponse { @SerializedName("Annotations") @@ -48,10 +49,10 @@ public InkAnnotationsResponse annotations(InkAnnotations annotations) { } /** - * Get annotations + * Ink annotations object * @return annotations **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "Ink annotations object") public InkAnnotations getAnnotations() { return annotations; } diff --git a/src/main/java/com/aspose/asposecloudpdf/model/LineAnnotation.java b/src/main/java/com/aspose/asposecloudpdf/model/LineAnnotation.java index f758e93..f8601f9 100644 --- a/src/main/java/com/aspose/asposecloudpdf/model/LineAnnotation.java +++ b/src/main/java/com/aspose/asposecloudpdf/model/LineAnnotation.java @@ -32,7 +32,7 @@ import com.aspose.asposecloudpdf.model.Link; import com.aspose.asposecloudpdf.model.MarkupAnnotation; import com.aspose.asposecloudpdf.model.Point; -import com.aspose.asposecloudpdf.model.RectanglePdf; +import com.aspose.asposecloudpdf.model.Rectangle; import com.aspose.asposecloudpdf.model.VerticalAlignment; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -83,9 +83,6 @@ public class LineAnnotation extends MarkupAnnotation { @SerializedName("CaptionPosition") private CaptionPosition captionPosition = null; - @SerializedName("Color") - private Color color = null; - @SerializedName("Intent") private LineIntent intent = null; @@ -287,24 +284,6 @@ public void setCaptionPosition(CaptionPosition captionPosition) { this.captionPosition = captionPosition; } - public LineAnnotation color(Color color) { - this.color = color; - return this; - } - - /** - * Color of the annotation. - * @return color - **/ - @ApiModelProperty(value = "Color of the annotation.") - public Color getColor() { - return color; - } - - public void setColor(Color color) { - this.color = color; - } - public LineAnnotation intent(LineIntent intent) { this.intent = intent; return this; @@ -344,14 +323,13 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.showCaption, lineAnnotation.showCaption) && Objects.equals(this.captionOffset, lineAnnotation.captionOffset) && Objects.equals(this.captionPosition, lineAnnotation.captionPosition) && - Objects.equals(this.color, lineAnnotation.color) && Objects.equals(this.intent, lineAnnotation.intent) && super.equals(o); } @Override public int hashCode() { - return Objects.hash(starting, startingStyle, ending, endingStyle, interiorColor, leaderLine, leaderLineExtension, leaderLineOffset, showCaption, captionOffset, captionPosition, color, intent, super.hashCode()); + return Objects.hash(starting, startingStyle, ending, endingStyle, interiorColor, leaderLine, leaderLineExtension, leaderLineOffset, showCaption, captionOffset, captionPosition, intent, super.hashCode()); } @@ -371,7 +349,6 @@ public String toString() { sb.append(" showCaption: ").append(toIndentedString(showCaption)).append("\n"); sb.append(" captionOffset: ").append(toIndentedString(captionOffset)).append("\n"); sb.append(" captionPosition: ").append(toIndentedString(captionPosition)).append("\n"); - sb.append(" color: ").append(toIndentedString(color)).append("\n"); sb.append(" intent: ").append(toIndentedString(intent)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/src/main/java/com/aspose/asposecloudpdf/model/LineAnnotationResponse.java b/src/main/java/com/aspose/asposecloudpdf/model/LineAnnotationResponse.java index 9ae8aff..546ffed 100644 --- a/src/main/java/com/aspose/asposecloudpdf/model/LineAnnotationResponse.java +++ b/src/main/java/com/aspose/asposecloudpdf/model/LineAnnotationResponse.java @@ -35,8 +35,9 @@ import java.io.IOException; /** - * LineAnnotationResponse + * Represents response containing single line annotation object */ +@ApiModel(description = "Represents response containing single line annotation object") public class LineAnnotationResponse extends AsposeResponse { @SerializedName("Annotation") @@ -48,10 +49,10 @@ public LineAnnotationResponse annotation(LineAnnotation annotation) { } /** - * Get annotation + * Line annotation object * @return annotation **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "Line annotation object") public LineAnnotation getAnnotation() { return annotation; } diff --git a/src/main/java/com/aspose/asposecloudpdf/model/LineAnnotations.java b/src/main/java/com/aspose/asposecloudpdf/model/LineAnnotations.java index d4547b9..9e4525a 100644 --- a/src/main/java/com/aspose/asposecloudpdf/model/LineAnnotations.java +++ b/src/main/java/com/aspose/asposecloudpdf/model/LineAnnotations.java @@ -38,9 +38,9 @@ import java.util.List; /** - * List of annotations. + * Object representing a list of line annotations. */ -@ApiModel(description = "List of annotations.") +@ApiModel(description = "Object representing a list of line annotations.") public class LineAnnotations extends LinkElement { @SerializedName("List") @@ -60,10 +60,10 @@ public LineAnnotations addListItem(LineAnnotation listItem) { } /** - * Get list + * List of line annotations. * @return list **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "List of line annotations.") public List getList() { return list; } diff --git a/src/main/java/com/aspose/asposecloudpdf/model/LineAnnotationsResponse.java b/src/main/java/com/aspose/asposecloudpdf/model/LineAnnotationsResponse.java index 3aea8d9..366d5cc 100644 --- a/src/main/java/com/aspose/asposecloudpdf/model/LineAnnotationsResponse.java +++ b/src/main/java/com/aspose/asposecloudpdf/model/LineAnnotationsResponse.java @@ -35,8 +35,9 @@ import java.io.IOException; /** - * LineAnnotationsResponse + * Represents response containing multiple line annotation objects */ +@ApiModel(description = "Represents response containing multiple line annotation objects") public class LineAnnotationsResponse extends AsposeResponse { @SerializedName("Annotations") @@ -48,10 +49,10 @@ public LineAnnotationsResponse annotations(LineAnnotations annotations) { } /** - * Get annotations + * Line annotations object * @return annotations **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "Line annotations object") public LineAnnotations getAnnotations() { return annotations; } diff --git a/src/main/java/com/aspose/asposecloudpdf/model/LineSpacing.java b/src/main/java/com/aspose/asposecloudpdf/model/LineSpacing.java index 99197a2..538233f 100644 --- a/src/main/java/com/aspose/asposecloudpdf/model/LineSpacing.java +++ b/src/main/java/com/aspose/asposecloudpdf/model/LineSpacing.java @@ -33,7 +33,7 @@ import com.google.gson.stream.JsonWriter; /** - * + * Defines line spacing specifics */ @JsonAdapter(LineSpacing.Adapter.class) public enum LineSpacing { diff --git a/src/main/java/com/aspose/asposecloudpdf/model/LinkAnnotation.java b/src/main/java/com/aspose/asposecloudpdf/model/LinkAnnotation.java index 6bbb1b8..86c79e8 100644 --- a/src/main/java/com/aspose/asposecloudpdf/model/LinkAnnotation.java +++ b/src/main/java/com/aspose/asposecloudpdf/model/LinkAnnotation.java @@ -28,7 +28,7 @@ import com.aspose.asposecloudpdf.model.LinkActionType; import com.aspose.asposecloudpdf.model.LinkElement; import com.aspose.asposecloudpdf.model.LinkHighlightingMode; -import com.aspose.asposecloudpdf.model.RectanglePdf; +import com.aspose.asposecloudpdf.model.Rectangle; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -58,7 +58,7 @@ public class LinkAnnotation extends LinkElement { private Color color = null; @SerializedName("Rect") - private RectanglePdf rect = null; + private Rectangle rect = null; @SerializedName("Id") private String id = null; @@ -135,7 +135,7 @@ public void setColor(Color color) { this.color = color; } - public LinkAnnotation rect(RectanglePdf rect) { + public LinkAnnotation rect(Rectangle rect) { this.rect = rect; return this; } @@ -145,11 +145,11 @@ public LinkAnnotation rect(RectanglePdf rect) { * @return rect **/ @ApiModelProperty(value = "") - public RectanglePdf getRect() { + public Rectangle getRect() { return rect; } - public void setRect(RectanglePdf rect) { + public void setRect(Rectangle rect) { this.rect = rect; } diff --git a/src/main/java/com/aspose/asposecloudpdf/model/LinkAnnotationResponse.java b/src/main/java/com/aspose/asposecloudpdf/model/LinkAnnotationResponse.java index 6dedf91..09822bd 100644 --- a/src/main/java/com/aspose/asposecloudpdf/model/LinkAnnotationResponse.java +++ b/src/main/java/com/aspose/asposecloudpdf/model/LinkAnnotationResponse.java @@ -35,8 +35,9 @@ import java.io.IOException; /** - * LinkAnnotationResponse + * Represents response containing single link info */ +@ApiModel(description = "Represents response containing single link info") public class LinkAnnotationResponse extends AsposeResponse { @SerializedName("Link") @@ -48,10 +49,10 @@ public LinkAnnotationResponse link(LinkAnnotation link) { } /** - * Get link + * LinkAnnotation object * @return link **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "LinkAnnotation object") public LinkAnnotation getLink() { return link; } diff --git a/src/main/java/com/aspose/asposecloudpdf/model/LinkAnnotations.java b/src/main/java/com/aspose/asposecloudpdf/model/LinkAnnotations.java index 7fc7113..d15e9b9 100644 --- a/src/main/java/com/aspose/asposecloudpdf/model/LinkAnnotations.java +++ b/src/main/java/com/aspose/asposecloudpdf/model/LinkAnnotations.java @@ -38,9 +38,9 @@ import java.util.List; /** - * List of LinkAnnotations. + * Object representing a list of link annotations. */ -@ApiModel(description = "List of LinkAnnotations.") +@ApiModel(description = "Object representing a list of link annotations.") public class LinkAnnotations extends LinkElement { @SerializedName("List") @@ -60,10 +60,10 @@ public LinkAnnotations addListItem(LinkAnnotation listItem) { } /** - * Get list + * List of link annotations. * @return list **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "List of link annotations.") public List getList() { return list; } diff --git a/src/main/java/com/aspose/asposecloudpdf/model/LinkAnnotationsResponse.java b/src/main/java/com/aspose/asposecloudpdf/model/LinkAnnotationsResponse.java index 545d59d..b36e946 100644 --- a/src/main/java/com/aspose/asposecloudpdf/model/LinkAnnotationsResponse.java +++ b/src/main/java/com/aspose/asposecloudpdf/model/LinkAnnotationsResponse.java @@ -35,8 +35,9 @@ import java.io.IOException; /** - * LinkAnnotationsResponse + * Represents response containing multiple links info */ +@ApiModel(description = "Represents response containing multiple links info") public class LinkAnnotationsResponse extends AsposeResponse { @SerializedName("Links") @@ -48,10 +49,10 @@ public LinkAnnotationsResponse links(LinkAnnotations links) { } /** - * Get links + * LinkAnnotations object * @return links **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "LinkAnnotations object") public LinkAnnotations getLinks() { return links; } diff --git a/src/main/java/com/aspose/asposecloudpdf/model/MarkupAnnotation.java b/src/main/java/com/aspose/asposecloudpdf/model/MarkupAnnotation.java index 3113703..2a51559 100644 --- a/src/main/java/com/aspose/asposecloudpdf/model/MarkupAnnotation.java +++ b/src/main/java/com/aspose/asposecloudpdf/model/MarkupAnnotation.java @@ -25,9 +25,10 @@ import java.util.Objects; import com.aspose.asposecloudpdf.model.Annotation; import com.aspose.asposecloudpdf.model.AnnotationFlags; +import com.aspose.asposecloudpdf.model.Color; import com.aspose.asposecloudpdf.model.HorizontalAlignment; import com.aspose.asposecloudpdf.model.Link; -import com.aspose.asposecloudpdf.model.RectanglePdf; +import com.aspose.asposecloudpdf.model.Rectangle; import com.aspose.asposecloudpdf.model.VerticalAlignment; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; diff --git a/src/main/java/com/aspose/asposecloudpdf/model/Page.java b/src/main/java/com/aspose/asposecloudpdf/model/Page.java index fcbe124..5c89095 100644 --- a/src/main/java/com/aspose/asposecloudpdf/model/Page.java +++ b/src/main/java/com/aspose/asposecloudpdf/model/Page.java @@ -26,7 +26,7 @@ import com.aspose.asposecloudpdf.model.Images; import com.aspose.asposecloudpdf.model.Link; import com.aspose.asposecloudpdf.model.LinkElement; -import com.aspose.asposecloudpdf.model.RectanglePdf; +import com.aspose.asposecloudpdf.model.Rectangle; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -50,7 +50,7 @@ public class Page extends LinkElement { private Images images = null; @SerializedName("Rectangle") - private RectanglePdf rectangle = null; + private Rectangle rectangle = null; public Page id(Integer id) { this.id = id; @@ -76,10 +76,10 @@ public Page images(Images images) { } /** - * Get images + * Page's images * @return images **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "Page's images") public Images getImages() { return images; } @@ -88,21 +88,21 @@ public void setImages(Images images) { this.images = images; } - public Page rectangle(RectanglePdf rectangle) { + public Page rectangle(Rectangle rectangle) { this.rectangle = rectangle; return this; } /** - * Get rectangle + * Page's rectangle * @return rectangle **/ - @ApiModelProperty(value = "") - public RectanglePdf getRectangle() { + @ApiModelProperty(value = "Page's rectangle") + public Rectangle getRectangle() { return rectangle; } - public void setRectangle(RectanglePdf rectangle) { + public void setRectangle(Rectangle rectangle) { this.rectangle = rectangle; } diff --git a/src/main/java/com/aspose/asposecloudpdf/model/Pages.java b/src/main/java/com/aspose/asposecloudpdf/model/Pages.java index ab2d88e..5d5b981 100644 --- a/src/main/java/com/aspose/asposecloudpdf/model/Pages.java +++ b/src/main/java/com/aspose/asposecloudpdf/model/Pages.java @@ -38,9 +38,9 @@ import java.util.List; /** - * List of pages. + * Represents list of pages. */ -@ApiModel(description = "List of pages.") +@ApiModel(description = "Represents list of pages.") public class Pages extends LinkElement { @SerializedName("List") @@ -60,10 +60,10 @@ public Pages addListItem(Page listItem) { } /** - * Get list + * List of pages. * @return list **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "List of pages.") public List getList() { return list; } diff --git a/src/main/java/com/aspose/asposecloudpdf/model/Paragraph.java b/src/main/java/com/aspose/asposecloudpdf/model/Paragraph.java index 1e94c5a..2610a4f 100644 --- a/src/main/java/com/aspose/asposecloudpdf/model/Paragraph.java +++ b/src/main/java/com/aspose/asposecloudpdf/model/Paragraph.java @@ -24,7 +24,7 @@ import java.util.Objects; import com.aspose.asposecloudpdf.model.LineSpacing; -import com.aspose.asposecloudpdf.model.RectanglePdf; +import com.aspose.asposecloudpdf.model.Rectangle; import com.aspose.asposecloudpdf.model.TextHorizontalAlignment; import com.aspose.asposecloudpdf.model.TextLine; import com.aspose.asposecloudpdf.model.VerticalAlignment; @@ -41,9 +41,9 @@ import java.util.List; /** - * Paragraph DTO for add text functionality. + * Represents text paragraphs as multiline text object. */ -@ApiModel(description = "Paragraph DTO for add text functionality.") +@ApiModel(description = "Represents text paragraphs as multiline text object.") public class Paragraph { @SerializedName("LineSpacing") @@ -68,7 +68,7 @@ public class Paragraph { private Double bottomMargin = null; @SerializedName("Rectangle") - private RectanglePdf rectangle = null; + private Rectangle rectangle = null; @SerializedName("Rotation") private Double rotation = null; @@ -88,10 +88,10 @@ public Paragraph lineSpacing(LineSpacing lineSpacing) { } /** - * Get lineSpacing + * Line spacing mode. * @return lineSpacing **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "Line spacing mode.") public LineSpacing getLineSpacing() { return lineSpacing; } @@ -106,10 +106,10 @@ public Paragraph wrapMode(WrapMode wrapMode) { } /** - * Get wrapMode + * Word wrap mode. * @return wrapMode **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "Word wrap mode.") public WrapMode getWrapMode() { return wrapMode; } @@ -124,10 +124,10 @@ public Paragraph horizontalAlignment(TextHorizontalAlignment horizontalAlignment } /** - * Get horizontalAlignment + * Horizontal alignment for the text inside paragrph's rectangle. * @return horizontalAlignment **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "Horizontal alignment for the text inside paragrph's rectangle.") public TextHorizontalAlignment getHorizontalAlignment() { return horizontalAlignment; } @@ -142,10 +142,10 @@ public Paragraph leftMargin(Double leftMargin) { } /** - * Get leftMargin + * Left margin. * @return leftMargin **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "Left margin.") public Double getLeftMargin() { return leftMargin; } @@ -160,10 +160,10 @@ public Paragraph rightMargin(Double rightMargin) { } /** - * Get rightMargin + * Right margin. * @return rightMargin **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "Right margin.") public Double getRightMargin() { return rightMargin; } @@ -178,10 +178,10 @@ public Paragraph topMargin(Double topMargin) { } /** - * Get topMargin + * Top margin. * @return topMargin **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "Top margin.") public Double getTopMargin() { return topMargin; } @@ -196,10 +196,10 @@ public Paragraph bottomMargin(Double bottomMargin) { } /** - * Get bottomMargin + * Bottom margin. * @return bottomMargin **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "Bottom margin.") public Double getBottomMargin() { return bottomMargin; } @@ -208,21 +208,21 @@ public void setBottomMargin(Double bottomMargin) { this.bottomMargin = bottomMargin; } - public Paragraph rectangle(RectanglePdf rectangle) { + public Paragraph rectangle(Rectangle rectangle) { this.rectangle = rectangle; return this; } /** - * Get rectangle + * Rectangle of the paragraph. * @return rectangle **/ - @ApiModelProperty(value = "") - public RectanglePdf getRectangle() { + @ApiModelProperty(value = "Rectangle of the paragraph.") + public Rectangle getRectangle() { return rectangle; } - public void setRectangle(RectanglePdf rectangle) { + public void setRectangle(Rectangle rectangle) { this.rectangle = rectangle; } @@ -232,10 +232,10 @@ public Paragraph rotation(Double rotation) { } /** - * Get rotation + * Rotation angle in degrees. * @return rotation **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "Rotation angle in degrees.") public Double getRotation() { return rotation; } @@ -250,10 +250,10 @@ public Paragraph subsequentLinesIndent(Double subsequentLinesIndent) { } /** - * Get subsequentLinesIndent + * Subsequent lines indent value. * @return subsequentLinesIndent **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "Subsequent lines indent value.") public Double getSubsequentLinesIndent() { return subsequentLinesIndent; } @@ -268,10 +268,10 @@ public Paragraph verticalAlignment(VerticalAlignment verticalAlignment) { } /** - * Get verticalAlignment + * Vertical alignment for the text inside paragrph's rectangle * @return verticalAlignment **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "Vertical alignment for the text inside paragrph's rectangle") public VerticalAlignment getVerticalAlignment() { return verticalAlignment; } @@ -291,10 +291,10 @@ public Paragraph addLinesItem(TextLine linesItem) { } /** - * Get lines + * An array of text lines. * @return lines **/ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty(required = true, value = "An array of text lines.") public List getLines() { return lines; } diff --git a/src/main/java/com/aspose/asposecloudpdf/model/PolyAnnotation.java b/src/main/java/com/aspose/asposecloudpdf/model/PolyAnnotation.java index 58eeaa1..17c7716 100644 --- a/src/main/java/com/aspose/asposecloudpdf/model/PolyAnnotation.java +++ b/src/main/java/com/aspose/asposecloudpdf/model/PolyAnnotation.java @@ -31,7 +31,7 @@ import com.aspose.asposecloudpdf.model.MarkupAnnotation; import com.aspose.asposecloudpdf.model.Point; import com.aspose.asposecloudpdf.model.PolyIntent; -import com.aspose.asposecloudpdf.model.RectanglePdf; +import com.aspose.asposecloudpdf.model.Rectangle; import com.aspose.asposecloudpdf.model.VerticalAlignment; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; diff --git a/src/main/java/com/aspose/asposecloudpdf/model/PolyLineAnnotation.java b/src/main/java/com/aspose/asposecloudpdf/model/PolyLineAnnotation.java index e630c13..8fa2ba7 100644 --- a/src/main/java/com/aspose/asposecloudpdf/model/PolyLineAnnotation.java +++ b/src/main/java/com/aspose/asposecloudpdf/model/PolyLineAnnotation.java @@ -31,16 +31,9 @@ import com.aspose.asposecloudpdf.model.Point; import com.aspose.asposecloudpdf.model.PolyAnnotation; import com.aspose.asposecloudpdf.model.PolyIntent; -import com.aspose.asposecloudpdf.model.RectanglePdf; +import com.aspose.asposecloudpdf.model.Rectangle; import com.aspose.asposecloudpdf.model.VerticalAlignment; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; import java.util.List; /** @@ -49,27 +42,6 @@ @ApiModel(description = "Provides PolyLineAnnotation.") public class PolyLineAnnotation extends PolyAnnotation { - @SerializedName("Color") - private Color color = null; - - public PolyLineAnnotation color(Color color) { - this.color = color; - return this; - } - - /** - * Color of the annotation. - * @return color - **/ - @ApiModelProperty(value = "Color of the annotation.") - public Color getColor() { - return color; - } - - public void setColor(Color color) { - this.color = color; - } - @Override public boolean equals(java.lang.Object o) { @@ -79,14 +51,12 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - PolyLineAnnotation polyLineAnnotation = (PolyLineAnnotation) o; - return Objects.equals(this.color, polyLineAnnotation.color) && - super.equals(o); + return super.equals(o); } @Override public int hashCode() { - return Objects.hash(color, super.hashCode()); + return Objects.hash(super.hashCode()); } @@ -95,7 +65,6 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PolyLineAnnotation {\n"); sb.append(" ").append(toIndentedString(super.toString())).append("\n"); - sb.append(" color: ").append(toIndentedString(color)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/aspose/asposecloudpdf/model/PolyLineAnnotationResponse.java b/src/main/java/com/aspose/asposecloudpdf/model/PolyLineAnnotationResponse.java index 8846033..3c0ac61 100644 --- a/src/main/java/com/aspose/asposecloudpdf/model/PolyLineAnnotationResponse.java +++ b/src/main/java/com/aspose/asposecloudpdf/model/PolyLineAnnotationResponse.java @@ -35,8 +35,9 @@ import java.io.IOException; /** - * PolyLineAnnotationResponse + * Represents response containing single polyline annotation object */ +@ApiModel(description = "Represents response containing single polyline annotation object") public class PolyLineAnnotationResponse extends AsposeResponse { @SerializedName("Annotation") @@ -48,10 +49,10 @@ public PolyLineAnnotationResponse annotation(PolyLineAnnotation annotation) { } /** - * Get annotation + * Polyline annotation object * @return annotation **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "Polyline annotation object") public PolyLineAnnotation getAnnotation() { return annotation; } diff --git a/src/main/java/com/aspose/asposecloudpdf/model/PolyLineAnnotations.java b/src/main/java/com/aspose/asposecloudpdf/model/PolyLineAnnotations.java index 3d9a3dd..bab841a 100644 --- a/src/main/java/com/aspose/asposecloudpdf/model/PolyLineAnnotations.java +++ b/src/main/java/com/aspose/asposecloudpdf/model/PolyLineAnnotations.java @@ -38,9 +38,9 @@ import java.util.List; /** - * List of annotations. + * Object representing a list of polyline annotations. */ -@ApiModel(description = "List of annotations.") +@ApiModel(description = "Object representing a list of polyline annotations.") public class PolyLineAnnotations extends LinkElement { @SerializedName("List") @@ -60,10 +60,10 @@ public PolyLineAnnotations addListItem(PolyLineAnnotation listItem) { } /** - * Get list + * List of polyline annotations. * @return list **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "List of polyline annotations.") public List getList() { return list; } diff --git a/src/main/java/com/aspose/asposecloudpdf/model/PolyLineAnnotationsResponse.java b/src/main/java/com/aspose/asposecloudpdf/model/PolyLineAnnotationsResponse.java index c1935a5..0f18d30 100644 --- a/src/main/java/com/aspose/asposecloudpdf/model/PolyLineAnnotationsResponse.java +++ b/src/main/java/com/aspose/asposecloudpdf/model/PolyLineAnnotationsResponse.java @@ -35,8 +35,9 @@ import java.io.IOException; /** - * PolyLineAnnotationsResponse + * Represents response containing multiple polyline annotation objects */ +@ApiModel(description = "Represents response containing multiple polyline annotation objects") public class PolyLineAnnotationsResponse extends AsposeResponse { @SerializedName("Annotations") @@ -48,10 +49,10 @@ public PolyLineAnnotationsResponse annotations(PolyLineAnnotations annotations) } /** - * Get annotations + * Polyline annotations object * @return annotations **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "Polyline annotations object") public PolyLineAnnotations getAnnotations() { return annotations; } diff --git a/src/main/java/com/aspose/asposecloudpdf/model/PolygonAnnotation.java b/src/main/java/com/aspose/asposecloudpdf/model/PolygonAnnotation.java index d853fd9..8317987 100644 --- a/src/main/java/com/aspose/asposecloudpdf/model/PolygonAnnotation.java +++ b/src/main/java/com/aspose/asposecloudpdf/model/PolygonAnnotation.java @@ -31,16 +31,9 @@ import com.aspose.asposecloudpdf.model.Point; import com.aspose.asposecloudpdf.model.PolyAnnotation; import com.aspose.asposecloudpdf.model.PolyIntent; -import com.aspose.asposecloudpdf.model.RectanglePdf; +import com.aspose.asposecloudpdf.model.Rectangle; import com.aspose.asposecloudpdf.model.VerticalAlignment; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; import java.util.List; /** @@ -49,27 +42,6 @@ @ApiModel(description = "Provides PolygonAnnotation.") public class PolygonAnnotation extends PolyAnnotation { - @SerializedName("Color") - private Color color = null; - - public PolygonAnnotation color(Color color) { - this.color = color; - return this; - } - - /** - * Color of the annotation. - * @return color - **/ - @ApiModelProperty(value = "Color of the annotation.") - public Color getColor() { - return color; - } - - public void setColor(Color color) { - this.color = color; - } - @Override public boolean equals(java.lang.Object o) { @@ -79,14 +51,12 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - PolygonAnnotation polygonAnnotation = (PolygonAnnotation) o; - return Objects.equals(this.color, polygonAnnotation.color) && - super.equals(o); + return super.equals(o); } @Override public int hashCode() { - return Objects.hash(color, super.hashCode()); + return Objects.hash(super.hashCode()); } @@ -95,7 +65,6 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PolygonAnnotation {\n"); sb.append(" ").append(toIndentedString(super.toString())).append("\n"); - sb.append(" color: ").append(toIndentedString(color)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/aspose/asposecloudpdf/model/PolygonAnnotationResponse.java b/src/main/java/com/aspose/asposecloudpdf/model/PolygonAnnotationResponse.java index f9f93b5..1cb37dd 100644 --- a/src/main/java/com/aspose/asposecloudpdf/model/PolygonAnnotationResponse.java +++ b/src/main/java/com/aspose/asposecloudpdf/model/PolygonAnnotationResponse.java @@ -35,8 +35,9 @@ import java.io.IOException; /** - * PolygonAnnotationResponse + * Represents response containing single polygon annotation object */ +@ApiModel(description = "Represents response containing single polygon annotation object") public class PolygonAnnotationResponse extends AsposeResponse { @SerializedName("Annotation") @@ -48,10 +49,10 @@ public PolygonAnnotationResponse annotation(PolygonAnnotation annotation) { } /** - * Get annotation + * Polygon annotation object * @return annotation **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "Polygon annotation object") public PolygonAnnotation getAnnotation() { return annotation; } diff --git a/src/main/java/com/aspose/asposecloudpdf/model/PolygonAnnotations.java b/src/main/java/com/aspose/asposecloudpdf/model/PolygonAnnotations.java index dd8283e..2db54bd 100644 --- a/src/main/java/com/aspose/asposecloudpdf/model/PolygonAnnotations.java +++ b/src/main/java/com/aspose/asposecloudpdf/model/PolygonAnnotations.java @@ -38,9 +38,9 @@ import java.util.List; /** - * List of annotations. + * Object representing a list of polygon annotations. */ -@ApiModel(description = "List of annotations.") +@ApiModel(description = "Object representing a list of polygon annotations.") public class PolygonAnnotations extends LinkElement { @SerializedName("List") @@ -60,10 +60,10 @@ public PolygonAnnotations addListItem(PolygonAnnotation listItem) { } /** - * Get list + * List of polygon annotations. * @return list **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "List of polygon annotations.") public List getList() { return list; } diff --git a/src/main/java/com/aspose/asposecloudpdf/model/PolygonAnnotationsResponse.java b/src/main/java/com/aspose/asposecloudpdf/model/PolygonAnnotationsResponse.java index 48001e2..e810063 100644 --- a/src/main/java/com/aspose/asposecloudpdf/model/PolygonAnnotationsResponse.java +++ b/src/main/java/com/aspose/asposecloudpdf/model/PolygonAnnotationsResponse.java @@ -35,8 +35,9 @@ import java.io.IOException; /** - * PolygonAnnotationsResponse + * Represents response containing multiple polygon annotation objects */ +@ApiModel(description = "Represents response containing multiple polygon annotation objects") public class PolygonAnnotationsResponse extends AsposeResponse { @SerializedName("Annotations") @@ -48,10 +49,10 @@ public PolygonAnnotationsResponse annotations(PolygonAnnotations annotations) { } /** - * Get annotations + * Polygon annotations object * @return annotations **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "Polygon annotations object") public PolygonAnnotations getAnnotations() { return annotations; } diff --git a/src/main/java/com/aspose/asposecloudpdf/model/PopupAnnotation.java b/src/main/java/com/aspose/asposecloudpdf/model/PopupAnnotation.java index 2043ad3..edc132e 100644 --- a/src/main/java/com/aspose/asposecloudpdf/model/PopupAnnotation.java +++ b/src/main/java/com/aspose/asposecloudpdf/model/PopupAnnotation.java @@ -28,7 +28,7 @@ import com.aspose.asposecloudpdf.model.Color; import com.aspose.asposecloudpdf.model.HorizontalAlignment; import com.aspose.asposecloudpdf.model.Link; -import com.aspose.asposecloudpdf.model.RectanglePdf; +import com.aspose.asposecloudpdf.model.Rectangle; import com.aspose.asposecloudpdf.model.VerticalAlignment; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -46,30 +46,9 @@ @ApiModel(description = "Provides PopupAnnotation.") public class PopupAnnotation extends Annotation { - @SerializedName("Color") - private Color color = null; - @SerializedName("Open") private Boolean open = null; - public PopupAnnotation color(Color color) { - this.color = color; - return this; - } - - /** - * Color of the annotation. - * @return color - **/ - @ApiModelProperty(value = "Color of the annotation.") - public Color getColor() { - return color; - } - - public void setColor(Color color) { - this.color = color; - } - public PopupAnnotation open(Boolean open) { this.open = open; return this; @@ -98,14 +77,13 @@ public boolean equals(java.lang.Object o) { return false; } PopupAnnotation popupAnnotation = (PopupAnnotation) o; - return Objects.equals(this.color, popupAnnotation.color) && - Objects.equals(this.open, popupAnnotation.open) && + return Objects.equals(this.open, popupAnnotation.open) && super.equals(o); } @Override public int hashCode() { - return Objects.hash(color, open, super.hashCode()); + return Objects.hash(open, super.hashCode()); } @@ -114,7 +92,6 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PopupAnnotation {\n"); sb.append(" ").append(toIndentedString(super.toString())).append("\n"); - sb.append(" color: ").append(toIndentedString(color)).append("\n"); sb.append(" open: ").append(toIndentedString(open)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/src/main/java/com/aspose/asposecloudpdf/model/PopupAnnotationResponse.java b/src/main/java/com/aspose/asposecloudpdf/model/PopupAnnotationResponse.java index a36cc73..10affa7 100644 --- a/src/main/java/com/aspose/asposecloudpdf/model/PopupAnnotationResponse.java +++ b/src/main/java/com/aspose/asposecloudpdf/model/PopupAnnotationResponse.java @@ -35,8 +35,9 @@ import java.io.IOException; /** - * PopupAnnotationResponse + * Represents response containing single popup annotation object */ +@ApiModel(description = "Represents response containing single popup annotation object") public class PopupAnnotationResponse extends AsposeResponse { @SerializedName("Annotation") @@ -48,10 +49,10 @@ public PopupAnnotationResponse annotation(PopupAnnotationWithParent annotation) } /** - * Get annotation + * Popup annotation object * @return annotation **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "Popup annotation object") public PopupAnnotationWithParent getAnnotation() { return annotation; } diff --git a/src/main/java/com/aspose/asposecloudpdf/model/PopupAnnotationWithParent.java b/src/main/java/com/aspose/asposecloudpdf/model/PopupAnnotationWithParent.java index 304ae82..1e71bc1 100644 --- a/src/main/java/com/aspose/asposecloudpdf/model/PopupAnnotationWithParent.java +++ b/src/main/java/com/aspose/asposecloudpdf/model/PopupAnnotationWithParent.java @@ -29,7 +29,7 @@ import com.aspose.asposecloudpdf.model.HorizontalAlignment; import com.aspose.asposecloudpdf.model.Link; import com.aspose.asposecloudpdf.model.PopupAnnotation; -import com.aspose.asposecloudpdf.model.RectanglePdf; +import com.aspose.asposecloudpdf.model.Rectangle; import com.aspose.asposecloudpdf.model.VerticalAlignment; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; diff --git a/src/main/java/com/aspose/asposecloudpdf/model/PopupAnnotations.java b/src/main/java/com/aspose/asposecloudpdf/model/PopupAnnotations.java index e58abb3..0fe281e 100644 --- a/src/main/java/com/aspose/asposecloudpdf/model/PopupAnnotations.java +++ b/src/main/java/com/aspose/asposecloudpdf/model/PopupAnnotations.java @@ -38,9 +38,9 @@ import java.util.List; /** - * List of annotations. + * Object representing a list of popup annotations. */ -@ApiModel(description = "List of annotations.") +@ApiModel(description = "Object representing a list of popup annotations.") public class PopupAnnotations extends LinkElement { @SerializedName("List") @@ -60,10 +60,10 @@ public PopupAnnotations addListItem(PopupAnnotationWithParent listItem) { } /** - * Get list + * List of popup annotations. * @return list **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "List of popup annotations.") public List getList() { return list; } diff --git a/src/main/java/com/aspose/asposecloudpdf/model/PopupAnnotationsResponse.java b/src/main/java/com/aspose/asposecloudpdf/model/PopupAnnotationsResponse.java index 44e8044..4abf614 100644 --- a/src/main/java/com/aspose/asposecloudpdf/model/PopupAnnotationsResponse.java +++ b/src/main/java/com/aspose/asposecloudpdf/model/PopupAnnotationsResponse.java @@ -35,8 +35,9 @@ import java.io.IOException; /** - * PopupAnnotationsResponse + * Represents response containing multiple popup annotation objects */ +@ApiModel(description = "Represents response containing multiple popup annotation objects") public class PopupAnnotationsResponse extends AsposeResponse { @SerializedName("Annotations") @@ -48,10 +49,10 @@ public PopupAnnotationsResponse annotations(PopupAnnotations annotations) { } /** - * Get annotations + * Popup annotations object * @return annotations **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "Popup annotations object") public PopupAnnotations getAnnotations() { return annotations; } diff --git a/src/main/java/com/aspose/asposecloudpdf/model/Rectangle.java b/src/main/java/com/aspose/asposecloudpdf/model/Rectangle.java new file mode 100644 index 0000000..39ff004 --- /dev/null +++ b/src/main/java/com/aspose/asposecloudpdf/model/Rectangle.java @@ -0,0 +1,172 @@ +/** + * + * Copyright (c) 2018 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. + * + */ + + +package com.aspose.asposecloudpdf.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * Represents rectangle DTO. + */ +@ApiModel(description = "Represents rectangle DTO.") + +public class Rectangle { + @SerializedName("LLX") + private Double LLX = null; + + @SerializedName("LLY") + private Double LLY = null; + + @SerializedName("URX") + private Double URX = null; + + @SerializedName("URY") + private Double URY = null; + + public Rectangle LLX(Double LLX) { + this.LLX = LLX; + return this; + } + + /** + * X-coordinate of lower - left corner. + * @return LLX + **/ + @ApiModelProperty(required = true, value = "X-coordinate of lower - left corner.") + public Double getLLX() { + return LLX; + } + + public void setLLX(Double LLX) { + this.LLX = LLX; + } + + public Rectangle LLY(Double LLY) { + this.LLY = LLY; + return this; + } + + /** + * Y - coordinate of lower-left corner. + * @return LLY + **/ + @ApiModelProperty(required = true, value = "Y - coordinate of lower-left corner.") + public Double getLLY() { + return LLY; + } + + public void setLLY(Double LLY) { + this.LLY = LLY; + } + + public Rectangle URX(Double URX) { + this.URX = URX; + return this; + } + + /** + * X - coordinate of upper-right corner. + * @return URX + **/ + @ApiModelProperty(required = true, value = "X - coordinate of upper-right corner.") + public Double getURX() { + return URX; + } + + public void setURX(Double URX) { + this.URX = URX; + } + + public Rectangle URY(Double URY) { + this.URY = URY; + return this; + } + + /** + * Y - coordinate of upper-right corner. + * @return URY + **/ + @ApiModelProperty(required = true, value = "Y - coordinate of upper-right corner.") + public Double getURY() { + return URY; + } + + public void setURY(Double URY) { + this.URY = URY; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + Rectangle rectangle = (Rectangle) o; + return Objects.equals(this.LLX, rectangle.LLX) && + Objects.equals(this.LLY, rectangle.LLY) && + Objects.equals(this.URX, rectangle.URX) && + Objects.equals(this.URY, rectangle.URY); + } + + @Override + public int hashCode() { + return Objects.hash(LLX, LLY, URX, URY); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class Rectangle {\n"); + + sb.append(" LLX: ").append(toIndentedString(LLX)).append("\n"); + sb.append(" LLY: ").append(toIndentedString(LLY)).append("\n"); + sb.append(" URX: ").append(toIndentedString(URX)).append("\n"); + sb.append(" URY: ").append(toIndentedString(URY)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/aspose/asposecloudpdf/model/Segment.java b/src/main/java/com/aspose/asposecloudpdf/model/Segment.java index 9f36d6c..f6d7358 100644 --- a/src/main/java/com/aspose/asposecloudpdf/model/Segment.java +++ b/src/main/java/com/aspose/asposecloudpdf/model/Segment.java @@ -34,8 +34,9 @@ import java.io.IOException; /** - * Segment + * Represents segment of Pdf text. */ +@ApiModel(description = "Represents segment of Pdf text.") public class Segment { @SerializedName("Value") @@ -50,10 +51,10 @@ public Segment value(String value) { } /** - * Get value + * Text that the Segment object represents. * @return value **/ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty(required = true, value = "Text that the Segment object represents.") public String getValue() { return value; } @@ -68,10 +69,10 @@ public Segment textState(TextState textState) { } /** - * Get textState + * Text state for the text that Segment object represents. * @return textState **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "Text state for the text that Segment object represents.") public TextState getTextState() { return textState; } diff --git a/src/main/java/com/aspose/asposecloudpdf/model/Signature.java b/src/main/java/com/aspose/asposecloudpdf/model/Signature.java index 8f6c902..3e2ea19 100644 --- a/src/main/java/com/aspose/asposecloudpdf/model/Signature.java +++ b/src/main/java/com/aspose/asposecloudpdf/model/Signature.java @@ -23,7 +23,7 @@ package com.aspose.asposecloudpdf.model; import java.util.Objects; -import com.aspose.asposecloudpdf.model.RectanglePdf; +import com.aspose.asposecloudpdf.model.Rectangle; import com.aspose.asposecloudpdf.model.SignatureType; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -35,8 +35,9 @@ import java.io.IOException; /** - * Signature + * Represents signature. */ +@ApiModel(description = "Represents signature.") public class Signature { @SerializedName("SignaturePath") @@ -64,7 +65,7 @@ public class Signature { private Boolean visible = null; @SerializedName("Rectangle") - private RectanglePdf rectangle = null; + private Rectangle rectangle = null; @SerializedName("FormFieldName") private String formFieldName = null; @@ -222,7 +223,7 @@ public void setVisible(Boolean visible) { this.visible = visible; } - public Signature rectangle(RectanglePdf rectangle) { + public Signature rectangle(Rectangle rectangle) { this.rectangle = rectangle; return this; } @@ -232,11 +233,11 @@ public Signature rectangle(RectanglePdf rectangle) { * @return rectangle **/ @ApiModelProperty(value = "Gets or sets the visible rectangle of the signature. Supports only when signing particular page.") - public RectanglePdf getRectangle() { + public Rectangle getRectangle() { return rectangle; } - public void setRectangle(RectanglePdf rectangle) { + public void setRectangle(Rectangle rectangle) { this.rectangle = rectangle; } diff --git a/src/main/java/com/aspose/asposecloudpdf/model/SignatureType.java b/src/main/java/com/aspose/asposecloudpdf/model/SignatureType.java index 1a702f7..14108b2 100644 --- a/src/main/java/com/aspose/asposecloudpdf/model/SignatureType.java +++ b/src/main/java/com/aspose/asposecloudpdf/model/SignatureType.java @@ -33,7 +33,7 @@ import com.google.gson.stream.JsonWriter; /** - * + * The type of signature. */ @JsonAdapter(SignatureType.Adapter.class) public enum SignatureType { diff --git a/src/main/java/com/aspose/asposecloudpdf/model/SignatureVerifyResponse.java b/src/main/java/com/aspose/asposecloudpdf/model/SignatureVerifyResponse.java index 1fe1f68..fef54b6 100644 --- a/src/main/java/com/aspose/asposecloudpdf/model/SignatureVerifyResponse.java +++ b/src/main/java/com/aspose/asposecloudpdf/model/SignatureVerifyResponse.java @@ -34,9 +34,9 @@ import java.io.IOException; /** - * Returns also a message. + * Represent responce containing signature verification result */ -@ApiModel(description = "Returns also a message.") +@ApiModel(description = "Represent responce containing signature verification result") public class SignatureVerifyResponse extends AsposeResponse { @SerializedName("Valid") @@ -48,10 +48,10 @@ public SignatureVerifyResponse valid(Boolean valid) { } /** - * Valid sign. + * True if signature is valid and false if not * @return valid **/ - @ApiModelProperty(value = "Valid sign.") + @ApiModelProperty(value = "True if signature is valid and false if not") public Boolean isValid() { return valid; } diff --git a/src/main/java/com/aspose/asposecloudpdf/model/SplitResultResponse.java b/src/main/java/com/aspose/asposecloudpdf/model/SplitResultResponse.java index cf001ee..ea40769 100644 --- a/src/main/java/com/aspose/asposecloudpdf/model/SplitResultResponse.java +++ b/src/main/java/com/aspose/asposecloudpdf/model/SplitResultResponse.java @@ -35,9 +35,9 @@ import java.io.IOException; /** - * Represents split result object. + * Represents responce containing split result. */ -@ApiModel(description = "Represents split result object.") +@ApiModel(description = "Represents responce containing split result.") public class SplitResultResponse extends AsposeResponse { @SerializedName("Result") @@ -49,10 +49,10 @@ public SplitResultResponse result(SplitResult result) { } /** - * Gets or sets the splitting result. + * SplitResult object. * @return result **/ - @ApiModelProperty(value = "Gets or sets the splitting result.") + @ApiModelProperty(value = "SplitResult object.") public SplitResult getResult() { return result; } diff --git a/src/main/java/com/aspose/asposecloudpdf/model/SquareAnnotation.java b/src/main/java/com/aspose/asposecloudpdf/model/SquareAnnotation.java index 493359b..59bf993 100644 --- a/src/main/java/com/aspose/asposecloudpdf/model/SquareAnnotation.java +++ b/src/main/java/com/aspose/asposecloudpdf/model/SquareAnnotation.java @@ -28,16 +28,9 @@ import com.aspose.asposecloudpdf.model.CommonFigureAnnotation; import com.aspose.asposecloudpdf.model.HorizontalAlignment; import com.aspose.asposecloudpdf.model.Link; -import com.aspose.asposecloudpdf.model.RectanglePdf; +import com.aspose.asposecloudpdf.model.Rectangle; import com.aspose.asposecloudpdf.model.VerticalAlignment; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; import java.util.List; /** @@ -46,27 +39,6 @@ @ApiModel(description = "Provides SquareAnnotation.") public class SquareAnnotation extends CommonFigureAnnotation { - @SerializedName("Color") - private Color color = null; - - public SquareAnnotation color(Color color) { - this.color = color; - return this; - } - - /** - * Color of the annotation. - * @return color - **/ - @ApiModelProperty(value = "Color of the annotation.") - public Color getColor() { - return color; - } - - public void setColor(Color color) { - this.color = color; - } - @Override public boolean equals(java.lang.Object o) { @@ -76,14 +48,12 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - SquareAnnotation squareAnnotation = (SquareAnnotation) o; - return Objects.equals(this.color, squareAnnotation.color) && - super.equals(o); + return super.equals(o); } @Override public int hashCode() { - return Objects.hash(color, super.hashCode()); + return Objects.hash(super.hashCode()); } @@ -92,7 +62,6 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class SquareAnnotation {\n"); sb.append(" ").append(toIndentedString(super.toString())).append("\n"); - sb.append(" color: ").append(toIndentedString(color)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/aspose/asposecloudpdf/model/SquareAnnotationResponse.java b/src/main/java/com/aspose/asposecloudpdf/model/SquareAnnotationResponse.java index 6b26441..d8e4988 100644 --- a/src/main/java/com/aspose/asposecloudpdf/model/SquareAnnotationResponse.java +++ b/src/main/java/com/aspose/asposecloudpdf/model/SquareAnnotationResponse.java @@ -35,8 +35,9 @@ import java.io.IOException; /** - * SquareAnnotationResponse + * Represents response containing single square annotation object */ +@ApiModel(description = "Represents response containing single square annotation object") public class SquareAnnotationResponse extends AsposeResponse { @SerializedName("Annotation") @@ -48,10 +49,10 @@ public SquareAnnotationResponse annotation(SquareAnnotation annotation) { } /** - * Get annotation + * Square annotation object * @return annotation **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "Square annotation object") public SquareAnnotation getAnnotation() { return annotation; } diff --git a/src/main/java/com/aspose/asposecloudpdf/model/SquareAnnotations.java b/src/main/java/com/aspose/asposecloudpdf/model/SquareAnnotations.java index a08729b..fc2536c 100644 --- a/src/main/java/com/aspose/asposecloudpdf/model/SquareAnnotations.java +++ b/src/main/java/com/aspose/asposecloudpdf/model/SquareAnnotations.java @@ -38,9 +38,9 @@ import java.util.List; /** - * List of annotations. + * Object representing a list of square annotations. */ -@ApiModel(description = "List of annotations.") +@ApiModel(description = "Object representing a list of square annotations.") public class SquareAnnotations extends LinkElement { @SerializedName("List") @@ -60,10 +60,10 @@ public SquareAnnotations addListItem(SquareAnnotation listItem) { } /** - * Get list + * List of square annotations. * @return list **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "List of square annotations.") public List getList() { return list; } diff --git a/src/main/java/com/aspose/asposecloudpdf/model/SquareAnnotationsResponse.java b/src/main/java/com/aspose/asposecloudpdf/model/SquareAnnotationsResponse.java index 7f78e23..f7a5ed7 100644 --- a/src/main/java/com/aspose/asposecloudpdf/model/SquareAnnotationsResponse.java +++ b/src/main/java/com/aspose/asposecloudpdf/model/SquareAnnotationsResponse.java @@ -35,8 +35,9 @@ import java.io.IOException; /** - * SquareAnnotationsResponse + * Represents response containing multiple square annotation objects */ +@ApiModel(description = "Represents response containing multiple square annotation objects") public class SquareAnnotationsResponse extends AsposeResponse { @SerializedName("Annotations") @@ -48,10 +49,10 @@ public SquareAnnotationsResponse annotations(SquareAnnotations annotations) { } /** - * Get annotations + * Square annotations object * @return annotations **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "Square annotations object") public SquareAnnotations getAnnotations() { return annotations; } diff --git a/src/main/java/com/aspose/asposecloudpdf/model/SquigglyAnnotation.java b/src/main/java/com/aspose/asposecloudpdf/model/SquigglyAnnotation.java index 6ce7480..82605f5 100644 --- a/src/main/java/com/aspose/asposecloudpdf/model/SquigglyAnnotation.java +++ b/src/main/java/com/aspose/asposecloudpdf/model/SquigglyAnnotation.java @@ -29,7 +29,7 @@ import com.aspose.asposecloudpdf.model.Link; import com.aspose.asposecloudpdf.model.MarkupAnnotation; import com.aspose.asposecloudpdf.model.Point; -import com.aspose.asposecloudpdf.model.RectanglePdf; +import com.aspose.asposecloudpdf.model.Rectangle; import com.aspose.asposecloudpdf.model.VerticalAlignment; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -48,30 +48,9 @@ @ApiModel(description = "Provides SquigglyAnnotation.") public class SquigglyAnnotation extends MarkupAnnotation { - @SerializedName("Color") - private Color color = null; - @SerializedName("QuadPoints") private List quadPoints = null; - public SquigglyAnnotation color(Color color) { - this.color = color; - return this; - } - - /** - * Color of the annotation. - * @return color - **/ - @ApiModelProperty(value = "Color of the annotation.") - public Color getColor() { - return color; - } - - public void setColor(Color color) { - this.color = color; - } - public SquigglyAnnotation quadPoints(List quadPoints) { this.quadPoints = quadPoints; return this; @@ -108,14 +87,13 @@ public boolean equals(java.lang.Object o) { return false; } SquigglyAnnotation squigglyAnnotation = (SquigglyAnnotation) o; - return Objects.equals(this.color, squigglyAnnotation.color) && - Objects.equals(this.quadPoints, squigglyAnnotation.quadPoints) && + return Objects.equals(this.quadPoints, squigglyAnnotation.quadPoints) && super.equals(o); } @Override public int hashCode() { - return Objects.hash(color, quadPoints, super.hashCode()); + return Objects.hash(quadPoints, super.hashCode()); } @@ -124,7 +102,6 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class SquigglyAnnotation {\n"); sb.append(" ").append(toIndentedString(super.toString())).append("\n"); - sb.append(" color: ").append(toIndentedString(color)).append("\n"); sb.append(" quadPoints: ").append(toIndentedString(quadPoints)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/src/main/java/com/aspose/asposecloudpdf/model/SquigglyAnnotationResponse.java b/src/main/java/com/aspose/asposecloudpdf/model/SquigglyAnnotationResponse.java index 577d56b..56cb405 100644 --- a/src/main/java/com/aspose/asposecloudpdf/model/SquigglyAnnotationResponse.java +++ b/src/main/java/com/aspose/asposecloudpdf/model/SquigglyAnnotationResponse.java @@ -35,8 +35,9 @@ import java.io.IOException; /** - * SquigglyAnnotationResponse + * Represents response containing single squiggly-underline annotation object */ +@ApiModel(description = "Represents response containing single squiggly-underline annotation object") public class SquigglyAnnotationResponse extends AsposeResponse { @SerializedName("Annotation") @@ -48,10 +49,10 @@ public SquigglyAnnotationResponse annotation(SquigglyAnnotation annotation) { } /** - * Get annotation + * Squiggly-underline annotation object * @return annotation **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "Squiggly-underline annotation object") public SquigglyAnnotation getAnnotation() { return annotation; } diff --git a/src/main/java/com/aspose/asposecloudpdf/model/SquigglyAnnotations.java b/src/main/java/com/aspose/asposecloudpdf/model/SquigglyAnnotations.java index 5780edc..53b051f 100644 --- a/src/main/java/com/aspose/asposecloudpdf/model/SquigglyAnnotations.java +++ b/src/main/java/com/aspose/asposecloudpdf/model/SquigglyAnnotations.java @@ -38,9 +38,9 @@ import java.util.List; /** - * List of annotations. + * Object representing a list of squiggly-underline annotations. */ -@ApiModel(description = "List of annotations.") +@ApiModel(description = "Object representing a list of squiggly-underline annotations.") public class SquigglyAnnotations extends LinkElement { @SerializedName("List") @@ -60,10 +60,10 @@ public SquigglyAnnotations addListItem(SquigglyAnnotation listItem) { } /** - * Get list + * List of squiggly-underline annotations. * @return list **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "List of squiggly-underline annotations.") public List getList() { return list; } diff --git a/src/main/java/com/aspose/asposecloudpdf/model/SquigglyAnnotationsResponse.java b/src/main/java/com/aspose/asposecloudpdf/model/SquigglyAnnotationsResponse.java index 78a9e2a..76e6f81 100644 --- a/src/main/java/com/aspose/asposecloudpdf/model/SquigglyAnnotationsResponse.java +++ b/src/main/java/com/aspose/asposecloudpdf/model/SquigglyAnnotationsResponse.java @@ -35,8 +35,9 @@ import java.io.IOException; /** - * SquigglyAnnotationsResponse + * Represents response containing multiple squiggly-underline annotation objects */ +@ApiModel(description = "Represents response containing multiple squiggly-underline annotation objects") public class SquigglyAnnotationsResponse extends AsposeResponse { @SerializedName("Annotations") @@ -48,10 +49,10 @@ public SquigglyAnnotationsResponse annotations(SquigglyAnnotations annotations) } /** - * Get annotations + * Squiggly-underline annotations object * @return annotations **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "Squiggly-underline annotations object") public SquigglyAnnotations getAnnotations() { return annotations; } diff --git a/src/main/java/com/aspose/asposecloudpdf/model/StorageExistResponse.java b/src/main/java/com/aspose/asposecloudpdf/model/StorageExistResponse.java new file mode 100644 index 0000000..634ef5a --- /dev/null +++ b/src/main/java/com/aspose/asposecloudpdf/model/StorageExistResponse.java @@ -0,0 +1,104 @@ +/** + * + * Copyright (c) 2018 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. + * + */ + + +package com.aspose.asposecloudpdf.model; + +import java.util.Objects; +import com.aspose.asposecloudpdf.model.AsposeResponse; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * StorageExistResponse + */ + +public class StorageExistResponse extends AsposeResponse { + @SerializedName("IsExist") + private Boolean isExist = null; + + public StorageExistResponse isExist(Boolean isExist) { + this.isExist = isExist; + return this; + } + + /** + * Get isExist + * @return isExist + **/ + @ApiModelProperty(value = "") + public Boolean isIsExist() { + return isExist; + } + + public void setIsExist(Boolean isExist) { + this.isExist = isExist; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + StorageExistResponse storageExistResponse = (StorageExistResponse) o; + return Objects.equals(this.isExist, storageExistResponse.isExist) && + super.equals(o); + } + + @Override + public int hashCode() { + return Objects.hash(isExist, super.hashCode()); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class StorageExistResponse {\n"); + sb.append(" ").append(toIndentedString(super.toString())).append("\n"); + sb.append(" isExist: ").append(toIndentedString(isExist)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/aspose/asposecloudpdf/model/StrikeOutAnnotation.java b/src/main/java/com/aspose/asposecloudpdf/model/StrikeOutAnnotation.java index 16ccaa6..88f123e 100644 --- a/src/main/java/com/aspose/asposecloudpdf/model/StrikeOutAnnotation.java +++ b/src/main/java/com/aspose/asposecloudpdf/model/StrikeOutAnnotation.java @@ -29,7 +29,7 @@ import com.aspose.asposecloudpdf.model.Link; import com.aspose.asposecloudpdf.model.MarkupAnnotation; import com.aspose.asposecloudpdf.model.Point; -import com.aspose.asposecloudpdf.model.RectanglePdf; +import com.aspose.asposecloudpdf.model.Rectangle; import com.aspose.asposecloudpdf.model.VerticalAlignment; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -48,30 +48,9 @@ @ApiModel(description = "Provides StrikeOutAnnotation.") public class StrikeOutAnnotation extends MarkupAnnotation { - @SerializedName("Color") - private Color color = null; - @SerializedName("QuadPoints") private List quadPoints = null; - public StrikeOutAnnotation color(Color color) { - this.color = color; - return this; - } - - /** - * Color of the annotation. - * @return color - **/ - @ApiModelProperty(value = "Color of the annotation.") - public Color getColor() { - return color; - } - - public void setColor(Color color) { - this.color = color; - } - public StrikeOutAnnotation quadPoints(List quadPoints) { this.quadPoints = quadPoints; return this; @@ -108,14 +87,13 @@ public boolean equals(java.lang.Object o) { return false; } StrikeOutAnnotation strikeOutAnnotation = (StrikeOutAnnotation) o; - return Objects.equals(this.color, strikeOutAnnotation.color) && - Objects.equals(this.quadPoints, strikeOutAnnotation.quadPoints) && + return Objects.equals(this.quadPoints, strikeOutAnnotation.quadPoints) && super.equals(o); } @Override public int hashCode() { - return Objects.hash(color, quadPoints, super.hashCode()); + return Objects.hash(quadPoints, super.hashCode()); } @@ -124,7 +102,6 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class StrikeOutAnnotation {\n"); sb.append(" ").append(toIndentedString(super.toString())).append("\n"); - sb.append(" color: ").append(toIndentedString(color)).append("\n"); sb.append(" quadPoints: ").append(toIndentedString(quadPoints)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/src/main/java/com/aspose/asposecloudpdf/model/StrikeOutAnnotationResponse.java b/src/main/java/com/aspose/asposecloudpdf/model/StrikeOutAnnotationResponse.java index 6564ec1..d0c1b51 100644 --- a/src/main/java/com/aspose/asposecloudpdf/model/StrikeOutAnnotationResponse.java +++ b/src/main/java/com/aspose/asposecloudpdf/model/StrikeOutAnnotationResponse.java @@ -35,8 +35,9 @@ import java.io.IOException; /** - * StrikeOutAnnotationResponse + * Represents response containing single strikeout annotation object */ +@ApiModel(description = "Represents response containing single strikeout annotation object") public class StrikeOutAnnotationResponse extends AsposeResponse { @SerializedName("Annotation") @@ -48,10 +49,10 @@ public StrikeOutAnnotationResponse annotation(StrikeOutAnnotation annotation) { } /** - * Get annotation + * Strikeout annotation object * @return annotation **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "Strikeout annotation object") public StrikeOutAnnotation getAnnotation() { return annotation; } diff --git a/src/main/java/com/aspose/asposecloudpdf/model/StrikeOutAnnotations.java b/src/main/java/com/aspose/asposecloudpdf/model/StrikeOutAnnotations.java index adb5c2c..fba9e81 100644 --- a/src/main/java/com/aspose/asposecloudpdf/model/StrikeOutAnnotations.java +++ b/src/main/java/com/aspose/asposecloudpdf/model/StrikeOutAnnotations.java @@ -38,9 +38,9 @@ import java.util.List; /** - * List of annotations. + * Object representing a list of strikeout annotations. */ -@ApiModel(description = "List of annotations.") +@ApiModel(description = "Object representing a list of strikeout annotations.") public class StrikeOutAnnotations extends LinkElement { @SerializedName("List") @@ -60,10 +60,10 @@ public StrikeOutAnnotations addListItem(StrikeOutAnnotation listItem) { } /** - * Get list + * List of strikeout annotations. * @return list **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "List of strikeout annotations.") public List getList() { return list; } diff --git a/src/main/java/com/aspose/asposecloudpdf/model/StrikeOutAnnotationsResponse.java b/src/main/java/com/aspose/asposecloudpdf/model/StrikeOutAnnotationsResponse.java index 9d4a84f..c712655 100644 --- a/src/main/java/com/aspose/asposecloudpdf/model/StrikeOutAnnotationsResponse.java +++ b/src/main/java/com/aspose/asposecloudpdf/model/StrikeOutAnnotationsResponse.java @@ -35,8 +35,9 @@ import java.io.IOException; /** - * StrikeOutAnnotationsResponse + * Represents response containing multiple strikeout annotation objects */ +@ApiModel(description = "Represents response containing multiple strikeout annotation objects") public class StrikeOutAnnotationsResponse extends AsposeResponse { @SerializedName("Annotations") @@ -48,10 +49,10 @@ public StrikeOutAnnotationsResponse annotations(StrikeOutAnnotations annotations } /** - * Get annotations + * Strikeout annotations object * @return annotations **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "Strikeout annotations object") public StrikeOutAnnotations getAnnotations() { return annotations; } diff --git a/src/main/java/com/aspose/asposecloudpdf/model/TextAnnotation.java b/src/main/java/com/aspose/asposecloudpdf/model/TextAnnotation.java index 1d657e1..7909120 100644 --- a/src/main/java/com/aspose/asposecloudpdf/model/TextAnnotation.java +++ b/src/main/java/com/aspose/asposecloudpdf/model/TextAnnotation.java @@ -29,7 +29,7 @@ import com.aspose.asposecloudpdf.model.HorizontalAlignment; import com.aspose.asposecloudpdf.model.Link; import com.aspose.asposecloudpdf.model.MarkupAnnotation; -import com.aspose.asposecloudpdf.model.RectanglePdf; +import com.aspose.asposecloudpdf.model.Rectangle; import com.aspose.asposecloudpdf.model.TextIcon; import com.aspose.asposecloudpdf.model.VerticalAlignment; import com.google.gson.TypeAdapter; @@ -54,9 +54,6 @@ public class TextAnnotation extends MarkupAnnotation { @SerializedName("Open") private Boolean open = null; - @SerializedName("Color") - private Color color = null; - @SerializedName("Icon") private TextIcon icon = null; @@ -96,24 +93,6 @@ public void setOpen(Boolean open) { this.open = open; } - public TextAnnotation color(Color color) { - this.color = color; - return this; - } - - /** - * Color of the annotation. - * @return color - **/ - @ApiModelProperty(value = "Color of the annotation.") - public Color getColor() { - return color; - } - - public void setColor(Color color) { - this.color = color; - } - public TextAnnotation icon(TextIcon icon) { this.icon = icon; return this; @@ -144,14 +123,13 @@ public boolean equals(java.lang.Object o) { TextAnnotation textAnnotation = (TextAnnotation) o; return Objects.equals(this.state, textAnnotation.state) && Objects.equals(this.open, textAnnotation.open) && - Objects.equals(this.color, textAnnotation.color) && Objects.equals(this.icon, textAnnotation.icon) && super.equals(o); } @Override public int hashCode() { - return Objects.hash(state, open, color, icon, super.hashCode()); + return Objects.hash(state, open, icon, super.hashCode()); } @@ -162,7 +140,6 @@ public String toString() { sb.append(" ").append(toIndentedString(super.toString())).append("\n"); sb.append(" state: ").append(toIndentedString(state)).append("\n"); sb.append(" open: ").append(toIndentedString(open)).append("\n"); - sb.append(" color: ").append(toIndentedString(color)).append("\n"); sb.append(" icon: ").append(toIndentedString(icon)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/src/main/java/com/aspose/asposecloudpdf/model/TextAnnotationResponse.java b/src/main/java/com/aspose/asposecloudpdf/model/TextAnnotationResponse.java index 63f655a..d93ba9a 100644 --- a/src/main/java/com/aspose/asposecloudpdf/model/TextAnnotationResponse.java +++ b/src/main/java/com/aspose/asposecloudpdf/model/TextAnnotationResponse.java @@ -35,8 +35,9 @@ import java.io.IOException; /** - * TextAnnotationResponse + * Represents response containing single text annotation object */ +@ApiModel(description = "Represents response containing single text annotation object") public class TextAnnotationResponse extends AsposeResponse { @SerializedName("Annotation") @@ -48,10 +49,10 @@ public TextAnnotationResponse annotation(TextAnnotation annotation) { } /** - * Get annotation + * Text annotation object * @return annotation **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "Text annotation object") public TextAnnotation getAnnotation() { return annotation; } diff --git a/src/main/java/com/aspose/asposecloudpdf/model/TextAnnotations.java b/src/main/java/com/aspose/asposecloudpdf/model/TextAnnotations.java index d164906..f02e0cb 100644 --- a/src/main/java/com/aspose/asposecloudpdf/model/TextAnnotations.java +++ b/src/main/java/com/aspose/asposecloudpdf/model/TextAnnotations.java @@ -38,9 +38,9 @@ import java.util.List; /** - * List of annotations. + * Object representing a list of text annotations. */ -@ApiModel(description = "List of annotations.") +@ApiModel(description = "Object representing a list of text annotations.") public class TextAnnotations extends LinkElement { @SerializedName("List") @@ -60,10 +60,10 @@ public TextAnnotations addListItem(TextAnnotation listItem) { } /** - * Get list + * List of text annotations. * @return list **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "List of text annotations.") public List getList() { return list; } diff --git a/src/main/java/com/aspose/asposecloudpdf/model/TextAnnotationsResponse.java b/src/main/java/com/aspose/asposecloudpdf/model/TextAnnotationsResponse.java index a79bd42..5a416dd 100644 --- a/src/main/java/com/aspose/asposecloudpdf/model/TextAnnotationsResponse.java +++ b/src/main/java/com/aspose/asposecloudpdf/model/TextAnnotationsResponse.java @@ -35,8 +35,9 @@ import java.io.IOException; /** - * TextAnnotationsResponse + * Represents response containing multiple text annotation objects */ +@ApiModel(description = "Represents response containing multiple text annotation objects") public class TextAnnotationsResponse extends AsposeResponse { @SerializedName("Annotations") @@ -48,10 +49,10 @@ public TextAnnotationsResponse annotations(TextAnnotations annotations) { } /** - * Get annotations + * Text annotations object * @return annotations **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "Text annotations object") public TextAnnotations getAnnotations() { return annotations; } diff --git a/src/main/java/com/aspose/asposecloudpdf/model/TextHorizontalAlignment.java b/src/main/java/com/aspose/asposecloudpdf/model/TextHorizontalAlignment.java index 60c3d06..373b325 100644 --- a/src/main/java/com/aspose/asposecloudpdf/model/TextHorizontalAlignment.java +++ b/src/main/java/com/aspose/asposecloudpdf/model/TextHorizontalAlignment.java @@ -33,7 +33,7 @@ import com.google.gson.stream.JsonWriter; /** - * + * Describes text horizontal alignment. */ @JsonAdapter(TextHorizontalAlignment.Adapter.class) public enum TextHorizontalAlignment { diff --git a/src/main/java/com/aspose/asposecloudpdf/model/TextLine.java b/src/main/java/com/aspose/asposecloudpdf/model/TextLine.java index 06d065b..757a42e 100644 --- a/src/main/java/com/aspose/asposecloudpdf/model/TextLine.java +++ b/src/main/java/com/aspose/asposecloudpdf/model/TextLine.java @@ -37,9 +37,9 @@ import java.util.List; /** - * A line of text to be inserted into . + * A line of text to be inserted into paragraph. */ -@ApiModel(description = "A line of text to be inserted into .") +@ApiModel(description = "A line of text to be inserted into paragraph.") public class TextLine { @SerializedName("HorizontalAlignment") diff --git a/src/main/java/com/aspose/asposecloudpdf/model/TextRect.java b/src/main/java/com/aspose/asposecloudpdf/model/TextRect.java index b315cb3..42e14af 100644 --- a/src/main/java/com/aspose/asposecloudpdf/model/TextRect.java +++ b/src/main/java/com/aspose/asposecloudpdf/model/TextRect.java @@ -23,7 +23,7 @@ package com.aspose.asposecloudpdf.model; import java.util.Objects; -import com.aspose.asposecloudpdf.model.RectanglePdf; +import com.aspose.asposecloudpdf.model.Rectangle; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -34,9 +34,9 @@ import java.io.IOException; /** - * Represents text DTO. + * Represents text occurrence. */ -@ApiModel(description = "Represents text DTO.") +@ApiModel(description = "Represents text occurrence.") public class TextRect { @SerializedName("Text") @@ -46,7 +46,7 @@ public class TextRect { private Integer page = null; @SerializedName("Rect") - private RectanglePdf rect = null; + private Rectangle rect = null; public TextRect text(String text) { this.text = text; @@ -54,10 +54,10 @@ public TextRect text(String text) { } /** - * Get text + * Text of the occurrence. * @return text **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "Text of the occurrence.") public String getText() { return text; } @@ -72,10 +72,10 @@ public TextRect page(Integer page) { } /** - * Get page + * Page on which the occurrence is found. * @return page **/ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty(required = true, value = "Page on which the occurrence is found.") public Integer getPage() { return page; } @@ -84,21 +84,21 @@ public void setPage(Integer page) { this.page = page; } - public TextRect rect(RectanglePdf rect) { + public TextRect rect(Rectangle rect) { this.rect = rect; return this; } /** - * Get rect + * Rectangle of the occurrence. * @return rect **/ - @ApiModelProperty(value = "") - public RectanglePdf getRect() { + @ApiModelProperty(value = "Rectangle of the occurrence.") + public Rectangle getRect() { return rect; } - public void setRect(RectanglePdf rect) { + public void setRect(Rectangle rect) { this.rect = rect; } diff --git a/src/main/java/com/aspose/asposecloudpdf/model/TextRects.java b/src/main/java/com/aspose/asposecloudpdf/model/TextRects.java index 63dfa2f..ce39540 100644 --- a/src/main/java/com/aspose/asposecloudpdf/model/TextRects.java +++ b/src/main/java/com/aspose/asposecloudpdf/model/TextRects.java @@ -36,9 +36,9 @@ import java.util.List; /** - * Represents text items DTO. + * Represents multiple text occurrences DTO. */ -@ApiModel(description = "Represents text items DTO.") +@ApiModel(description = "Represents multiple text occurrences DTO.") public class TextRects { @SerializedName("List") @@ -58,10 +58,10 @@ public TextRects addListItem(TextRect listItem) { } /** - * Get list + * The list of text occurrences. * @return list **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "The list of text occurrences.") public List getList() { return list; } diff --git a/src/main/java/com/aspose/asposecloudpdf/model/TextRectsResponse.java b/src/main/java/com/aspose/asposecloudpdf/model/TextRectsResponse.java index 773b88d..2dd9146 100644 --- a/src/main/java/com/aspose/asposecloudpdf/model/TextRectsResponse.java +++ b/src/main/java/com/aspose/asposecloudpdf/model/TextRectsResponse.java @@ -35,29 +35,30 @@ import java.io.IOException; /** - * TextRectsResponse + * Represents response containing multiple text occurrences info */ +@ApiModel(description = "Represents response containing multiple text occurrences info") public class TextRectsResponse extends AsposeResponse { - @SerializedName("TextOccurences") - private TextRects textOccurences = null; + @SerializedName("TextOccurrences") + private TextRects textOccurrences = null; - public TextRectsResponse textOccurences(TextRects textOccurences) { - this.textOccurences = textOccurences; + public TextRectsResponse textOccurrences(TextRects textOccurrences) { + this.textOccurrences = textOccurrences; return this; } /** - * Get textOccurences - * @return textOccurences + * TextRects object + * @return textOccurrences **/ - @ApiModelProperty(value = "") - public TextRects getTextOccurences() { - return textOccurences; + @ApiModelProperty(value = "TextRects object") + public TextRects getTextOccurrences() { + return textOccurrences; } - public void setTextOccurences(TextRects textOccurences) { - this.textOccurences = textOccurences; + public void setTextOccurrences(TextRects textOccurrences) { + this.textOccurrences = textOccurrences; } @@ -70,13 +71,13 @@ public boolean equals(java.lang.Object o) { return false; } TextRectsResponse textRectsResponse = (TextRectsResponse) o; - return Objects.equals(this.textOccurences, textRectsResponse.textOccurences) && + return Objects.equals(this.textOccurrences, textRectsResponse.textOccurrences) && super.equals(o); } @Override public int hashCode() { - return Objects.hash(textOccurences, super.hashCode()); + return Objects.hash(textOccurrences, super.hashCode()); } @@ -85,7 +86,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class TextRectsResponse {\n"); sb.append(" ").append(toIndentedString(super.toString())).append("\n"); - sb.append(" textOccurences: ").append(toIndentedString(textOccurences)).append("\n"); + sb.append(" textOccurrences: ").append(toIndentedString(textOccurrences)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/aspose/asposecloudpdf/model/TextReplace.java b/src/main/java/com/aspose/asposecloudpdf/model/TextReplace.java index 80c6219..16a86a7 100644 --- a/src/main/java/com/aspose/asposecloudpdf/model/TextReplace.java +++ b/src/main/java/com/aspose/asposecloudpdf/model/TextReplace.java @@ -23,7 +23,7 @@ package com.aspose.asposecloudpdf.model; import java.util.Objects; -import com.aspose.asposecloudpdf.model.RectanglePdf; +import com.aspose.asposecloudpdf.model.Rectangle; import com.aspose.asposecloudpdf.model.TextState; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -53,7 +53,7 @@ public class TextReplace { private TextState textState = null; @SerializedName("Rect") - private RectanglePdf rect = null; + private Rectangle rect = null; public TextReplace oldValue(String oldValue) { this.oldValue = oldValue; @@ -127,7 +127,7 @@ public void setTextState(TextState textState) { this.textState = textState; } - public TextReplace rect(RectanglePdf rect) { + public TextReplace rect(Rectangle rect) { this.rect = rect; return this; } @@ -137,11 +137,11 @@ public TextReplace rect(RectanglePdf rect) { * @return rect **/ @ApiModelProperty(value = "Rectangle area where searched original text.") - public RectanglePdf getRect() { + public Rectangle getRect() { return rect; } - public void setRect(RectanglePdf rect) { + public void setRect(Rectangle rect) { this.rect = rect; } diff --git a/src/main/java/com/aspose/asposecloudpdf/model/TextReplaceListRequest.java b/src/main/java/com/aspose/asposecloudpdf/model/TextReplaceListRequest.java index d51dcde..23bf7d2 100644 --- a/src/main/java/com/aspose/asposecloudpdf/model/TextReplaceListRequest.java +++ b/src/main/java/com/aspose/asposecloudpdf/model/TextReplaceListRequest.java @@ -100,10 +100,10 @@ public TextReplaceListRequest startIndex(Integer startIndex) { } /** - * Get startIndex + * The index of first match to be replaced. * @return startIndex **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "The index of first match to be replaced.") public Integer getStartIndex() { return startIndex; } @@ -118,10 +118,10 @@ public TextReplaceListRequest countReplace(Integer countReplace) { } /** - * Get countReplace + * The number of matches to be replaced. * @return countReplace **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "The number of matches to be replaced.") public Integer getCountReplace() { return countReplace; } diff --git a/src/main/java/com/aspose/asposecloudpdf/model/TextReplaceResponse.java b/src/main/java/com/aspose/asposecloudpdf/model/TextReplaceResponse.java index 58fd2ec..c32c8b7 100644 --- a/src/main/java/com/aspose/asposecloudpdf/model/TextReplaceResponse.java +++ b/src/main/java/com/aspose/asposecloudpdf/model/TextReplaceResponse.java @@ -34,8 +34,9 @@ import java.io.IOException; /** - * TextReplaceResponse + * Represents response containing the result of text replacement */ +@ApiModel(description = "Represents response containing the result of text replacement") public class TextReplaceResponse extends AsposeResponse { @SerializedName("Matches") @@ -47,10 +48,10 @@ public TextReplaceResponse matches(Integer matches) { } /** - * Get matches + * Number of matches * @return matches **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "Number of matches") public Integer getMatches() { return matches; } diff --git a/src/main/java/com/aspose/asposecloudpdf/model/UnderlineAnnotation.java b/src/main/java/com/aspose/asposecloudpdf/model/UnderlineAnnotation.java index d8169dc..b41f24e 100644 --- a/src/main/java/com/aspose/asposecloudpdf/model/UnderlineAnnotation.java +++ b/src/main/java/com/aspose/asposecloudpdf/model/UnderlineAnnotation.java @@ -29,7 +29,7 @@ import com.aspose.asposecloudpdf.model.Link; import com.aspose.asposecloudpdf.model.MarkupAnnotation; import com.aspose.asposecloudpdf.model.Point; -import com.aspose.asposecloudpdf.model.RectanglePdf; +import com.aspose.asposecloudpdf.model.Rectangle; import com.aspose.asposecloudpdf.model.VerticalAlignment; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -48,30 +48,9 @@ @ApiModel(description = "Provides UnderlineAnnotation.") public class UnderlineAnnotation extends MarkupAnnotation { - @SerializedName("Color") - private Color color = null; - @SerializedName("QuadPoints") private List quadPoints = null; - public UnderlineAnnotation color(Color color) { - this.color = color; - return this; - } - - /** - * Color of the annotation. - * @return color - **/ - @ApiModelProperty(value = "Color of the annotation.") - public Color getColor() { - return color; - } - - public void setColor(Color color) { - this.color = color; - } - public UnderlineAnnotation quadPoints(List quadPoints) { this.quadPoints = quadPoints; return this; @@ -108,14 +87,13 @@ public boolean equals(java.lang.Object o) { return false; } UnderlineAnnotation underlineAnnotation = (UnderlineAnnotation) o; - return Objects.equals(this.color, underlineAnnotation.color) && - Objects.equals(this.quadPoints, underlineAnnotation.quadPoints) && + return Objects.equals(this.quadPoints, underlineAnnotation.quadPoints) && super.equals(o); } @Override public int hashCode() { - return Objects.hash(color, quadPoints, super.hashCode()); + return Objects.hash(quadPoints, super.hashCode()); } @@ -124,7 +102,6 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class UnderlineAnnotation {\n"); sb.append(" ").append(toIndentedString(super.toString())).append("\n"); - sb.append(" color: ").append(toIndentedString(color)).append("\n"); sb.append(" quadPoints: ").append(toIndentedString(quadPoints)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/src/main/java/com/aspose/asposecloudpdf/model/UnderlineAnnotationResponse.java b/src/main/java/com/aspose/asposecloudpdf/model/UnderlineAnnotationResponse.java index dbe0009..9b740ac 100644 --- a/src/main/java/com/aspose/asposecloudpdf/model/UnderlineAnnotationResponse.java +++ b/src/main/java/com/aspose/asposecloudpdf/model/UnderlineAnnotationResponse.java @@ -35,8 +35,9 @@ import java.io.IOException; /** - * UnderlineAnnotationResponse + * Represents response containing single underline annotation object */ +@ApiModel(description = "Represents response containing single underline annotation object") public class UnderlineAnnotationResponse extends AsposeResponse { @SerializedName("Annotation") @@ -48,10 +49,10 @@ public UnderlineAnnotationResponse annotation(UnderlineAnnotation annotation) { } /** - * Get annotation + * Underline annotation object * @return annotation **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "Underline annotation object") public UnderlineAnnotation getAnnotation() { return annotation; } diff --git a/src/main/java/com/aspose/asposecloudpdf/model/UnderlineAnnotations.java b/src/main/java/com/aspose/asposecloudpdf/model/UnderlineAnnotations.java index 67a07eb..50fd6f3 100644 --- a/src/main/java/com/aspose/asposecloudpdf/model/UnderlineAnnotations.java +++ b/src/main/java/com/aspose/asposecloudpdf/model/UnderlineAnnotations.java @@ -38,9 +38,9 @@ import java.util.List; /** - * List of annotations. + * Object representing a list of underline annotations. */ -@ApiModel(description = "List of annotations.") +@ApiModel(description = "Object representing a list of underline annotations.") public class UnderlineAnnotations extends LinkElement { @SerializedName("List") @@ -60,10 +60,10 @@ public UnderlineAnnotations addListItem(UnderlineAnnotation listItem) { } /** - * Get list + * List of underline annotations. * @return list **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "List of underline annotations.") public List getList() { return list; } diff --git a/src/main/java/com/aspose/asposecloudpdf/model/UnderlineAnnotationsResponse.java b/src/main/java/com/aspose/asposecloudpdf/model/UnderlineAnnotationsResponse.java index 649f241..b529982 100644 --- a/src/main/java/com/aspose/asposecloudpdf/model/UnderlineAnnotationsResponse.java +++ b/src/main/java/com/aspose/asposecloudpdf/model/UnderlineAnnotationsResponse.java @@ -35,8 +35,9 @@ import java.io.IOException; /** - * UnderlineAnnotationsResponse + * Represents response containing multiple underline annotation objects */ +@ApiModel(description = "Represents response containing multiple underline annotation objects") public class UnderlineAnnotationsResponse extends AsposeResponse { @SerializedName("Annotations") @@ -48,10 +49,10 @@ public UnderlineAnnotationsResponse annotations(UnderlineAnnotations annotations } /** - * Get annotations + * Underline annotations object * @return annotations **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "Underline annotations object") public UnderlineAnnotations getAnnotations() { return annotations; } diff --git a/src/main/java/com/aspose/asposecloudpdf/model/WrapMode.java b/src/main/java/com/aspose/asposecloudpdf/model/WrapMode.java index 0cb4020..986c9fd 100644 --- a/src/main/java/com/aspose/asposecloudpdf/model/WrapMode.java +++ b/src/main/java/com/aspose/asposecloudpdf/model/WrapMode.java @@ -33,7 +33,7 @@ import com.google.gson.stream.JsonWriter; /** - * + * Defines word wrapping strategies */ @JsonAdapter(WrapMode.Adapter.class) public enum WrapMode { diff --git a/src/test/java/com/aspose/asposecloudpdf/api/PdfApiTest.java b/src/test/java/com/aspose/asposecloudpdf/api/PdfApiTest.java index 564f375..8f82d71 100644 --- a/src/test/java/com/aspose/asposecloudpdf/api/PdfApiTest.java +++ b/src/test/java/com/aspose/asposecloudpdf/api/PdfApiTest.java @@ -234,7 +234,7 @@ public void postPageLineAnnotationsTest()throws ApiException int pageNumber = 1; - RectanglePdf rect = new RectanglePdf() + Rectangle rect = new Rectangle() .LLX(100.) .LLY(100.) .URX(200.) @@ -274,7 +274,7 @@ public void putLineAnnotationTest()throws ApiException String name = "PdfWithAnnotations.pdf"; uploadFile(name); - RectanglePdf rect = new RectanglePdf() + Rectangle rect = new Rectangle() .LLX(100.) .LLY(100.) .URX(200.) @@ -370,7 +370,7 @@ public void postPageSquareAnnotationsTest()throws ApiException int pageNumber = 1; - RectanglePdf rect = new RectanglePdf() + Rectangle rect = new Rectangle() .LLX(100.) .LLY(100.) .URX(200.) @@ -408,7 +408,7 @@ public void putSquareAnnotationTest()throws ApiException String name = "PdfWithAnnotations.pdf"; uploadFile(name); - RectanglePdf rect = new RectanglePdf() + Rectangle rect = new Rectangle() .LLX(100.) .LLY(100.) .URX(200.) @@ -502,7 +502,7 @@ public void postPageCircleAnnotationsTest()throws ApiException int pageNumber = 1; - RectanglePdf rect = new RectanglePdf() + Rectangle rect = new Rectangle() .LLX(100.) .LLY(100.) .URX(200.) @@ -540,7 +540,7 @@ public void putCircleAnnotationTest()throws ApiException String name = "PdfWithAnnotations.pdf"; uploadFile(name); - RectanglePdf rect = new RectanglePdf() + Rectangle rect = new Rectangle() .LLX(100.) .LLY(100.) .URX(200.) @@ -634,7 +634,7 @@ public void postPagePolygonAnnotationsTest()throws ApiException int pageNumber = 1; - RectanglePdf rect = new RectanglePdf() + Rectangle rect = new Rectangle() .LLX(100.) .LLY(100.) .URX(200.) @@ -679,7 +679,7 @@ public void putPolygonAnnotationTest()throws ApiException String name = "PdfWithAnnotations.pdf"; uploadFile(name); - RectanglePdf rect = new RectanglePdf() + Rectangle rect = new Rectangle() .LLX(100.) .LLY(100.) .URX(200.) @@ -780,7 +780,7 @@ public void postPagePolyLineAnnotationsTest()throws ApiException int pageNumber = 1; - RectanglePdf rect = new RectanglePdf() + Rectangle rect = new Rectangle() .LLX(100.) .LLY(100.) .URX(200.) @@ -825,7 +825,7 @@ public void putPolyLineAnnotationTest()throws ApiException String name = "PdfWithAnnotations.pdf"; uploadFile(name); - RectanglePdf rect = new RectanglePdf() + Rectangle rect = new Rectangle() .LLX(100.) .LLY(100.) .URX(200.) @@ -944,7 +944,7 @@ public void postPageFreeTextAnnotationsTest()throws ApiException textStyle.setForegroundColor(foregroundColor); textStyle.setBackgroundColor(backgroundColor); - RectanglePdf rect = new RectanglePdf() + Rectangle rect = new Rectangle() .LLX(100.) .LLY(100.) .URX(200.) @@ -1004,7 +1004,7 @@ public void putFreeTextAnnotationTest()throws ApiException textStyle.setForegroundColor(foregroundColor); textStyle.setBackgroundColor(backgroundColor); - RectanglePdf rect = new RectanglePdf() + Rectangle rect = new Rectangle() .LLX(100.) .LLY(100.) .URX(200.) @@ -1102,7 +1102,7 @@ public void postPageTextAnnotationsTest()throws ApiException int pageNumber = 1; - RectanglePdf rect = new RectanglePdf() + Rectangle rect = new Rectangle() .LLX(100.) .LLY(100.) .URX(200.) @@ -1141,7 +1141,7 @@ public void putTextAnnotationTest()throws ApiException uploadFile(name); - RectanglePdf rect = new RectanglePdf() + Rectangle rect = new Rectangle() .LLX(100.) .LLY(100.) .URX(200.) @@ -1236,7 +1236,7 @@ public void postPageHighlightAnnotationsTest()throws ApiException int pageNumber = 1; - RectanglePdf rect = new RectanglePdf() + Rectangle rect = new Rectangle() .LLX(100.) .LLY(100.) .URX(200.) @@ -1282,7 +1282,7 @@ public void putHighlightAnnotationTest()throws ApiException String name = "PdfWithAnnotations.pdf"; uploadFile(name); - RectanglePdf rect = new RectanglePdf() + Rectangle rect = new Rectangle() .LLX(100.) .LLY(100.) .URX(200.) @@ -1384,7 +1384,7 @@ public void postPageUnderlineAnnotationsTest()throws ApiException int pageNumber = 1; - RectanglePdf rect = new RectanglePdf() + Rectangle rect = new Rectangle() .LLX(100.) .LLY(100.) .URX(200.) @@ -1430,7 +1430,7 @@ public void putUnderlineAnnotationTest()throws ApiException String name = "PdfWithAnnotations.pdf"; uploadFile(name); - RectanglePdf rect = new RectanglePdf() + Rectangle rect = new Rectangle() .LLX(100.) .LLY(100.) .URX(200.) @@ -1532,7 +1532,7 @@ public void postPageSquigglyAnnotationsTest()throws ApiException int pageNumber = 1; - RectanglePdf rect = new RectanglePdf() + Rectangle rect = new Rectangle() .LLX(100.) .LLY(100.) .URX(200.) @@ -1578,7 +1578,7 @@ public void putSquigglyAnnotationTest()throws ApiException String name = "PdfWithAnnotations.pdf"; uploadFile(name); - RectanglePdf rect = new RectanglePdf() + Rectangle rect = new Rectangle() .LLX(100.) .LLY(100.) .URX(200.) @@ -1680,7 +1680,7 @@ public void postPageStrikeOutAnnotationsTest()throws ApiException int pageNumber = 1; - RectanglePdf rect = new RectanglePdf() + Rectangle rect = new Rectangle() .LLX(100.) .LLY(100.) .URX(200.) @@ -1726,7 +1726,7 @@ public void putStrikeOutAnnotationTest()throws ApiException String name = "PdfWithAnnotations.pdf"; uploadFile(name); - RectanglePdf rect = new RectanglePdf() + Rectangle rect = new Rectangle() .LLX(100.) .LLY(100.) .URX(200.) @@ -1828,7 +1828,7 @@ public void postPageCaretAnnotationsTest()throws ApiException int pageNumber = 1; - RectanglePdf rect = new RectanglePdf() + Rectangle rect = new Rectangle() .LLX(100.) .LLY(100.) .URX(200.) @@ -1868,7 +1868,7 @@ public void putCaretAnnotationTest()throws ApiException String name = "PdfWithAnnotations.pdf"; uploadFile(name); - RectanglePdf rect = new RectanglePdf() + Rectangle rect = new Rectangle() .LLX(100.) .LLY(100.) .URX(200.) @@ -1966,7 +1966,7 @@ public void postPageInkAnnotationsTest()throws ApiException int pageNumber = 1; - RectanglePdf rect = new RectanglePdf() + Rectangle rect = new Rectangle() .LLX(100.) .LLY(100.) .URX(200.) @@ -2021,7 +2021,7 @@ public void putInkAnnotationTest()throws ApiException String name = "PdfWithAnnotations.pdf"; uploadFile(name); - RectanglePdf rect = new RectanglePdf() + Rectangle rect = new Rectangle() .LLX(100.) .LLY(100.) .URX(200.) @@ -2149,7 +2149,7 @@ public void postPopupAnnotationTest()throws ApiException String parentId = "GI5TCMR3GE2TQLBSGM3CYMJYGUWDENRV"; - RectanglePdf rect = new RectanglePdf() + Rectangle rect = new Rectangle() .LLX(100.) .LLY(100.) .URX(200.) @@ -2183,7 +2183,7 @@ public void putPopupAnnotationTest()throws ApiException String name = "PdfWithAnnotations.pdf"; uploadFile(name); - RectanglePdf rect = new RectanglePdf() + Rectangle rect = new Rectangle() .LLX(100.) .LLY(100.) .URX(200.) @@ -3742,7 +3742,7 @@ public void postCreateFieldTest() throws ApiException String name = "Hello world.pdf"; this.uploadFile(name); - RectanglePdf rect = new RectanglePdf() + Rectangle rect = new Rectangle() .LLX(50.) .LLY(200.) .URX(200.) @@ -3854,6 +3854,27 @@ public void putFieldsFlattenTest() throws ApiException assertEquals(200, (int)response.getCode()); } + /** + * PostFlattenDocument Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void postFlattenDocumentTest() throws ApiException + { + String name = "PdfWithAcroForm.pdf"; + this.uploadFile(name); + + boolean updateAppearances = true; + boolean hideButtons = true; + String folder = this.tempFolder; + + AsposeResponse response = this.pdfApi.postFlattenDocument(name, updateAppearances, null, hideButtons, null, folder); + assertEquals(200, (int)response.getCode()); + } + + // Images Tests @@ -4354,7 +4375,7 @@ public void postPageLinkAnnotationsTest() throws ApiException LinkAnnotation link = new LinkAnnotation() .actionType(LinkActionType.GOTOURIACTION) .action("https://products.aspose.cloud/pdf") - .rect(new RectanglePdf().LLX(100.).LLY(100.).URX(500.).URY(500.)); + .rect(new Rectangle().LLX(100.).LLY(100.).URX(500.).URY(500.)); ArrayList links = new ArrayList<>(); links.add(link); @@ -4382,7 +4403,7 @@ public void putLinkAnnotationTest() throws ApiException LinkAnnotation link = new LinkAnnotation() .actionType(LinkActionType.GOTOURIACTION) .action("https://products.aspose.cloud/pdf") - .rect(new RectanglePdf().LLX(100.).LLY(100.).URX(500.).URY(500.)); + .rect(new Rectangle().LLX(100.).LLY(100.).URX(500.).URY(500.)); LinkAnnotationsResponse linksResponse = this.pdfApi.getPageLinkAnnotations(name, pageNumber, null, folder); assertEquals(200, (int)linksResponse.getCode()); @@ -5086,7 +5107,7 @@ public void postSignDocumentTest() throws ApiException String signatureFileName = "test1234.pfx"; this.uploadFile(signatureFileName); - RectanglePdf rectangle = new RectanglePdf() + Rectangle rectangle = new Rectangle() .LLX(100.) .LLY(100.) .URX(500.) @@ -5128,7 +5149,7 @@ public void postSignPageTest() throws ApiException int pageNumber = 1; - RectanglePdf rectangle = new RectanglePdf() + Rectangle rectangle = new Rectangle() .LLX(100.) .LLY(100.) .URX(500.) @@ -5168,7 +5189,7 @@ public void getVerifySignatureTest() throws ApiException String signatureFileName = "test1234.pfx"; this.uploadFile(signatureFileName); - RectanglePdf rectangle = new RectanglePdf() + Rectangle rectangle = new Rectangle() .LLX(100.) .LLY(100.) .URX(500.) @@ -5210,7 +5231,7 @@ public void postDocumentTextReplaceTest() throws ApiException String name = "marketing.pdf"; this.uploadFile(name); - RectanglePdf rect = new RectanglePdf() + Rectangle rect = new Rectangle() .LLX(100.) .LLY(100.) .URX(300.) @@ -5247,7 +5268,7 @@ public void postPageTextReplaceByRectTest() throws ApiException this.uploadFile(name); int pageNumber = 1; - RectanglePdf rect = new RectanglePdf() + Rectangle rect = new Rectangle() .LLX(100.) .LLY(700.) .URX(400.) @@ -5337,7 +5358,7 @@ public void putAddTextTest() throws ApiException int pageNumber = 1; String folder = this.tempFolder; - RectanglePdf rectangle = new RectanglePdf(); + Rectangle rectangle = new Rectangle(); rectangle.setLLX(100.); rectangle.setLLY(100.); rectangle.setURX(200.); @@ -5438,4 +5459,158 @@ public void getListFilesTest() throws ApiException FilesResponse response = this.pdfApi.getListFiles(this.tempFolder, null); assertEquals(200, (int)response.getCode()); } + + /** + * PostMoveFile Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void postMoveFileTest() throws ApiException + { + String name = "4pages.pdf"; + this.uploadFile(name); + + String src = this.tempFolder + '/' + name; + String dest = this.tempFolder + "/4pages_renamed.pdf"; + + AsposeResponse response = this.pdfApi.postMoveFile(src, dest, null, null, null); + assertEquals(200, (int)response.getCode()); + } + + /** + * DeleteFile Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void deleteFileTest() throws ApiException + { + String name = "4pages.pdf"; + this.uploadFile(name); + + String path = this.tempFolder + '/' + name; + + AsposeResponse response = this.pdfApi.deleteFile(path, null, null); + assertEquals(200, (int)response.getCode()); + } + + /** + * PutCreateFolder Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void putCreateFolderTest() throws ApiException + { + String path = this.tempFolder + "/testFolder"; + + AsposeResponse response = this.pdfApi.putCreateFolder(path, null, null); + assertEquals(200, (int)response.getCode()); + } + + /** + * PostMoveFolder Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void postMoveFolderTest() throws ApiException + { + String src = this.tempFolder + "/testFolder"; + + AsposeResponse responseCreateFolder = this.pdfApi.putCreateFolder(src, null, null); + assertEquals(200, (int)responseCreateFolder.getCode()); + + String dest = this.tempFolder + "/testFolderRenamed"; + + AsposeResponse response = this.pdfApi.postMoveFolder(src, dest, null, null); + assertEquals(200, (int)response.getCode()); + } + + /** + * DeleteFolder Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void deleteFolderTest() throws ApiException + { + String path = this.tempFolder + "/testFolder"; + + AsposeResponse responseCreateFolder = this.pdfApi.putCreateFolder(path, null, null); + assertEquals(200, (int)responseCreateFolder.getCode()); + + AsposeResponse response = this.pdfApi.deleteFolder(path,null, null); + assertEquals(200, (int)response.getCode()); + } + + /** + * GetIsStorageExist Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void getIsStorageExistTest() throws ApiException + { + String name = "PDF-CI"; + + AsposeResponse response = this.pdfApi.getIsStorageExist(name); + assertEquals(200, (int)response.getCode()); + } + + /** + * GetIsExist Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void getIsExistTest() throws ApiException + { + String name = "4pages.pdf"; + this.uploadFile(name); + + String path = this.tempFolder + '/' + name; + + AsposeResponse response = this.pdfApi.getIsExist(path, null, null); + assertEquals(200, (int)response.getCode()); + } + + /** + * GetDiscUsage Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void getDiscUsageTest() throws ApiException + { + DiscUsageResponse response = this.pdfApi.getDiscUsage(null); + assertEquals(200, (int)response.getCode()); + } + + /** + * GetListFileVersions Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void getListFileVersionsTest() throws ApiException + { + String name = "4pages.pdf"; + this.uploadFile(name); + + String path = this.tempFolder + '/' + name; + + FileVersionsResponse response = this.pdfApi.getListFileVersions(path, null); + assertEquals(200, (int)response.getCode()); + } }