diff --git a/README.md b/README.md index 9d824e1..ffb904f 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Aspose.PDF Cloud -- API version: 2.0 -- Package version: 19.5.0 +- API version: 3.0 +- Package version: 19.7.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 - 19.5.0 + 19.7.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:19.5.0" +compile "com.aspose:aspose-cloud-pdf:19.7.0" ``` ### Others @@ -58,7 +58,7 @@ At first generate the JAR by executing: Then manually install the following JARs: -* target/aspose-cloud-pdf-19.5.0.jar +* target/aspose-cloud-pdf-19.7.0.jar * target/lib/*.jar ## Getting Started @@ -111,18 +111,23 @@ All Aspose.PDF Cloud SDKs are licensed under [MIT License](LICENSE). ## Documentation for API Endpoints -All URIs are relative to *https://api.aspose.cloud/v2.0/* +All URIs are relative to *https://api.aspose.cloud/v3.0/* Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- +*PdfApi* | [**copyFile**](docs/PdfApi.md#copyFile) | **PUT** /pdf/storage/file/copy/\{srcPath} | Copy file +*PdfApi* | [**copyFolder**](docs/PdfApi.md#copyFolder) | **PUT** /pdf/storage/folder/copy/\{srcPath} | Copy folder +*PdfApi* | [**createFolder**](docs/PdfApi.md#createFolder) | **PUT** /pdf/storage/folder/\{path} | Create the folder *PdfApi* | [**deleteAnnotation**](docs/PdfApi.md#deleteAnnotation) | **DELETE** /pdf/\{name}/annotations/\{annotationId} | Delete document annotation by ID +*PdfApi* | [**deleteBookmark**](docs/PdfApi.md#deleteBookmark) | **DELETE** /pdf/\{name}/bookmarks/bookmark/\{bookmarkPath} | Delete document bookmark by ID. *PdfApi* | [**deleteDocumentAnnotations**](docs/PdfApi.md#deleteDocumentAnnotations) | **DELETE** /pdf/\{name}/annotations | Delete all annotations from the document +*PdfApi* | [**deleteDocumentBookmarks**](docs/PdfApi.md#deleteDocumentBookmarks) | **DELETE** /pdf/\{name}/bookmarks/tree | Delete all document bookmarks. *PdfApi* | [**deleteDocumentLinkAnnotations**](docs/PdfApi.md#deleteDocumentLinkAnnotations) | **DELETE** /pdf/\{name}/links | Delete all link annotations from the document *PdfApi* | [**deleteDocumentStamps**](docs/PdfApi.md#deleteDocumentStamps) | **DELETE** /pdf/\{name}/stamps | Delete all stamps from the document *PdfApi* | [**deleteDocumentTables**](docs/PdfApi.md#deleteDocumentTables) | **DELETE** /pdf/\{name}/tables | Delete all tables from the document *PdfApi* | [**deleteField**](docs/PdfApi.md#deleteField) | **DELETE** /pdf/\{name}/fields/\{fieldName} | Delete document field by name. -*PdfApi* | [**deleteFile**](docs/PdfApi.md#deleteFile) | **DELETE** /storage/file | Remove a specific file -*PdfApi* | [**deleteFolder**](docs/PdfApi.md#deleteFolder) | **DELETE** /storage/folder | Remove a specific folder +*PdfApi* | [**deleteFile**](docs/PdfApi.md#deleteFile) | **DELETE** /pdf/storage/file/\{path} | Delete file +*PdfApi* | [**deleteFolder**](docs/PdfApi.md#deleteFolder) | **DELETE** /pdf/storage/folder/\{path} | Delete folder *PdfApi* | [**deleteImage**](docs/PdfApi.md#deleteImage) | **DELETE** /pdf/\{name}/images/\{imageId} | Delete image from document page. *PdfApi* | [**deleteLinkAnnotation**](docs/PdfApi.md#deleteLinkAnnotation) | **DELETE** /pdf/\{name}/links/\{linkId} | Delete document page link annotation by ID *PdfApi* | [**deletePage**](docs/PdfApi.md#deletePage) | **DELETE** /pdf/\{name}/pages/\{pageNumber} | Delete document page by its number. @@ -134,13 +139,17 @@ Class | Method | HTTP request | Description *PdfApi* | [**deleteProperty**](docs/PdfApi.md#deleteProperty) | **DELETE** /pdf/\{name}/documentproperties/\{propertyName} | Delete document property. *PdfApi* | [**deleteStamp**](docs/PdfApi.md#deleteStamp) | **DELETE** /pdf/\{name}/stamps/\{stampId} | Delete document stamp by ID *PdfApi* | [**deleteTable**](docs/PdfApi.md#deleteTable) | **DELETE** /pdf/\{name}/tables/\{tableId} | Delete document table by ID +*PdfApi* | [**downloadFile**](docs/PdfApi.md#downloadFile) | **GET** /pdf/storage/file/\{path} | Download file +*PdfApi* | [**getBookmark**](docs/PdfApi.md#getBookmark) | **GET** /pdf/\{name}/bookmarks/bookmark/\{bookmarkPath} | Read document bookmark. +*PdfApi* | [**getBookmarks**](docs/PdfApi.md#getBookmarks) | **GET** /pdf/\{name}/bookmarks/list/\{bookmarkPath} | Read document bookmarks node list. *PdfApi* | [**getCaretAnnotation**](docs/PdfApi.md#getCaretAnnotation) | **GET** /pdf/\{name}/annotations/caret/\{annotationId} | Read document page caret annotation by ID. *PdfApi* | [**getCircleAnnotation**](docs/PdfApi.md#getCircleAnnotation) | **GET** /pdf/\{name}/annotations/circle/\{annotationId} | Read document page circle annotation by ID. -*PdfApi* | [**getDiscUsage**](docs/PdfApi.md#getDiscUsage) | **GET** /storage/disc | Check the disk usage of the current account +*PdfApi* | [**getDiscUsage**](docs/PdfApi.md#getDiscUsage) | **GET** /pdf/storage/disc | Get disc usage *PdfApi* | [**getDocument**](docs/PdfApi.md#getDocument) | **GET** /pdf/\{name} | Read common document info. *PdfApi* | [**getDocumentAnnotations**](docs/PdfApi.md#getDocumentAnnotations) | **GET** /pdf/\{name}/annotations | Read documant page annotations. Returns only FreeTextAnnotations, TextAnnotations, other annotations will implemented next releases. *PdfApi* | [**getDocumentAttachmentByIndex**](docs/PdfApi.md#getDocumentAttachmentByIndex) | **GET** /pdf/\{name}/attachments/\{attachmentIndex} | Read document attachment info by its index. *PdfApi* | [**getDocumentAttachments**](docs/PdfApi.md#getDocumentAttachments) | **GET** /pdf/\{name}/attachments | Read document attachments info. +*PdfApi* | [**getDocumentBookmarks**](docs/PdfApi.md#getDocumentBookmarks) | **GET** /pdf/\{name}/bookmarks/tree | Read document bookmarks tree. *PdfApi* | [**getDocumentCaretAnnotations**](docs/PdfApi.md#getDocumentCaretAnnotations) | **GET** /pdf/\{name}/annotations/caret | Read document caret annotations. *PdfApi* | [**getDocumentCircleAnnotations**](docs/PdfApi.md#getDocumentCircleAnnotations) | **GET** /pdf/\{name}/annotations/circle | Read document circle annotations. *PdfApi* | [**getDocumentFileAttachmentAnnotations**](docs/PdfApi.md#getDocumentFileAttachmentAnnotations) | **GET** /pdf/\{name}/annotations/fileattachment | Read document FileAttachment annotations. @@ -166,13 +175,17 @@ Class | Method | HTTP request | Description *PdfApi* | [**getDocumentTables**](docs/PdfApi.md#getDocumentTables) | **GET** /pdf/\{name}/tables | Read document tables. *PdfApi* | [**getDocumentTextAnnotations**](docs/PdfApi.md#getDocumentTextAnnotations) | **GET** /pdf/\{name}/annotations/text | Read document text annotations. *PdfApi* | [**getDocumentUnderlineAnnotations**](docs/PdfApi.md#getDocumentUnderlineAnnotations) | **GET** /pdf/\{name}/annotations/underline | Read document underline annotations. -*PdfApi* | [**getDownload**](docs/PdfApi.md#getDownload) | **GET** /storage/file | Download a specific file *PdfApi* | [**getDownloadDocumentAttachmentByIndex**](docs/PdfApi.md#getDownloadDocumentAttachmentByIndex) | **GET** /pdf/\{name}/attachments/\{attachmentIndex}/download | Download document attachment content by its index. *PdfApi* | [**getEpubInStorageToPdf**](docs/PdfApi.md#getEpubInStorageToPdf) | **GET** /pdf/create/epub | Convert EPUB file (located on storage) to PDF format and return resulting file in response. +*PdfApi* | [**getExportFieldsFromPdfToFdfInStorage**](docs/PdfApi.md#getExportFieldsFromPdfToFdfInStorage) | **GET** /pdf/\{name}/export/fdf | Export fields from from PDF in storage to FDF file. +*PdfApi* | [**getExportFieldsFromPdfToXfdfInStorage**](docs/PdfApi.md#getExportFieldsFromPdfToXfdfInStorage) | **GET** /pdf/\{name}/export/xfdf | Export fields from from PDF in storage to XFDF file. +*PdfApi* | [**getExportFieldsFromPdfToXmlInStorage**](docs/PdfApi.md#getExportFieldsFromPdfToXmlInStorage) | **GET** /pdf/\{name}/export/xml | Export fields from from PDF in storage to XML file. *PdfApi* | [**getField**](docs/PdfApi.md#getField) | **GET** /pdf/\{name}/fields/\{fieldName} | Get document field by name. *PdfApi* | [**getFields**](docs/PdfApi.md#getFields) | **GET** /pdf/\{name}/fields | Get document fields. *PdfApi* | [**getFileAttachmentAnnotation**](docs/PdfApi.md#getFileAttachmentAnnotation) | **GET** /pdf/\{name}/annotations/fileattachment/\{annotationId} | Read document page FileAttachment annotation by ID. *PdfApi* | [**getFileAttachmentAnnotationData**](docs/PdfApi.md#getFileAttachmentAnnotationData) | **GET** /pdf/\{name}/annotations/fileattachment/\{annotationId}/data | Read document page FileAttachment annotation by ID. +*PdfApi* | [**getFileVersions**](docs/PdfApi.md#getFileVersions) | **GET** /pdf/storage/version/\{path} | Get file versions +*PdfApi* | [**getFilesList**](docs/PdfApi.md#getFilesList) | **GET** /pdf/storage/folder/\{path} | Get all files and folders within a folder *PdfApi* | [**getFreeTextAnnotation**](docs/PdfApi.md#getFreeTextAnnotation) | **GET** /pdf/\{name}/annotations/freetext/\{annotationId} | Read document page free text annotation by ID. *PdfApi* | [**getHighlightAnnotation**](docs/PdfApi.md#getHighlightAnnotation) | **GET** /pdf/\{name}/annotations/highlight/\{annotationId} | Read document page highlight annotation by ID. *PdfApi* | [**getHtmlInStorageToPdf**](docs/PdfApi.md#getHtmlInStorageToPdf) | **GET** /pdf/create/html | Convert HTML file (located on storage) to PDF format and return resulting file in response. @@ -182,14 +195,13 @@ Class | Method | HTTP request | Description *PdfApi* | [**getImageExtractAsPng**](docs/PdfApi.md#getImageExtractAsPng) | **GET** /pdf/\{name}/images/\{imageId}/extract/png | Extract document image in PNG format *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* | [**getImportFieldsFromFdfInStorage**](docs/PdfApi.md#getImportFieldsFromFdfInStorage) | **GET** /pdf/\{name}/import/fdf | Update fields from FDF file in storage. +*PdfApi* | [**getImportFieldsFromXfdfInStorage**](docs/PdfApi.md#getImportFieldsFromXfdfInStorage) | **GET** /pdf/\{name}/import/xfdf | Update fields from XFDF file in storage. +*PdfApi* | [**getImportFieldsFromXmlInStorage**](docs/PdfApi.md#getImportFieldsFromXmlInStorage) | **GET** /pdf/\{name}/import/xml | Import from XML file (located on storage) to PDF format and return resulting file in response. *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* | [**getMovieAnnotation**](docs/PdfApi.md#getMovieAnnotation) | **GET** /pdf/\{name}/annotations/movie/\{annotationId} | Read document page movie annotation by ID. *PdfApi* | [**getPage**](docs/PdfApi.md#getPage) | **GET** /pdf/\{name}/pages/\{pageNumber} | Read document page info. @@ -266,7 +278,11 @@ Class | Method | HTTP request | Description *PdfApi* | [**getXmlInStorageToPdf**](docs/PdfApi.md#getXmlInStorageToPdf) | **GET** /pdf/create/xml | Convert XML file (located on storage) to PDF format and return resulting file in response. *PdfApi* | [**getXpsInStorageToPdf**](docs/PdfApi.md#getXpsInStorageToPdf) | **GET** /pdf/create/xps | Convert XPS file (located on storage) to PDF format and return resulting file in response. *PdfApi* | [**getXslFoInStorageToPdf**](docs/PdfApi.md#getXslFoInStorageToPdf) | **GET** /pdf/create/xslfo | Convert XslFo file (located on storage) to PDF format and return resulting file in response. +*PdfApi* | [**moveFile**](docs/PdfApi.md#moveFile) | **PUT** /pdf/storage/file/move/\{srcPath} | Move file +*PdfApi* | [**moveFolder**](docs/PdfApi.md#moveFolder) | **PUT** /pdf/storage/folder/move/\{srcPath} | Move folder +*PdfApi* | [**objectExists**](docs/PdfApi.md#objectExists) | **GET** /pdf/storage/exist/\{path} | Check if file or folder exists *PdfApi* | [**postAppendDocument**](docs/PdfApi.md#postAppendDocument) | **POST** /pdf/\{name}/appendDocument | Append document to existing one. +*PdfApi* | [**postBookmark**](docs/PdfApi.md#postBookmark) | **POST** /pdf/\{name}/bookmarks/bookmark/\{bookmarkPath} | Add document bookmarks. *PdfApi* | [**postChangePasswordDocumentInStorage**](docs/PdfApi.md#postChangePasswordDocumentInStorage) | **POST** /pdf/\{name}/changepassword | Change document password in storage. *PdfApi* | [**postCreateField**](docs/PdfApi.md#postCreateField) | **POST** /pdf/\{name}/fields | Create field. *PdfApi* | [**postDecryptDocumentInStorage**](docs/PdfApi.md#postDecryptDocumentInStorage) | **POST** /pdf/\{name}/decrypt | Decrypt document in storage. @@ -278,9 +294,10 @@ Class | Method | HTTP request | Description *PdfApi* | [**postDocumentTextReplace**](docs/PdfApi.md#postDocumentTextReplace) | **POST** /pdf/\{name}/text/replace | Document's replace text method. *PdfApi* | [**postEncryptDocumentInStorage**](docs/PdfApi.md#postEncryptDocumentInStorage) | **POST** /pdf/\{name}/encrypt | Encrypt document in storage. *PdfApi* | [**postFlattenDocument**](docs/PdfApi.md#postFlattenDocument) | **POST** /pdf/\{name}/flatten | Flatten the document. +*PdfApi* | [**postImportFieldsFromFdf**](docs/PdfApi.md#postImportFieldsFromFdf) | **POST** /pdf/\{name}/import/fdf | Update fields from FDF file in request. +*PdfApi* | [**postImportFieldsFromXfdf**](docs/PdfApi.md#postImportFieldsFromXfdf) | **POST** /pdf/\{name}/import/xfdf | Update fields from XFDF file in request. +*PdfApi* | [**postImportFieldsFromXml**](docs/PdfApi.md#postImportFieldsFromXml) | **POST** /pdf/\{name}/import/xml | Update fields from XML file in request. *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. @@ -315,15 +332,17 @@ Class | Method | HTTP request | Description *PdfApi* | [**putAddNewPage**](docs/PdfApi.md#putAddNewPage) | **PUT** /pdf/\{name}/pages | Add new page to end of the document. *PdfApi* | [**putAddText**](docs/PdfApi.md#putAddText) | **PUT** /pdf/\{name}/pages/\{pageNumber}/text | Add text to PDF document page. *PdfApi* | [**putAnnotationsFlatten**](docs/PdfApi.md#putAnnotationsFlatten) | **PUT** /pdf/\{name}/annotations/flatten | Flattens the annotations of the specified types +*PdfApi* | [**putBookmark**](docs/PdfApi.md#putBookmark) | **PUT** /pdf/\{name}/bookmarks/bookmark/\{bookmarkPath} | Update document bookmark. *PdfApi* | [**putCaretAnnotation**](docs/PdfApi.md#putCaretAnnotation) | **PUT** /pdf/\{name}/annotations/caret/\{annotationId} | Replace document caret annotation *PdfApi* | [**putChangePasswordDocument**](docs/PdfApi.md#putChangePasswordDocument) | **PUT** /pdf/changepassword | Change document password from content. *PdfApi* | [**putCircleAnnotation**](docs/PdfApi.md#putCircleAnnotation) | **PUT** /pdf/\{name}/annotations/circle/\{annotationId} | Replace document circle annotation -*PdfApi* | [**putCreate**](docs/PdfApi.md#putCreate) | **PUT** /storage/file | Upload a specific file *PdfApi* | [**putCreateDocument**](docs/PdfApi.md#putCreateDocument) | **PUT** /pdf/\{name} | Create empty document. -*PdfApi* | [**putCreateFolder**](docs/PdfApi.md#putCreateFolder) | **PUT** /storage/folder | Create the folder *PdfApi* | [**putDecryptDocument**](docs/PdfApi.md#putDecryptDocument) | **PUT** /pdf/decrypt | Decrypt document from content. *PdfApi* | [**putEncryptDocument**](docs/PdfApi.md#putEncryptDocument) | **PUT** /pdf/encrypt | Encrypt document from content. *PdfApi* | [**putEpubInStorageToPdf**](docs/PdfApi.md#putEpubInStorageToPdf) | **PUT** /pdf/\{name}/create/epub | Convert EPUB file (located on storage) to PDF format and upload resulting file to storage. +*PdfApi* | [**putExportFieldsFromPdfToFdfInStorage**](docs/PdfApi.md#putExportFieldsFromPdfToFdfInStorage) | **PUT** /pdf/\{name}/export/fdf | Export fields from from PDF in storage to FDF file in storage. +*PdfApi* | [**putExportFieldsFromPdfToXfdfInStorage**](docs/PdfApi.md#putExportFieldsFromPdfToXfdfInStorage) | **PUT** /pdf/\{name}/export/xfdf | Export fields from from PDF in storage to XFDF file in storage. +*PdfApi* | [**putExportFieldsFromPdfToXmlInStorage**](docs/PdfApi.md#putExportFieldsFromPdfToXmlInStorage) | **PUT** /pdf/\{name}/export/xml | Export fields from from PDF in storage to XML file in storage. *PdfApi* | [**putFieldsFlatten**](docs/PdfApi.md#putFieldsFlatten) | **PUT** /pdf/\{name}/fields/flatten | Flatten form fields in document. *PdfApi* | [**putFileAttachmentAnnotation**](docs/PdfApi.md#putFileAttachmentAnnotation) | **PUT** /pdf/\{name}/annotations/fileattachment/\{annotationId} | Replace document FileAttachment annotation *PdfApi* | [**putFileAttachmentAnnotationDataExtract**](docs/PdfApi.md#putFileAttachmentAnnotationDataExtract) | **PUT** /pdf/\{name}/annotations/fileattachment/\{annotationId}/data/extract | Extract document FileAttachment annotation content to storage @@ -339,6 +358,9 @@ Class | Method | HTTP request | Description *PdfApi* | [**putImagesExtractAsJpeg**](docs/PdfApi.md#putImagesExtractAsJpeg) | **PUT** /pdf/\{name}/pages/\{pageNumber}/images/extract/jpeg | Extract document images in JPEG format to folder. *PdfApi* | [**putImagesExtractAsPng**](docs/PdfApi.md#putImagesExtractAsPng) | **PUT** /pdf/\{name}/pages/\{pageNumber}/images/extract/png | Extract document images in PNG format to folder. *PdfApi* | [**putImagesExtractAsTiff**](docs/PdfApi.md#putImagesExtractAsTiff) | **PUT** /pdf/\{name}/pages/\{pageNumber}/images/extract/tiff | Extract document images in TIFF format to folder. +*PdfApi* | [**putImportFieldsFromFdfInStorage**](docs/PdfApi.md#putImportFieldsFromFdfInStorage) | **PUT** /pdf/\{name}/import/fdf | Update fields from FDF file in storage. +*PdfApi* | [**putImportFieldsFromXfdfInStorage**](docs/PdfApi.md#putImportFieldsFromXfdfInStorage) | **PUT** /pdf/\{name}/import/xfdf | Update fields from XFDF file in storage. +*PdfApi* | [**putImportFieldsFromXmlInStorage**](docs/PdfApi.md#putImportFieldsFromXmlInStorage) | **PUT** /pdf/\{name}/import/xml | Update fields from XML file in storage. *PdfApi* | [**putInkAnnotation**](docs/PdfApi.md#putInkAnnotation) | **PUT** /pdf/\{name}/annotations/ink/\{annotationId} | Replace document ink annotation *PdfApi* | [**putLaTeXInStorageToPdf**](docs/PdfApi.md#putLaTeXInStorageToPdf) | **PUT** /pdf/\{name}/create/latex | Convert LaTeX file (located on storage) to PDF format and upload resulting file to storage. *PdfApi* | [**putLineAnnotation**](docs/PdfApi.md#putLineAnnotation) | **PUT** /pdf/\{name}/annotations/line/\{annotationId} | Replace document line annotation @@ -410,6 +432,8 @@ Class | Method | HTTP request | Description *PdfApi* | [**putXmlInStorageToPdf**](docs/PdfApi.md#putXmlInStorageToPdf) | **PUT** /pdf/\{name}/create/xml | Convert XML file (located on storage) to PDF format and upload resulting file to storage. *PdfApi* | [**putXpsInStorageToPdf**](docs/PdfApi.md#putXpsInStorageToPdf) | **PUT** /pdf/\{name}/create/xps | Convert XPS file (located on storage) to PDF format and upload resulting file to storage. *PdfApi* | [**putXslFoInStorageToPdf**](docs/PdfApi.md#putXslFoInStorageToPdf) | **PUT** /pdf/\{name}/create/xslfo | Convert XslFo file (located on storage) to PDF format and upload resulting file to storage. +*PdfApi* | [**storageExists**](docs/PdfApi.md#storageExists) | **GET** /pdf/storage/\{storageName}/exist | Check if storage exists +*PdfApi* | [**uploadFile**](docs/PdfApi.md#uploadFile) | **PUT** /pdf/storage/file/\{path} | Upload file ## Documentation for Models @@ -418,7 +442,6 @@ Class | Method | HTTP request | Description - [AnnotationState](docs/AnnotationState.md) - [AnnotationType](docs/AnnotationType.md) - [AntialiasingProcessingType](docs/AntialiasingProcessingType.md) - - [AppendDocument](docs/AppendDocument.md) - [AsposeResponse](docs/AsposeResponse.md) - [BorderCornerStyle](docs/BorderCornerStyle.md) - [BorderInfo](docs/BorderInfo.md) @@ -437,9 +460,13 @@ Class | Method | HTTP request | Description - [DocRecognitionMode](docs/DocRecognitionMode.md) - [DocumentPrivilege](docs/DocumentPrivilege.md) - [EpubRecognitionMode](docs/EpubRecognitionMode.md) + - [Error](docs/Error.md) + - [ErrorDetails](docs/ErrorDetails.md) - [FieldType](docs/FieldType.md) - - [FileExist](docs/FileExist.md) - [FileIcon](docs/FileIcon.md) + - [FileVersions](docs/FileVersions.md) + - [FilesList](docs/FilesList.md) + - [FilesUploadResult](docs/FilesUploadResult.md) - [FontEncodingRules](docs/FontEncodingRules.md) - [FontSavingModes](docs/FontSavingModes.md) - [FontStyles](docs/FontStyles.md) @@ -462,6 +489,7 @@ Class | Method | HTTP request | Description - [LinkHighlightingMode](docs/LinkHighlightingMode.md) - [MarginInfo](docs/MarginInfo.md) - [MergeDocuments](docs/MergeDocuments.md) + - [ObjectExist](docs/ObjectExist.md) - [OptimizeOptions](docs/OptimizeOptions.md) - [PageWordCount](docs/PageWordCount.md) - [Paragraph](docs/Paragraph.md) @@ -486,6 +514,8 @@ Class | Method | HTTP request | Description - [Stamp](docs/Stamp.md) - [StampIcon](docs/StampIcon.md) - [StampType](docs/StampType.md) + - [StorageExist](docs/StorageExist.md) + - [StorageFile](docs/StorageFile.md) - [TableBroken](docs/TableBroken.md) - [TextHorizontalAlignment](docs/TextHorizontalAlignment.md) - [TextIcon](docs/TextIcon.md) @@ -506,13 +536,16 @@ Class | Method | HTTP request | Description - [AttachmentResponse](docs/AttachmentResponse.md) - [Attachments](docs/Attachments.md) - [AttachmentsResponse](docs/AttachmentsResponse.md) + - [Bookmark](docs/Bookmark.md) + - [BookmarkResponse](docs/BookmarkResponse.md) + - [Bookmarks](docs/Bookmarks.md) + - [BookmarksResponse](docs/BookmarksResponse.md) - [CaretAnnotationResponse](docs/CaretAnnotationResponse.md) - [CaretAnnotations](docs/CaretAnnotations.md) - [CaretAnnotationsResponse](docs/CaretAnnotationsResponse.md) - [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) @@ -528,10 +561,7 @@ Class | Method | HTTP request | Description - [FileAttachmentAnnotationResponse](docs/FileAttachmentAnnotationResponse.md) - [FileAttachmentAnnotations](docs/FileAttachmentAnnotations.md) - [FileAttachmentAnnotationsResponse](docs/FileAttachmentAnnotationsResponse.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) - [FreeTextAnnotationsResponse](docs/FreeTextAnnotationsResponse.md) @@ -591,7 +621,6 @@ Class | Method | HTTP request | Description - [StampInfo](docs/StampInfo.md) - [StampsInfo](docs/StampsInfo.md) - [StampsInfoResponse](docs/StampsInfoResponse.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 a72f81b..b3954db 100644 --- a/build.gradle +++ b/build.gradle @@ -20,7 +20,7 @@ apply plugin: 'idea' apply plugin: 'eclipse' group = 'com.aspose' -version = '19.5.0' +version = '19.7.0' buildscript { repositories { @@ -71,7 +71,7 @@ dependencies { publish { groupId = 'com.aspose' artifactId = 'aspose-cloud-pdf' - publishVersion = '19.5.0' + publishVersion = '19.7.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 00ae98a..b80db40 100644 --- a/docs/Annotation.md +++ b/docs/Annotation.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes **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** | [**Rectangle**](Rectangle.md) | Gets Rect of the annotation. | +**rect** | [**Rectangle**](Rectangle.md) | Gets Rect of the annotation. | [optional] **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 75e2939..4e444ab 100644 --- a/docs/AnnotationInfo.md +++ b/docs/AnnotationInfo.md @@ -5,14 +5,14 @@ Provides annotation. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**annotationType** | [**AnnotationType**](AnnotationType.md) | Gets annotation type. | +**annotationType** | [**AnnotationType**](AnnotationType.md) | Gets annotation type. | [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** | [**Rectangle**](Rectangle.md) | Gets Rect of the annotation. | +**rect** | [**Rectangle**](Rectangle.md) | Gets Rect of the annotation. | [optional] **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/Attachment.md b/docs/Attachment.md index 5725572..a44d0ea 100644 --- a/docs/Attachment.md +++ b/docs/Attachment.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes **name** | **String** | Gets the name of the attachment. | [optional] **creationDate** | **String** | The date and time when the embedded file was created. | [optional] **modificationDate** | **String** | The date and time when the embedded file was last modified. | [optional] -**size** | **Integer** | The size of the uncompressed embedded file, in bytes. | +**size** | **Integer** | The size of the uncompressed embedded file, in bytes. | [optional] **checkSum** | **String** | A 16-byte string that is the checksum of the bytes of the uncompressed embedded file. The checksum is calculated by applying the standard MD5 message-digest algorithm to the bytes of the embedded file stream. | [optional] **links** | [**List<Link>**](Link.md) | Link to the document. | [optional] diff --git a/docs/Bookmark.md b/docs/Bookmark.md new file mode 100644 index 0000000..1eaa2e2 --- /dev/null +++ b/docs/Bookmark.md @@ -0,0 +1,29 @@ + +# Bookmark +Provides link to bookmark. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**title** | **String** | Get the Title; | [optional] +**italic** | **Boolean** | Is bookmark italic. | [optional] +**bold** | **Boolean** | Is bookmark bold. | [optional] +**color** | [**Color**](Color.md) | Get the color | [optional] +**action** | **String** | Gets or sets the action bound with the bookmark. If PageNumber is presented the action can not be specified. The action type includes: "GoTo", "GoToR", "Launch", "Named". | [optional] +**level** | **Integer** | Gets or sets bookmark's hierarchy level. | [optional] +**destination** | **String** | Gets or sets bookmark's destination page. Required if action is set as string.Empty. | [optional] +**pageDisplay** | **String** | Gets or sets the type of display bookmark's destination page. | [optional] +**pageDisplay_Bottom** | **Integer** | Gets or sets the bottom coordinate of page display. | [optional] +**pageDisplay_Left** | **Integer** | Gets or sets the left coordinate of page display. | [optional] +**pageDisplay_Right** | **Integer** | Gets or sets the right coordinate of page display. | [optional] +**pageDisplay_Top** | **Integer** | Gets or sets the top coordinate of page display. | [optional] +**pageDisplay_Zoom** | **Integer** | Gets or sets the zoom factor of page display. | [optional] +**pageNumber** | **Integer** | Gets or sets the number of bookmark's destination page. | [optional] +**remoteFile** | **String** | Gets or sets the file (path) which is required for "GoToR" action of bookmark. | [optional] +**bookmarks** | [**Bookmarks**](Bookmarks.md) | The children bookmarks. | [optional] +**links** | [**List<Link>**](Link.md) | Link to the document. | [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/BookmarkResponse.md b/docs/BookmarkResponse.md new file mode 100644 index 0000000..b2efc33 --- /dev/null +++ b/docs/BookmarkResponse.md @@ -0,0 +1,15 @@ + +# BookmarkResponse +Represents response containing single bookmark info + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**bookmark** | [**Bookmark**](Bookmark.md) | Bookmark object | [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/Bookmarks.md b/docs/Bookmarks.md new file mode 100644 index 0000000..fe2b317 --- /dev/null +++ b/docs/Bookmarks.md @@ -0,0 +1,14 @@ + +# Bookmarks +Represents list of bookmark. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**list** | [**List<Bookmark>**](Bookmark.md) | List of bookmarks. | [optional] +**links** | [**List<Link>**](Link.md) | Link to the document. | [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/BookmarksResponse.md b/docs/BookmarksResponse.md new file mode 100644 index 0000000..b2edc0d --- /dev/null +++ b/docs/BookmarksResponse.md @@ -0,0 +1,15 @@ + +# BookmarksResponse +Represents response containing multiple bookmarks info + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**bookmarks** | [**Bookmarks**](Bookmarks.md) | Bookmarks object | [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/CaretAnnotation.md b/docs/CaretAnnotation.md index c50f6e7..3917adb 100644 --- a/docs/CaretAnnotation.md +++ b/docs/CaretAnnotation.md @@ -17,7 +17,7 @@ Name | Type | Description | Notes **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** | [**Rectangle**](Rectangle.md) | Gets Rect of the annotation. | +**rect** | [**Rectangle**](Rectangle.md) | Gets Rect of the annotation. | [optional] **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/CellRecognized.md b/docs/CellRecognized.md index d470f0d..1550dfb 100644 --- a/docs/CellRecognized.md +++ b/docs/CellRecognized.md @@ -5,7 +5,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**textRects** | [**TextRects**](TextRects.md) | Gets collection of objects that describes text containing in the cell | [optional] +**textRects** | [**TextRects**](TextRects.md) | Gets collection of TextRect objects that describes text containing in the cell | [optional] **rectangle** | [**Rectangle**](Rectangle.md) | Gets rectangle that describes position of the cell on page | [optional] diff --git a/docs/CircleAnnotation.md b/docs/CircleAnnotation.md index 406a34d..516488b 100644 --- a/docs/CircleAnnotation.md +++ b/docs/CircleAnnotation.md @@ -17,7 +17,7 @@ Name | Type | Description | Notes **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** | [**Rectangle**](Rectangle.md) | Gets Rect of the annotation. | +**rect** | [**Rectangle**](Rectangle.md) | Gets Rect of the annotation. | [optional] **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/CommonFigureAnnotation.md b/docs/CommonFigureAnnotation.md index df9d83f..bd9d5ed 100644 --- a/docs/CommonFigureAnnotation.md +++ b/docs/CommonFigureAnnotation.md @@ -17,7 +17,7 @@ Name | Type | Description | Notes **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** | [**Rectangle**](Rectangle.md) | Gets Rect of the annotation. | +**rect** | [**Rectangle**](Rectangle.md) | Gets Rect of the annotation. | [optional] **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 index 81327de..17f7f88 100644 --- a/docs/DiscUsage.md +++ b/docs/DiscUsage.md @@ -1,12 +1,12 @@  # DiscUsage - +Class for disc space information. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**usedSize** | **Integer** | | -**totalSize** | **Integer** | | +**usedSize** | **Integer** | Application used disc space. | +**totalSize** | **Integer** | Total disc space. | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/DocumentPrivilege.md b/docs/DocumentPrivilege.md index b7c36f5..dc84aa5 100644 --- a/docs/DocumentPrivilege.md +++ b/docs/DocumentPrivilege.md @@ -1,6 +1,6 @@  # DocumentPrivilege -Represents the privileges for accessing Pdf file./>. +Represents the privileges for accessing Pdf file. ## Properties Name | Type | Description | Notes diff --git a/docs/DocumentProperty.md b/docs/DocumentProperty.md index 6ac69a7..66d776f 100644 --- a/docs/DocumentProperty.md +++ b/docs/DocumentProperty.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **String** | Pame of the property. | [optional] **value** | **String** | Property value. | [optional] -**builtIn** | **Boolean** | Value indicating whether it is a built-in property. | +**builtIn** | **Boolean** | Value indicating whether it is a built-in property. | [optional] **links** | [**List<Link>**](Link.md) | Link to the document. | [optional] diff --git a/docs/Error.md b/docs/Error.md new file mode 100644 index 0000000..87c756c --- /dev/null +++ b/docs/Error.md @@ -0,0 +1,16 @@ + +# Error +Error + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**code** | **String** | Code | [optional] +**message** | **String** | Message | [optional] +**description** | **String** | Description | [optional] +**innerError** | [**ErrorDetails**](ErrorDetails.md) | Inner Error | [optional] + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ErrorDetails.md b/docs/ErrorDetails.md new file mode 100644 index 0000000..4ef2cc6 --- /dev/null +++ b/docs/ErrorDetails.md @@ -0,0 +1,14 @@ + +# ErrorDetails +The error details + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**requestId** | **String** | The request id | [optional] +**date** | **String** | Date | + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Field.md b/docs/Field.md index 6f420f3..568402b 100644 --- a/docs/Field.md +++ b/docs/Field.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **selectedItems** | **List<Integer>** | Selected items. | [optional] **type** | [**FieldType**](FieldType.md) | Field type. | [optional] **rect** | [**Rectangle**](Rectangle.md) | Field rectangle. | [optional] -**values** | **List<String>** | Field values. | +**values** | **List<String>** | Field values. | [optional] **links** | [**List<Link>**](Link.md) | Link to the document. | [optional] diff --git a/docs/Fields.md b/docs/Fields.md index e784653..2307303 100644 --- a/docs/Fields.md +++ b/docs/Fields.md @@ -5,7 +5,7 @@ Represents list of form fields. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**list** | [**List<Field>**](Field.md) | List of form fields. | +**list** | [**List<Field>**](Field.md) | List of form fields. | [optional] **links** | [**List<Link>**](Link.md) | Link to the document. | [optional] diff --git a/docs/FileAttachmentAnnotation.md b/docs/FileAttachmentAnnotation.md index 582f2b2..6c435ce 100644 --- a/docs/FileAttachmentAnnotation.md +++ b/docs/FileAttachmentAnnotation.md @@ -20,7 +20,7 @@ Name | Type | Description | Notes **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** | [**Rectangle**](Rectangle.md) | Gets Rect of the annotation. | +**rect** | [**Rectangle**](Rectangle.md) | Gets Rect of the annotation. | [optional] **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/FileVersion.md b/docs/FileVersion.md index a45bf84..8f389fd 100644 --- a/docs/FileVersion.md +++ b/docs/FileVersion.md @@ -1,17 +1,17 @@  # FileVersion - +File Version ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**versionId** | **String** | | [optional] -**isLatest** | **Boolean** | | -**name** | **String** | | [optional] -**isFolder** | **Boolean** | | -**modifiedDate** | **String** | | [optional] -**size** | **Integer** | | -**path** | **String** | | [optional] +**versionId** | **String** | File Version ID. | [optional] +**isLatest** | **Boolean** | Specifies whether the file is (true) or is not (false) the latest version of an file. | [optional] +**name** | **String** | File or folder name. | [optional] +**isFolder** | **Boolean** | True if it is a folder. | +**modifiedDate** | **String** | File or folder last modified DateTime. | [optional] +**size** | **Integer** | File or folder size. | +**path** | **String** | File or folder path. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/FileVersions.md b/docs/FileVersions.md new file mode 100644 index 0000000..590f27d --- /dev/null +++ b/docs/FileVersions.md @@ -0,0 +1,13 @@ + +# FileVersions +File versions FileVersion. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**value** | [**List<FileVersion>**](FileVersion.md) | File versions FileVersion. | [optional] + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/FilesList.md b/docs/FilesList.md new file mode 100644 index 0000000..51422fd --- /dev/null +++ b/docs/FilesList.md @@ -0,0 +1,13 @@ + +# FilesList +Files list + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**value** | [**List<StorageFile>**](StorageFile.md) | Files and folders contained by folder StorageFile. | [optional] + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/FilesUploadResult.md b/docs/FilesUploadResult.md new file mode 100644 index 0000000..cb84052 --- /dev/null +++ b/docs/FilesUploadResult.md @@ -0,0 +1,14 @@ + +# FilesUploadResult +File upload result + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**uploaded** | **List<String>** | List of uploaded file names | [optional] +**errors** | [**List<Error>**](Error.md) | List of errors. | [optional] + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/FreeTextAnnotation.md b/docs/FreeTextAnnotation.md index 11195ed..547ede5 100644 --- a/docs/FreeTextAnnotation.md +++ b/docs/FreeTextAnnotation.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **justification** | [**Justification**](Justification.md) | Gets Justification of the annotation. | [optional] **intent** | [**FreeTextIntent**](FreeTextIntent.md) | Gets or sets the intent of the free text annotation. | [optional] **rotate** | [**Rotation**](Rotation.md) | Angle of annotation rotation. | [optional] -**textStyle** | [**TextStyle**](TextStyle.md) | Text style of the annotation. | +**textStyle** | [**TextStyle**](TextStyle.md) | Text style of 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] @@ -19,7 +19,7 @@ Name | Type | Description | Notes **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** | [**Rectangle**](Rectangle.md) | Gets Rect of the annotation. | +**rect** | [**Rectangle**](Rectangle.md) | Gets Rect of the annotation. | [optional] **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/GraphInfo.md b/docs/GraphInfo.md index 4ae1565..738ddc1 100644 --- a/docs/GraphInfo.md +++ b/docs/GraphInfo.md @@ -6,10 +6,10 @@ Represents graphics info. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **lineWidth** | **Double** | Gets or sets a float value that indicates the line width of the graph. | [optional] -**color** | [**Color**](Color.md) | Gets or sets a object that indicates the color of the graph. | [optional] +**color** | [**Color**](Color.md) | Gets or sets a Color object that indicates the color of the graph. | [optional] **dashArray** | **List<Integer>** | Gets or sets a dash array. | [optional] **dashPhase** | **Integer** | Gets or sets a dash phase. | [optional] -**fillColor** | [**Color**](Color.md) | Gets or sets a object that indicates the fill color of the graph. | [optional] +**fillColor** | [**Color**](Color.md) | Gets or sets a Color object that indicates the fill color of the graph. | [optional] **isDoubled** | **Boolean** | Gets or sets is border doubled. | [optional] **skewAngleX** | **Double** | Gets or sets a float value that indicates the skew angle of the x-coordinate when transforming a coordinate system. | [optional] **skewAngleY** | **Double** | Gets or sets a float value that indicates the skew angle of the y-coordinate when transforming a coordinate system. | [optional] diff --git a/docs/HighlightAnnotation.md b/docs/HighlightAnnotation.md index f9c2ba2..7213941 100644 --- a/docs/HighlightAnnotation.md +++ b/docs/HighlightAnnotation.md @@ -16,7 +16,7 @@ Name | Type | Description | Notes **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** | [**Rectangle**](Rectangle.md) | Gets Rect of the annotation. | +**rect** | [**Rectangle**](Rectangle.md) | Gets Rect of the annotation. | [optional] **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/Image.md b/docs/Image.md index ad55d64..1a35c10 100644 --- a/docs/Image.md +++ b/docs/Image.md @@ -5,11 +5,11 @@ Represents image DTO. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**width** | **Integer** | Gets width of the image. | -**height** | **Integer** | Gets height of the image. | +**width** | **Integer** | Gets width of the image. | [optional] +**height** | **Integer** | Gets height of the image. | [optional] **id** | **String** | Gets ID of the image. | [optional] **rectangle** | [**Rectangle**](Rectangle.md) | Gets rectangle of the image. | [optional] -**pageNumber** | **Integer** | Gets page number. | +**pageNumber** | **Integer** | Gets page number. | [optional] **links** | [**List<Link>**](Link.md) | Link to the document. | [optional] diff --git a/docs/ImageFooter.md b/docs/ImageFooter.md index 03d60cd..ff18fd2 100644 --- a/docs/ImageFooter.md +++ b/docs/ImageFooter.md @@ -14,7 +14,7 @@ Name | Type | Description | Notes **background** | **Boolean** | Sets or gets a bool value that indicates the content is stamped as background. If the value is true, the stamp content is layed at the bottom. By defalt, the value is false, the stamp content is layed at the top. | [optional] **horizontalAlignment** | [**HorizontalAlignment**](HorizontalAlignment.md) | Gets or sets Horizontal alignment of stamp on the page. | [optional] **opacity** | **Double** | Gets or sets a value to indicate the stamp opacity. The value is from 0.0 to 1.0. By default the value is 1.0. | [optional] -**rotate** | [**Rotation**](Rotation.md) | Sets or gets the rotation of stamp content according values. Note. This property is for set angles which are multiples of 90 degrees (0, 90, 180, 270 degrees). To set arbitrary angle use RotateAngle property. If angle set by ArbitraryAngle is not multiple of 90 then Rotate property returns Rotation.None. | [optional] +**rotate** | [**Rotation**](Rotation.md) | Sets or gets the rotation of stamp content according Rotation values. Note. This property is for set angles which are multiples of 90 degrees (0, 90, 180, 270 degrees). To set arbitrary angle use RotateAngle property. If angle set by ArbitraryAngle is not multiple of 90 then Rotate property returns Rotation.None. | [optional] **rotateAngle** | **Double** | Gets or sets rotate angle of stamp in degrees. This property allows to set arbitrary rotate angle. | [optional] **xIndent** | **Double** | Horizontal stamp coordinate, starting from the left. | [optional] **yIndent** | **Double** | Vertical stamp coordinate, starting from the bottom. | [optional] diff --git a/docs/ImageHeader.md b/docs/ImageHeader.md index eceaf70..8567ca1 100644 --- a/docs/ImageHeader.md +++ b/docs/ImageHeader.md @@ -14,7 +14,7 @@ Name | Type | Description | Notes **background** | **Boolean** | Sets or gets a bool value that indicates the content is stamped as background. If the value is true, the stamp content is layed at the bottom. By defalt, the value is false, the stamp content is layed at the top. | [optional] **horizontalAlignment** | [**HorizontalAlignment**](HorizontalAlignment.md) | Gets or sets Horizontal alignment of stamp on the page. | [optional] **opacity** | **Double** | Gets or sets a value to indicate the stamp opacity. The value is from 0.0 to 1.0. By default the value is 1.0. | [optional] -**rotate** | [**Rotation**](Rotation.md) | Sets or gets the rotation of stamp content according values. Note. This property is for set angles which are multiples of 90 degrees (0, 90, 180, 270 degrees). To set arbitrary angle use RotateAngle property. If angle set by ArbitraryAngle is not multiple of 90 then Rotate property returns Rotation.None. | [optional] +**rotate** | [**Rotation**](Rotation.md) | Sets or gets the rotation of stamp content according Rotation values. Note. This property is for set angles which are multiples of 90 degrees (0, 90, 180, 270 degrees). To set arbitrary angle use RotateAngle property. If angle set by ArbitraryAngle is not multiple of 90 then Rotate property returns Rotation.None. | [optional] **rotateAngle** | **Double** | Gets or sets rotate angle of stamp in degrees. This property allows to set arbitrary rotate angle. | [optional] **xIndent** | **Double** | Horizontal stamp coordinate, starting from the left. | [optional] **yIndent** | **Double** | Vertical stamp coordinate, starting from the bottom. | [optional] diff --git a/docs/ImageStamp.md b/docs/ImageStamp.md index 326d7b3..b7f6bef 100644 --- a/docs/ImageStamp.md +++ b/docs/ImageStamp.md @@ -16,7 +16,7 @@ Name | Type | Description | Notes **background** | **Boolean** | Sets or gets a bool value that indicates the content is stamped as background. If the value is true, the stamp content is layed at the bottom. By defalt, the value is false, the stamp content is layed at the top. | [optional] **horizontalAlignment** | [**HorizontalAlignment**](HorizontalAlignment.md) | Gets or sets Horizontal alignment of stamp on the page. | [optional] **opacity** | **Double** | Gets or sets a value to indicate the stamp opacity. The value is from 0.0 to 1.0. By default the value is 1.0. | [optional] -**rotate** | [**Rotation**](Rotation.md) | Sets or gets the rotation of stamp content according values. Note. This property is for set angles which are multiples of 90 degrees (0, 90, 180, 270 degrees). To set arbitrary angle use RotateAngle property. If angle set by ArbitraryAngle is not multiple of 90 then Rotate property returns Rotation.None. | [optional] +**rotate** | [**Rotation**](Rotation.md) | Sets or gets the rotation of stamp content according Rotation values. Note. This property is for set angles which are multiples of 90 degrees (0, 90, 180, 270 degrees). To set arbitrary angle use RotateAngle property. If angle set by ArbitraryAngle is not multiple of 90 then Rotate property returns Rotation.None. | [optional] **rotateAngle** | **Double** | Gets or sets rotate angle of stamp in degrees. This property allows to set arbitrary rotate angle. | [optional] **xIndent** | **Double** | Horizontal stamp coordinate, starting from the left. | [optional] **yIndent** | **Double** | Vertical stamp coordinate, starting from the bottom. | [optional] diff --git a/docs/InkAnnotation.md b/docs/InkAnnotation.md index 0f1d1ca..04282cc 100644 --- a/docs/InkAnnotation.md +++ b/docs/InkAnnotation.md @@ -17,7 +17,7 @@ Name | Type | Description | Notes **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** | [**Rectangle**](Rectangle.md) | Gets Rect of the annotation. | +**rect** | [**Rectangle**](Rectangle.md) | Gets Rect of the annotation. | [optional] **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/LineAnnotation.md b/docs/LineAnnotation.md index 172314f..8cd9832 100644 --- a/docs/LineAnnotation.md +++ b/docs/LineAnnotation.md @@ -5,9 +5,9 @@ Provides LineAnnotation. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**starting** | [**Point**](Point.md) | Gets or sets starting point of line. | +**starting** | [**Point**](Point.md) | Gets or sets starting point of line. | [optional] **startingStyle** | [**LineEnding**](LineEnding.md) | Gets or sets line ending style for line starting point. | [optional] -**ending** | [**Point**](Point.md) | Gets or sets ending point of line. | +**ending** | [**Point**](Point.md) | Gets or sets ending point of line. | [optional] **endingStyle** | [**LineEnding**](LineEnding.md) | Gets or sets ending style for end point of line. | [optional] **interiorColor** | [**Color**](Color.md) | Gets or sets interior color of the annotation. | [optional] **leaderLine** | **Double** | Gets or sets leader line length. | [optional] @@ -27,7 +27,7 @@ Name | Type | Description | Notes **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** | [**Rectangle**](Rectangle.md) | Gets Rect of the annotation. | +**rect** | [**Rectangle**](Rectangle.md) | Gets Rect of the annotation. | [optional] **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/LinkAnnotation.md b/docs/LinkAnnotation.md index 329f110..1fef8f4 100644 --- a/docs/LinkAnnotation.md +++ b/docs/LinkAnnotation.md @@ -5,11 +5,11 @@ Provides link to linkAnnotation. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**actionType** | [**LinkActionType**](LinkActionType.md) | | -**action** | **String** | | -**highlighting** | [**LinkHighlightingMode**](LinkHighlightingMode.md) | | +**actionType** | [**LinkActionType**](LinkActionType.md) | | [optional] +**action** | **String** | | [optional] +**highlighting** | [**LinkHighlightingMode**](LinkHighlightingMode.md) | | [optional] **color** | [**Color**](Color.md) | | [optional] -**rect** | [**Rectangle**](Rectangle.md) | | +**rect** | [**Rectangle**](Rectangle.md) | | [optional] **id** | **String** | | [optional] **links** | [**List<Link>**](Link.md) | Link to the document. | [optional] diff --git a/docs/MarkupAnnotation.md b/docs/MarkupAnnotation.md index 289276f..1ace38a 100644 --- a/docs/MarkupAnnotation.md +++ b/docs/MarkupAnnotation.md @@ -15,7 +15,7 @@ Name | Type | Description | Notes **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** | [**Rectangle**](Rectangle.md) | Gets Rect of the annotation. | +**rect** | [**Rectangle**](Rectangle.md) | Gets Rect of the annotation. | [optional] **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/MovieAnnotation.md b/docs/MovieAnnotation.md index 506f507..143ebd2 100644 --- a/docs/MovieAnnotation.md +++ b/docs/MovieAnnotation.md @@ -14,7 +14,7 @@ Name | Type | Description | Notes **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** | [**Rectangle**](Rectangle.md) | Gets Rect of the annotation. | +**rect** | [**Rectangle**](Rectangle.md) | Gets Rect of the annotation. | [optional] **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/ObjectExist.md b/docs/ObjectExist.md new file mode 100644 index 0000000..b0f046a --- /dev/null +++ b/docs/ObjectExist.md @@ -0,0 +1,14 @@ + +# ObjectExist +Object exists + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**exists** | **Boolean** | Indicates that the file or folder exists. | +**isFolder** | **Boolean** | True if it is a folder, false if it is a file. | + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Page.md b/docs/Page.md index 4d3afa9..8889826 100644 --- a/docs/Page.md +++ b/docs/Page.md @@ -5,7 +5,7 @@ Provides link to page. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Integer** | Page's id. | +**id** | **Integer** | Page's id. | [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/PageNumberStamp.md b/docs/PageNumberStamp.md index cd5dcaf..1245824 100644 --- a/docs/PageNumberStamp.md +++ b/docs/PageNumberStamp.md @@ -15,7 +15,7 @@ Name | Type | Description | Notes **background** | **Boolean** | Sets or gets a bool value that indicates the content is stamped as background. If the value is true, the stamp content is layed at the bottom. By defalt, the value is false, the stamp content is layed at the top. | [optional] **horizontalAlignment** | [**HorizontalAlignment**](HorizontalAlignment.md) | Gets or sets Horizontal alignment of stamp on the page. | [optional] **opacity** | **Double** | Gets or sets a value to indicate the stamp opacity. The value is from 0.0 to 1.0. By default the value is 1.0. | [optional] -**rotate** | [**Rotation**](Rotation.md) | Sets or gets the rotation of stamp content according values. Note. This property is for set angles which are multiples of 90 degrees (0, 90, 180, 270 degrees). To set arbitrary angle use RotateAngle property. If angle set by ArbitraryAngle is not multiple of 90 then Rotate property returns Rotation.None. | [optional] +**rotate** | [**Rotation**](Rotation.md) | Sets or gets the rotation of stamp content according Rotation values. Note. This property is for set angles which are multiples of 90 degrees (0, 90, 180, 270 degrees). To set arbitrary angle use RotateAngle property. If angle set by ArbitraryAngle is not multiple of 90 then Rotate property returns Rotation.None. | [optional] **rotateAngle** | **Double** | Gets or sets rotate angle of stamp in degrees. This property allows to set arbitrary rotate angle. | [optional] **xIndent** | **Double** | Horizontal stamp coordinate, starting from the left. | [optional] **yIndent** | **Double** | Vertical stamp coordinate, starting from the bottom. | [optional] diff --git a/docs/PdfApi.md b/docs/PdfApi.md index 7d24c79..82640ba 100644 --- a/docs/PdfApi.md +++ b/docs/PdfApi.md @@ -1,17 +1,22 @@ # PdfApi -All URIs are relative to *https://api.aspose.cloud/v2.0* +All URIs are relative to *https://api.aspose.cloud/v3.0* Method | HTTP request | Description ------------- | ------------- | ------------- +[**copyFile**](PdfApi.md#copyFile) | **PUT** /pdf/storage/file/copy/\{srcPath} | Copy file +[**copyFolder**](PdfApi.md#copyFolder) | **PUT** /pdf/storage/folder/copy/\{srcPath} | Copy folder +[**createFolder**](PdfApi.md#createFolder) | **PUT** /pdf/storage/folder/\{path} | Create the folder [**deleteAnnotation**](PdfApi.md#deleteAnnotation) | **DELETE** /pdf/\{name}/annotations/\{annotationId} | Delete document annotation by ID +[**deleteBookmark**](PdfApi.md#deleteBookmark) | **DELETE** /pdf/\{name}/bookmarks/bookmark/\{bookmarkPath} | Delete document bookmark by ID. [**deleteDocumentAnnotations**](PdfApi.md#deleteDocumentAnnotations) | **DELETE** /pdf/\{name}/annotations | Delete all annotations from the document +[**deleteDocumentBookmarks**](PdfApi.md#deleteDocumentBookmarks) | **DELETE** /pdf/\{name}/bookmarks/tree | Delete all document bookmarks. [**deleteDocumentLinkAnnotations**](PdfApi.md#deleteDocumentLinkAnnotations) | **DELETE** /pdf/\{name}/links | Delete all link annotations from the document [**deleteDocumentStamps**](PdfApi.md#deleteDocumentStamps) | **DELETE** /pdf/\{name}/stamps | Delete all stamps from the document [**deleteDocumentTables**](PdfApi.md#deleteDocumentTables) | **DELETE** /pdf/\{name}/tables | Delete all tables 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 +[**deleteFile**](PdfApi.md#deleteFile) | **DELETE** /pdf/storage/file/\{path} | Delete file +[**deleteFolder**](PdfApi.md#deleteFolder) | **DELETE** /pdf/storage/folder/\{path} | Delete 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. @@ -23,13 +28,17 @@ Method | HTTP request | Description [**deleteProperty**](PdfApi.md#deleteProperty) | **DELETE** /pdf/\{name}/documentproperties/\{propertyName} | Delete document property. [**deleteStamp**](PdfApi.md#deleteStamp) | **DELETE** /pdf/\{name}/stamps/\{stampId} | Delete document stamp by ID [**deleteTable**](PdfApi.md#deleteTable) | **DELETE** /pdf/\{name}/tables/\{tableId} | Delete document table by ID +[**downloadFile**](PdfApi.md#downloadFile) | **GET** /pdf/storage/file/\{path} | Download file +[**getBookmark**](PdfApi.md#getBookmark) | **GET** /pdf/\{name}/bookmarks/bookmark/\{bookmarkPath} | Read document bookmark. +[**getBookmarks**](PdfApi.md#getBookmarks) | **GET** /pdf/\{name}/bookmarks/list/\{bookmarkPath} | Read document bookmarks node list. [**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 +[**getDiscUsage**](PdfApi.md#getDiscUsage) | **GET** /pdf/storage/disc | Get disc usage [**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. [**getDocumentAttachments**](PdfApi.md#getDocumentAttachments) | **GET** /pdf/\{name}/attachments | Read document attachments info. +[**getDocumentBookmarks**](PdfApi.md#getDocumentBookmarks) | **GET** /pdf/\{name}/bookmarks/tree | Read document bookmarks tree. [**getDocumentCaretAnnotations**](PdfApi.md#getDocumentCaretAnnotations) | **GET** /pdf/\{name}/annotations/caret | Read document caret annotations. [**getDocumentCircleAnnotations**](PdfApi.md#getDocumentCircleAnnotations) | **GET** /pdf/\{name}/annotations/circle | Read document circle annotations. [**getDocumentFileAttachmentAnnotations**](PdfApi.md#getDocumentFileAttachmentAnnotations) | **GET** /pdf/\{name}/annotations/fileattachment | Read document FileAttachment annotations. @@ -55,13 +64,17 @@ Method | HTTP request | Description [**getDocumentTables**](PdfApi.md#getDocumentTables) | **GET** /pdf/\{name}/tables | Read document tables. [**getDocumentTextAnnotations**](PdfApi.md#getDocumentTextAnnotations) | **GET** /pdf/\{name}/annotations/text | Read document text annotations. [**getDocumentUnderlineAnnotations**](PdfApi.md#getDocumentUnderlineAnnotations) | **GET** /pdf/\{name}/annotations/underline | Read document underline annotations. -[**getDownload**](PdfApi.md#getDownload) | **GET** /storage/file | Download a specific file [**getDownloadDocumentAttachmentByIndex**](PdfApi.md#getDownloadDocumentAttachmentByIndex) | **GET** /pdf/\{name}/attachments/\{attachmentIndex}/download | Download document attachment content by its index. [**getEpubInStorageToPdf**](PdfApi.md#getEpubInStorageToPdf) | **GET** /pdf/create/epub | Convert EPUB file (located on storage) to PDF format and return resulting file in response. +[**getExportFieldsFromPdfToFdfInStorage**](PdfApi.md#getExportFieldsFromPdfToFdfInStorage) | **GET** /pdf/\{name}/export/fdf | Export fields from from PDF in storage to FDF file. +[**getExportFieldsFromPdfToXfdfInStorage**](PdfApi.md#getExportFieldsFromPdfToXfdfInStorage) | **GET** /pdf/\{name}/export/xfdf | Export fields from from PDF in storage to XFDF file. +[**getExportFieldsFromPdfToXmlInStorage**](PdfApi.md#getExportFieldsFromPdfToXmlInStorage) | **GET** /pdf/\{name}/export/xml | Export fields from from PDF in storage to XML file. [**getField**](PdfApi.md#getField) | **GET** /pdf/\{name}/fields/\{fieldName} | Get document field by name. [**getFields**](PdfApi.md#getFields) | **GET** /pdf/\{name}/fields | Get document fields. [**getFileAttachmentAnnotation**](PdfApi.md#getFileAttachmentAnnotation) | **GET** /pdf/\{name}/annotations/fileattachment/\{annotationId} | Read document page FileAttachment annotation by ID. [**getFileAttachmentAnnotationData**](PdfApi.md#getFileAttachmentAnnotationData) | **GET** /pdf/\{name}/annotations/fileattachment/\{annotationId}/data | Read document page FileAttachment annotation by ID. +[**getFileVersions**](PdfApi.md#getFileVersions) | **GET** /pdf/storage/version/\{path} | Get file versions +[**getFilesList**](PdfApi.md#getFilesList) | **GET** /pdf/storage/folder/\{path} | Get all files and folders within a folder [**getFreeTextAnnotation**](PdfApi.md#getFreeTextAnnotation) | **GET** /pdf/\{name}/annotations/freetext/\{annotationId} | Read document page free text annotation by ID. [**getHighlightAnnotation**](PdfApi.md#getHighlightAnnotation) | **GET** /pdf/\{name}/annotations/highlight/\{annotationId} | Read document page highlight annotation by ID. [**getHtmlInStorageToPdf**](PdfApi.md#getHtmlInStorageToPdf) | **GET** /pdf/create/html | Convert HTML file (located on storage) to PDF format and return resulting file in response. @@ -71,14 +84,13 @@ Method | HTTP request | Description [**getImageExtractAsPng**](PdfApi.md#getImageExtractAsPng) | **GET** /pdf/\{name}/images/\{imageId}/extract/png | Extract document image in PNG format [**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. +[**getImportFieldsFromFdfInStorage**](PdfApi.md#getImportFieldsFromFdfInStorage) | **GET** /pdf/\{name}/import/fdf | Update fields from FDF file in storage. +[**getImportFieldsFromXfdfInStorage**](PdfApi.md#getImportFieldsFromXfdfInStorage) | **GET** /pdf/\{name}/import/xfdf | Update fields from XFDF file in storage. +[**getImportFieldsFromXmlInStorage**](PdfApi.md#getImportFieldsFromXmlInStorage) | **GET** /pdf/\{name}/import/xml | Import from XML file (located on storage) to PDF format and return resulting file in response. [**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. [**getMovieAnnotation**](PdfApi.md#getMovieAnnotation) | **GET** /pdf/\{name}/annotations/movie/\{annotationId} | Read document page movie annotation by ID. [**getPage**](PdfApi.md#getPage) | **GET** /pdf/\{name}/pages/\{pageNumber} | Read document page info. @@ -155,7 +167,11 @@ Method | HTTP request | Description [**getXmlInStorageToPdf**](PdfApi.md#getXmlInStorageToPdf) | **GET** /pdf/create/xml | Convert XML file (located on storage) to PDF format and return resulting file in response. [**getXpsInStorageToPdf**](PdfApi.md#getXpsInStorageToPdf) | **GET** /pdf/create/xps | Convert XPS file (located on storage) to PDF format and return resulting file in response. [**getXslFoInStorageToPdf**](PdfApi.md#getXslFoInStorageToPdf) | **GET** /pdf/create/xslfo | Convert XslFo file (located on storage) to PDF format and return resulting file in response. +[**moveFile**](PdfApi.md#moveFile) | **PUT** /pdf/storage/file/move/\{srcPath} | Move file +[**moveFolder**](PdfApi.md#moveFolder) | **PUT** /pdf/storage/folder/move/\{srcPath} | Move folder +[**objectExists**](PdfApi.md#objectExists) | **GET** /pdf/storage/exist/\{path} | Check if file or folder exists [**postAppendDocument**](PdfApi.md#postAppendDocument) | **POST** /pdf/\{name}/appendDocument | Append document to existing one. +[**postBookmark**](PdfApi.md#postBookmark) | **POST** /pdf/\{name}/bookmarks/bookmark/\{bookmarkPath} | Add document bookmarks. [**postChangePasswordDocumentInStorage**](PdfApi.md#postChangePasswordDocumentInStorage) | **POST** /pdf/\{name}/changepassword | Change document password in storage. [**postCreateField**](PdfApi.md#postCreateField) | **POST** /pdf/\{name}/fields | Create field. [**postDecryptDocumentInStorage**](PdfApi.md#postDecryptDocumentInStorage) | **POST** /pdf/\{name}/decrypt | Decrypt document in storage. @@ -167,9 +183,10 @@ Method | HTTP request | Description [**postDocumentTextReplace**](PdfApi.md#postDocumentTextReplace) | **POST** /pdf/\{name}/text/replace | Document's replace text method. [**postEncryptDocumentInStorage**](PdfApi.md#postEncryptDocumentInStorage) | **POST** /pdf/\{name}/encrypt | Encrypt document in storage. [**postFlattenDocument**](PdfApi.md#postFlattenDocument) | **POST** /pdf/\{name}/flatten | Flatten the document. +[**postImportFieldsFromFdf**](PdfApi.md#postImportFieldsFromFdf) | **POST** /pdf/\{name}/import/fdf | Update fields from FDF file in request. +[**postImportFieldsFromXfdf**](PdfApi.md#postImportFieldsFromXfdf) | **POST** /pdf/\{name}/import/xfdf | Update fields from XFDF file in request. +[**postImportFieldsFromXml**](PdfApi.md#postImportFieldsFromXml) | **POST** /pdf/\{name}/import/xml | Update fields from XML file in request. [**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. @@ -204,15 +221,17 @@ Method | HTTP request | Description [**putAddNewPage**](PdfApi.md#putAddNewPage) | **PUT** /pdf/\{name}/pages | Add new page to end of the document. [**putAddText**](PdfApi.md#putAddText) | **PUT** /pdf/\{name}/pages/\{pageNumber}/text | Add text to PDF document page. [**putAnnotationsFlatten**](PdfApi.md#putAnnotationsFlatten) | **PUT** /pdf/\{name}/annotations/flatten | Flattens the annotations of the specified types +[**putBookmark**](PdfApi.md#putBookmark) | **PUT** /pdf/\{name}/bookmarks/bookmark/\{bookmarkPath} | Update document bookmark. [**putCaretAnnotation**](PdfApi.md#putCaretAnnotation) | **PUT** /pdf/\{name}/annotations/caret/\{annotationId} | Replace document caret annotation [**putChangePasswordDocument**](PdfApi.md#putChangePasswordDocument) | **PUT** /pdf/changepassword | Change document password from content. [**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 [**putDecryptDocument**](PdfApi.md#putDecryptDocument) | **PUT** /pdf/decrypt | Decrypt document from content. [**putEncryptDocument**](PdfApi.md#putEncryptDocument) | **PUT** /pdf/encrypt | Encrypt document from content. [**putEpubInStorageToPdf**](PdfApi.md#putEpubInStorageToPdf) | **PUT** /pdf/\{name}/create/epub | Convert EPUB file (located on storage) to PDF format and upload resulting file to storage. +[**putExportFieldsFromPdfToFdfInStorage**](PdfApi.md#putExportFieldsFromPdfToFdfInStorage) | **PUT** /pdf/\{name}/export/fdf | Export fields from from PDF in storage to FDF file in storage. +[**putExportFieldsFromPdfToXfdfInStorage**](PdfApi.md#putExportFieldsFromPdfToXfdfInStorage) | **PUT** /pdf/\{name}/export/xfdf | Export fields from from PDF in storage to XFDF file in storage. +[**putExportFieldsFromPdfToXmlInStorage**](PdfApi.md#putExportFieldsFromPdfToXmlInStorage) | **PUT** /pdf/\{name}/export/xml | Export fields from from PDF in storage to XML file in storage. [**putFieldsFlatten**](PdfApi.md#putFieldsFlatten) | **PUT** /pdf/\{name}/fields/flatten | Flatten form fields in document. [**putFileAttachmentAnnotation**](PdfApi.md#putFileAttachmentAnnotation) | **PUT** /pdf/\{name}/annotations/fileattachment/\{annotationId} | Replace document FileAttachment annotation [**putFileAttachmentAnnotationDataExtract**](PdfApi.md#putFileAttachmentAnnotationDataExtract) | **PUT** /pdf/\{name}/annotations/fileattachment/\{annotationId}/data/extract | Extract document FileAttachment annotation content to storage @@ -228,6 +247,9 @@ Method | HTTP request | Description [**putImagesExtractAsJpeg**](PdfApi.md#putImagesExtractAsJpeg) | **PUT** /pdf/\{name}/pages/\{pageNumber}/images/extract/jpeg | Extract document images in JPEG format to folder. [**putImagesExtractAsPng**](PdfApi.md#putImagesExtractAsPng) | **PUT** /pdf/\{name}/pages/\{pageNumber}/images/extract/png | Extract document images in PNG format to folder. [**putImagesExtractAsTiff**](PdfApi.md#putImagesExtractAsTiff) | **PUT** /pdf/\{name}/pages/\{pageNumber}/images/extract/tiff | Extract document images in TIFF format to folder. +[**putImportFieldsFromFdfInStorage**](PdfApi.md#putImportFieldsFromFdfInStorage) | **PUT** /pdf/\{name}/import/fdf | Update fields from FDF file in storage. +[**putImportFieldsFromXfdfInStorage**](PdfApi.md#putImportFieldsFromXfdfInStorage) | **PUT** /pdf/\{name}/import/xfdf | Update fields from XFDF file in storage. +[**putImportFieldsFromXmlInStorage**](PdfApi.md#putImportFieldsFromXmlInStorage) | **PUT** /pdf/\{name}/import/xml | Update fields from XML file in storage. [**putInkAnnotation**](PdfApi.md#putInkAnnotation) | **PUT** /pdf/\{name}/annotations/ink/\{annotationId} | Replace document ink annotation [**putLaTeXInStorageToPdf**](PdfApi.md#putLaTeXInStorageToPdf) | **PUT** /pdf/\{name}/create/latex | Convert LaTeX file (located on storage) to PDF format and upload resulting file to storage. [**putLineAnnotation**](PdfApi.md#putLineAnnotation) | **PUT** /pdf/\{name}/annotations/line/\{annotationId} | Replace document line annotation @@ -299,8 +321,81 @@ Method | HTTP request | Description [**putXmlInStorageToPdf**](PdfApi.md#putXmlInStorageToPdf) | **PUT** /pdf/\{name}/create/xml | Convert XML file (located on storage) to PDF format and upload resulting file to storage. [**putXpsInStorageToPdf**](PdfApi.md#putXpsInStorageToPdf) | **PUT** /pdf/\{name}/create/xps | Convert XPS file (located on storage) to PDF format and upload resulting file to storage. [**putXslFoInStorageToPdf**](PdfApi.md#putXslFoInStorageToPdf) | **PUT** /pdf/\{name}/create/xslfo | Convert XslFo file (located on storage) to PDF format and upload resulting file to storage. +[**storageExists**](PdfApi.md#storageExists) | **GET** /pdf/storage/\{storageName}/exist | Check if storage exists +[**uploadFile**](PdfApi.md#uploadFile) | **PUT** /pdf/storage/file/\{path} | Upload file + +# **copyFile** +> copyFile(srcPath, destPath, srcStorageName, destStorageName, versionId) + +Copy file + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **srcPath** | **String**| Source file path e.g. '/folder/file.ext' | + **destPath** | **String**| Destination file path | + **srcStorageName** | **String**| Source storage name | [optional] + **destStorageName** | **String**| Destination storage name | [optional] + **versionId** | **String**| File version ID to copy | [optional] + +### Return type + +null (empty response body) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **copyFolder** +> copyFolder(srcPath, destPath, srcStorageName, destStorageName) + +Copy folder + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **srcPath** | **String**| Source folder path e.g. '/src' | + **destPath** | **String**| Destination folder path e.g. '/dst' | + **srcStorageName** | **String**| Source storage name | [optional] + **destStorageName** | **String**| Destination storage name | [optional] + +### Return type + +null (empty response body) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **createFolder** +> createFolder(path, storageName) + +Create the folder + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **path** | **String**| Folder path to create e.g. 'folder_1/folder_2/' | + **storageName** | **String**| Storage name | [optional] + +### Return type + +null (empty response body) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + # **deleteAnnotation** > AsposeResponse deleteAnnotation(name, annotationId, storage, folder) @@ -320,6 +415,30 @@ Name | Type | Description | Notes [**AsposeResponse**](AsposeResponse.md) +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **deleteBookmark** +> AsposeResponse deleteBookmark(name, bookmarkPath, folder, storage) + +Delete document bookmark by ID. + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **String**| The document name. | + **bookmarkPath** | **String**| The bookmark path. | + **folder** | **String**| The document folder. | [optional] + **storage** | **String**| The document storage. | [optional] + +### Return type + +[**AsposeResponse**](AsposeResponse.md) + ### HTTP request headers - **Content-Type**: application/json @@ -343,6 +462,29 @@ Name | Type | Description | Notes [**AsposeResponse**](AsposeResponse.md) +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **deleteDocumentBookmarks** +> AsposeResponse deleteDocumentBookmarks(name, folder, storage) + +Delete all document bookmarks. + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **String**| The document name. | + **folder** | **String**| The document folder. | [optional] + **storage** | **String**| The document storage. | [optional] + +### Return type + +[**AsposeResponse**](AsposeResponse.md) + ### HTTP request headers - **Content-Type**: application/json @@ -443,21 +585,21 @@ Name | Type | Description | Notes # **deleteFile** -> AsposeResponse deleteFile(path, versionId, storage) +> deleteFile(path, storageName, versionId) -Remove a specific file +Delete file ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **path** | **String**| Path of the file including file name and extension e.g. /Folder1/file.ext | - **versionId** | **String**| File's version | [optional] - **storage** | **String**| User's storage name | [optional] + **path** | **String**| File path e.g. '/folder/file.ext' | + **storageName** | **String**| Storage name | [optional] + **versionId** | **String**| File version ID to delete | [optional] ### Return type -[**AsposeResponse**](AsposeResponse.md) +null (empty response body) ### HTTP request headers @@ -466,21 +608,21 @@ Name | Type | Description | Notes # **deleteFolder** -> AsposeResponse deleteFolder(path, storage, recursive) +> deleteFolder(path, storageName, recursive) -Remove a specific folder +Delete folder ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **path** | **String**| Folder path e.g. /Folder1 | - **storage** | **String**| User's storage name | [optional] - **recursive** | **Boolean**| Remove recursivelly inner folder/files. If false and folder contains data than exception is raised. | [optional] [default to false] + **path** | **String**| Folder path e.g. '/folder' | + **storageName** | **String**| Storage name | [optional] + **recursive** | **Boolean**| Enable to delete folders, subfolders and files | [optional] [default to false] ### Return type -[**AsposeResponse**](AsposeResponse.md) +null (empty response body) ### HTTP request headers @@ -745,6 +887,77 @@ Name | Type | Description | Notes [**AsposeResponse**](AsposeResponse.md) +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **downloadFile** +> File downloadFile(path, storageName, versionId) + +Download file + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **path** | **String**| File path e.g. '/folder/file.ext' | + **storageName** | **String**| Storage name | [optional] + **versionId** | **String**| File version ID to download | [optional] + +### Return type + +**File** + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: multipart/form-data + + +# **getBookmark** +> BookmarkResponse getBookmark(name, bookmarkPath, folder, storage) + +Read document bookmark. + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **String**| The document name. | + **bookmarkPath** | **String**| The bookmark path. | + **folder** | **String**| The document folder. | [optional] + **storage** | **String**| The document storage. | [optional] + +### Return type + +[**BookmarkResponse**](BookmarkResponse.md) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **getBookmarks** +> BookmarksResponse getBookmarks(name, bookmarkPath, folder, storage) + +Read document bookmarks node list. + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **String**| The document name. | + **bookmarkPath** | **String**| The bookmark path. | + **folder** | **String**| The document folder. | [optional] + **storage** | **String**| The document storage. | [optional] + +### Return type + +[**BookmarksResponse**](BookmarksResponse.md) + ### HTTP request headers - **Content-Type**: application/json @@ -800,19 +1013,19 @@ Name | Type | Description | Notes # **getDiscUsage** -> DiscUsageResponse getDiscUsage(storage) +> DiscUsage getDiscUsage(storageName) -Check the disk usage of the current account +Get disc usage ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **storage** | **String**| User's storage name | [optional] + **storageName** | **String**| Storage name | [optional] ### Return type -[**DiscUsageResponse**](DiscUsageResponse.md) +[**DiscUsage**](DiscUsage.md) ### HTTP request headers @@ -907,6 +1120,29 @@ Name | Type | Description | Notes [**AttachmentsResponse**](AttachmentsResponse.md) +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **getDocumentBookmarks** +> BookmarksResponse getDocumentBookmarks(name, folder, storage) + +Read document bookmarks tree. + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **String**| The document name. | + **folder** | **String**| The document folder. | [optional] + **storage** | **String**| The document storage. | [optional] + +### Return type + +[**BookmarksResponse**](BookmarksResponse.md) + ### HTTP request headers - **Content-Type**: application/json @@ -1489,19 +1725,20 @@ Name | Type | Description | Notes - **Content-Type**: application/json - **Accept**: application/json - -# **getDownload** -> File getDownload(path, versionId, storage) + +# **getDownloadDocumentAttachmentByIndex** +> File getDownloadDocumentAttachmentByIndex(name, attachmentIndex, storage, folder) -Download a specific file +Download document attachment content by its index. ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **path** | **String**| Path of the file including the file name and extension e.g. /file.ext | - **versionId** | **String**| File's version | [optional] - **storage** | **String**| User's storage name | [optional] + **name** | **String**| The document name. | + **attachmentIndex** | **Integer**| The attachment index. | + **storage** | **String**| The document storage. | [optional] + **folder** | **String**| The document folder. | [optional] ### Return type @@ -1512,18 +1749,39 @@ Name | Type | Description | Notes - **Content-Type**: application/json - **Accept**: multipart/form-data - -# **getDownloadDocumentAttachmentByIndex** -> File getDownloadDocumentAttachmentByIndex(name, attachmentIndex, storage, folder) + +# **getEpubInStorageToPdf** +> File getEpubInStorageToPdf(srcPath, storage) -Download document attachment content by its index. +Convert EPUB file (located on storage) to PDF format and return resulting file in response. + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **srcPath** | **String**| Full source filename (ex. /folder1/folder2/template.epub) | + **storage** | **String**| The document storage. | [optional] + +### Return type + +**File** + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: multipart/form-data + + +# **getExportFieldsFromPdfToFdfInStorage** +> File getExportFieldsFromPdfToFdfInStorage(name, storage, folder) + +Export fields from from PDF in storage to FDF file. ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| The document name. | - **attachmentIndex** | **Integer**| The attachment index. | **storage** | **String**| The document storage. | [optional] **folder** | **String**| The document folder. | [optional] @@ -1536,18 +1794,42 @@ Name | Type | Description | Notes - **Content-Type**: application/json - **Accept**: multipart/form-data - -# **getEpubInStorageToPdf** -> File getEpubInStorageToPdf(srcPath, storage) + +# **getExportFieldsFromPdfToXfdfInStorage** +> File getExportFieldsFromPdfToXfdfInStorage(name, storage, folder) -Convert EPUB file (located on storage) to PDF format and return resulting file in response. +Export fields from from PDF in storage to XFDF file. ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **srcPath** | **String**| Full source filename (ex. /folder1/folder2/template.epub) | + **name** | **String**| The document name. | + **storage** | **String**| The document storage. | [optional] + **folder** | **String**| The document folder. | [optional] + +### Return type + +**File** + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: multipart/form-data + + +# **getExportFieldsFromPdfToXmlInStorage** +> File getExportFieldsFromPdfToXmlInStorage(name, storage, folder) + +Export fields from from PDF in storage to XML file. + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **String**| The document name. | **storage** | **String**| The document storage. | [optional] + **folder** | **String**| The document folder. | [optional] ### Return type @@ -1569,7 +1851,7 @@ Get document field by name. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| The document name. | - **fieldName** | **String**| The field name/ | + **fieldName** | **String**| The field name (name should be encoded). | **storage** | **String**| The document storage. | [optional] **folder** | **String**| The document folder. | [optional] @@ -1627,7 +1909,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: multipart/form-data + - **Accept**: application/json # **getFileAttachmentAnnotationData** @@ -1653,6 +1935,50 @@ Name | Type | Description | Notes - **Content-Type**: application/json - **Accept**: multipart/form-data + +# **getFileVersions** +> FileVersions getFileVersions(path, storageName) + +Get file versions + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **path** | **String**| File path e.g. '/file.ext' | + **storageName** | **String**| Storage name | [optional] + +### Return type + +[**FileVersions**](FileVersions.md) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **getFilesList** +> FilesList getFilesList(path, storageName) + +Get all files and folders within a folder + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **path** | **String**| Folder path e.g. '/folder' | + **storageName** | **String**| Storage name | [optional] + +### Return type + +[**FilesList**](FilesList.md) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + # **getFreeTextAnnotation** > FreeTextAnnotationResponse getFreeTextAnnotation(name, annotationId, storage, folder) @@ -1753,7 +2079,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: multipart/form-data + - **Accept**: application/json # **getImageExtractAsGif** @@ -1767,8 +2093,8 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| The document name. | **imageId** | **String**| Image ID. | - **width** | **Integer**| The converted image width. | [optional] - **height** | **Integer**| The converted image height. | [optional] + **width** | **Integer**| The converted image width. | [optional] [default to 0] + **height** | **Integer**| The converted image height. | [optional] [default to 0] **storage** | **String**| The document storage. | [optional] **folder** | **String**| The document folder. | [optional] @@ -1793,8 +2119,8 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| The document name. | **imageId** | **String**| Image ID. | - **width** | **Integer**| The converted image width. | [optional] - **height** | **Integer**| The converted image height. | [optional] + **width** | **Integer**| The converted image width. | [optional] [default to 0] + **height** | **Integer**| The converted image height. | [optional] [default to 0] **storage** | **String**| The document storage. | [optional] **folder** | **String**| The document folder. | [optional] @@ -1819,8 +2145,8 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| The document name. | **imageId** | **String**| Image ID. | - **width** | **Integer**| The converted image width. | [optional] - **height** | **Integer**| The converted image height. | [optional] + **width** | **Integer**| The converted image width. | [optional] [default to 0] + **height** | **Integer**| The converted image height. | [optional] [default to 0] **storage** | **String**| The document storage. | [optional] **folder** | **String**| The document folder. | [optional] @@ -1845,8 +2171,8 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| The document name. | **imageId** | **String**| Image ID. | - **width** | **Integer**| The converted image width. | [optional] - **height** | **Integer**| The converted image height. | [optional] + **width** | **Integer**| The converted image width. | [optional] [default to 0] + **height** | **Integer**| The converted image height. | [optional] [default to 0] **storage** | **String**| The document storage. | [optional] **folder** | **String**| The document folder. | [optional] @@ -1883,68 +2209,96 @@ Name | Type | Description | Notes - **Content-Type**: application/json - **Accept**: application/json - -# **getInkAnnotation** -> InkAnnotationResponse getInkAnnotation(name, annotationId, storage, folder) + +# **getImportFieldsFromFdfInStorage** +> File getImportFieldsFromFdfInStorage(name, fdfFilePath, storage, folder) -Read document page ink annotation by ID. +Update fields from FDF file in storage. ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| The document name. | - **annotationId** | **String**| The annotation ID. | + **fdfFilePath** | **String**| The Fdf file path. | **storage** | **String**| The document storage. | [optional] **folder** | **String**| The document folder. | [optional] ### Return type -[**InkAnnotationResponse**](InkAnnotationResponse.md) +**File** ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json + - **Accept**: multipart/form-data - -# **getIsExist** -> FileExistResponse getIsExist(path, versionId, storage) + +# **getImportFieldsFromXfdfInStorage** +> File getImportFieldsFromXfdfInStorage(name, xfdfFilePath, storage, folder) -Check if a specific file or folder exists +Update fields from XFDF file in storage. ### 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] + **name** | **String**| The document name. | + **xfdfFilePath** | **String**| The XFDF file path. | + **storage** | **String**| The document storage. | [optional] + **folder** | **String**| The document folder. | [optional] ### Return type -[**FileExistResponse**](FileExistResponse.md) +**File** ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json + - **Accept**: multipart/form-data + + +# **getImportFieldsFromXmlInStorage** +> File getImportFieldsFromXmlInStorage(name, xmlFilePath, storage, folder) + +Import from XML file (located on storage) to PDF format and return resulting file in response. + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **String**| The document name. | + **xmlFilePath** | **String**| Full source filename (ex. /folder1/folder2/template.xml) | + **storage** | **String**| The document storage. | [optional] + **folder** | **String**| The document folder. | [optional] + +### Return type - -# **getIsStorageExist** -> StorageExistResponse getIsStorageExist(name) +**File** + +### HTTP request headers -Check if storage exists + - **Content-Type**: application/json + - **Accept**: multipart/form-data + + +# **getInkAnnotation** +> InkAnnotationResponse getInkAnnotation(name, annotationId, storage, folder) + +Read document page ink annotation by ID. ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **String**| Storage name | + **name** | **String**| The document name. | + **annotationId** | **String**| The annotation ID. | + **storage** | **String**| The document storage. | [optional] + **folder** | **String**| The document folder. | [optional] ### Return type -[**StorageExistResponse**](StorageExistResponse.md) +[**InkAnnotationResponse**](InkAnnotationResponse.md) ### HTTP request headers @@ -2016,50 +2370,6 @@ 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 - - **Accept**: application/json - - -# **getListFiles** -> FilesResponse getListFiles(path, storage) - -Get the file listing of a specific folder - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **path** | **String**| Start with name of storage e.g. root folder '/'or some folder '/folder1/..' | [optional] [default to /] - **storage** | **String**| User's storage name | [optional] - -### Return type - -[**FilesResponse**](FilesResponse.md) - ### HTTP request headers - **Content-Type**: application/json @@ -2133,7 +2443,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: multipart/form-data + - **Accept**: application/json # **getPageAnnotations** @@ -2219,8 +2529,8 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| The document name. | **pageNumber** | **Integer**| The page number. | - **width** | **Integer**| The converted image width. | [optional] - **height** | **Integer**| The converted image height. | [optional] + **width** | **Integer**| The converted image width. | [optional] [default to 0] + **height** | **Integer**| The converted image height. | [optional] [default to 0] **folder** | **String**| The document folder. | [optional] **storage** | **String**| The document storage. | [optional] @@ -2245,8 +2555,8 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| The document name. | **pageNumber** | **Integer**| The page number. | - **width** | **Integer**| The converted image width. | [optional] - **height** | **Integer**| The converted image height. | [optional] + **width** | **Integer**| The converted image width. | [optional] [default to 0] + **height** | **Integer**| The converted image height. | [optional] [default to 0] **folder** | **String**| The document folder. | [optional] **storage** | **String**| The document storage. | [optional] @@ -2271,8 +2581,8 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| The document name. | **pageNumber** | **Integer**| The page number. | - **width** | **Integer**| The converted image width. | [optional] - **height** | **Integer**| The converted image height. | [optional] + **width** | **Integer**| The converted image width. | [optional] [default to 0] + **height** | **Integer**| The converted image height. | [optional] [default to 0] **folder** | **String**| The document folder. | [optional] **storage** | **String**| The document storage. | [optional] @@ -2297,8 +2607,8 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| The document name. | **pageNumber** | **Integer**| The page number. | - **width** | **Integer**| The converted image width. | [optional] - **height** | **Integer**| The converted image height. | [optional] + **width** | **Integer**| The converted image width. | [optional] [default to 0] + **height** | **Integer**| The converted image height. | [optional] [default to 0] **folder** | **String**| The document folder. | [optional] **storage** | **String**| The document storage. | [optional] @@ -2323,8 +2633,8 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| The document name. | **pageNumber** | **Integer**| The page number. | - **width** | **Integer**| The converted image width. | [optional] - **height** | **Integer**| The converted image height. | [optional] + **width** | **Integer**| The converted image width. | [optional] [default to 0] + **height** | **Integer**| The converted image height. | [optional] [default to 0] **folder** | **String**| The document folder. | [optional] **storage** | **String**| The document storage. | [optional] @@ -2349,8 +2659,8 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| The document name. | **pageNumber** | **Integer**| The page number. | - **width** | **Integer**| The converted image width. | [optional] - **height** | **Integer**| The converted image height. | [optional] + **width** | **Integer**| The converted image width. | [optional] [default to 0] + **height** | **Integer**| The converted image height. | [optional] [default to 0] **folder** | **String**| The document folder. | [optional] **storage** | **String**| The document storage. | [optional] @@ -2862,7 +3172,7 @@ Name | Type | Description | Notes **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] + **splitRects** | **Boolean**| Split result fragments (default is true). | [optional] [default to true] **folder** | **String**| The document folder. | [optional] **storage** | **String**| The document storage. | [optional] @@ -2980,11 +3290,11 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| The document name. | **addReturnToLineEnd** | **Boolean**| Add return to line end. | [optional] - **format** | **String**| Allows to specify .doc or .docx file format. | [optional] + **format** | **String**| Allows to specify .doc or .docx file format. | [optional] [enum: Doc, DocX] **imageResolutionX** | **Integer**| Image resolution X. | [optional] **imageResolutionY** | **Integer**| Image resolution Y. | [optional] **maxDistanceBetweenTextLines** | **Double**| Max distance between text lines. | [optional] - **mode** | **String**| Allows to control how a PDF document is converted into a word processing document. | [optional] + **mode** | **String**| Allows to control how a PDF document is converted into a word processing document. | [optional] [enum: Textbox, Flow] **recognizeBullets** | **Boolean**| Recognize bullets. | [optional] **relativeHorizontalProximity** | **Double**| Relative horizontal proximity. | [optional] **folder** | **String**| The document folder. | [optional] @@ -3010,7 +3320,7 @@ Converts PDF document (located on storage) to EPUB format and returns resulting Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| The document name. | - **contentRecognitionMode** | **String**| Property 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] [enum: Flow, PdfFlow, Fixed] **folder** | **String**| The document folder. | [optional] **storage** | **String**| The document storage. | [optional] @@ -3038,7 +3348,7 @@ Name | Type | Description | Notes **compressSvgGraphicsIfAny** | **Boolean**| The flag that indicates whether found SVG graphics(if any) will be compressed(zipped) into SVGZ format during saving. | [optional] **convertMarkedContentToLayers** | **Boolean**| 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] **defaultFontName** | **String**| 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] - **documentType** | **String**| Result document type. | [optional] + **documentType** | **String**| Result document type. | [optional] [enum: Xhtml, Html5] **fixedLayout** | **Boolean**| The value indicating whether that HTML is created as fixed layout. | [optional] **imageResolution** | **Integer**| Resolution for image rendering. | [optional] **minimalLineWidth** | **Integer**| 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] @@ -3046,16 +3356,16 @@ Name | Type | Description | Notes **splitCssIntoPages** | **Boolean**| 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] **splitIntoPages** | **Boolean**| 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] **useZOrder** | **Boolean**| 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] - **antialiasingProcessing** | **String**| The parameter defines required antialiasing measures during conversion of compound background images from PDF to HTML. | [optional] + **antialiasingProcessing** | **String**| The parameter defines required antialiasing measures during conversion of compound background images from PDF to HTML. | [optional] [enum: NoAdditionalProcessing, TryCorrectResultHtml] **cssClassNamesPrefix** | **String**| 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] **explicitListOfSavedPages** | **List<Integer>**| 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] - **fontEncodingStrategy** | **String**| Defines encoding special rule to tune PDF decoding for current document. | [optional] - **fontSavingMode** | **String**| Defines font saving mode that will be used during saving of PDF to desirable format. | [optional] - **htmlMarkupGenerationMode** | **String**| 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] - **lettersPositioningMethod** | **String**| The mode of positioning of letters in words in result HTML. | [optional] + **fontEncodingStrategy** | **String**| Defines encoding special rule to tune PDF decoding for current document. | [optional] [enum: Default, DecreaseToUnicodePriorityLevel] + **fontSavingMode** | **String**| Defines font saving mode that will be used during saving of PDF to desirable format. | [optional] [enum: AlwaysSaveAsWOFF, AlwaysSaveAsTTF, AlwaysSaveAsEOT, SaveInAllFormats] + **htmlMarkupGenerationMode** | **String**| 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] [enum: WriteAllHtml, WriteOnlyBodyContent] + **lettersPositioningMethod** | **String**| The mode of positioning of letters in words in result HTML. | [optional] [enum: UseEmUnitsAndCompensationOfRoundingErrorsInCss, UsePixelUnitsInCssLetterSpacingForIE] **pagesFlowTypeDependsOnViewersScreenSize** | **Boolean**| 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] - **partsEmbeddingMode** | **String**| 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] - **rasterImagesSavingMode** | **String**| Converted PDF can contain raster images This parameter defines how they should be handled during conversion of PDF to HTML. | [optional] + **partsEmbeddingMode** | **String**| 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] [enum: EmbedAllIntoHtml, EmbedCssOnly, NoEmbedding] + **rasterImagesSavingMode** | **String**| Converted PDF can contain raster images This parameter defines how they should be handled during conversion of PDF to HTML. | [optional] [enum: AsPngImagesEmbeddedIntoSvg, AsExternalPngFilesReferencedViaSvg, AsEmbeddedPartsOfPngPageBackground] **removeEmptyAreasOnTopAndBottom** | **Boolean**| Defines whether in created HTML will be removed top and bottom empty area without any content (if any). | [optional] **saveShadowedTextsAsTransparentTexts** | **Boolean**| 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] **saveTransparentTexts** | **Boolean**| 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] @@ -3132,7 +3442,7 @@ Converts PDF document (located on storage) to PdfA format and returns resulting Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| The document name. | - **type** | **String**| Type of PdfA format. | + **type** | **String**| Type of PdfA format. | [enum: PDFA1A, PDFA1B] **folder** | **String**| The document folder. | [optional] **storage** | **String**| The document storage. | [optional] @@ -3206,13 +3516,13 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| The document name. | **brightness** | **Double**| Image brightness. | [optional] - **compression** | **String**| Tiff compression. Possible values are: LZW, CCITT4, CCITT3, RLE, None. | [optional] - **colorDepth** | **String**| Image color depth. Possible valuse are: Default, Format8bpp, Format4bpp, Format1bpp. | [optional] + **compression** | **String**| Tiff compression. Possible values are: LZW, CCITT4, CCITT3, RLE, None. | [optional] [enum: LZW, CCITT4, CCITT3, RLE, None] + **colorDepth** | **String**| Image color depth. Possible valuse are: Default, Format8bpp, Format4bpp, Format1bpp. | [optional] [enum: Default, Format8bpp, Format4bpp, Format1bpp] **leftMargin** | **Integer**| Left image margin. | [optional] **rightMargin** | **Integer**| Right image margin. | [optional] **topMargin** | **Integer**| Top image margin. | [optional] **bottomMargin** | **Integer**| Bottom image margin. | [optional] - **orientation** | **String**| Image orientation. Possible values are: None, Landscape, Portait. | [optional] + **orientation** | **String**| Image orientation. Possible values are: None, Landscape, Portait. | [optional] [enum: None, Landscape, Portrait] **skipBlankPages** | **Boolean**| Skip blank pages flag. | [optional] **width** | **Integer**| Image width. | [optional] **height** | **Integer**| Image height. | [optional] @@ -3472,7 +3782,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: multipart/form-data + - **Accept**: application/json # **getScreenAnnotationData** @@ -3520,7 +3830,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: multipart/form-data + - **Accept**: application/json # **getSoundAnnotationData** @@ -3737,7 +4047,7 @@ Name | Type | Description | Notes **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] + **splitRects** | **Boolean**| Split result fragments (default is true). | [optional] [default to true] **folder** | **String**| The document folder. | [optional] **storage** | **String**| The document storage. | [optional] @@ -3957,34 +4267,130 @@ Name | Type | Description | Notes ### Return type -**File** +**File** + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: multipart/form-data + + +# **moveFile** +> moveFile(srcPath, destPath, srcStorageName, destStorageName, versionId) + +Move file + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **srcPath** | **String**| Source file path e.g. '/src.ext' | + **destPath** | **String**| Destination file path e.g. '/dest.ext' | + **srcStorageName** | **String**| Source storage name | [optional] + **destStorageName** | **String**| Destination storage name | [optional] + **versionId** | **String**| File version ID to move | [optional] + +### Return type + +null (empty response body) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **moveFolder** +> moveFolder(srcPath, destPath, srcStorageName, destStorageName) + +Move folder + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **srcPath** | **String**| Folder path to move e.g. '/folder' | + **destPath** | **String**| Destination folder path to move to e.g '/dst' | + **srcStorageName** | **String**| Source storage name | [optional] + **destStorageName** | **String**| Destination storage name | [optional] + +### Return type + +null (empty response body) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **objectExists** +> ObjectExist objectExists(path, storageName, versionId) + +Check if file or folder exists + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **path** | **String**| File or folder path e.g. '/file.ext' or '/folder' | + **storageName** | **String**| Storage name | [optional] + **versionId** | **String**| File version ID | [optional] + +### Return type + +[**ObjectExist**](ObjectExist.md) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **postAppendDocument** +> DocumentResponse postAppendDocument(name, appendFile, startPage, endPage, storage, folder) + +Append document to existing one. + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **String**| The original document name. | + **appendFile** | **String**| Append file server path. | + **startPage** | **Integer**| Appending start page. | [optional] [default to 0] + **endPage** | **Integer**| Appending end page. | [optional] [default to 0] + **storage** | **String**| The documents storage. | [optional] + **folder** | **String**| The original document folder. | [optional] + +### Return type + +[**DocumentResponse**](DocumentResponse.md) ### HTTP request headers - **Content-Type**: application/json - - **Accept**: multipart/form-data + - **Accept**: application/json - -# **postAppendDocument** -> DocumentResponse postAppendDocument(name, appendDocument, appendFile, startPage, endPage, storage, folder) + +# **postBookmark** +> BookmarksResponse postBookmark(name, bookmarkPath, bookmarks, folder, storage) -Append document to existing one. +Add document bookmarks. ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **String**| The original document name. | - **appendDocument** | [**AppendDocument**](AppendDocument.md)| with the append document data. | [optional] - **appendFile** | **String**| Append file server path. | [optional] - **startPage** | **Integer**| Appending start page. | [optional] [default to 0] - **endPage** | **Integer**| Appending end page. | [optional] [default to 0] - **storage** | **String**| The documents storage. | [optional] - **folder** | **String**| The original document folder. | [optional] + **name** | **String**| The document name. | + **bookmarkPath** | **String**| The bookmark path. | + **bookmarks** | [**List<Bookmark>**](Bookmark.md)| The array of bookmark. | + **folder** | **String**| The document folder. | [optional] + **storage** | **String**| The document storage. | [optional] ### Return type -[**DocumentResponse**](DocumentResponse.md) +[**BookmarksResponse**](BookmarksResponse.md) ### HTTP request headers @@ -4029,7 +4435,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| The document name. | **page** | **Integer**| Document page number. | - **field** | [**Field**](Field.md)| with the field data. | [optional] + **field** | [**Field**](Field.md)| Field with the field data. | **storage** | **String**| The document storage. | [optional] **folder** | **String**| The document folder. | [optional] @@ -4233,8 +4639,8 @@ Name | Type | Description | Notes **name** | **String**| Document name. | **userPassword** | **String**| User password (encrypted Base64). | **ownerPassword** | **String**| Owner password (encrypted Base64). | - **cryptoAlgorithm** | **String**| Cryptographic algorithm, see for details. | - **permissionsFlags** | [**List<PermissionsFlags>**](PermissionsFlags.md)| Array of document permissions, see for details. | [optional] + **cryptoAlgorithm** | **String**| Cryptographic algorithm, see CryptoAlgorithm for details. | [enum: RC4x40, RC4x128, AESx128, AESx256] + **permissionsFlags** | [**List<PermissionsFlags>**](PermissionsFlags.md)| Array of document permissions, see PermissionsFlags for details. | [optional] **usePdf20** | **Boolean**| Support for revision 6 (Extension 8). | [optional] **storage** | **String**| The document storage. | [optional] **folder** | **String**| The document folder. | [optional] @@ -4274,26 +4680,44 @@ Name | Type | Description | Notes - **Content-Type**: application/json - **Accept**: application/json - -# **postInsertImage** -> AsposeResponse postInsertImage(name, pageNumber, llx, lly, urx, ury, imageFilePath, storage, folder, image) + +# **postImportFieldsFromFdf** +> AsposeResponse postImportFieldsFromFdf(name, storage, folder, fdfData) -Insert image to document page. +Update fields from FDF file in request. ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| The document name. | - **pageNumber** | **Integer**| The page number. | - **llx** | **Double**| Coordinate lower left X. | - **lly** | **Double**| Coordinate lower left Y. | - **urx** | **Double**| Coordinate upper right X. | - **ury** | **Double**| Coordinate upper right Y. | - **imageFilePath** | **String**| Path to image file if specified. Request content is used otherwise. | [optional] **storage** | **String**| The document storage. | [optional] **folder** | **String**| The document folder. | [optional] - **image** | [****](.md)| Image file. | [optional] + **fdfData** | [****](.md)| Fdf file. | [optional] + +### Return type + +[**AsposeResponse**](AsposeResponse.md) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **postImportFieldsFromXfdf** +> AsposeResponse postImportFieldsFromXfdf(name, storage, folder, xfdfData) + +Update fields from XFDF file in request. + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **String**| The document name. | + **storage** | **String**| The document storage. | [optional] + **folder** | **String**| The document folder. | [optional] + **xfdfData** | [****](.md)| Xfdf file. | [optional] ### Return type @@ -4304,21 +4728,20 @@ Name | Type | Description | Notes - **Content-Type**: application/json - **Accept**: application/json - -# **postMoveFile** -> AsposeResponse postMoveFile(src, dest, versionId, storage, destStorage) + +# **postImportFieldsFromXml** +> AsposeResponse postImportFieldsFromXml(name, storage, folder, xmlData) -Move a specific file +Update fields from XML file in request. ### 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] + **name** | **String**| The document name. | + **storage** | **String**| The document storage. | [optional] + **folder** | **String**| The document folder. | [optional] + **xmlData** | [****](.md)| Xml file. | [optional] ### Return type @@ -4329,20 +4752,26 @@ Name | Type | Description | Notes - **Content-Type**: application/json - **Accept**: application/json - -# **postMoveFolder** -> AsposeResponse postMoveFolder(src, dest, storage, destStorage) + +# **postInsertImage** +> AsposeResponse postInsertImage(name, pageNumber, llx, lly, urx, ury, imageFilePath, storage, folder, image) -Move a specific folder +Insert image to document page. ### 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] + **name** | **String**| The document name. | + **pageNumber** | **Integer**| The page number. | + **llx** | **Double**| Coordinate lower left X. | + **lly** | **Double**| Coordinate lower left Y. | + **urx** | **Double**| Coordinate upper right X. | + **ury** | **Double**| Coordinate upper right Y. | + **imageFilePath** | **String**| Path to image file if specified. Request content is used otherwise. | [optional] + **storage** | **String**| The document storage. | [optional] + **folder** | **String**| The document folder. | [optional] + **image** | [****](.md)| Image file. | [optional] ### Return type @@ -4389,7 +4818,7 @@ Optimize document. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| The document name. | - **options** | [**OptimizeOptions**](OptimizeOptions.md)| The optimization options. | [optional] + **options** | [**OptimizeOptions**](OptimizeOptions.md)| The optimization options. | **storage** | **String**| The document storage. | [optional] **folder** | **String**| The document folder. | [optional] @@ -5054,7 +5483,7 @@ Name | Type | Description | Notes # **postSignDocument** -> AsposeResponse postSignDocument(name, signature, storage, folder) +> AsposeResponse postSignDocument(name, sign, storage, folder) Sign document. @@ -5063,7 +5492,7 @@ Sign document. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| The document name. | - **signature** | [**Signature**](Signature.md)| Signature object containing signature data. | [optional] + **sign** | [**Signature**](Signature.md)| Signature object containing signature data. | **storage** | **String**| The document storage. | [optional] **folder** | **String**| The document folder. | [optional] @@ -5078,7 +5507,7 @@ Name | Type | Description | Notes # **postSignPage** -> AsposeResponse postSignPage(name, pageNumber, signature, storage, folder) +> AsposeResponse postSignPage(name, pageNumber, sign, storage, folder) Sign page. @@ -5088,7 +5517,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| The document name. | **pageNumber** | **Integer**| The page number. | - **signature** | [**Signature**](Signature.md)| Signature object containing signature data. | [optional] + **sign** | [**Signature**](Signature.md)| Signature object containing signature data. | **storage** | **String**| The document storage. | [optional] **folder** | **String**| The document folder. | [optional] @@ -5162,7 +5591,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| The document name. | **pageNumber** | **Integer**| Number of page (starting from 1). | - **paragraph** | [**Paragraph**](Paragraph.md)| Paragraph data. | [optional] + **paragraph** | [**Paragraph**](Paragraph.md)| Paragraph data. | **folder** | **String**| Document folder. | [optional] **storage** | **String**| The document storage. | [optional] @@ -5196,6 +5625,31 @@ Name | Type | Description | Notes [**AsposeResponse**](AsposeResponse.md) +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **putBookmark** +> BookmarkResponse putBookmark(name, bookmarkPath, bookmark, folder, storage) + +Update document bookmark. + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **String**| The document name. | + **bookmarkPath** | **String**| The bookmark path. | + **bookmark** | [**Bookmark**](Bookmark.md)| The bookmark. | + **folder** | **String**| The document folder. | [optional] + **storage** | **String**| The document storage. | [optional] + +### Return type + +[**BookmarkResponse**](BookmarkResponse.md) + ### HTTP request headers - **Content-Type**: application/json @@ -5277,20 +5731,43 @@ Name | Type | Description | Notes - **Content-Type**: application/json - **Accept**: application/json - -# **putCreate** -> AsposeResponse putCreate(path, file, versionId, storage) + +# **putCreateDocument** +> DocumentResponse putCreateDocument(name, storage, folder) -Upload a specific file +Create empty document. ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **path** | **String**| Path where to upload including filename and extension e.g. /file.ext or /Folder 1/file.ext | - **file** | **File**| File to upload | - **versionId** | **String**| Source file's version | [optional] - **storage** | **String**| User's storage name | [optional] + **name** | **String**| The new document name. | + **storage** | **String**| The document storage. | [optional] + **folder** | **String**| The new document folder. | [optional] + +### Return type + +[**DocumentResponse**](DocumentResponse.md) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **putDecryptDocument** +> AsposeResponse putDecryptDocument(outPath, password, storage, file) + +Decrypt document from content. + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **outPath** | **String**| Full resulting filename (ex. /folder1/folder2/result.doc) | + **password** | **String**| The password (encrypted Base64). | + **storage** | **String**| The document storage. | [optional] + **file** | **File**| A file to be derypted. | [optional] ### Return type @@ -5301,42 +5778,48 @@ Name | Type | Description | Notes - **Content-Type**: application/json - **Accept**: application/json - -# **putCreateDocument** -> DocumentResponse putCreateDocument(name, storage, folder) + +# **putEncryptDocument** +> AsposeResponse putEncryptDocument(outPath, userPassword, ownerPassword, cryptoAlgorithm, permissionsFlags, usePdf20, storage, file) -Create empty document. +Encrypt document from content. ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **String**| The new document name. | + **outPath** | **String**| Full resulting filename (ex. /folder1/folder2/result.doc) | + **userPassword** | **String**| User password (encrypted Base64). | + **ownerPassword** | **String**| Owner password (encrypted Base64). | + **cryptoAlgorithm** | **String**| Cryptographic algorithm, see CryptoAlgorithm for details. | [enum: RC4x40, RC4x128, AESx128, AESx256] + **permissionsFlags** | [**List<PermissionsFlags>**](PermissionsFlags.md)| Array of document permissions, see PermissionsFlags for details. | [optional] + **usePdf20** | **Boolean**| Support for revision 6 (Extension 8). | [optional] **storage** | **String**| The document storage. | [optional] - **folder** | **String**| The new document folder. | [optional] + **file** | **File**| A file to be encrypted. | [optional] ### Return type -[**DocumentResponse**](DocumentResponse.md) +[**AsposeResponse**](AsposeResponse.md) ### HTTP request headers - **Content-Type**: application/json - **Accept**: application/json - -# **putCreateFolder** -> AsposeResponse putCreateFolder(path, storage, destStorage) + +# **putEpubInStorageToPdf** +> AsposeResponse putEpubInStorageToPdf(name, srcPath, storage, dstFolder) -Create the folder +Convert EPUB file (located on storage) to PDF format and upload resulting file to storage. ### 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] + **name** | **String**| The document name. | + **srcPath** | **String**| Full source filename (ex. /folder1/folder2/template.epub) | + **storage** | **String**| The document storage. | [optional] + **dstFolder** | **String**| The destination document folder. | [optional] ### Return type @@ -5347,20 +5830,20 @@ Name | Type | Description | Notes - **Content-Type**: application/json - **Accept**: application/json - -# **putDecryptDocument** -> AsposeResponse putDecryptDocument(outPath, password, storage, file) + +# **putExportFieldsFromPdfToFdfInStorage** +> AsposeResponse putExportFieldsFromPdfToFdfInStorage(name, fdfOutputFilePath, storage, folder) -Decrypt document from content. +Export fields from from PDF in storage to FDF file in storage. ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **outPath** | **String**| Full resulting filename (ex. /folder1/folder2/result.doc) | - **password** | **String**| The password (encrypted Base64). | + **name** | **String**| The document name. | + **fdfOutputFilePath** | **String**| The output Fdf file path. | **storage** | **String**| The document storage. | [optional] - **file** | **File**| A file to be derypted. | [optional] + **folder** | **String**| The document folder. | [optional] ### Return type @@ -5371,24 +5854,20 @@ Name | Type | Description | Notes - **Content-Type**: application/json - **Accept**: application/json - -# **putEncryptDocument** -> AsposeResponse putEncryptDocument(outPath, userPassword, ownerPassword, cryptoAlgorithm, permissionsFlags, usePdf20, storage, file) + +# **putExportFieldsFromPdfToXfdfInStorage** +> AsposeResponse putExportFieldsFromPdfToXfdfInStorage(name, xfdfOutputFilePath, storage, folder) -Encrypt document from content. +Export fields from from PDF in storage to XFDF file in storage. ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **outPath** | **String**| Full resulting filename (ex. /folder1/folder2/result.doc) | - **userPassword** | **String**| User password (encrypted Base64). | - **ownerPassword** | **String**| Owner password (encrypted Base64). | - **cryptoAlgorithm** | **String**| Cryptographic algorithm, see for details. | - **permissionsFlags** | [**List<PermissionsFlags>**](PermissionsFlags.md)| Array of document permissions, see for details. | [optional] - **usePdf20** | **Boolean**| Support for revision 6 (Extension 8). | [optional] + **name** | **String**| The document name. | + **xfdfOutputFilePath** | **String**| The output xfdf file path. | **storage** | **String**| The document storage. | [optional] - **file** | **File**| A file to be encrypted. | [optional] + **folder** | **String**| The document folder. | [optional] ### Return type @@ -5399,20 +5878,20 @@ Name | Type | Description | Notes - **Content-Type**: application/json - **Accept**: application/json - -# **putEpubInStorageToPdf** -> AsposeResponse putEpubInStorageToPdf(name, srcPath, storage, dstFolder) + +# **putExportFieldsFromPdfToXmlInStorage** +> AsposeResponse putExportFieldsFromPdfToXmlInStorage(name, xmlOutputFilePath, storage, folder) -Convert EPUB file (located on storage) to PDF format and upload resulting file to storage. +Export fields from from PDF in storage to XML file in storage. ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| The document name. | - **srcPath** | **String**| Full source filename (ex. /folder1/folder2/template.epub) | + **xmlOutputFilePath** | **String**| The output xml file path. | **storage** | **String**| The document storage. | [optional] - **dstFolder** | **String**| The destination document folder. | [optional] + **folder** | **String**| The document folder. | [optional] ### Return type @@ -5590,8 +6069,8 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| The document name. | **imageId** | **String**| Image ID. | - **width** | **Integer**| The converted image width. | [optional] - **height** | **Integer**| The converted image height. | [optional] + **width** | **Integer**| The converted image width. | [optional] [default to 0] + **height** | **Integer**| The converted image height. | [optional] [default to 0] **storage** | **String**| The document storage. | [optional] **folder** | **String**| The document folder. | [optional] **destFolder** | **String**| The document folder. | [optional] @@ -5617,8 +6096,8 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| The document name. | **imageId** | **String**| Image ID. | - **width** | **Integer**| The converted image width. | [optional] - **height** | **Integer**| The converted image height. | [optional] + **width** | **Integer**| The converted image width. | [optional] [default to 0] + **height** | **Integer**| The converted image height. | [optional] [default to 0] **storage** | **String**| The document storage. | [optional] **folder** | **String**| The document folder. | [optional] **destFolder** | **String**| The document folder. | [optional] @@ -5644,8 +6123,8 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| The document name. | **imageId** | **String**| Image ID. | - **width** | **Integer**| The converted image width. | [optional] - **height** | **Integer**| The converted image height. | [optional] + **width** | **Integer**| The converted image width. | [optional] [default to 0] + **height** | **Integer**| The converted image height. | [optional] [default to 0] **storage** | **String**| The document storage. | [optional] **folder** | **String**| The document folder. | [optional] **destFolder** | **String**| The document folder. | [optional] @@ -5671,8 +6150,8 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| The document name. | **imageId** | **String**| Image ID. | - **width** | **Integer**| The converted image width. | [optional] - **height** | **Integer**| The converted image height. | [optional] + **width** | **Integer**| The converted image width. | [optional] [default to 0] + **height** | **Integer**| The converted image height. | [optional] [default to 0] **storage** | **String**| The document storage. | [optional] **folder** | **String**| The document folder. | [optional] **destFolder** | **String**| The document folder. | [optional] @@ -5697,7 +6176,7 @@ Convert image file (located on storage) to PDF format and upload resulting file Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| The document name. | - **imageTemplates** | [**ImageTemplatesRequest**](ImageTemplatesRequest.md)| Image templates | + **imageTemplates** | [**ImageTemplatesRequest**](ImageTemplatesRequest.md)| ImageTemplatesRequestImage templates | **dstFolder** | **String**| The destination document folder. | [optional] **storage** | **String**| The document storage. | [optional] @@ -5722,8 +6201,8 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| The document name. | **pageNumber** | **Integer**| The page number. | - **width** | **Integer**| The converted image width. | [optional] - **height** | **Integer**| The converted image height. | [optional] + **width** | **Integer**| The converted image width. | [optional] [default to 0] + **height** | **Integer**| The converted image height. | [optional] [default to 0] **storage** | **String**| The document storage. | [optional] **folder** | **String**| The document folder. | [optional] **destFolder** | **String**| The document folder. | [optional] @@ -5749,9 +6228,9 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| The document name. | **pageNumber** | **Integer**| The page number. | - **width** | **Integer**| The converted image width. | [optional] - **height** | **Integer**| The converted image height. | [optional] - **storage** | **String**| | [optional] + **width** | **Integer**| The converted image width. | [optional] [default to 0] + **height** | **Integer**| The converted image height. | [optional] [default to 0] + **storage** | **String**| The document storage. | [optional] **folder** | **String**| The document folder. | [optional] **destFolder** | **String**| The document folder. | [optional] @@ -5776,8 +6255,8 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| The document name. | **pageNumber** | **Integer**| The page number. | - **width** | **Integer**| The converted image width. | [optional] - **height** | **Integer**| The converted image height. | [optional] + **width** | **Integer**| The converted image width. | [optional] [default to 0] + **height** | **Integer**| The converted image height. | [optional] [default to 0] **storage** | **String**| The document storage. | [optional] **folder** | **String**| The document folder. | [optional] **destFolder** | **String**| The document folder. | [optional] @@ -5803,8 +6282,8 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| The document name. | **pageNumber** | **Integer**| The page number. | - **width** | **Integer**| The converted image width. | [optional] - **height** | **Integer**| The converted image height. | [optional] + **width** | **Integer**| The converted image width. | [optional] [default to 0] + **height** | **Integer**| The converted image height. | [optional] [default to 0] **storage** | **String**| The document storage. | [optional] **folder** | **String**| The document folder. | [optional] **destFolder** | **String**| The document folder. | [optional] @@ -5813,6 +6292,78 @@ Name | Type | Description | Notes [**AsposeResponse**](AsposeResponse.md) +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **putImportFieldsFromFdfInStorage** +> AsposeResponse putImportFieldsFromFdfInStorage(name, fdfFilePath, storage, folder) + +Update fields from FDF file in storage. + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **String**| The document name. | + **fdfFilePath** | **String**| The Fdf file path. | + **storage** | **String**| The document storage. | [optional] + **folder** | **String**| The document folder. | [optional] + +### Return type + +[**AsposeResponse**](AsposeResponse.md) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **putImportFieldsFromXfdfInStorage** +> AsposeResponse putImportFieldsFromXfdfInStorage(name, xfdfFilePath, storage, folder) + +Update fields from XFDF file in storage. + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **String**| The document name. | + **xfdfFilePath** | **String**| The XFDF file path. | + **storage** | **String**| The document storage. | [optional] + **folder** | **String**| The document folder. | [optional] + +### Return type + +[**AsposeResponse**](AsposeResponse.md) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **putImportFieldsFromXmlInStorage** +> AsposeResponse putImportFieldsFromXmlInStorage(name, xmlFilePath, storage, folder) + +Update fields from XML file in storage. + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **String**| The document name. | + **xmlFilePath** | **String**| Full source filename (ex. /folder1/folder2/template.xml) | + **storage** | **String**| The document storage. | [optional] + **folder** | **String**| The document folder. | [optional] + +### Return type + +[**AsposeResponse**](AsposeResponse.md) + ### HTTP request headers - **Content-Type**: application/json @@ -5928,7 +6479,7 @@ Merge a list of documents. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| Resulting documen name. | - **mergeDocuments** | [**MergeDocuments**](MergeDocuments.md)| with a list of documents. | [optional] + **mergeDocuments** | [**MergeDocuments**](MergeDocuments.md)| MergeDocuments with a list of documents. | **storage** | **String**| Resulting document storage. | [optional] **folder** | **String**| Resulting document folder. | [optional] @@ -6002,7 +6553,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| The document name. | **pageNumber** | **Integer**| The page number. | - **stamp** | [**Stamp**](Stamp.md)| with data. | + **stamp** | [**Stamp**](Stamp.md)| Stamp with data. | **storage** | **String**| The document storage. | [optional] **folder** | **String**| The document folder. | [optional] @@ -6028,8 +6579,8 @@ Name | Type | Description | Notes **name** | **String**| The document name. | **pageNumber** | **Integer**| The page number. | **outPath** | **String**| The out path of result image. | - **width** | **Integer**| The converted image width. | [optional] - **height** | **Integer**| The converted image height. | [optional] + **width** | **Integer**| The converted image width. | [optional] [default to 0] + **height** | **Integer**| The converted image height. | [optional] [default to 0] **folder** | **String**| The document folder. | [optional] **storage** | **String**| The document storage. | [optional] @@ -6055,8 +6606,8 @@ Name | Type | Description | Notes **name** | **String**| The document name. | **pageNumber** | **Integer**| The page number. | **outPath** | **String**| The out path of result image. | - **width** | **Integer**| The converted image width. | [optional] - **height** | **Integer**| The converted image height. | [optional] + **width** | **Integer**| The converted image width. | [optional] [default to 0] + **height** | **Integer**| The converted image height. | [optional] [default to 0] **folder** | **String**| The document folder. | [optional] **storage** | **String**| The document storage. | [optional] @@ -6082,8 +6633,8 @@ Name | Type | Description | Notes **name** | **String**| The document name. | **pageNumber** | **Integer**| The page number. | **outPath** | **String**| The out path of result image. | - **width** | **Integer**| The converted image width. | [optional] - **height** | **Integer**| The converted image height. | [optional] + **width** | **Integer**| The converted image width. | [optional] [default to 0] + **height** | **Integer**| The converted image height. | [optional] [default to 0] **folder** | **String**| The document folder. | [optional] **storage** | **String**| The document storage. | [optional] @@ -6109,8 +6660,8 @@ Name | Type | Description | Notes **name** | **String**| The document name. | **pageNumber** | **Integer**| The page number. | **outPath** | **String**| The out path of result image. | - **width** | **Integer**| The converted image width. | [optional] - **height** | **Integer**| The converted image height. | [optional] + **width** | **Integer**| The converted image width. | [optional] [default to 0] + **height** | **Integer**| The converted image height. | [optional] [default to 0] **folder** | **String**| The document folder. | [optional] **storage** | **String**| The document storage. | [optional] @@ -6136,8 +6687,8 @@ Name | Type | Description | Notes **name** | **String**| The document name. | **pageNumber** | **Integer**| The page number. | **outPath** | **String**| The out path of result image. | - **width** | **Integer**| The converted image width. | [optional] - **height** | **Integer**| The converted image height. | [optional] + **width** | **Integer**| The converted image width. | [optional] [default to 0] + **height** | **Integer**| The converted image height. | [optional] [default to 0] **folder** | **String**| The document folder. | [optional] **storage** | **String**| The document storage. | [optional] @@ -6163,8 +6714,8 @@ Name | Type | Description | Notes **name** | **String**| The document name. | **pageNumber** | **Integer**| The page number. | **outPath** | **String**| The out path of result image. | - **width** | **Integer**| The converted image width. | [optional] - **height** | **Integer**| The converted image height. | [optional] + **width** | **Integer**| The converted image width. | [optional] [default to 0] + **height** | **Integer**| The converted image height. | [optional] [default to 0] **folder** | **String**| The document folder. | [optional] **storage** | **String**| The document storage. | [optional] @@ -6213,11 +6764,11 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **outPath** | **String**| Full resulting filename (ex. /folder1/folder2/result.doc) | **addReturnToLineEnd** | **Boolean**| Add return to line end. | [optional] - **format** | **String**| Allows to specify .doc or .docx file format. | [optional] + **format** | **String**| Allows to specify .doc or .docx file format. | [optional] [enum: Doc, DocX] **imageResolutionX** | **Integer**| Image resolution X. | [optional] **imageResolutionY** | **Integer**| Image resolution Y. | [optional] **maxDistanceBetweenTextLines** | **Double**| Max distance between text lines. | [optional] - **mode** | **String**| Allows to control how a PDF document is converted into a word processing document. | [optional] + **mode** | **String**| Allows to control how a PDF document is converted into a word processing document. | [optional] [enum: Textbox, Flow] **recognizeBullets** | **Boolean**| Recognize bullets. | [optional] **relativeHorizontalProximity** | **Double**| Relative horizontal proximity. | [optional] **storage** | **String**| The document storage. | [optional] @@ -6243,7 +6794,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**| Property 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] [enum: Flow, PdfFlow, Fixed] **storage** | **String**| The document storage. | [optional] **file** | **File**| A file to be converted. | [optional] @@ -6271,7 +6822,7 @@ Name | Type | Description | Notes **compressSvgGraphicsIfAny** | **Boolean**| The flag that indicates whether found SVG graphics(if any) will be compressed(zipped) into SVGZ format during saving. | [optional] **convertMarkedContentToLayers** | **Boolean**| 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] **defaultFontName** | **String**| 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] - **documentType** | **String**| Result document type. | [optional] + **documentType** | **String**| Result document type. | [optional] [enum: Xhtml, Html5] **fixedLayout** | **Boolean**| The value indicating whether that HTML is created as fixed layout. | [optional] **imageResolution** | **Integer**| Resolution for image rendering. | [optional] **minimalLineWidth** | **Integer**| 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] @@ -6279,16 +6830,16 @@ Name | Type | Description | Notes **splitCssIntoPages** | **Boolean**| 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] **splitIntoPages** | **Boolean**| 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] **useZOrder** | **Boolean**| 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] - **antialiasingProcessing** | **String**| The parameter defines required antialiasing measures during conversion of compound background images from PDF to HTML. | [optional] + **antialiasingProcessing** | **String**| The parameter defines required antialiasing measures during conversion of compound background images from PDF to HTML. | [optional] [enum: NoAdditionalProcessing, TryCorrectResultHtml] **cssClassNamesPrefix** | **String**| 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] **explicitListOfSavedPages** | **List<Integer>**| 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] - **fontEncodingStrategy** | **String**| Defines encoding special rule to tune PDF decoding for current document. | [optional] - **fontSavingMode** | **String**| Defines font saving mode that will be used during saving of PDF to desirable format. | [optional] - **htmlMarkupGenerationMode** | **String**| 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] - **lettersPositioningMethod** | **String**| The mode of positioning of letters in words in result HTML. | [optional] + **fontEncodingStrategy** | **String**| Defines encoding special rule to tune PDF decoding for current document. | [optional] [enum: Default, DecreaseToUnicodePriorityLevel] + **fontSavingMode** | **String**| Defines font saving mode that will be used during saving of PDF to desirable format. | [optional] [enum: AlwaysSaveAsWOFF, AlwaysSaveAsTTF, AlwaysSaveAsEOT, SaveInAllFormats] + **htmlMarkupGenerationMode** | **String**| 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] [enum: WriteAllHtml, WriteOnlyBodyContent] + **lettersPositioningMethod** | **String**| The mode of positioning of letters in words in result HTML. | [optional] [enum: UseEmUnitsAndCompensationOfRoundingErrorsInCss, UsePixelUnitsInCssLetterSpacingForIE] **pagesFlowTypeDependsOnViewersScreenSize** | **Boolean**| 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] - **partsEmbeddingMode** | **String**| 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] - **rasterImagesSavingMode** | **String**| Converted PDF can contain raster images This parameter defines how they should be handled during conversion of PDF to HTML. | [optional] + **partsEmbeddingMode** | **String**| 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] [enum: EmbedAllIntoHtml, EmbedCssOnly, NoEmbedding] + **rasterImagesSavingMode** | **String**| Converted PDF can contain raster images This parameter defines how they should be handled during conversion of PDF to HTML. | [optional] [enum: AsPngImagesEmbeddedIntoSvg, AsExternalPngFilesReferencedViaSvg, AsEmbeddedPartsOfPngPageBackground] **removeEmptyAreasOnTopAndBottom** | **Boolean**| Defines whether in created HTML will be removed top and bottom empty area without any content (if any). | [optional] **saveShadowedTextsAsTransparentTexts** | **Boolean**| 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] **saveTransparentTexts** | **Boolean**| 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] @@ -6365,7 +6916,7 @@ Converts PDF document (in request content) to PdfA format and uploads resulting Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **outPath** | **String**| Full resulting filename (ex. /folder1/folder2/result.pdf) | - **type** | **String**| Type of PdfA format. | + **type** | **String**| Type of PdfA format. | [enum: PDFA1A, PDFA1B] **storage** | **String**| The document storage. | [optional] **file** | **File**| A file to be converted. | [optional] @@ -6438,13 +6989,13 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **outPath** | **String**| Full resulting filename (ex. /folder1/folder2/result.tiff) | **brightness** | **Double**| Image brightness. | [optional] - **compression** | **String**| Tiff compression. Possible values are: LZW, CCITT4, CCITT3, RLE, None. | [optional] - **colorDepth** | **String**| Image color depth. Possible valuse are: Default, Format8bpp, Format4bpp, Format1bpp. | [optional] + **compression** | **String**| Tiff compression. Possible values are: LZW, CCITT4, CCITT3, RLE, None. | [optional] [enum: LZW, CCITT4, CCITT3, RLE, None] + **colorDepth** | **String**| Image color depth. Possible valuse are: Default, Format8bpp, Format4bpp, Format1bpp. | [optional] [enum: Default, Format8bpp, Format4bpp, Format1bpp] **leftMargin** | **Integer**| Left image margin. | [optional] **rightMargin** | **Integer**| Right image margin. | [optional] **topMargin** | **Integer**| Top image margin. | [optional] **bottomMargin** | **Integer**| Bottom image margin. | [optional] - **orientation** | **String**| Image orientation. Possible values are: None, Landscape, Portait. | [optional] + **orientation** | **String**| Image orientation. Possible values are: None, Landscape, Portait. | [optional] [enum: None, Landscape, Portrait] **skipBlankPages** | **Boolean**| Skip blank pages flag. | [optional] **width** | **Integer**| Image width. | [optional] **height** | **Integer**| Image height. | [optional] @@ -6577,11 +7128,11 @@ Name | Type | Description | Notes **name** | **String**| The document name. | **outPath** | **String**| Full resulting filename (ex. /folder1/folder2/result.doc) | **addReturnToLineEnd** | **Boolean**| Add return to line end. | [optional] - **format** | **String**| Allows to specify .doc or .docx file format. | [optional] + **format** | **String**| Allows to specify .doc or .docx file format. | [optional] [enum: Doc, DocX] **imageResolutionX** | **Integer**| Image resolution X. | [optional] **imageResolutionY** | **Integer**| Image resolution Y. | [optional] **maxDistanceBetweenTextLines** | **Double**| Max distance between text lines. | [optional] - **mode** | **String**| Allows to control how a PDF document is converted into a word processing document. | [optional] + **mode** | **String**| Allows to control how a PDF document is converted into a word processing document. | [optional] [enum: Textbox, Flow] **recognizeBullets** | **Boolean**| Recognize bullets. | [optional] **relativeHorizontalProximity** | **Double**| Relative horizontal proximity. | [optional] **folder** | **String**| The document folder. | [optional] @@ -6608,7 +7159,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| The document name. | **outPath** | **String**| Full resulting filename (ex. /folder1/folder2/result.epub) | - **contentRecognitionMode** | **String**| Property 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] [enum: Flow, PdfFlow, Fixed] **folder** | **String**| The document folder. | [optional] **storage** | **String**| The document storage. | [optional] @@ -6637,7 +7188,7 @@ Name | Type | Description | Notes **compressSvgGraphicsIfAny** | **Boolean**| The flag that indicates whether found SVG graphics(if any) will be compressed(zipped) into SVGZ format during saving. | [optional] **convertMarkedContentToLayers** | **Boolean**| 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] **defaultFontName** | **String**| 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] - **documentType** | **String**| Result document type. | [optional] + **documentType** | **String**| Result document type. | [optional] [enum: Xhtml, Html5] **fixedLayout** | **Boolean**| The value indicating whether that HTML is created as fixed layout. | [optional] **imageResolution** | **Integer**| Resolution for image rendering. | [optional] **minimalLineWidth** | **Integer**| 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] @@ -6645,16 +7196,16 @@ Name | Type | Description | Notes **splitCssIntoPages** | **Boolean**| 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] **splitIntoPages** | **Boolean**| 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] **useZOrder** | **Boolean**| 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] - **antialiasingProcessing** | **String**| The parameter defines required antialiasing measures during conversion of compound background images from PDF to HTML. | [optional] + **antialiasingProcessing** | **String**| The parameter defines required antialiasing measures during conversion of compound background images from PDF to HTML. | [optional] [enum: NoAdditionalProcessing, TryCorrectResultHtml] **cssClassNamesPrefix** | **String**| 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] **explicitListOfSavedPages** | **List<Integer>**| 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] - **fontEncodingStrategy** | **String**| Defines encoding special rule to tune PDF decoding for current document. | [optional] - **fontSavingMode** | **String**| Defines font saving mode that will be used during saving of PDF to desirable format. | [optional] - **htmlMarkupGenerationMode** | **String**| 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] - **lettersPositioningMethod** | **String**| The mode of positioning of letters in words in result HTML. | [optional] + **fontEncodingStrategy** | **String**| Defines encoding special rule to tune PDF decoding for current document. | [optional] [enum: Default, DecreaseToUnicodePriorityLevel] + **fontSavingMode** | **String**| Defines font saving mode that will be used during saving of PDF to desirable format. | [optional] [enum: AlwaysSaveAsWOFF, AlwaysSaveAsTTF, AlwaysSaveAsEOT, SaveInAllFormats] + **htmlMarkupGenerationMode** | **String**| 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] [enum: WriteAllHtml, WriteOnlyBodyContent] + **lettersPositioningMethod** | **String**| The mode of positioning of letters in words in result HTML. | [optional] [enum: UseEmUnitsAndCompensationOfRoundingErrorsInCss, UsePixelUnitsInCssLetterSpacingForIE] **pagesFlowTypeDependsOnViewersScreenSize** | **Boolean**| 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] - **partsEmbeddingMode** | **String**| 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] - **rasterImagesSavingMode** | **String**| Converted PDF can contain raster images This parameter defines how they should be handled during conversion of PDF to HTML. | [optional] + **partsEmbeddingMode** | **String**| 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] [enum: EmbedAllIntoHtml, EmbedCssOnly, NoEmbedding] + **rasterImagesSavingMode** | **String**| Converted PDF can contain raster images This parameter defines how they should be handled during conversion of PDF to HTML. | [optional] [enum: AsPngImagesEmbeddedIntoSvg, AsExternalPngFilesReferencedViaSvg, AsEmbeddedPartsOfPngPageBackground] **removeEmptyAreasOnTopAndBottom** | **Boolean**| Defines whether in created HTML will be removed top and bottom empty area without any content (if any). | [optional] **saveShadowedTextsAsTransparentTexts** | **Boolean**| 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] **saveTransparentTexts** | **Boolean**| 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] @@ -6734,7 +7285,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| The document name. | **outPath** | **String**| Full resulting filename (ex. /folder1/folder2/result.pdf) | - **type** | **String**| Type of PdfA format. | + **type** | **String**| Type of PdfA format. | [enum: PDFA1A, PDFA1B] **folder** | **String**| The document folder. | [optional] **storage** | **String**| The document storage. | [optional] @@ -6810,13 +7361,13 @@ Name | Type | Description | Notes **name** | **String**| The document name. | **outPath** | **String**| Full resulting filename (ex. /folder1/folder2/result.tiff) | **brightness** | **Double**| Image brightness. | [optional] - **compression** | **String**| Tiff compression. Possible values are: LZW, CCITT4, CCITT3, RLE, None. | [optional] - **colorDepth** | **String**| Image color depth. Possible valuse are: Default, Format8bpp, Format4bpp, Format1bpp. | [optional] + **compression** | **String**| Tiff compression. Possible values are: LZW, CCITT4, CCITT3, RLE, None. | [optional] [enum: LZW, CCITT4, CCITT3, RLE, None] + **colorDepth** | **String**| Image color depth. Possible valuse are: Default, Format8bpp, Format4bpp, Format1bpp. | [optional] [enum: Default, Format8bpp, Format4bpp, Format1bpp] **leftMargin** | **Integer**| Left image margin. | [optional] **rightMargin** | **Integer**| Right image margin. | [optional] **topMargin** | **Integer**| Top image margin. | [optional] **bottomMargin** | **Integer**| Bottom image margin. | [optional] - **orientation** | **String**| Image orientation. Possible values are: None, Landscape, Portait. | [optional] + **orientation** | **String**| Image orientation. Possible values are: None, Landscape, Portait. | [optional] [enum: None, Landscape, Portrait] **skipBlankPages** | **Boolean**| Skip blank pages flag. | [optional] **width** | **Integer**| Image width. | [optional] **height** | **Integer**| Image height. | [optional] @@ -7026,7 +7577,7 @@ Update privilege document. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| The document name. | - **privileges** | [**DocumentPrivilege**](DocumentPrivilege.md)| Document privileges. | [optional] + **privileges** | [**DocumentPrivilege**](DocumentPrivilege.md)| Document privileges. DocumentPrivilege | **storage** | **String**| The document storage. | [optional] **folder** | **String**| The document folder. | [optional] @@ -7507,7 +8058,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| The document name. | **fieldName** | **String**| The name of a field to be updated. | - **field** | [**Field**](Field.md)| with the field data. | [optional] + **field** | [**Field**](Field.md)| Field with the field data. | **storage** | **String**| The document storage. | [optional] **folder** | **String**| The document folder. | [optional] @@ -7531,7 +8082,7 @@ Update fields. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| The document name. | - **fields** | [**Fields**](Fields.md)| with the fields data. | [optional] + **fields** | [**Fields**](Fields.md)| Fields with the fields data. | **storage** | **String**| The document storage. | [optional] **folder** | **String**| The document folder. | [optional] @@ -7695,3 +8246,47 @@ Name | Type | Description | Notes - **Content-Type**: application/json - **Accept**: application/json + +# **storageExists** +> StorageExist storageExists(storageName) + +Check if storage exists + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storageName** | **String**| Storage name | + +### Return type + +[**StorageExist**](StorageExist.md) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **uploadFile** +> FilesUploadResult uploadFile(path, file, storageName) + +Upload file + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **path** | **String**| Path where to upload including filename and extension e.g. /file.ext or /Folder 1/file.ext If the content is multipart and path does not contains the file name it tries to get them from filename parameter from Content-Disposition header. | + **file** | **File**| File to upload | + **storageName** | **String**| Storage name | [optional] + +### Return type + +[**FilesUploadResult**](FilesUploadResult.md) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + diff --git a/docs/PdfPageStamp.md b/docs/PdfPageStamp.md index 0d79b92..96f5a7a 100644 --- a/docs/PdfPageStamp.md +++ b/docs/PdfPageStamp.md @@ -15,7 +15,7 @@ Name | Type | Description | Notes **background** | **Boolean** | Sets or gets a bool value that indicates the content is stamped as background. If the value is true, the stamp content is layed at the bottom. By defalt, the value is false, the stamp content is layed at the top. | [optional] **horizontalAlignment** | [**HorizontalAlignment**](HorizontalAlignment.md) | Gets or sets Horizontal alignment of stamp on the page. | [optional] **opacity** | **Double** | Gets or sets a value to indicate the stamp opacity. The value is from 0.0 to 1.0. By default the value is 1.0. | [optional] -**rotate** | [**Rotation**](Rotation.md) | Sets or gets the rotation of stamp content according values. Note. This property is for set angles which are multiples of 90 degrees (0, 90, 180, 270 degrees). To set arbitrary angle use RotateAngle property. If angle set by ArbitraryAngle is not multiple of 90 then Rotate property returns Rotation.None. | [optional] +**rotate** | [**Rotation**](Rotation.md) | Sets or gets the rotation of stamp content according Rotation values. Note. This property is for set angles which are multiples of 90 degrees (0, 90, 180, 270 degrees). To set arbitrary angle use RotateAngle property. If angle set by ArbitraryAngle is not multiple of 90 then Rotate property returns Rotation.None. | [optional] **rotateAngle** | **Double** | Gets or sets rotate angle of stamp in degrees. This property allows to set arbitrary rotate angle. | [optional] **xIndent** | **Double** | Horizontal stamp coordinate, starting from the left. | [optional] **yIndent** | **Double** | Vertical stamp coordinate, starting from the bottom. | [optional] diff --git a/docs/PolyAnnotation.md b/docs/PolyAnnotation.md index 074a071..f05c6d4 100644 --- a/docs/PolyAnnotation.md +++ b/docs/PolyAnnotation.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **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] **intent** | [**PolyIntent**](PolyIntent.md) | Gets or sets the intent of the polygon or polyline annotation. | [optional] -**vertices** | [**List<Point>**](Point.md) | Gets or sets an array of points representing the horizontal and vertical coordinates of each vertex. | +**vertices** | [**List<Point>**](Point.md) | Gets or sets an array of points representing the horizontal and vertical coordinates of each vertex. | [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] @@ -20,7 +20,7 @@ Name | Type | Description | Notes **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** | [**Rectangle**](Rectangle.md) | Gets Rect of the annotation. | +**rect** | [**Rectangle**](Rectangle.md) | Gets Rect of the annotation. | [optional] **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 0bf082f..0668f93 100644 --- a/docs/PolyLineAnnotation.md +++ b/docs/PolyLineAnnotation.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **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] **intent** | [**PolyIntent**](PolyIntent.md) | Gets or sets the intent of the polygon or polyline annotation. | [optional] -**vertices** | [**List<Point>**](Point.md) | Gets or sets an array of points representing the horizontal and vertical coordinates of each vertex. | +**vertices** | [**List<Point>**](Point.md) | Gets or sets an array of points representing the horizontal and vertical coordinates of each vertex. | [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] @@ -20,7 +20,7 @@ Name | Type | Description | Notes **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** | [**Rectangle**](Rectangle.md) | Gets Rect of the annotation. | +**rect** | [**Rectangle**](Rectangle.md) | Gets Rect of the annotation. | [optional] **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/PolygonAnnotation.md b/docs/PolygonAnnotation.md index 7ee5eec..04d30b1 100644 --- a/docs/PolygonAnnotation.md +++ b/docs/PolygonAnnotation.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **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] **intent** | [**PolyIntent**](PolyIntent.md) | Gets or sets the intent of the polygon or polyline annotation. | [optional] -**vertices** | [**List<Point>**](Point.md) | Gets or sets an array of points representing the horizontal and vertical coordinates of each vertex. | +**vertices** | [**List<Point>**](Point.md) | Gets or sets an array of points representing the horizontal and vertical coordinates of each vertex. | [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] @@ -20,7 +20,7 @@ Name | Type | Description | Notes **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** | [**Rectangle**](Rectangle.md) | Gets Rect of the annotation. | +**rect** | [**Rectangle**](Rectangle.md) | Gets Rect of the annotation. | [optional] **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/PopupAnnotation.md b/docs/PopupAnnotation.md index cc1fffa..855edcc 100644 --- a/docs/PopupAnnotation.md +++ b/docs/PopupAnnotation.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes **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** | [**Rectangle**](Rectangle.md) | Gets Rect of the annotation. | +**rect** | [**Rectangle**](Rectangle.md) | Gets Rect of the annotation. | [optional] **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/PopupAnnotationWithParent.md b/docs/PopupAnnotationWithParent.md index a28b016..02f70ca 100644 --- a/docs/PopupAnnotationWithParent.md +++ b/docs/PopupAnnotationWithParent.md @@ -13,7 +13,7 @@ Name | Type | Description | Notes **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** | [**Rectangle**](Rectangle.md) | Gets Rect of the annotation. | +**rect** | [**Rectangle**](Rectangle.md) | Gets Rect of the annotation. | [optional] **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/RedactionAnnotation.md b/docs/RedactionAnnotation.md index 3ff619a..3b45816 100644 --- a/docs/RedactionAnnotation.md +++ b/docs/RedactionAnnotation.md @@ -17,7 +17,7 @@ Name | Type | Description | Notes **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** | [**Rectangle**](Rectangle.md) | Gets Rect of the annotation. | +**rect** | [**Rectangle**](Rectangle.md) | Gets Rect of the annotation. | [optional] **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/ScreenAnnotation.md b/docs/ScreenAnnotation.md index 1d33e9d..d5924e4 100644 --- a/docs/ScreenAnnotation.md +++ b/docs/ScreenAnnotation.md @@ -13,7 +13,7 @@ Name | Type | Description | Notes **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** | [**Rectangle**](Rectangle.md) | Gets Rect of the annotation. | +**rect** | [**Rectangle**](Rectangle.md) | Gets Rect of the annotation. | [optional] **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/Signature.md b/docs/Signature.md index 306a4cf..b30b118 100644 --- a/docs/Signature.md +++ b/docs/Signature.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes **reason** | **String** | Gets or sets the reason of the signature. | [optional] **contact** | **String** | Gets or sets the contact of the signature. | [optional] **location** | **String** | Gets or sets the location of the signature. | [optional] -**visible** | **Boolean** | Gets or sets a value indicating whether this is visible. Supports only when signing particular page. | +**visible** | **Boolean** | Gets or sets a value indicating whether this Signature is visible. Supports only when signing particular page. | **rectangle** | [**Rectangle**](Rectangle.md) | Gets or sets the visible rectangle of the signature. Supports only when signing particular page. | [optional] **formFieldName** | **String** | Gets or sets the name of the signature field. Supports only when signing document with particular form field. | [optional] **authority** | **String** | Gets or sets the name of the person or authority signing the document.. | [optional] diff --git a/docs/SignatureVerifyResponse.md b/docs/SignatureVerifyResponse.md index 74bf42e..68ed0c6 100644 --- a/docs/SignatureVerifyResponse.md +++ b/docs/SignatureVerifyResponse.md @@ -5,7 +5,7 @@ Represent responce containing signature verification result ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**valid** | **Boolean** | True if signature is valid and false if not | +**valid** | **Boolean** | True if signature is valid and false if not | [optional] **code** | **Integer** | Response status code. | **status** | **String** | Response status. | [optional] diff --git a/docs/SoundAnnotation.md b/docs/SoundAnnotation.md index f256464..9706edb 100644 --- a/docs/SoundAnnotation.md +++ b/docs/SoundAnnotation.md @@ -5,7 +5,7 @@ Provides SoundAnnotation. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**filePath** | **String** | A sound file path defining the sound to be played when the annotation is activated. | +**filePath** | **String** | A sound file path defining the sound to be played when the annotation is activated. | [optional] **icon** | [**SoundIcon**](SoundIcon.md) | Gets or sets an icon to be used in displaying the annotation. | [optional] **rate** | **Integer** | Gets or sets the sampling rate, in samples per second. | [optional] **channels** | **Integer** | Gets or sets the number of sound channels. | [optional] @@ -21,7 +21,7 @@ Name | Type | Description | Notes **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** | [**Rectangle**](Rectangle.md) | Gets Rect of the annotation. | +**rect** | [**Rectangle**](Rectangle.md) | Gets Rect of the annotation. | [optional] **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/SplitResultDocument.md b/docs/SplitResultDocument.md index 85a34c8..0fb7c23 100644 --- a/docs/SplitResultDocument.md +++ b/docs/SplitResultDocument.md @@ -5,7 +5,7 @@ Represents split result document, ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Integer** | Gets or sets the page number. | +**id** | **Integer** | Gets or sets the page number. | [optional] **href** | **String** | The "href" attribute contains the link's IRI. atom:link elements MUST have an href attribute, whose value MUST be a IRI reference | [optional] **rel** | **String** | atom:link elements MAY have a "rel" attribute that indicates the link relation type. If the "rel" attribute is not present, the link element MUST be interpreted as if the link relation type is "alternate". | [optional] **type** | **String** | On the link element, the "type" attribute's value is an advisory media type: it is a hint about the type of the representation that is expected to be returned when the value of the href attribute is dereferenced. Note that the type attribute does not override the actual media type returned with the representation. | [optional] diff --git a/docs/SquareAnnotation.md b/docs/SquareAnnotation.md index bd1be49..9558dea 100644 --- a/docs/SquareAnnotation.md +++ b/docs/SquareAnnotation.md @@ -17,7 +17,7 @@ Name | Type | Description | Notes **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** | [**Rectangle**](Rectangle.md) | Gets Rect of the annotation. | +**rect** | [**Rectangle**](Rectangle.md) | Gets Rect of the annotation. | [optional] **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/SquigglyAnnotation.md b/docs/SquigglyAnnotation.md index e9cf064..48501e1 100644 --- a/docs/SquigglyAnnotation.md +++ b/docs/SquigglyAnnotation.md @@ -16,7 +16,7 @@ Name | Type | Description | Notes **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** | [**Rectangle**](Rectangle.md) | Gets Rect of the annotation. | +**rect** | [**Rectangle**](Rectangle.md) | Gets Rect of the annotation. | [optional] **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/Stamp.md b/docs/Stamp.md index 30c70c1..33fcbd9 100644 --- a/docs/Stamp.md +++ b/docs/Stamp.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes **leftMargin** | **Double** | Gets or sets left margin of stamp. | [optional] **opacity** | **Double** | Gets or sets a value to indicate the stamp opacity. The value is from 0.0 to 1.0. By default the value is 1.0. | [optional] **rightMargin** | **Double** | Gets or sets right margin of stamp. | [optional] -**rotate** | [**Rotation**](Rotation.md) | Sets or gets the rotation of stamp content according values. Note. This property is for set angles which are multiples of 90 degrees (0, 90, 180, 270 degrees). To set arbitrary angle use RotateAngle property. If angle set by ArbitraryAngle is not multiple of 90 then Rotate property returns Rotation.None. | [optional] +**rotate** | [**Rotation**](Rotation.md) | Sets or gets the rotation of stamp content according Rotation values. Note. This property is for set angles which are multiples of 90 degrees (0, 90, 180, 270 degrees). To set arbitrary angle use RotateAngle property. If angle set by ArbitraryAngle is not multiple of 90 then Rotate property returns Rotation.None. | [optional] **rotateAngle** | **Double** | Gets or sets rotate angle of stamp in degrees. This property allows to set arbitrary rotate angle. | [optional] **topMargin** | **Double** | Gets or sets top margin of stamp. | [optional] **verticalAlignment** | [**VerticalAlignment**](VerticalAlignment.md) | Gets or sets vertical alignment of stamp on page. | [optional] @@ -21,7 +21,7 @@ Name | Type | Description | Notes **zoom** | **Double** | Zooming factor of the stamp. Allows to scale stamp. | [optional] **textAlignment** | [**HorizontalAlignment**](HorizontalAlignment.md) | Alignment of the text inside the stamp. | [optional] **value** | **String** | Gets or sets string value which is used as stamp on the page. | [optional] -**textState** | [**TextState**](TextState.md) | Gets text properties of the stamp. See for details. | [optional] +**textState** | [**TextState**](TextState.md) | Gets text properties of the stamp. See TextState for details. | [optional] **fileName** | **String** | Gets or sets the file name. | [optional] **width** | **Double** | Gets or sets image width. Setting this property allos to scal image horizontally. | [optional] **height** | **Double** | Gets or sets image height. Setting this image allows to scale image vertically. | [optional] diff --git a/docs/StampAnnotation.md b/docs/StampAnnotation.md index 13f0972..8b52002 100644 --- a/docs/StampAnnotation.md +++ b/docs/StampAnnotation.md @@ -18,7 +18,7 @@ Name | Type | Description | Notes **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** | [**Rectangle**](Rectangle.md) | Gets Rect of the annotation. | +**rect** | [**Rectangle**](Rectangle.md) | Gets Rect of the annotation. | [optional] **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/StampBase.md b/docs/StampBase.md index c114fcf..a4d6efe 100644 --- a/docs/StampBase.md +++ b/docs/StampBase.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **background** | **Boolean** | Sets or gets a bool value that indicates the content is stamped as background. If the value is true, the stamp content is layed at the bottom. By defalt, the value is false, the stamp content is layed at the top. | [optional] **horizontalAlignment** | [**HorizontalAlignment**](HorizontalAlignment.md) | Gets or sets Horizontal alignment of stamp on the page. | [optional] **opacity** | **Double** | Gets or sets a value to indicate the stamp opacity. The value is from 0.0 to 1.0. By default the value is 1.0. | [optional] -**rotate** | [**Rotation**](Rotation.md) | Sets or gets the rotation of stamp content according values. Note. This property is for set angles which are multiples of 90 degrees (0, 90, 180, 270 degrees). To set arbitrary angle use RotateAngle property. If angle set by ArbitraryAngle is not multiple of 90 then Rotate property returns Rotation.None. | [optional] +**rotate** | [**Rotation**](Rotation.md) | Sets or gets the rotation of stamp content according Rotation values. Note. This property is for set angles which are multiples of 90 degrees (0, 90, 180, 270 degrees). To set arbitrary angle use RotateAngle property. If angle set by ArbitraryAngle is not multiple of 90 then Rotate property returns Rotation.None. | [optional] **rotateAngle** | **Double** | Gets or sets rotate angle of stamp in degrees. This property allows to set arbitrary rotate angle. | [optional] **xIndent** | **Double** | Horizontal stamp coordinate, starting from the left. | [optional] **yIndent** | **Double** | Vertical stamp coordinate, starting from the bottom. | [optional] diff --git a/docs/StampInfo.md b/docs/StampInfo.md index 03c3182..cc8c484 100644 --- a/docs/StampInfo.md +++ b/docs/StampInfo.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes **rect** | [**Rectangle**](Rectangle.md) | Gets Rect of the annotation. | [optional] **text** | **String** | Get the text content. | [optional] **visible** | **Boolean** | Gets the stamp is visible. | [optional] -**stampType** | [**StampType**](StampType.md) | Gets stamp type. | +**stampType** | [**StampType**](StampType.md) | Gets stamp type. | [optional] **links** | [**List<Link>**](Link.md) | Link to the document. | [optional] diff --git a/docs/StorageExist.md b/docs/StorageExist.md new file mode 100644 index 0000000..44c05a8 --- /dev/null +++ b/docs/StorageExist.md @@ -0,0 +1,13 @@ + +# StorageExist +Storage exists + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**exists** | **Boolean** | Shows that the storage exists. | + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/StorageFile.md b/docs/StorageFile.md new file mode 100644 index 0000000..9d24064 --- /dev/null +++ b/docs/StorageFile.md @@ -0,0 +1,17 @@ + +# StorageFile +File or folder information + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **String** | File or folder name. | [optional] +**isFolder** | **Boolean** | True if it is a folder. | +**modifiedDate** | **String** | File or folder last modified DateTime. | [optional] +**size** | **Integer** | File or folder size. | +**path** | **String** | File or folder path. | [optional] + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/StrikeOutAnnotation.md b/docs/StrikeOutAnnotation.md index cb62955..96f3c36 100644 --- a/docs/StrikeOutAnnotation.md +++ b/docs/StrikeOutAnnotation.md @@ -16,7 +16,7 @@ Name | Type | Description | Notes **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** | [**Rectangle**](Rectangle.md) | Gets Rect of the annotation. | +**rect** | [**Rectangle**](Rectangle.md) | Gets Rect of the annotation. | [optional] **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/Table.md b/docs/Table.md index dd68a14..e57d8ce 100644 --- a/docs/Table.md +++ b/docs/Table.md @@ -13,7 +13,7 @@ Name | Type | Description | Notes **defaultCellTextState** | [**TextState**](TextState.md) | Gets or sets the default cell text state. | [optional] **defaultCellPadding** | [**MarginInfo**](MarginInfo.md) | Gets or sets the default cell padding. | [optional] **border** | [**BorderInfo**](BorderInfo.md) | Gets or sets the border. | [optional] -**rows** | [**List<Row>**](Row.md) | Sets the rows of the table. | +**rows** | [**List<Row>**](Row.md) | Sets the rows of the table. | [optional] **defaultColumnWidth** | **String** | Gets default cell border; | [optional] **defaultCellBorder** | [**BorderInfo**](BorderInfo.md) | Gets default cell border; | [optional] **broken** | [**TableBroken**](TableBroken.md) | Gets or sets table vertial broken; | [optional] diff --git a/docs/TextAnnotation.md b/docs/TextAnnotation.md index 2ca50af..f33c442 100644 --- a/docs/TextAnnotation.md +++ b/docs/TextAnnotation.md @@ -18,7 +18,7 @@ Name | Type | Description | Notes **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** | [**Rectangle**](Rectangle.md) | Gets Rect of the annotation. | +**rect** | [**Rectangle**](Rectangle.md) | Gets Rect of the annotation. | [optional] **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/TextFooter.md b/docs/TextFooter.md index 79211c8..32757e6 100644 --- a/docs/TextFooter.md +++ b/docs/TextFooter.md @@ -7,14 +7,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **textAlignment** | [**HorizontalAlignment**](HorizontalAlignment.md) | Alignment of the text inside the stamp. | [optional] **value** | **String** | Gets or sets string value which is used as stamp on the page. | [optional] -**textState** | [**TextState**](TextState.md) | Gets text properties of the stamp. See for details. | [optional] +**textState** | [**TextState**](TextState.md) | Gets text properties of the stamp. See TextState for details. | [optional] **bottomMargin** | **Double** | Gets or sets bottom margin of stamp. | [optional] **leftMargin** | **Double** | Gets or sets left margin of stamp. | [optional] **rightMargin** | **Double** | Gets or sets right margin of stamp. | [optional] **background** | **Boolean** | Sets or gets a bool value that indicates the content is stamped as background. If the value is true, the stamp content is layed at the bottom. By defalt, the value is false, the stamp content is layed at the top. | [optional] **horizontalAlignment** | [**HorizontalAlignment**](HorizontalAlignment.md) | Gets or sets Horizontal alignment of stamp on the page. | [optional] **opacity** | **Double** | Gets or sets a value to indicate the stamp opacity. The value is from 0.0 to 1.0. By default the value is 1.0. | [optional] -**rotate** | [**Rotation**](Rotation.md) | Sets or gets the rotation of stamp content according values. Note. This property is for set angles which are multiples of 90 degrees (0, 90, 180, 270 degrees). To set arbitrary angle use RotateAngle property. If angle set by ArbitraryAngle is not multiple of 90 then Rotate property returns Rotation.None. | [optional] +**rotate** | [**Rotation**](Rotation.md) | Sets or gets the rotation of stamp content according Rotation values. Note. This property is for set angles which are multiples of 90 degrees (0, 90, 180, 270 degrees). To set arbitrary angle use RotateAngle property. If angle set by ArbitraryAngle is not multiple of 90 then Rotate property returns Rotation.None. | [optional] **rotateAngle** | **Double** | Gets or sets rotate angle of stamp in degrees. This property allows to set arbitrary rotate angle. | [optional] **xIndent** | **Double** | Horizontal stamp coordinate, starting from the left. | [optional] **yIndent** | **Double** | Vertical stamp coordinate, starting from the bottom. | [optional] diff --git a/docs/TextHeader.md b/docs/TextHeader.md index 3cee724..a13bf17 100644 --- a/docs/TextHeader.md +++ b/docs/TextHeader.md @@ -7,14 +7,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **textAlignment** | [**HorizontalAlignment**](HorizontalAlignment.md) | Alignment of the text inside the stamp. | [optional] **value** | **String** | Gets or sets string value which is used as stamp on the page. | [optional] -**textState** | [**TextState**](TextState.md) | Gets text properties of the stamp. See for details. | [optional] +**textState** | [**TextState**](TextState.md) | Gets text properties of the stamp. See TextState for details. | [optional] **leftMargin** | **Double** | Gets or sets left margin of stamp. | [optional] **topMargin** | **Double** | Gets or sets top margin of stamp. | [optional] **rightMargin** | **Double** | Gets or sets right margin of stamp. | [optional] **background** | **Boolean** | Sets or gets a bool value that indicates the content is stamped as background. If the value is true, the stamp content is layed at the bottom. By defalt, the value is false, the stamp content is layed at the top. | [optional] **horizontalAlignment** | [**HorizontalAlignment**](HorizontalAlignment.md) | Gets or sets Horizontal alignment of stamp on the page. | [optional] **opacity** | **Double** | Gets or sets a value to indicate the stamp opacity. The value is from 0.0 to 1.0. By default the value is 1.0. | [optional] -**rotate** | [**Rotation**](Rotation.md) | Sets or gets the rotation of stamp content according values. Note. This property is for set angles which are multiples of 90 degrees (0, 90, 180, 270 degrees). To set arbitrary angle use RotateAngle property. If angle set by ArbitraryAngle is not multiple of 90 then Rotate property returns Rotation.None. | [optional] +**rotate** | [**Rotation**](Rotation.md) | Sets or gets the rotation of stamp content according Rotation values. Note. This property is for set angles which are multiples of 90 degrees (0, 90, 180, 270 degrees). To set arbitrary angle use RotateAngle property. If angle set by ArbitraryAngle is not multiple of 90 then Rotate property returns Rotation.None. | [optional] **rotateAngle** | **Double** | Gets or sets rotate angle of stamp in degrees. This property allows to set arbitrary rotate angle. | [optional] **xIndent** | **Double** | Horizontal stamp coordinate, starting from the left. | [optional] **yIndent** | **Double** | Vertical stamp coordinate, starting from the bottom. | [optional] diff --git a/docs/TextRect.md b/docs/TextRect.md index 242e6bd..7ff2fd0 100644 --- a/docs/TextRect.md +++ b/docs/TextRect.md @@ -10,9 +10,9 @@ Name | Type | Description | Notes **rect** | [**Rectangle**](Rectangle.md) | Rectangle of the occurrence. | [optional] **horizontalAlignment** | [**HorizontalAlignment**](HorizontalAlignment.md) | Gets or sets a horizontal alignment of text fragment. | [optional] **verticalAlignment** | [**VerticalAlignment**](VerticalAlignment.md) | Gets or sets a vertical alignment of text fragment. | [optional] -**position** | [**Position**](Position.md) | Gets or sets text position for text, represented with object. | [optional] -**baselinePosition** | [**Position**](Position.md) | Gets text position for text, represented with object. The YIndent of the Position structure represents baseline coordinate of the text fragment. | [optional] -**textState** | [**TextState**](TextState.md) | Gets or sets text state for the text that object represents. | [optional] +**position** | [**Position**](Position.md) | Gets or sets text position for text, represented with TextRect object. | [optional] +**baselinePosition** | [**Position**](Position.md) | Gets text position for text, represented with TextRect object. The YIndent of the Position structure represents baseline coordinate of the text fragment. | [optional] +**textState** | [**TextState**](TextState.md) | Gets or sets text state for the text that TextRect object represents. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/TextReplaceListRequest.md b/docs/TextReplaceListRequest.md index 9d27f80..154ee10 100644 --- a/docs/TextReplaceListRequest.md +++ b/docs/TextReplaceListRequest.md @@ -6,7 +6,7 @@ Multiple text replacements request. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **textReplaces** | [**List<TextReplace>**](TextReplace.md) | A list of text replacement settings. | -**defaultFont** | **String** | | [optional] +**defaultFont** | **String** | Name of font to use if requested font is not embedded into document. | [optional] **startIndex** | **Integer** | The index of first match to be replaced. | [optional] **countReplace** | **Integer** | The number of matches to be replaced. | [optional] diff --git a/docs/TextReplaceResponse.md b/docs/TextReplaceResponse.md index 664f5a6..b31c7c0 100644 --- a/docs/TextReplaceResponse.md +++ b/docs/TextReplaceResponse.md @@ -5,7 +5,7 @@ Represents response containing the result of text replacement ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**matches** | **Integer** | Number of matches | +**matches** | **Integer** | Number of matches | [optional] **code** | **Integer** | Response status code. | **status** | **String** | Response status. | [optional] diff --git a/docs/TextStamp.md b/docs/TextStamp.md index a924048..203db35 100644 --- a/docs/TextStamp.md +++ b/docs/TextStamp.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **textAlignment** | [**HorizontalAlignment**](HorizontalAlignment.md) | Alignment of the text inside the stamp. | [optional] **value** | **String** | Gets or sets string value which is used as stamp on the page. | [optional] -**textState** | [**TextState**](TextState.md) | Gets text properties of the stamp. See for details. | [optional] +**textState** | [**TextState**](TextState.md) | Gets text properties of the stamp. See TextState for details. | [optional] **verticalAlignment** | [**VerticalAlignment**](VerticalAlignment.md) | Gets or sets vertical alignment of stamp on page. | [optional] **bottomMargin** | **Double** | Gets or sets bottom margin of stamp. | [optional] **leftMargin** | **Double** | Gets or sets left margin of stamp. | [optional] @@ -16,7 +16,7 @@ Name | Type | Description | Notes **background** | **Boolean** | Sets or gets a bool value that indicates the content is stamped as background. If the value is true, the stamp content is layed at the bottom. By defalt, the value is false, the stamp content is layed at the top. | [optional] **horizontalAlignment** | [**HorizontalAlignment**](HorizontalAlignment.md) | Gets or sets Horizontal alignment of stamp on the page. | [optional] **opacity** | **Double** | Gets or sets a value to indicate the stamp opacity. The value is from 0.0 to 1.0. By default the value is 1.0. | [optional] -**rotate** | [**Rotation**](Rotation.md) | Sets or gets the rotation of stamp content according values. Note. This property is for set angles which are multiples of 90 degrees (0, 90, 180, 270 degrees). To set arbitrary angle use RotateAngle property. If angle set by ArbitraryAngle is not multiple of 90 then Rotate property returns Rotation.None. | [optional] +**rotate** | [**Rotation**](Rotation.md) | Sets or gets the rotation of stamp content according Rotation values. Note. This property is for set angles which are multiples of 90 degrees (0, 90, 180, 270 degrees). To set arbitrary angle use RotateAngle property. If angle set by ArbitraryAngle is not multiple of 90 then Rotate property returns Rotation.None. | [optional] **rotateAngle** | **Double** | Gets or sets rotate angle of stamp in degrees. This property allows to set arbitrary rotate angle. | [optional] **xIndent** | **Double** | Horizontal stamp coordinate, starting from the left. | [optional] **yIndent** | **Double** | Vertical stamp coordinate, starting from the bottom. | [optional] diff --git a/docs/UnderlineAnnotation.md b/docs/UnderlineAnnotation.md index 1c73cf4..24ad70f 100644 --- a/docs/UnderlineAnnotation.md +++ b/docs/UnderlineAnnotation.md @@ -16,7 +16,7 @@ Name | Type | Description | Notes **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** | [**Rectangle**](Rectangle.md) | Gets Rect of the annotation. | +**rect** | [**Rectangle**](Rectangle.md) | Gets Rect of the annotation. | [optional] **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/WordCountResponse.md b/docs/WordCountResponse.md index 3a95400..c063176 100644 --- a/docs/WordCountResponse.md +++ b/docs/WordCountResponse.md @@ -5,7 +5,7 @@ Number of words per document pages. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**wordsPerPage** | [**WordCount**](WordCount.md) | with words per page info. | [optional] +**wordsPerPage** | [**WordCount**](WordCount.md) | WordCount with words per page info. | [optional] **code** | **Integer** | Response status code. | **status** | **String** | Response status. | [optional] diff --git a/setup.json b/setup.json index 4dbc54c..537ce77 100644 --- a/setup.json +++ b/setup.json @@ -1,5 +1,5 @@ { "app_key": "", "app_sid": "", - "product_uri": "https://billing.cloud.saltov.dynabic.com/v2.0" + "product_uri": "https://api-qa.aspose.cloud/v3.0" } \ No newline at end of file diff --git a/src/main/java/com/aspose/asposecloudpdf/ApiClient.java b/src/main/java/com/aspose/asposecloudpdf/ApiClient.java index 709354a..76b9200 100644 --- a/src/main/java/com/aspose/asposecloudpdf/ApiClient.java +++ b/src/main/java/com/aspose/asposecloudpdf/ApiClient.java @@ -62,7 +62,7 @@ public class ApiClient { - private String basePath = "https://api.aspose.cloud/v2.0"; + private String basePath = "https://api.aspose.cloud/v3.0"; private boolean debugging = false; private Map defaultHeaderMap = new HashMap(); private String tempFolderPath = null; @@ -73,7 +73,6 @@ public class ApiClient { private HttpLoggingInterceptor loggingInterceptor; private String accessToken; - private String refreshToken; private String appKey; private String appSid; @@ -149,7 +148,7 @@ public String getBasePath() { /** * Set base path * - * @param basePath Base path of the URL (e.g https://api.aspose.cloud/v2.0 + * @param basePath Base path of the URL (e.g https://api.aspose.cloud/v3.0 * @return An instance of OkHttpClient */ public ApiClient setBasePath(String basePath) { @@ -211,16 +210,6 @@ public void setAccessToken(String accessToken) { this.accessToken = accessToken; } - - /** - * Set refresh token for the OAuth2 authentication. - * - * @param refreshToken Access token - */ - public void setRefreshToken(String refreshToken) - { - this.refreshToken = refreshToken; - } /** * Set the User-Agent header's value (by adding to the default header map). @@ -1010,7 +999,7 @@ public String guessContentTypeFromFile(File file) { /** * Request OAuth token */ - private void requestToken() throws ApiException + public void requestToken() throws ApiException { try { RequestBody requestBody = new FormEncodingBuilder() @@ -1019,7 +1008,7 @@ private void requestToken() throws ApiException .addEncoded("client_secret", getAppKey()) .build(); - String url = basePath.replace("/v2.0", "") + "/oauth2/token"; + String url = basePath.replace("/v3.0", "") + "/connect/token"; Request request = new Request.Builder() .url(url) .post(requestBody) @@ -1029,7 +1018,6 @@ private void requestToken() throws ApiException Response response = httpClient.newCall(request).execute(); GetAccessTokenResult result = json.deserialize(response.body().string(), GetAccessTokenResult.class); setAccessToken(result.access_token); - setRefreshToken(result.refresh_token); } catch (Exception ex) { @@ -1037,35 +1025,6 @@ private void requestToken() throws ApiException } } - /** - * Refresh OAuth token - */ - public void refreshToken() throws ApiException - { - try { - RequestBody requestBody = new FormEncodingBuilder() - .addEncoded("grant_type", "refresh_token") - .addEncoded("refresh_token", this.refreshToken) - .build(); - - String url = basePath.replace("/v2.0", "") + "/oauth2/token"; - Request request = new Request.Builder() - .url(url) - .post(requestBody) - .addHeader("Content-Type", " application/x-www-form-urlencoded") - .build(); - - Response response = httpClient.newCall(request).execute(); - GetAccessTokenResult result = json.deserialize(response.body().string(), GetAccessTokenResult.class); - setAccessToken(result.access_token); - setRefreshToken(result.refresh_token); - } - catch (Exception ex) - { - throw new ApiException(ex); - } - } - /** * Add OAuth2 header @@ -1087,6 +1046,5 @@ private void addOAuthAuthentication(Map headerParams) throws Api private class GetAccessTokenResult { public String access_token; - public String refresh_token; } } diff --git a/src/main/java/com/aspose/asposecloudpdf/api/PdfApi.java b/src/main/java/com/aspose/asposecloudpdf/api/PdfApi.java index 6cb9f1f..68a508e 100644 --- a/src/main/java/com/aspose/asposecloudpdf/api/PdfApi.java +++ b/src/main/java/com/aspose/asposecloudpdf/api/PdfApi.java @@ -38,17 +38,19 @@ import com.aspose.asposecloudpdf.model.AnnotationType; import com.aspose.asposecloudpdf.model.AnnotationsInfoResponse; -import com.aspose.asposecloudpdf.model.AppendDocument; import com.aspose.asposecloudpdf.model.AsposeResponse; import com.aspose.asposecloudpdf.model.AttachmentResponse; import com.aspose.asposecloudpdf.model.AttachmentsResponse; +import com.aspose.asposecloudpdf.model.Bookmark; +import com.aspose.asposecloudpdf.model.BookmarkResponse; +import com.aspose.asposecloudpdf.model.BookmarksResponse; import com.aspose.asposecloudpdf.model.CaretAnnotation; import com.aspose.asposecloudpdf.model.CaretAnnotationResponse; import com.aspose.asposecloudpdf.model.CaretAnnotationsResponse; 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.DiscUsage; import com.aspose.asposecloudpdf.model.DocumentPageResponse; import com.aspose.asposecloudpdf.model.DocumentPagesResponse; import com.aspose.asposecloudpdf.model.DocumentPrivilege; @@ -63,9 +65,9 @@ import com.aspose.asposecloudpdf.model.FileAttachmentAnnotation; import com.aspose.asposecloudpdf.model.FileAttachmentAnnotationResponse; import com.aspose.asposecloudpdf.model.FileAttachmentAnnotationsResponse; -import com.aspose.asposecloudpdf.model.FileExistResponse; -import com.aspose.asposecloudpdf.model.FileVersionsResponse; -import com.aspose.asposecloudpdf.model.FilesResponse; +import com.aspose.asposecloudpdf.model.FileVersions; +import com.aspose.asposecloudpdf.model.FilesList; +import com.aspose.asposecloudpdf.model.FilesUploadResult; import com.aspose.asposecloudpdf.model.FreeTextAnnotation; import com.aspose.asposecloudpdf.model.FreeTextAnnotationResponse; import com.aspose.asposecloudpdf.model.FreeTextAnnotationsResponse; @@ -91,6 +93,7 @@ import com.aspose.asposecloudpdf.model.MovieAnnotation; import com.aspose.asposecloudpdf.model.MovieAnnotationResponse; import com.aspose.asposecloudpdf.model.MovieAnnotationsResponse; +import com.aspose.asposecloudpdf.model.ObjectExist; import com.aspose.asposecloudpdf.model.OptimizeOptions; import com.aspose.asposecloudpdf.model.PageNumberStamp; import com.aspose.asposecloudpdf.model.Paragraph; @@ -128,7 +131,7 @@ import com.aspose.asposecloudpdf.model.StampAnnotationResponse; import com.aspose.asposecloudpdf.model.StampAnnotationsResponse; import com.aspose.asposecloudpdf.model.StampsInfoResponse; -import com.aspose.asposecloudpdf.model.StorageExistResponse; +import com.aspose.asposecloudpdf.model.StorageExist; import com.aspose.asposecloudpdf.model.StrikeOutAnnotation; import com.aspose.asposecloudpdf.model.StrikeOutAnnotationResponse; import com.aspose.asposecloudpdf.model.StrikeOutAnnotationsResponse; @@ -177,30 +180,34 @@ public void setApiClient(ApiClient apiClient) { } /** - * Build call for deleteAnnotation - * @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 copyFile + * @param srcPath Source file path e.g. '/folder/file.ext' (required) + * @param destPath Destination file path (required) + * @param srcStorageName Source storage name (optional) + * @param destStorageName Destination storage name (optional) + * @param versionId File version ID to copy (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 deleteAnnotationCall(String name, String annotationId, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call copyFileCall(String srcPath, String destPath, String srcStorageName, String destStorageName, String versionId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; // create path and map variables - String localVarPath = "/pdf/{name}/annotations/{annotationId}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "annotationId" + "\\}", apiClient.escapeString(annotationId.toString())); + String localVarPath = "/pdf/storage/file/copy/{srcPath}" + .replaceAll("\\{" + "srcPath" + "\\}", apiClient.escapeString(srcPath.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)); + if (destPath != null) + localVarQueryParams.addAll(apiClient.parameterToPair("destPath", destPath)); + if (srcStorageName != null) + localVarQueryParams.addAll(apiClient.parameterToPair("srcStorageName", srcStorageName)); + if (destStorageName != null) + localVarQueryParams.addAll(apiClient.parameterToPair("destStorageName", destStorageName)); + if (versionId != null) + localVarQueryParams.addAll(apiClient.parameterToPair("versionId", versionId)); Map localVarHeaderParams = new HashMap(); @@ -230,85 +237,84 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + String[] localVarAuthNames = new String[] { "JWT" }; + return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deleteAnnotationValidateBeforeCall(String name, String annotationId, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call copyFileValidateBeforeCall(String srcPath, String destPath, String srcStorageName, String destStorageName, String versionId, 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 deleteAnnotation(Async)"); + // verify the required parameter 'srcPath' is set + if (srcPath == null) { + throw new ApiException("Missing the required parameter 'srcPath' when calling copyFile(Async)"); } - // verify the required parameter 'annotationId' is set - if (annotationId == null) { - throw new ApiException("Missing the required parameter 'annotationId' when calling deleteAnnotation(Async)"); + // verify the required parameter 'destPath' is set + if (destPath == null) { + throw new ApiException("Missing the required parameter 'destPath' when calling copyFile(Async)"); } - com.squareup.okhttp.Call call = deleteAnnotationCall(name, annotationId, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = copyFileCall(srcPath, destPath, srcStorageName, destStorageName, versionId, progressListener, progressRequestListener); return call; } /** - * Delete document annotation by ID + * Copy file * - * @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 AsposeResponse + * @param srcPath Source file path e.g. '/folder/file.ext' (required) + * @param destPath Destination file path (required) + * @param srcStorageName Source storage name (optional) + * @param destStorageName Destination storage name (optional) + * @param versionId File version ID to copy (optional) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public AsposeResponse deleteAnnotation(String name, String annotationId, String storage, String folder) throws ApiException { + public void copyFile(String srcPath, String destPath, String srcStorageName, String destStorageName, String versionId) throws ApiException { try { - ApiResponse resp = deleteAnnotationWithHttpInfo(name, annotationId, storage, folder); - return resp.getData(); + copyFileWithHttpInfo(srcPath, destPath, srcStorageName, destStorageName, versionId); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = deleteAnnotationWithHttpInfo(name, annotationId, storage, folder); - return resp.getData(); + apiClient.requestToken(); + copyFileWithHttpInfo(srcPath, destPath, srcStorageName, destStorageName, versionId); } throw ex; } } /** - * Delete document annotation by ID + * Copy file * - * @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<AsposeResponse> + * @param srcPath Source file path e.g. '/folder/file.ext' (required) + * @param destPath Destination file path (required) + * @param srcStorageName Source storage name (optional) + * @param destStorageName Destination storage name (optional) + * @param versionId File version ID to copy (optional) + * @return ApiResponse<Void> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse deleteAnnotationWithHttpInfo(String name, String annotationId, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = deleteAnnotationValidateBeforeCall(name, annotationId, storage, folder, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + public ApiResponse copyFileWithHttpInfo(String srcPath, String destPath, String srcStorageName, String destStorageName, String versionId) throws ApiException { + com.squareup.okhttp.Call call = copyFileValidateBeforeCall(srcPath, destPath, srcStorageName, destStorageName, versionId, null, null); + return apiClient.execute(call); } /** - * Delete document annotation by ID (asynchronously) + * Copy file (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 srcPath Source file path e.g. '/folder/file.ext' (required) + * @param destPath Destination file path (required) + * @param srcStorageName Source storage name (optional) + * @param destStorageName Destination storage name (optional) + * @param versionId File version ID to copy (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 deleteAnnotationAsync(String name, String annotationId, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call copyFileAsync(String srcPath, String destPath, String srcStorageName, String destStorageName, String versionId, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -329,34 +335,36 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = deleteAnnotationValidateBeforeCall(name, annotationId, storage, folder, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); + com.squareup.okhttp.Call call = copyFileValidateBeforeCall(srcPath, destPath, srcStorageName, destStorageName, versionId, progressListener, progressRequestListener); + apiClient.executeAsync(call, callback); return call; } /** - * Build call for deleteDocumentAnnotations - * @param name The document name. (required) - * @param storage The document storage. (optional) - * @param folder The document folder. (optional) + * Build call for copyFolder + * @param srcPath Source folder path e.g. '/src' (required) + * @param destPath Destination folder path e.g. '/dst' (required) + * @param srcStorageName Source storage name (optional) + * @param destStorageName 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 deleteDocumentAnnotationsCall(String name, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call copyFolderCall(String srcPath, String destPath, String srcStorageName, String destStorageName, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; // create path and map variables - String localVarPath = "/pdf/{name}/annotations" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + String localVarPath = "/pdf/storage/folder/copy/{srcPath}" + .replaceAll("\\{" + "srcPath" + "\\}", apiClient.escapeString(srcPath.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)); + if (destPath != null) + localVarQueryParams.addAll(apiClient.parameterToPair("destPath", destPath)); + if (srcStorageName != null) + localVarQueryParams.addAll(apiClient.parameterToPair("srcStorageName", srcStorageName)); + if (destStorageName != null) + localVarQueryParams.addAll(apiClient.parameterToPair("destStorageName", destStorageName)); Map localVarHeaderParams = new HashMap(); @@ -386,77 +394,81 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + String[] localVarAuthNames = new String[] { "JWT" }; + return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deleteDocumentAnnotationsValidateBeforeCall(String name, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call copyFolderValidateBeforeCall(String srcPath, String destPath, String srcStorageName, String destStorageName, 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 deleteDocumentAnnotations(Async)"); + // verify the required parameter 'srcPath' is set + if (srcPath == null) { + throw new ApiException("Missing the required parameter 'srcPath' when calling copyFolder(Async)"); + } + + // verify the required parameter 'destPath' is set + if (destPath == null) { + throw new ApiException("Missing the required parameter 'destPath' when calling copyFolder(Async)"); } - com.squareup.okhttp.Call call = deleteDocumentAnnotationsCall(name, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = copyFolderCall(srcPath, destPath, srcStorageName, destStorageName, progressListener, progressRequestListener); return call; } /** - * Delete all annotations from the document + * Copy folder * - * @param name The document name. (required) - * @param storage The document storage. (optional) - * @param folder The document folder. (optional) - * @return AsposeResponse + * @param srcPath Source folder path e.g. '/src' (required) + * @param destPath Destination folder path e.g. '/dst' (required) + * @param srcStorageName Source storage name (optional) + * @param destStorageName Destination storage name (optional) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public AsposeResponse deleteDocumentAnnotations(String name, String storage, String folder) throws ApiException { + public void copyFolder(String srcPath, String destPath, String srcStorageName, String destStorageName) throws ApiException { try { - ApiResponse resp = deleteDocumentAnnotationsWithHttpInfo(name, storage, folder); - return resp.getData(); + copyFolderWithHttpInfo(srcPath, destPath, srcStorageName, destStorageName); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = deleteDocumentAnnotationsWithHttpInfo(name, storage, folder); - return resp.getData(); + apiClient.requestToken(); + copyFolderWithHttpInfo(srcPath, destPath, srcStorageName, destStorageName); } throw ex; } } /** - * Delete all annotations from the document + * Copy folder * - * @param name The document name. (required) - * @param storage The document storage. (optional) - * @param folder The document folder. (optional) - * @return ApiResponse<AsposeResponse> + * @param srcPath Source folder path e.g. '/src' (required) + * @param destPath Destination folder path e.g. '/dst' (required) + * @param srcStorageName Source storage name (optional) + * @param destStorageName Destination storage name (optional) + * @return ApiResponse<Void> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse deleteDocumentAnnotationsWithHttpInfo(String name, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = deleteDocumentAnnotationsValidateBeforeCall(name, storage, folder, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + public ApiResponse copyFolderWithHttpInfo(String srcPath, String destPath, String srcStorageName, String destStorageName) throws ApiException { + com.squareup.okhttp.Call call = copyFolderValidateBeforeCall(srcPath, destPath, srcStorageName, destStorageName, null, null); + return apiClient.execute(call); } /** - * Delete all annotations from the document (asynchronously) + * Copy folder (asynchronously) * - * @param name The document name. (required) - * @param storage The document storage. (optional) - * @param folder The document folder. (optional) + * @param srcPath Source folder path e.g. '/src' (required) + * @param destPath Destination folder path e.g. '/dst' (required) + * @param srcStorageName Source storage name (optional) + * @param destStorageName 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 deleteDocumentAnnotationsAsync(String name, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call copyFolderAsync(String srcPath, String destPath, String srcStorageName, String destStorageName, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -477,34 +489,30 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = deleteDocumentAnnotationsValidateBeforeCall(name, storage, folder, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); + com.squareup.okhttp.Call call = copyFolderValidateBeforeCall(srcPath, destPath, srcStorageName, destStorageName, progressListener, progressRequestListener); + apiClient.executeAsync(call, callback); return call; } /** - * Build call for deleteDocumentLinkAnnotations - * @param name The document name. (required) - * @param storage The document storage. (optional) - * @param folder The document folder. (optional) + * Build call for createFolder + * @param path Folder path to create e.g. 'folder_1/folder_2/' (required) + * @param storageName 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 deleteDocumentLinkAnnotationsCall(String name, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call createFolderCall(String path, String storageName, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; // create path and map variables - String localVarPath = "/pdf/{name}/links" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + String localVarPath = "/pdf/storage/folder/{path}" + .replaceAll("\\{" + "path" + "\\}", apiClient.escapeString(path.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)); + if (storageName != null) + localVarQueryParams.addAll(apiClient.parameterToPair("storageName", storageName)); Map localVarHeaderParams = new HashMap(); @@ -534,77 +542,70 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + String[] localVarAuthNames = new String[] { "JWT" }; + return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deleteDocumentLinkAnnotationsValidateBeforeCall(String name, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call createFolderValidateBeforeCall(String path, String storageName, 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 deleteDocumentLinkAnnotations(Async)"); + // verify the required parameter 'path' is set + if (path == null) { + throw new ApiException("Missing the required parameter 'path' when calling createFolder(Async)"); } - com.squareup.okhttp.Call call = deleteDocumentLinkAnnotationsCall(name, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = createFolderCall(path, storageName, progressListener, progressRequestListener); return call; } /** - * Delete all link annotations from the document + * Create the folder * - * @param name The document name. (required) - * @param storage The document storage. (optional) - * @param folder The document folder. (optional) - * @return AsposeResponse + * @param path Folder path to create e.g. 'folder_1/folder_2/' (required) + * @param storageName Storage name (optional) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public AsposeResponse deleteDocumentLinkAnnotations(String name, String storage, String folder) throws ApiException { + public void createFolder(String path, String storageName) throws ApiException { try { - ApiResponse resp = deleteDocumentLinkAnnotationsWithHttpInfo(name, storage, folder); - return resp.getData(); + createFolderWithHttpInfo(path, storageName); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = deleteDocumentLinkAnnotationsWithHttpInfo(name, storage, folder); - return resp.getData(); + apiClient.requestToken(); + createFolderWithHttpInfo(path, storageName); } throw ex; } } /** - * Delete all link annotations from the document + * Create the folder * - * @param name The document name. (required) - * @param storage The document storage. (optional) - * @param folder The document folder. (optional) - * @return ApiResponse<AsposeResponse> + * @param path Folder path to create e.g. 'folder_1/folder_2/' (required) + * @param storageName Storage name (optional) + * @return ApiResponse<Void> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse deleteDocumentLinkAnnotationsWithHttpInfo(String name, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = deleteDocumentLinkAnnotationsValidateBeforeCall(name, storage, folder, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + public ApiResponse createFolderWithHttpInfo(String path, String storageName) throws ApiException { + com.squareup.okhttp.Call call = createFolderValidateBeforeCall(path, storageName, null, null); + return apiClient.execute(call); } /** - * Delete all link annotations from the document (asynchronously) + * Create the folder (asynchronously) * - * @param name The document name. (required) - * @param storage The document storage. (optional) - * @param folder The document folder. (optional) + * @param path Folder path to create e.g. 'folder_1/folder_2/' (required) + * @param storageName 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 deleteDocumentLinkAnnotationsAsync(String name, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call createFolderAsync(String path, String storageName, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -625,14 +626,14 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = deleteDocumentLinkAnnotationsValidateBeforeCall(name, storage, folder, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); + com.squareup.okhttp.Call call = createFolderValidateBeforeCall(path, storageName, progressListener, progressRequestListener); + apiClient.executeAsync(call, callback); return call; } /** - * Build call for deleteDocumentStamps + * Build call for deleteAnnotation * @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 @@ -640,12 +641,13 @@ 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 deleteDocumentStampsCall(String name, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call deleteAnnotationCall(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}/stamps" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + String localVarPath = "/pdf/{name}/annotations/{annotationId}" + .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) + .replaceAll("\\{" + "annotationId" + "\\}", apiClient.escapeString(annotationId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -682,45 +684,51 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deleteDocumentStampsValidateBeforeCall(String name, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call deleteAnnotationValidateBeforeCall(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 deleteDocumentStamps(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling deleteAnnotation(Async)"); + } + + // verify the required parameter 'annotationId' is set + if (annotationId == null) { + throw new ApiException("Missing the required parameter 'annotationId' when calling deleteAnnotation(Async)"); } - com.squareup.okhttp.Call call = deleteDocumentStampsCall(name, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = deleteAnnotationCall(name, annotationId, storage, folder, progressListener, progressRequestListener); return call; } /** - * Delete all stamps from the document + * Delete document 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 AsposeResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public AsposeResponse deleteDocumentStamps(String name, String storage, String folder) throws ApiException { + public AsposeResponse deleteAnnotation(String name, String annotationId, String storage, String folder) throws ApiException { try { - ApiResponse resp = deleteDocumentStampsWithHttpInfo(name, storage, folder); + ApiResponse resp = deleteAnnotationWithHttpInfo(name, annotationId, storage, folder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = deleteDocumentStampsWithHttpInfo(name, storage, folder); + apiClient.requestToken(); + ApiResponse resp = deleteAnnotationWithHttpInfo(name, annotationId, storage, folder); return resp.getData(); } throw ex; @@ -728,31 +736,33 @@ public AsposeResponse deleteDocumentStamps(String name, String storage, String f } /** - * Delete all stamps from the document + * Delete document 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<AsposeResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse deleteDocumentStampsWithHttpInfo(String name, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = deleteDocumentStampsValidateBeforeCall(name, storage, folder, null, null); + public ApiResponse deleteAnnotationWithHttpInfo(String name, String annotationId, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = deleteAnnotationValidateBeforeCall(name, annotationId, storage, folder, null, null); Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Delete all stamps from the document (asynchronously) + * Delete document annotation by ID (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 deleteDocumentStampsAsync(String name, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call deleteAnnotationAsync(String name, String annotationId, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -773,34 +783,36 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = deleteDocumentStampsValidateBeforeCall(name, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = deleteAnnotationValidateBeforeCall(name, annotationId, storage, folder, progressListener, progressRequestListener); Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for deleteDocumentTables + * Build call for deleteBookmark * @param name The document name. (required) - * @param storage The document storage. (optional) + * @param bookmarkPath The bookmark path. (required) * @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 deleteDocumentTablesCall(String name, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call deleteBookmarkCall(String name, String bookmarkPath, 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}/tables" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + String localVarPath = "/pdf/{name}/bookmarks/bookmark/{bookmarkPath}" + .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) + .replaceAll("\\{" + "bookmarkPath" + "\\}", apiClient.escapeString(bookmarkPath.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)); + if (storage != null) + localVarQueryParams.addAll(apiClient.parameterToPair("storage", storage)); Map localVarHeaderParams = new HashMap(); @@ -830,45 +842,51 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deleteDocumentTablesValidateBeforeCall(String name, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call deleteBookmarkValidateBeforeCall(String name, String bookmarkPath, 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 deleteDocumentTables(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling deleteBookmark(Async)"); + } + + // verify the required parameter 'bookmarkPath' is set + if (bookmarkPath == null) { + throw new ApiException("Missing the required parameter 'bookmarkPath' when calling deleteBookmark(Async)"); } - com.squareup.okhttp.Call call = deleteDocumentTablesCall(name, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = deleteBookmarkCall(name, bookmarkPath, folder, storage, progressListener, progressRequestListener); return call; } /** - * Delete all tables from the document + * Delete document bookmark by ID. * * @param name The document name. (required) - * @param storage The document storage. (optional) + * @param bookmarkPath The bookmark path. (required) * @param folder The document folder. (optional) + * @param storage The document storage. (optional) * @return AsposeResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public AsposeResponse deleteDocumentTables(String name, String storage, String folder) throws ApiException { + public AsposeResponse deleteBookmark(String name, String bookmarkPath, String folder, String storage) throws ApiException { try { - ApiResponse resp = deleteDocumentTablesWithHttpInfo(name, storage, folder); + ApiResponse resp = deleteBookmarkWithHttpInfo(name, bookmarkPath, folder, storage); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = deleteDocumentTablesWithHttpInfo(name, storage, folder); + apiClient.requestToken(); + ApiResponse resp = deleteBookmarkWithHttpInfo(name, bookmarkPath, folder, storage); return resp.getData(); } throw ex; @@ -876,31 +894,33 @@ public AsposeResponse deleteDocumentTables(String name, String storage, String f } /** - * Delete all tables from the document + * Delete document bookmark by ID. * * @param name The document name. (required) - * @param storage The document storage. (optional) + * @param bookmarkPath The bookmark path. (required) * @param folder The document folder. (optional) + * @param storage The document storage. (optional) * @return ApiResponse<AsposeResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse deleteDocumentTablesWithHttpInfo(String name, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = deleteDocumentTablesValidateBeforeCall(name, storage, folder, null, null); + public ApiResponse deleteBookmarkWithHttpInfo(String name, String bookmarkPath, String folder, String storage) throws ApiException { + com.squareup.okhttp.Call call = deleteBookmarkValidateBeforeCall(name, bookmarkPath, folder, storage, null, null); Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Delete all tables from the document (asynchronously) + * Delete document bookmark by ID. (asynchronously) * * @param name The document name. (required) - * @param storage The document storage. (optional) + * @param bookmarkPath The bookmark path. (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 deleteDocumentTablesAsync(String name, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call deleteBookmarkAsync(String name, String bookmarkPath, String folder, String storage, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -921,15 +941,14 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = deleteDocumentTablesValidateBeforeCall(name, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = deleteBookmarkValidateBeforeCall(name, bookmarkPath, folder, storage, progressListener, progressRequestListener); Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for deleteField + * Build call for deleteDocumentAnnotations * @param name The document name. (required) - * @param fieldName The field name/ (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) * @param progressListener Progress listener @@ -937,13 +956,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 deleteFieldCall(String name, String fieldName, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call deleteDocumentAnnotationsCall(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}/fields/{fieldName}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "fieldName" + "\\}", apiClient.escapeString(fieldName.toString())); + String localVarPath = "/pdf/{name}/annotations" + .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -980,51 +998,45 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deleteFieldValidateBeforeCall(String name, String fieldName, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call deleteDocumentAnnotationsValidateBeforeCall(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 deleteField(Async)"); - } - - // verify the required parameter 'fieldName' is set - if (fieldName == null) { - throw new ApiException("Missing the required parameter 'fieldName' when calling deleteField(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling deleteDocumentAnnotations(Async)"); } - com.squareup.okhttp.Call call = deleteFieldCall(name, fieldName, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = deleteDocumentAnnotationsCall(name, storage, folder, progressListener, progressRequestListener); return call; } /** - * Delete document field by name. + * Delete all annotations from the document * * @param name The document name. (required) - * @param fieldName The field name/ (required) * @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 AsposeResponse deleteField(String name, String fieldName, String storage, String folder) throws ApiException { + public AsposeResponse deleteDocumentAnnotations(String name, String storage, String folder) throws ApiException { try { - ApiResponse resp = deleteFieldWithHttpInfo(name, fieldName, storage, folder); + ApiResponse resp = deleteDocumentAnnotationsWithHttpInfo(name, storage, folder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = deleteFieldWithHttpInfo(name, fieldName, storage, folder); + apiClient.requestToken(); + ApiResponse resp = deleteDocumentAnnotationsWithHttpInfo(name, storage, folder); return resp.getData(); } throw ex; @@ -1032,33 +1044,31 @@ public AsposeResponse deleteField(String name, String fieldName, String storage, } /** - * Delete document field by name. + * Delete all annotations from the document * * @param name The document name. (required) - * @param fieldName The field name/ (required) * @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 deleteFieldWithHttpInfo(String name, String fieldName, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = deleteFieldValidateBeforeCall(name, fieldName, storage, folder, null, null); + public ApiResponse deleteDocumentAnnotationsWithHttpInfo(String name, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = deleteDocumentAnnotationsValidateBeforeCall(name, storage, folder, null, null); Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Delete document field by name. (asynchronously) + * Delete all annotations from the document (asynchronously) * * @param name The document name. (required) - * @param fieldName The field 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 deleteFieldAsync(String name, String fieldName, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call deleteDocumentAnnotationsAsync(String name, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -1079,33 +1089,32 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = deleteFieldValidateBeforeCall(name, fieldName, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = deleteDocumentAnnotationsValidateBeforeCall(name, storage, folder, progressListener, progressRequestListener); Type localVarReturnType = new TypeToken(){}.getType(); 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) + * Build call for deleteDocumentBookmarks + * @param name The document name. (required) + * @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 deleteFileCall(String path, String versionId, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call deleteDocumentBookmarksCall(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 = "/storage/file"; + String localVarPath = "/pdf/{name}/bookmarks/tree" + .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); 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 (folder != null) + localVarQueryParams.addAll(apiClient.parameterToPair("folder", folder)); if (storage != null) localVarQueryParams.addAll(apiClient.parameterToPair("storage", storage)); @@ -1137,45 +1146,45 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; 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 { + private com.squareup.okhttp.Call deleteDocumentBookmarksValidateBeforeCall(String name, String folder, 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)"); + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling deleteDocumentBookmarks(Async)"); } - com.squareup.okhttp.Call call = deleteFileCall(path, versionId, storage, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = deleteDocumentBookmarksCall(name, folder, storage, progressListener, progressRequestListener); return call; } /** - * Remove a specific file + * Delete all document bookmarks. * - * @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 name The document name. (required) + * @param folder The document folder. (optional) + * @param storage The document storage. (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 { + public AsposeResponse deleteDocumentBookmarks(String name, String folder, String storage) throws ApiException { try { - ApiResponse resp = deleteFileWithHttpInfo(path, versionId, storage); + ApiResponse resp = deleteDocumentBookmarksWithHttpInfo(name, folder, storage); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = deleteFileWithHttpInfo(path, versionId, storage); + apiClient.requestToken(); + ApiResponse resp = deleteDocumentBookmarksWithHttpInfo(name, folder, storage); return resp.getData(); } throw ex; @@ -1183,31 +1192,31 @@ public AsposeResponse deleteFile(String path, String versionId, String storage) } /** - * Remove a specific file + * Delete all document bookmarks. * - * @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 name The document name. (required) + * @param folder The document folder. (optional) + * @param storage The document storage. (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); + public ApiResponse deleteDocumentBookmarksWithHttpInfo(String name, String folder, String storage) throws ApiException { + com.squareup.okhttp.Call call = deleteDocumentBookmarksValidateBeforeCall(name, folder, storage, null, null); Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Remove a specific file (asynchronously) + * Delete all document bookmarks. (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 name The document name. (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 deleteFileAsync(String path, String versionId, String storage, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call deleteDocumentBookmarksAsync(String name, String folder, String storage, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -1228,35 +1237,34 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = deleteFileValidateBeforeCall(path, versionId, storage, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = deleteDocumentBookmarksValidateBeforeCall(name, folder, 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) + * Build call for deleteDocumentLinkAnnotations + * @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 deleteFolderCall(String path, String storage, Boolean recursive, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call deleteDocumentLinkAnnotationsCall(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 = "/storage/folder"; + String localVarPath = "/pdf/{name}/links" + .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.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 (recursive != null) - localVarQueryParams.addAll(apiClient.parameterToPair("recursive", recursive)); + if (folder != null) + localVarQueryParams.addAll(apiClient.parameterToPair("folder", folder)); Map localVarHeaderParams = new HashMap(); @@ -1286,45 +1294,45 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; 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 { + private com.squareup.okhttp.Call deleteDocumentLinkAnnotationsValidateBeforeCall(String name, String storage, String folder, 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)"); + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling deleteDocumentLinkAnnotations(Async)"); } - com.squareup.okhttp.Call call = deleteFolderCall(path, storage, recursive, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = deleteDocumentLinkAnnotationsCall(name, storage, folder, progressListener, progressRequestListener); return call; } /** - * Remove a specific folder + * Delete all link annotations from the document * - * @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 name The document name. (required) + * @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 AsposeResponse deleteFolder(String path, String storage, Boolean recursive) throws ApiException { + public AsposeResponse deleteDocumentLinkAnnotations(String name, String storage, String folder) throws ApiException { try { - ApiResponse resp = deleteFolderWithHttpInfo(path, storage, recursive); + ApiResponse resp = deleteDocumentLinkAnnotationsWithHttpInfo(name, storage, folder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = deleteFolderWithHttpInfo(path, storage, recursive); + apiClient.requestToken(); + ApiResponse resp = deleteDocumentLinkAnnotationsWithHttpInfo(name, storage, folder); return resp.getData(); } throw ex; @@ -1332,31 +1340,31 @@ public AsposeResponse deleteFolder(String path, String storage, Boolean recursiv } /** - * Remove a specific folder + * Delete all link annotations from the document * - * @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 name The document name. (required) + * @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 deleteFolderWithHttpInfo(String path, String storage, Boolean recursive) throws ApiException { - com.squareup.okhttp.Call call = deleteFolderValidateBeforeCall(path, storage, recursive, null, null); + public ApiResponse deleteDocumentLinkAnnotationsWithHttpInfo(String name, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = deleteDocumentLinkAnnotationsValidateBeforeCall(name, storage, folder, null, null); Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Remove a specific folder (asynchronously) + * Delete all link annotations from the document (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 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 deleteFolderAsync(String path, String storage, Boolean recursive, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call deleteDocumentLinkAnnotationsAsync(String name, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -1377,15 +1385,14 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = deleteFolderValidateBeforeCall(path, storage, recursive, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = deleteDocumentLinkAnnotationsValidateBeforeCall(name, storage, folder, progressListener, progressRequestListener); Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for deleteImage + * Build call for deleteDocumentStamps * @param name The document name. (required) - * @param imageId Image ID. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) * @param progressListener Progress listener @@ -1393,13 +1400,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 deleteImageCall(String name, String imageId, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call deleteDocumentStampsCall(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}/images/{imageId}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "imageId" + "\\}", apiClient.escapeString(imageId.toString())); + String localVarPath = "/pdf/{name}/stamps" + .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -1436,51 +1442,45 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deleteImageValidateBeforeCall(String name, String imageId, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call deleteDocumentStampsValidateBeforeCall(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 deleteImage(Async)"); - } - - // verify the required parameter 'imageId' is set - if (imageId == null) { - throw new ApiException("Missing the required parameter 'imageId' when calling deleteImage(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling deleteDocumentStamps(Async)"); } - com.squareup.okhttp.Call call = deleteImageCall(name, imageId, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = deleteDocumentStampsCall(name, storage, folder, progressListener, progressRequestListener); return call; } /** - * Delete image from document page. + * Delete all stamps from the document * * @param name The document name. (required) - * @param imageId Image ID. (required) * @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 AsposeResponse deleteImage(String name, String imageId, String storage, String folder) throws ApiException { + public AsposeResponse deleteDocumentStamps(String name, String storage, String folder) throws ApiException { try { - ApiResponse resp = deleteImageWithHttpInfo(name, imageId, storage, folder); + ApiResponse resp = deleteDocumentStampsWithHttpInfo(name, storage, folder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = deleteImageWithHttpInfo(name, imageId, storage, folder); + apiClient.requestToken(); + ApiResponse resp = deleteDocumentStampsWithHttpInfo(name, storage, folder); return resp.getData(); } throw ex; @@ -1488,33 +1488,31 @@ public AsposeResponse deleteImage(String name, String imageId, String storage, S } /** - * Delete image from document page. + * Delete all stamps from the document * * @param name The document name. (required) - * @param imageId Image ID. (required) * @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 deleteImageWithHttpInfo(String name, String imageId, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = deleteImageValidateBeforeCall(name, imageId, storage, folder, null, null); + public ApiResponse deleteDocumentStampsWithHttpInfo(String name, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = deleteDocumentStampsValidateBeforeCall(name, storage, folder, null, null); Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Delete image from document page. (asynchronously) + * Delete all stamps from the document (asynchronously) * * @param name The document name. (required) - * @param imageId Image 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 deleteImageAsync(String name, String imageId, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call deleteDocumentStampsAsync(String name, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -1535,15 +1533,14 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = deleteImageValidateBeforeCall(name, imageId, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = deleteDocumentStampsValidateBeforeCall(name, storage, folder, progressListener, progressRequestListener); Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for deleteLinkAnnotation + * Build call for deleteDocumentTables * @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 @@ -1551,13 +1548,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 deleteLinkAnnotationCall(String name, String linkId, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call deleteDocumentTablesCall(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}/links/{linkId}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "linkId" + "\\}", apiClient.escapeString(linkId.toString())); + String localVarPath = "/pdf/{name}/tables" + .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -1594,51 +1590,45 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deleteLinkAnnotationValidateBeforeCall(String name, String linkId, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call deleteDocumentTablesValidateBeforeCall(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 deleteLinkAnnotation(Async)"); - } - - // verify the required parameter 'linkId' is set - if (linkId == null) { - throw new ApiException("Missing the required parameter 'linkId' when calling deleteLinkAnnotation(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling deleteDocumentTables(Async)"); } - com.squareup.okhttp.Call call = deleteLinkAnnotationCall(name, linkId, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = deleteDocumentTablesCall(name, storage, folder, progressListener, progressRequestListener); return call; } /** - * Delete document page link annotation by ID + * Delete all tables from the document * * @param name The document name. (required) - * @param linkId The link ID. (required) * @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 AsposeResponse deleteLinkAnnotation(String name, String linkId, String storage, String folder) throws ApiException { + public AsposeResponse deleteDocumentTables(String name, String storage, String folder) throws ApiException { try { - ApiResponse resp = deleteLinkAnnotationWithHttpInfo(name, linkId, storage, folder); + ApiResponse resp = deleteDocumentTablesWithHttpInfo(name, storage, folder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = deleteLinkAnnotationWithHttpInfo(name, linkId, storage, folder); + apiClient.requestToken(); + ApiResponse resp = deleteDocumentTablesWithHttpInfo(name, storage, folder); return resp.getData(); } throw ex; @@ -1646,33 +1636,31 @@ public AsposeResponse deleteLinkAnnotation(String name, String linkId, String st } /** - * Delete document page link annotation by ID + * Delete all tables from the document * * @param name The document name. (required) - * @param linkId The link ID. (required) * @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 deleteLinkAnnotationWithHttpInfo(String name, String linkId, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = deleteLinkAnnotationValidateBeforeCall(name, linkId, storage, folder, null, null); + public ApiResponse deleteDocumentTablesWithHttpInfo(String name, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = deleteDocumentTablesValidateBeforeCall(name, storage, folder, null, null); Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Delete document page link annotation by ID (asynchronously) + * Delete all tables from the document (asynchronously) * * @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 deleteLinkAnnotationAsync(String name, String linkId, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call deleteDocumentTablesAsync(String name, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -1693,15 +1681,15 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = deleteLinkAnnotationValidateBeforeCall(name, linkId, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = deleteDocumentTablesValidateBeforeCall(name, storage, folder, progressListener, progressRequestListener); Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for deletePage + * Build call for deleteField * @param name The document name. (required) - * @param pageNumber The page number. (required) + * @param fieldName The field name/ (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) * @param progressListener Progress listener @@ -1709,13 +1697,13 @@ 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 deletePageCall(String name, Integer pageNumber, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call deleteFieldCall(String name, String fieldName, 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}" + String localVarPath = "/pdf/{name}/fields/{fieldName}" .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "pageNumber" + "\\}", apiClient.escapeString(pageNumber.toString())); + .replaceAll("\\{" + "fieldName" + "\\}", apiClient.escapeString(fieldName.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -1752,51 +1740,51 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deletePageValidateBeforeCall(String name, Integer pageNumber, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call deleteFieldValidateBeforeCall(String name, String fieldName, 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 deletePage(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling deleteField(Async)"); } - // verify the required parameter 'pageNumber' is set - if (pageNumber == null) { - throw new ApiException("Missing the required parameter 'pageNumber' when calling deletePage(Async)"); + // verify the required parameter 'fieldName' is set + if (fieldName == null) { + throw new ApiException("Missing the required parameter 'fieldName' when calling deleteField(Async)"); } - com.squareup.okhttp.Call call = deletePageCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = deleteFieldCall(name, fieldName, storage, folder, progressListener, progressRequestListener); return call; } /** - * Delete document page by its number. + * Delete document field by name. * * @param name The document name. (required) - * @param pageNumber The page number. (required) + * @param fieldName The field name/ (required) * @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 AsposeResponse deletePage(String name, Integer pageNumber, String storage, String folder) throws ApiException { + public AsposeResponse deleteField(String name, String fieldName, String storage, String folder) throws ApiException { try { - ApiResponse resp = deletePageWithHttpInfo(name, pageNumber, storage, folder); + ApiResponse resp = deleteFieldWithHttpInfo(name, fieldName, storage, folder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = deletePageWithHttpInfo(name, pageNumber, storage, folder); + apiClient.requestToken(); + ApiResponse resp = deleteFieldWithHttpInfo(name, fieldName, storage, folder); return resp.getData(); } throw ex; @@ -1804,33 +1792,33 @@ public AsposeResponse deletePage(String name, Integer pageNumber, String storage } /** - * Delete document page by its number. + * Delete document field by name. * * @param name The document name. (required) - * @param pageNumber The page number. (required) + * @param fieldName The field name/ (required) * @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 deletePageWithHttpInfo(String name, Integer pageNumber, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = deletePageValidateBeforeCall(name, pageNumber, storage, folder, null, null); + public ApiResponse deleteFieldWithHttpInfo(String name, String fieldName, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = deleteFieldValidateBeforeCall(name, fieldName, storage, folder, null, null); Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Delete document page by its number. (asynchronously) + * Delete document field by name. (asynchronously) * * @param name The document name. (required) - * @param pageNumber The page number. (required) + * @param fieldName The field 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 deletePageAsync(String name, Integer pageNumber, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call deleteFieldAsync(String name, String fieldName, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -1851,36 +1839,34 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = deletePageValidateBeforeCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = deleteFieldValidateBeforeCall(name, fieldName, storage, folder, progressListener, progressRequestListener); Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for deletePageAnnotations - * @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 deleteFile + * @param path File path e.g. '/folder/file.ext' (required) + * @param storageName Storage name (optional) + * @param versionId File version ID to delete (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 deletePageAnnotationsCall(String name, Integer pageNumber, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call deleteFileCall(String path, String storageName, String versionId, 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 = "/pdf/storage/file/{path}" + .replaceAll("\\{" + "path" + "\\}", apiClient.escapeString(path.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)); + if (storageName != null) + localVarQueryParams.addAll(apiClient.parameterToPair("storageName", storageName)); + if (versionId != null) + localVarQueryParams.addAll(apiClient.parameterToPair("versionId", versionId)); Map localVarHeaderParams = new HashMap(); @@ -1910,85 +1896,73 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deletePageAnnotationsValidateBeforeCall(String name, Integer pageNumber, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call deleteFileValidateBeforeCall(String path, String storageName, String versionId, 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 deletePageAnnotations(Async)"); - } - - // verify the required parameter 'pageNumber' is set - if (pageNumber == null) { - throw new ApiException("Missing the required parameter 'pageNumber' when calling deletePageAnnotations(Async)"); + // 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 = deletePageAnnotationsCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = deleteFileCall(path, storageName, versionId, progressListener, progressRequestListener); return call; } /** - * Delete all annotations from the page + * Delete file * - * @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 AsposeResponse + * @param path File path e.g. '/folder/file.ext' (required) + * @param storageName Storage name (optional) + * @param versionId File version ID to delete (optional) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public AsposeResponse deletePageAnnotations(String name, Integer pageNumber, String storage, String folder) throws ApiException { + public void deleteFile(String path, String storageName, String versionId) throws ApiException { try { - ApiResponse resp = deletePageAnnotationsWithHttpInfo(name, pageNumber, storage, folder); - return resp.getData(); + deleteFileWithHttpInfo(path, storageName, versionId); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = deletePageAnnotationsWithHttpInfo(name, pageNumber, storage, folder); - return resp.getData(); + apiClient.requestToken(); + deleteFileWithHttpInfo(path, storageName, versionId); } throw ex; } } /** - * Delete all annotations from the page + * Delete file * - * @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<AsposeResponse> + * @param path File path e.g. '/folder/file.ext' (required) + * @param storageName Storage name (optional) + * @param versionId File version ID to delete (optional) + * @return ApiResponse<Void> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse deletePageAnnotationsWithHttpInfo(String name, Integer pageNumber, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = deletePageAnnotationsValidateBeforeCall(name, pageNumber, storage, folder, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + public ApiResponse deleteFileWithHttpInfo(String path, String storageName, String versionId) throws ApiException { + com.squareup.okhttp.Call call = deleteFileValidateBeforeCall(path, storageName, versionId, null, null); + return apiClient.execute(call); } /** - * Delete all annotations from the page (asynchronously) + * Delete file (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. '/folder/file.ext' (required) + * @param storageName Storage name (optional) + * @param versionId File version ID to delete (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 deletePageAnnotationsAsync(String name, Integer pageNumber, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call deleteFileAsync(String path, String storageName, String versionId, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -2009,36 +1983,33 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = deletePageAnnotationsValidateBeforeCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); + com.squareup.okhttp.Call call = deleteFileValidateBeforeCall(path, storageName, versionId, progressListener, progressRequestListener); + apiClient.executeAsync(call, callback); return call; } /** - * Build call for deletePageLinkAnnotations - * @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 deleteFolder + * @param path Folder path e.g. '/folder' (required) + * @param storageName Storage name (optional) + * @param recursive Enable to delete folders, subfolders and files (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 deletePageLinkAnnotationsCall(String name, Integer pageNumber, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call deleteFolderCall(String path, String storageName, Boolean recursive, 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" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "pageNumber" + "\\}", apiClient.escapeString(pageNumber.toString())); + String localVarPath = "/pdf/storage/folder/{path}" + .replaceAll("\\{" + "path" + "\\}", apiClient.escapeString(path.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)); + if (storageName != null) + localVarQueryParams.addAll(apiClient.parameterToPair("storageName", storageName)); + if (recursive != null) + localVarQueryParams.addAll(apiClient.parameterToPair("recursive", recursive)); Map localVarHeaderParams = new HashMap(); @@ -2068,85 +2039,73 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deletePageLinkAnnotationsValidateBeforeCall(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 deletePageLinkAnnotations(Async)"); - } + private com.squareup.okhttp.Call deleteFolderValidateBeforeCall(String path, String storageName, Boolean recursive, 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 deletePageLinkAnnotations(Async)"); + // 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 = deletePageLinkAnnotationsCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = deleteFolderCall(path, storageName, recursive, progressListener, progressRequestListener); return call; } /** - * Delete all link annotations from the page + * Delete 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 AsposeResponse + * @param path Folder path e.g. '/folder' (required) + * @param storageName Storage name (optional) + * @param recursive Enable to delete folders, subfolders and files (optional, default to false) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public AsposeResponse deletePageLinkAnnotations(String name, Integer pageNumber, String storage, String folder) throws ApiException { + public void deleteFolder(String path, String storageName, Boolean recursive) throws ApiException { try { - ApiResponse resp = deletePageLinkAnnotationsWithHttpInfo(name, pageNumber, storage, folder); - return resp.getData(); + deleteFolderWithHttpInfo(path, storageName, recursive); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = deletePageLinkAnnotationsWithHttpInfo(name, pageNumber, storage, folder); - return resp.getData(); + apiClient.requestToken(); + deleteFolderWithHttpInfo(path, storageName, recursive); } throw ex; } } /** - * Delete all link annotations from the page + * Delete 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<AsposeResponse> + * @param path Folder path e.g. '/folder' (required) + * @param storageName Storage name (optional) + * @param recursive Enable to delete folders, subfolders and files (optional, default to false) + * @return ApiResponse<Void> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse deletePageLinkAnnotationsWithHttpInfo(String name, Integer pageNumber, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = deletePageLinkAnnotationsValidateBeforeCall(name, pageNumber, storage, folder, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + public ApiResponse deleteFolderWithHttpInfo(String path, String storageName, Boolean recursive) throws ApiException { + com.squareup.okhttp.Call call = deleteFolderValidateBeforeCall(path, storageName, recursive, null, null); + return apiClient.execute(call); } /** - * Delete all link annotations from the page (asynchronously) + * Delete 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 Folder path e.g. '/folder' (required) + * @param storageName Storage name (optional) + * @param recursive Enable to delete folders, subfolders and files (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 deletePageLinkAnnotationsAsync(String name, Integer pageNumber, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call deleteFolderAsync(String path, String storageName, Boolean recursive, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -2167,15 +2126,14 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = deletePageLinkAnnotationsValidateBeforeCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); + com.squareup.okhttp.Call call = deleteFolderValidateBeforeCall(path, storageName, recursive, progressListener, progressRequestListener); + apiClient.executeAsync(call, callback); return call; } /** - * Build call for deletePageStamps + * Build call for deleteImage * @param name The document name. (required) - * @param pageNumber The page number. (required) + * @param imageId Image ID. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) * @param progressListener Progress listener @@ -2183,13 +2141,13 @@ 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 deletePageStampsCall(String name, Integer pageNumber, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call deleteImageCall(String name, String imageId, 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}/stamps" + String localVarPath = "/pdf/{name}/images/{imageId}" .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "pageNumber" + "\\}", apiClient.escapeString(pageNumber.toString())); + .replaceAll("\\{" + "imageId" + "\\}", apiClient.escapeString(imageId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -2226,51 +2184,51 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deletePageStampsValidateBeforeCall(String name, Integer pageNumber, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call deleteImageValidateBeforeCall(String name, String imageId, 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 deletePageStamps(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling deleteImage(Async)"); } - // verify the required parameter 'pageNumber' is set - if (pageNumber == null) { - throw new ApiException("Missing the required parameter 'pageNumber' when calling deletePageStamps(Async)"); + // verify the required parameter 'imageId' is set + if (imageId == null) { + throw new ApiException("Missing the required parameter 'imageId' when calling deleteImage(Async)"); } - com.squareup.okhttp.Call call = deletePageStampsCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = deleteImageCall(name, imageId, storage, folder, progressListener, progressRequestListener); return call; } /** - * Delete all stamps from the page + * Delete image from document page. * * @param name The document name. (required) - * @param pageNumber The page number. (required) + * @param imageId Image ID. (required) * @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 AsposeResponse deletePageStamps(String name, Integer pageNumber, String storage, String folder) throws ApiException { + public AsposeResponse deleteImage(String name, String imageId, String storage, String folder) throws ApiException { try { - ApiResponse resp = deletePageStampsWithHttpInfo(name, pageNumber, storage, folder); + ApiResponse resp = deleteImageWithHttpInfo(name, imageId, storage, folder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = deletePageStampsWithHttpInfo(name, pageNumber, storage, folder); + apiClient.requestToken(); + ApiResponse resp = deleteImageWithHttpInfo(name, imageId, storage, folder); return resp.getData(); } throw ex; @@ -2278,33 +2236,33 @@ public AsposeResponse deletePageStamps(String name, Integer pageNumber, String s } /** - * Delete all stamps from the page + * Delete image from document page. * * @param name The document name. (required) - * @param pageNumber The page number. (required) + * @param imageId Image ID. (required) * @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 deletePageStampsWithHttpInfo(String name, Integer pageNumber, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = deletePageStampsValidateBeforeCall(name, pageNumber, storage, folder, null, null); + public ApiResponse deleteImageWithHttpInfo(String name, String imageId, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = deleteImageValidateBeforeCall(name, imageId, storage, folder, null, null); Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Delete all stamps from the page (asynchronously) + * Delete image from document page. (asynchronously) * * @param name The document name. (required) - * @param pageNumber The page number. (required) + * @param imageId Image 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 deletePageStampsAsync(String name, Integer pageNumber, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call deleteImageAsync(String name, String imageId, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -2325,15 +2283,15 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = deletePageStampsValidateBeforeCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = deleteImageValidateBeforeCall(name, imageId, storage, folder, progressListener, progressRequestListener); Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for deletePageTables + * Build call for deleteLinkAnnotation * @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 @@ -2341,13 +2299,13 @@ 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 deletePageTablesCall(String name, Integer pageNumber, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call deleteLinkAnnotationCall(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/{name}/pages/{pageNumber}/tables" + String localVarPath = "/pdf/{name}/links/{linkId}" .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "pageNumber" + "\\}", apiClient.escapeString(pageNumber.toString())); + .replaceAll("\\{" + "linkId" + "\\}", apiClient.escapeString(linkId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -2384,51 +2342,51 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deletePageTablesValidateBeforeCall(String name, Integer pageNumber, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call deleteLinkAnnotationValidateBeforeCall(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 deletePageTables(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling deleteLinkAnnotation(Async)"); } - // verify the required parameter 'pageNumber' is set - if (pageNumber == null) { - throw new ApiException("Missing the required parameter 'pageNumber' when calling deletePageTables(Async)"); + // verify the required parameter 'linkId' is set + if (linkId == null) { + throw new ApiException("Missing the required parameter 'linkId' when calling deleteLinkAnnotation(Async)"); } - com.squareup.okhttp.Call call = deletePageTablesCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = deleteLinkAnnotationCall(name, linkId, storage, folder, progressListener, progressRequestListener); return call; } /** - * Delete all tables from the page + * Delete 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 AsposeResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public AsposeResponse deletePageTables(String name, Integer pageNumber, String storage, String folder) throws ApiException { + public AsposeResponse deleteLinkAnnotation(String name, String linkId, String storage, String folder) throws ApiException { try { - ApiResponse resp = deletePageTablesWithHttpInfo(name, pageNumber, storage, folder); + ApiResponse resp = deleteLinkAnnotationWithHttpInfo(name, linkId, storage, folder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = deletePageTablesWithHttpInfo(name, pageNumber, storage, folder); + apiClient.requestToken(); + ApiResponse resp = deleteLinkAnnotationWithHttpInfo(name, linkId, storage, folder); return resp.getData(); } throw ex; @@ -2436,33 +2394,33 @@ public AsposeResponse deletePageTables(String name, Integer pageNumber, String s } /** - * Delete all tables from the page + * Delete 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<AsposeResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse deletePageTablesWithHttpInfo(String name, Integer pageNumber, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = deletePageTablesValidateBeforeCall(name, pageNumber, storage, folder, null, null); + public ApiResponse deleteLinkAnnotationWithHttpInfo(String name, String linkId, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = deleteLinkAnnotationValidateBeforeCall(name, linkId, storage, folder, null, null); Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Delete all tables from the page (asynchronously) + * Delete 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 */ - public com.squareup.okhttp.Call deletePageTablesAsync(String name, Integer pageNumber, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call deleteLinkAnnotationAsync(String name, String linkId, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -2483,27 +2441,29 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = deletePageTablesValidateBeforeCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = deleteLinkAnnotationValidateBeforeCall(name, linkId, storage, folder, progressListener, progressRequestListener); Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for deleteProperties - * @param name (required) - * @param storage (optional) - * @param folder (optional) + * Build call for deletePage + * @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 deletePropertiesCall(String name, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call deletePageCall(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}/documentproperties" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + String localVarPath = "/pdf/{name}/pages/{pageNumber}" + .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) + .replaceAll("\\{" + "pageNumber" + "\\}", apiClient.escapeString(pageNumber.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -2540,45 +2500,51 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deletePropertiesValidateBeforeCall(String name, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call deletePageValidateBeforeCall(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 deleteProperties(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling deletePage(Async)"); + } + + // verify the required parameter 'pageNumber' is set + if (pageNumber == null) { + throw new ApiException("Missing the required parameter 'pageNumber' when calling deletePage(Async)"); } - com.squareup.okhttp.Call call = deletePropertiesCall(name, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = deletePageCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); return call; } /** - * Delete custom document properties. + * Delete document page by its number. * - * @param name (required) - * @param storage (optional) - * @param folder (optional) + * @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 AsposeResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public AsposeResponse deleteProperties(String name, String storage, String folder) throws ApiException { + public AsposeResponse deletePage(String name, Integer pageNumber, String storage, String folder) throws ApiException { try { - ApiResponse resp = deletePropertiesWithHttpInfo(name, storage, folder); + ApiResponse resp = deletePageWithHttpInfo(name, pageNumber, storage, folder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = deletePropertiesWithHttpInfo(name, storage, folder); + apiClient.requestToken(); + ApiResponse resp = deletePageWithHttpInfo(name, pageNumber, storage, folder); return resp.getData(); } throw ex; @@ -2586,31 +2552,33 @@ public AsposeResponse deleteProperties(String name, String storage, String folde } /** - * Delete custom document properties. + * Delete document page by its number. * - * @param name (required) - * @param storage (optional) - * @param folder (optional) + * @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<AsposeResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse deletePropertiesWithHttpInfo(String name, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = deletePropertiesValidateBeforeCall(name, storage, folder, null, null); + public ApiResponse deletePageWithHttpInfo(String name, Integer pageNumber, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = deletePageValidateBeforeCall(name, pageNumber, storage, folder, null, null); Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Delete custom document properties. (asynchronously) + * Delete document page by its number. (asynchronously) * - * @param name (required) - * @param storage (optional) - * @param folder (optional) + * @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 deletePropertiesAsync(String name, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call deletePageAsync(String name, Integer pageNumber, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -2631,29 +2599,29 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = deletePropertiesValidateBeforeCall(name, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = deletePageValidateBeforeCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for deleteProperty - * @param name (required) - * @param propertyName (required) - * @param storage (optional) - * @param folder (optional) + * Build call for deletePageAnnotations + * @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 deletePropertyCall(String name, String propertyName, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call deletePageAnnotationsCall(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}/documentproperties/{propertyName}" + String localVarPath = "/pdf/{name}/pages/{pageNumber}/annotations" .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "propertyName" + "\\}", apiClient.escapeString(propertyName.toString())); + .replaceAll("\\{" + "pageNumber" + "\\}", apiClient.escapeString(pageNumber.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -2690,51 +2658,51 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deletePropertyValidateBeforeCall(String name, String propertyName, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call deletePageAnnotationsValidateBeforeCall(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 deleteProperty(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling deletePageAnnotations(Async)"); } - // verify the required parameter 'propertyName' is set - if (propertyName == null) { - throw new ApiException("Missing the required parameter 'propertyName' when calling deleteProperty(Async)"); + // verify the required parameter 'pageNumber' is set + if (pageNumber == null) { + throw new ApiException("Missing the required parameter 'pageNumber' when calling deletePageAnnotations(Async)"); } - com.squareup.okhttp.Call call = deletePropertyCall(name, propertyName, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = deletePageAnnotationsCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); return call; } /** - * Delete document property. + * Delete all annotations from the page * - * @param name (required) - * @param propertyName (required) - * @param storage (optional) - * @param folder (optional) + * @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 AsposeResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public AsposeResponse deleteProperty(String name, String propertyName, String storage, String folder) throws ApiException { + public AsposeResponse deletePageAnnotations(String name, Integer pageNumber, String storage, String folder) throws ApiException { try { - ApiResponse resp = deletePropertyWithHttpInfo(name, propertyName, storage, folder); + ApiResponse resp = deletePageAnnotationsWithHttpInfo(name, pageNumber, storage, folder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = deletePropertyWithHttpInfo(name, propertyName, storage, folder); + apiClient.requestToken(); + ApiResponse resp = deletePageAnnotationsWithHttpInfo(name, pageNumber, storage, folder); return resp.getData(); } throw ex; @@ -2742,33 +2710,33 @@ public AsposeResponse deleteProperty(String name, String propertyName, String st } /** - * Delete document property. + * Delete all annotations from the page * - * @param name (required) - * @param propertyName (required) - * @param storage (optional) - * @param folder (optional) + * @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<AsposeResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse deletePropertyWithHttpInfo(String name, String propertyName, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = deletePropertyValidateBeforeCall(name, propertyName, storage, folder, null, null); + public ApiResponse deletePageAnnotationsWithHttpInfo(String name, Integer pageNumber, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = deletePageAnnotationsValidateBeforeCall(name, pageNumber, storage, folder, null, null); Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Delete document property. (asynchronously) + * Delete all annotations from the page (asynchronously) * - * @param name (required) - * @param propertyName (required) - * @param storage (optional) - * @param folder (optional) + * @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 deletePropertyAsync(String name, String propertyName, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call deletePageAnnotationsAsync(String name, Integer pageNumber, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -2789,15 +2757,15 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = deletePropertyValidateBeforeCall(name, propertyName, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = deletePageAnnotationsValidateBeforeCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for deleteStamp + * Build call for deletePageLinkAnnotations * @param name The document name. (required) - * @param stampId The stamp ID. (required) + * @param pageNumber The page number. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) * @param progressListener Progress listener @@ -2805,13 +2773,13 @@ 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 deleteStampCall(String name, String stampId, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call deletePageLinkAnnotationsCall(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}/stamps/{stampId}" + String localVarPath = "/pdf/{name}/pages/{pageNumber}/links" .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "stampId" + "\\}", apiClient.escapeString(stampId.toString())); + .replaceAll("\\{" + "pageNumber" + "\\}", apiClient.escapeString(pageNumber.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -2848,51 +2816,51 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deleteStampValidateBeforeCall(String name, String stampId, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call deletePageLinkAnnotationsValidateBeforeCall(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 deleteStamp(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling deletePageLinkAnnotations(Async)"); } - // verify the required parameter 'stampId' is set - if (stampId == null) { - throw new ApiException("Missing the required parameter 'stampId' when calling deleteStamp(Async)"); + // verify the required parameter 'pageNumber' is set + if (pageNumber == null) { + throw new ApiException("Missing the required parameter 'pageNumber' when calling deletePageLinkAnnotations(Async)"); } - com.squareup.okhttp.Call call = deleteStampCall(name, stampId, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = deletePageLinkAnnotationsCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); return call; } /** - * Delete document stamp by ID + * Delete all link annotations from the page * * @param name The document name. (required) - * @param stampId The stamp ID. (required) + * @param pageNumber The page number. (required) * @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 AsposeResponse deleteStamp(String name, String stampId, String storage, String folder) throws ApiException { + public AsposeResponse deletePageLinkAnnotations(String name, Integer pageNumber, String storage, String folder) throws ApiException { try { - ApiResponse resp = deleteStampWithHttpInfo(name, stampId, storage, folder); + ApiResponse resp = deletePageLinkAnnotationsWithHttpInfo(name, pageNumber, storage, folder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = deleteStampWithHttpInfo(name, stampId, storage, folder); + apiClient.requestToken(); + ApiResponse resp = deletePageLinkAnnotationsWithHttpInfo(name, pageNumber, storage, folder); return resp.getData(); } throw ex; @@ -2900,33 +2868,33 @@ public AsposeResponse deleteStamp(String name, String stampId, String storage, S } /** - * Delete document stamp by ID + * Delete all link annotations from the page * * @param name The document name. (required) - * @param stampId The stamp ID. (required) + * @param pageNumber The page number. (required) * @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 deleteStampWithHttpInfo(String name, String stampId, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = deleteStampValidateBeforeCall(name, stampId, storage, folder, null, null); + public ApiResponse deletePageLinkAnnotationsWithHttpInfo(String name, Integer pageNumber, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = deletePageLinkAnnotationsValidateBeforeCall(name, pageNumber, storage, folder, null, null); Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Delete document stamp by ID (asynchronously) + * Delete all link annotations from the page (asynchronously) * * @param name The document name. (required) - * @param stampId The stamp ID. (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 deleteStampAsync(String name, String stampId, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call deletePageLinkAnnotationsAsync(String name, Integer pageNumber, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -2947,15 +2915,15 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = deleteStampValidateBeforeCall(name, stampId, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = deletePageLinkAnnotationsValidateBeforeCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for deleteTable + * Build call for deletePageStamps * @param name The document name. (required) - * @param tableId The table ID. (required) + * @param pageNumber The page number. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) * @param progressListener Progress listener @@ -2963,13 +2931,13 @@ 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 deleteTableCall(String name, String tableId, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call deletePageStampsCall(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}/tables/{tableId}" + String localVarPath = "/pdf/{name}/pages/{pageNumber}/stamps" .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "tableId" + "\\}", apiClient.escapeString(tableId.toString())); + .replaceAll("\\{" + "pageNumber" + "\\}", apiClient.escapeString(pageNumber.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -3006,51 +2974,51 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deleteTableValidateBeforeCall(String name, String tableId, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call deletePageStampsValidateBeforeCall(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 deleteTable(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling deletePageStamps(Async)"); } - // verify the required parameter 'tableId' is set - if (tableId == null) { - throw new ApiException("Missing the required parameter 'tableId' when calling deleteTable(Async)"); + // verify the required parameter 'pageNumber' is set + if (pageNumber == null) { + throw new ApiException("Missing the required parameter 'pageNumber' when calling deletePageStamps(Async)"); } - com.squareup.okhttp.Call call = deleteTableCall(name, tableId, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = deletePageStampsCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); return call; } /** - * Delete document table by ID + * Delete all stamps from the page * * @param name The document name. (required) - * @param tableId The table ID. (required) + * @param pageNumber The page number. (required) * @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 AsposeResponse deleteTable(String name, String tableId, String storage, String folder) throws ApiException { + public AsposeResponse deletePageStamps(String name, Integer pageNumber, String storage, String folder) throws ApiException { try { - ApiResponse resp = deleteTableWithHttpInfo(name, tableId, storage, folder); + ApiResponse resp = deletePageStampsWithHttpInfo(name, pageNumber, storage, folder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = deleteTableWithHttpInfo(name, tableId, storage, folder); + apiClient.requestToken(); + ApiResponse resp = deletePageStampsWithHttpInfo(name, pageNumber, storage, folder); return resp.getData(); } throw ex; @@ -3058,33 +3026,33 @@ public AsposeResponse deleteTable(String name, String tableId, String storage, S } /** - * Delete document table by ID + * Delete all stamps from the page * * @param name The document name. (required) - * @param tableId The table ID. (required) + * @param pageNumber The page number. (required) * @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 deleteTableWithHttpInfo(String name, String tableId, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = deleteTableValidateBeforeCall(name, tableId, storage, folder, null, null); + public ApiResponse deletePageStampsWithHttpInfo(String name, Integer pageNumber, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = deletePageStampsValidateBeforeCall(name, pageNumber, storage, folder, null, null); Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Delete document table by ID (asynchronously) + * Delete all stamps from the page (asynchronously) * * @param name The document name. (required) - * @param tableId The table ID. (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 deleteTableAsync(String name, String tableId, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call deletePageStampsAsync(String name, Integer pageNumber, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -3105,15 +3073,15 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = deleteTableValidateBeforeCall(name, tableId, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = deletePageStampsValidateBeforeCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for getCaretAnnotation + * Build call for deletePageTables * @param name The document name. (required) - * @param annotationId The annotation ID. (required) + * @param pageNumber The page number. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) * @param progressListener Progress listener @@ -3121,13 +3089,13 @@ 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 getCaretAnnotationCall(String name, String annotationId, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call deletePageTablesCall(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}/annotations/caret/{annotationId}" + String localVarPath = "/pdf/{name}/pages/{pageNumber}/tables" .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "annotationId" + "\\}", apiClient.escapeString(annotationId.toString())); + .replaceAll("\\{" + "pageNumber" + "\\}", apiClient.escapeString(pageNumber.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -3164,51 +3132,51 @@ 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); + String[] localVarAuthNames = new String[] { "JWT" }; + return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getCaretAnnotationValidateBeforeCall(String name, String annotationId, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call deletePageTablesValidateBeforeCall(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 getCaretAnnotation(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling deletePageTables(Async)"); } - // verify the required parameter 'annotationId' is set - if (annotationId == null) { - throw new ApiException("Missing the required parameter 'annotationId' when calling getCaretAnnotation(Async)"); + // verify the required parameter 'pageNumber' is set + if (pageNumber == null) { + throw new ApiException("Missing the required parameter 'pageNumber' when calling deletePageTables(Async)"); } - com.squareup.okhttp.Call call = getCaretAnnotationCall(name, annotationId, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = deletePageTablesCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); return call; } /** - * Read document page caret annotation by ID. + * Delete all tables from the page * * @param name The document name. (required) - * @param annotationId The annotation ID. (required) + * @param pageNumber The page number. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) - * @return CaretAnnotationResponse + * @return AsposeResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public CaretAnnotationResponse getCaretAnnotation(String name, String annotationId, String storage, String folder) throws ApiException { + public AsposeResponse deletePageTables(String name, Integer pageNumber, String storage, String folder) throws ApiException { try { - ApiResponse resp = getCaretAnnotationWithHttpInfo(name, annotationId, storage, folder); + ApiResponse resp = deletePageTablesWithHttpInfo(name, pageNumber, storage, folder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = getCaretAnnotationWithHttpInfo(name, annotationId, storage, folder); + apiClient.requestToken(); + ApiResponse resp = deletePageTablesWithHttpInfo(name, pageNumber, storage, folder); return resp.getData(); } throw ex; @@ -3216,33 +3184,33 @@ public CaretAnnotationResponse getCaretAnnotation(String name, String annotation } /** - * Read document page caret annotation by ID. + * Delete all tables from the page * * @param name The document name. (required) - * @param annotationId The annotation ID. (required) + * @param pageNumber The page number. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) - * @return ApiResponse<CaretAnnotationResponse> + * @return ApiResponse<AsposeResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse getCaretAnnotationWithHttpInfo(String name, String annotationId, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = getCaretAnnotationValidateBeforeCall(name, annotationId, storage, folder, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse deletePageTablesWithHttpInfo(String name, Integer pageNumber, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = deletePageTablesValidateBeforeCall(name, pageNumber, storage, folder, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Read document page caret annotation by ID. (asynchronously) + * Delete all tables from the page (asynchronously) * * @param name The document name. (required) - * @param annotationId The annotation ID. (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 getCaretAnnotationAsync(String name, String annotationId, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call deletePageTablesAsync(String name, Integer pageNumber, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -3263,29 +3231,27 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = getCaretAnnotationValidateBeforeCall(name, annotationId, storage, folder, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = deletePageTablesValidateBeforeCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for getCircleAnnotation - * @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 deleteProperties + * @param name (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 getCircleAnnotationCall(String name, String annotationId, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call deletePropertiesCall(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/circle/{annotationId}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "annotationId" + "\\}", apiClient.escapeString(annotationId.toString())); + String localVarPath = "/pdf/{name}/documentproperties" + .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -3322,51 +3288,45 @@ 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); + String[] localVarAuthNames = new String[] { "JWT" }; + return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getCircleAnnotationValidateBeforeCall(String name, String annotationId, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call deletePropertiesValidateBeforeCall(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 getCircleAnnotation(Async)"); - } - - // verify the required parameter 'annotationId' is set - if (annotationId == null) { - throw new ApiException("Missing the required parameter 'annotationId' when calling getCircleAnnotation(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling deleteProperties(Async)"); } - com.squareup.okhttp.Call call = getCircleAnnotationCall(name, annotationId, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = deletePropertiesCall(name, storage, folder, progressListener, progressRequestListener); return call; } /** - * Read document page circle annotation by ID. + * Delete custom document properties. * - * @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 CircleAnnotationResponse + * @param name (required) + * @param storage (optional) + * @param folder (optional) + * @return AsposeResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public CircleAnnotationResponse getCircleAnnotation(String name, String annotationId, String storage, String folder) throws ApiException { + public AsposeResponse deleteProperties(String name, String storage, String folder) throws ApiException { try { - ApiResponse resp = getCircleAnnotationWithHttpInfo(name, annotationId, storage, folder); + ApiResponse resp = deletePropertiesWithHttpInfo(name, storage, folder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = getCircleAnnotationWithHttpInfo(name, annotationId, storage, folder); + apiClient.requestToken(); + ApiResponse resp = deletePropertiesWithHttpInfo(name, storage, folder); return resp.getData(); } throw ex; @@ -3374,33 +3334,31 @@ public CircleAnnotationResponse getCircleAnnotation(String name, String annotati } /** - * Read document page circle annotation by ID. + * Delete custom document properties. * - * @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<CircleAnnotationResponse> + * @param name (required) + * @param storage (optional) + * @param 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 getCircleAnnotationWithHttpInfo(String name, String annotationId, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = getCircleAnnotationValidateBeforeCall(name, annotationId, storage, folder, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse deletePropertiesWithHttpInfo(String name, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = deletePropertiesValidateBeforeCall(name, storage, folder, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Read document page circle annotation by ID. (asynchronously) + * Delete custom document properties. (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 (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 getCircleAnnotationAsync(String name, String annotationId, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call deletePropertiesAsync(String name, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -3421,29 +3379,36 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = getCircleAnnotationValidateBeforeCall(name, annotationId, storage, folder, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = deletePropertiesValidateBeforeCall(name, storage, folder, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for getDiscUsage - * @param storage User's storage name (optional) + * Build call for deleteProperty + * @param name (required) + * @param propertyName (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 getDiscUsageCall(String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call deletePropertyCall(String name, String propertyName, 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/disc"; + String localVarPath = "/pdf/{name}/documentproperties/{propertyName}" + .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) + .replaceAll("\\{" + "propertyName" + "\\}", apiClient.escapeString(propertyName.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(); @@ -3473,38 +3438,51 @@ 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); + String[] localVarAuthNames = new String[] { "JWT" }; + return apiClient.buildCall(localVarPath, "DELETE", 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 { + private com.squareup.okhttp.Call deletePropertyValidateBeforeCall(String name, String propertyName, 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 deleteProperty(Async)"); + } + + // verify the required parameter 'propertyName' is set + if (propertyName == null) { + throw new ApiException("Missing the required parameter 'propertyName' when calling deleteProperty(Async)"); + } - com.squareup.okhttp.Call call = getDiscUsageCall(storage, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = deletePropertyCall(name, propertyName, storage, folder, progressListener, progressRequestListener); return call; } /** - * Check the disk usage of the current account + * Delete document property. * - * @param storage User's storage name (optional) - * @return DiscUsageResponse + * @param name (required) + * @param propertyName (required) + * @param storage (optional) + * @param folder (optional) + * @return AsposeResponse * @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 { + public AsposeResponse deleteProperty(String name, String propertyName, String storage, String folder) throws ApiException { try { - ApiResponse resp = getDiscUsageWithHttpInfo(storage); + ApiResponse resp = deletePropertyWithHttpInfo(name, propertyName, storage, folder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = getDiscUsageWithHttpInfo(storage); + apiClient.requestToken(); + ApiResponse resp = deletePropertyWithHttpInfo(name, propertyName, storage, folder); return resp.getData(); } throw ex; @@ -3512,27 +3490,33 @@ public DiscUsageResponse getDiscUsage(String storage) throws ApiException { } /** - * Check the disk usage of the current account + * Delete document property. * - * @param storage User's storage name (optional) - * @return ApiResponse<DiscUsageResponse> + * @param name (required) + * @param propertyName (required) + * @param storage (optional) + * @param 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 getDiscUsageWithHttpInfo(String storage) throws ApiException { - com.squareup.okhttp.Call call = getDiscUsageValidateBeforeCall(storage, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse deletePropertyWithHttpInfo(String name, String propertyName, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = deletePropertyValidateBeforeCall(name, propertyName, storage, folder, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Check the disk usage of the current account (asynchronously) + * Delete document property. (asynchronously) * - * @param storage User's storage name (optional) + * @param name (required) + * @param propertyName (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 getDiscUsageAsync(String storage, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call deletePropertyAsync(String name, String propertyName, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -3553,14 +3537,15 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = getDiscUsageValidateBeforeCall(storage, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = deletePropertyValidateBeforeCall(name, propertyName, storage, folder, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for getDocument + * Build call for deleteStamp * @param name The document name. (required) + * @param stampId The stamp ID. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) * @param progressListener Progress listener @@ -3568,12 +3553,13 @@ 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 getDocumentCall(String name, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call deleteStampCall(String name, String stampId, 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}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + String localVarPath = "/pdf/{name}/stamps/{stampId}" + .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) + .replaceAll("\\{" + "stampId" + "\\}", apiClient.escapeString(stampId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -3610,45 +3596,51 @@ 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); + String[] localVarAuthNames = new String[] { "JWT" }; + return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getDocumentValidateBeforeCall(String name, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call deleteStampValidateBeforeCall(String name, String stampId, 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 getDocument(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling deleteStamp(Async)"); + } + + // verify the required parameter 'stampId' is set + if (stampId == null) { + throw new ApiException("Missing the required parameter 'stampId' when calling deleteStamp(Async)"); } - com.squareup.okhttp.Call call = getDocumentCall(name, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = deleteStampCall(name, stampId, storage, folder, progressListener, progressRequestListener); return call; } /** - * Read common document info. + * Delete document stamp by ID * * @param name The document name. (required) + * @param stampId The stamp ID. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) - * @return DocumentResponse + * @return AsposeResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public DocumentResponse getDocument(String name, String storage, String folder) throws ApiException { + public AsposeResponse deleteStamp(String name, String stampId, String storage, String folder) throws ApiException { try { - ApiResponse resp = getDocumentWithHttpInfo(name, storage, folder); + ApiResponse resp = deleteStampWithHttpInfo(name, stampId, storage, folder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = getDocumentWithHttpInfo(name, storage, folder); + apiClient.requestToken(); + ApiResponse resp = deleteStampWithHttpInfo(name, stampId, storage, folder); return resp.getData(); } throw ex; @@ -3656,31 +3648,33 @@ public DocumentResponse getDocument(String name, String storage, String folder) } /** - * Read common document info. + * Delete document stamp by ID * * @param name The document name. (required) + * @param stampId The stamp ID. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) - * @return ApiResponse<DocumentResponse> + * @return ApiResponse<AsposeResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse getDocumentWithHttpInfo(String name, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = getDocumentValidateBeforeCall(name, storage, folder, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse deleteStampWithHttpInfo(String name, String stampId, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = deleteStampValidateBeforeCall(name, stampId, storage, folder, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Read common document info. (asynchronously) + * Delete document stamp by ID (asynchronously) * * @param name The document name. (required) + * @param stampId The stamp 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 getDocumentAsync(String name, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call deleteStampAsync(String name, String stampId, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -3701,14 +3695,15 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = getDocumentValidateBeforeCall(name, storage, folder, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = deleteStampValidateBeforeCall(name, stampId, storage, folder, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for getDocumentAnnotations + * Build call for deleteTable * @param name The document name. (required) + * @param tableId The table ID. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) * @param progressListener Progress listener @@ -3716,12 +3711,13 @@ 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 getDocumentAnnotationsCall(String name, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call deleteTableCall(String name, String tableId, 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" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + String localVarPath = "/pdf/{name}/tables/{tableId}" + .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) + .replaceAll("\\{" + "tableId" + "\\}", apiClient.escapeString(tableId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -3758,45 +3754,51 @@ 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); + String[] localVarAuthNames = new String[] { "JWT" }; + return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getDocumentAnnotationsValidateBeforeCall(String name, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call deleteTableValidateBeforeCall(String name, String tableId, 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 getDocumentAnnotations(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling deleteTable(Async)"); + } + + // verify the required parameter 'tableId' is set + if (tableId == null) { + throw new ApiException("Missing the required parameter 'tableId' when calling deleteTable(Async)"); } - com.squareup.okhttp.Call call = getDocumentAnnotationsCall(name, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = deleteTableCall(name, tableId, storage, folder, progressListener, progressRequestListener); return call; } /** - * Read documant page annotations. Returns only FreeTextAnnotations, TextAnnotations, other annotations will implemented next releases. + * Delete document table by ID * * @param name The document name. (required) + * @param tableId The table ID. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) - * @return AnnotationsInfoResponse + * @return AsposeResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public AnnotationsInfoResponse getDocumentAnnotations(String name, String storage, String folder) throws ApiException { + public AsposeResponse deleteTable(String name, String tableId, String storage, String folder) throws ApiException { try { - ApiResponse resp = getDocumentAnnotationsWithHttpInfo(name, storage, folder); + ApiResponse resp = deleteTableWithHttpInfo(name, tableId, storage, folder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = getDocumentAnnotationsWithHttpInfo(name, storage, folder); + apiClient.requestToken(); + ApiResponse resp = deleteTableWithHttpInfo(name, tableId, storage, folder); return resp.getData(); } throw ex; @@ -3804,31 +3806,33 @@ public AnnotationsInfoResponse getDocumentAnnotations(String name, String storag } /** - * Read documant page annotations. Returns only FreeTextAnnotations, TextAnnotations, other annotations will implemented next releases. + * Delete document table by ID * * @param name The document name. (required) + * @param tableId The table ID. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) - * @return ApiResponse<AnnotationsInfoResponse> + * @return ApiResponse<AsposeResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse getDocumentAnnotationsWithHttpInfo(String name, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = getDocumentAnnotationsValidateBeforeCall(name, storage, folder, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse deleteTableWithHttpInfo(String name, String tableId, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = deleteTableValidateBeforeCall(name, tableId, storage, folder, 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) + * Delete document table by ID (asynchronously) * * @param name The document name. (required) + * @param tableId The table 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 getDocumentAnnotationsAsync(String name, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call deleteTableAsync(String name, String tableId, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -3849,43 +3853,41 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = getDocumentAnnotationsValidateBeforeCall(name, storage, folder, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = deleteTableValidateBeforeCall(name, tableId, storage, folder, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for getDocumentAttachmentByIndex - * @param name The document name. (required) - * @param attachmentIndex The attachment index. (required) - * @param storage The document storage. (optional) - * @param folder The document folder. (optional) + * Build call for downloadFile + * @param path File path e.g. '/folder/file.ext' (required) + * @param storageName Storage name (optional) + * @param versionId File version ID to download (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 getDocumentAttachmentByIndexCall(String name, Integer attachmentIndex, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call downloadFileCall(String path, String storageName, String versionId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; // create path and map variables - String localVarPath = "/pdf/{name}/attachments/{attachmentIndex}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "attachmentIndex" + "\\}", apiClient.escapeString(attachmentIndex.toString())); + String localVarPath = "/pdf/storage/file/{path}" + .replaceAll("\\{" + "path" + "\\}", apiClient.escapeString(path.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)); + if (storageName != null) + localVarQueryParams.addAll(apiClient.parameterToPair("storageName", storageName)); + if (versionId != null) + localVarQueryParams.addAll(apiClient.parameterToPair("versionId", versionId)); 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); @@ -3908,51 +3910,45 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getDocumentAttachmentByIndexValidateBeforeCall(String name, Integer attachmentIndex, 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 getDocumentAttachmentByIndex(Async)"); - } + private com.squareup.okhttp.Call downloadFileValidateBeforeCall(String path, String storageName, String versionId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - // verify the required parameter 'attachmentIndex' is set - if (attachmentIndex == null) { - throw new ApiException("Missing the required parameter 'attachmentIndex' when calling getDocumentAttachmentByIndex(Async)"); + // verify the required parameter 'path' is set + if (path == null) { + throw new ApiException("Missing the required parameter 'path' when calling downloadFile(Async)"); } - com.squareup.okhttp.Call call = getDocumentAttachmentByIndexCall(name, attachmentIndex, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = downloadFileCall(path, storageName, versionId, progressListener, progressRequestListener); return call; } /** - * Read document attachment info by its index. + * Download file * - * @param name The document name. (required) - * @param attachmentIndex The attachment index. (required) - * @param storage The document storage. (optional) - * @param folder The document folder. (optional) - * @return AttachmentResponse + * @param path File path e.g. '/folder/file.ext' (required) + * @param storageName Storage name (optional) + * @param versionId File version ID to download (optional) + * @return File * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public AttachmentResponse getDocumentAttachmentByIndex(String name, Integer attachmentIndex, String storage, String folder) throws ApiException { + public File downloadFile(String path, String storageName, String versionId) throws ApiException { try { - ApiResponse resp = getDocumentAttachmentByIndexWithHttpInfo(name, attachmentIndex, storage, folder); + ApiResponse resp = downloadFileWithHttpInfo(path, storageName, versionId); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = getDocumentAttachmentByIndexWithHttpInfo(name, attachmentIndex, storage, folder); + apiClient.requestToken(); + ApiResponse resp = downloadFileWithHttpInfo(path, storageName, versionId); return resp.getData(); } throw ex; @@ -3960,33 +3956,31 @@ public AttachmentResponse getDocumentAttachmentByIndex(String name, Integer atta } /** - * Read document attachment info by its index. + * Download file * - * @param name The document name. (required) - * @param attachmentIndex The attachment index. (required) - * @param storage The document storage. (optional) - * @param folder The document folder. (optional) - * @return ApiResponse<AttachmentResponse> + * @param path File path e.g. '/folder/file.ext' (required) + * @param storageName Storage name (optional) + * @param versionId File version ID to download (optional) + * @return ApiResponse<File> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse getDocumentAttachmentByIndexWithHttpInfo(String name, Integer attachmentIndex, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = getDocumentAttachmentByIndexValidateBeforeCall(name, attachmentIndex, storage, folder, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse downloadFileWithHttpInfo(String path, String storageName, String versionId) throws ApiException { + com.squareup.okhttp.Call call = downloadFileValidateBeforeCall(path, storageName, versionId, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Read document attachment info by its index. (asynchronously) + * Download file (asynchronously) * - * @param name The document name. (required) - * @param attachmentIndex The attachment index. (required) - * @param storage The document storage. (optional) - * @param folder The document folder. (optional) + * @param path File path e.g. '/folder/file.ext' (required) + * @param storageName Storage name (optional) + * @param versionId File version ID to download (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 getDocumentAttachmentByIndexAsync(String name, Integer attachmentIndex, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call downloadFileAsync(String path, String storageName, String versionId, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -4007,34 +4001,36 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = getDocumentAttachmentByIndexValidateBeforeCall(name, attachmentIndex, storage, folder, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = downloadFileValidateBeforeCall(path, storageName, versionId, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for getDocumentAttachments + * Build call for getBookmark * @param name The document name. (required) - * @param storage The document storage. (optional) + * @param bookmarkPath The bookmark path. (required) * @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 getDocumentAttachmentsCall(String name, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call getBookmarkCall(String name, String bookmarkPath, 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}/attachments" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + String localVarPath = "/pdf/{name}/bookmarks/bookmark/{bookmarkPath}" + .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) + .replaceAll("\\{" + "bookmarkPath" + "\\}", apiClient.escapeString(bookmarkPath.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)); + if (storage != null) + localVarQueryParams.addAll(apiClient.parameterToPair("storage", storage)); Map localVarHeaderParams = new HashMap(); @@ -4064,45 +4060,51 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getDocumentAttachmentsValidateBeforeCall(String name, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call getBookmarkValidateBeforeCall(String name, String bookmarkPath, 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 getDocumentAttachments(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling getBookmark(Async)"); + } + + // verify the required parameter 'bookmarkPath' is set + if (bookmarkPath == null) { + throw new ApiException("Missing the required parameter 'bookmarkPath' when calling getBookmark(Async)"); } - com.squareup.okhttp.Call call = getDocumentAttachmentsCall(name, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getBookmarkCall(name, bookmarkPath, folder, storage, progressListener, progressRequestListener); return call; } /** - * Read document attachments info. + * Read document bookmark. * * @param name The document name. (required) - * @param storage The document storage. (optional) + * @param bookmarkPath The bookmark path. (required) * @param folder The document folder. (optional) - * @return AttachmentsResponse + * @param storage The document storage. (optional) + * @return BookmarkResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public AttachmentsResponse getDocumentAttachments(String name, String storage, String folder) throws ApiException { + public BookmarkResponse getBookmark(String name, String bookmarkPath, String folder, String storage) throws ApiException { try { - ApiResponse resp = getDocumentAttachmentsWithHttpInfo(name, storage, folder); + ApiResponse resp = getBookmarkWithHttpInfo(name, bookmarkPath, folder, storage); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = getDocumentAttachmentsWithHttpInfo(name, storage, folder); + apiClient.requestToken(); + ApiResponse resp = getBookmarkWithHttpInfo(name, bookmarkPath, folder, storage); return resp.getData(); } throw ex; @@ -4110,31 +4112,33 @@ public AttachmentsResponse getDocumentAttachments(String name, String storage, S } /** - * Read document attachments info. + * Read document bookmark. * * @param name The document name. (required) - * @param storage The document storage. (optional) + * @param bookmarkPath The bookmark path. (required) * @param folder The document folder. (optional) - * @return ApiResponse<AttachmentsResponse> + * @param storage The document storage. (optional) + * @return ApiResponse<BookmarkResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse getDocumentAttachmentsWithHttpInfo(String name, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = getDocumentAttachmentsValidateBeforeCall(name, storage, folder, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse getBookmarkWithHttpInfo(String name, String bookmarkPath, String folder, String storage) throws ApiException { + com.squareup.okhttp.Call call = getBookmarkValidateBeforeCall(name, bookmarkPath, folder, storage, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Read document attachments info. (asynchronously) + * Read document bookmark. (asynchronously) * * @param name The document name. (required) - * @param storage The document storage. (optional) + * @param bookmarkPath The bookmark path. (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 getDocumentAttachmentsAsync(String name, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call getBookmarkAsync(String name, String bookmarkPath, String folder, String storage, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -4155,34 +4159,36 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = getDocumentAttachmentsValidateBeforeCall(name, storage, folder, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = getBookmarkValidateBeforeCall(name, bookmarkPath, folder, storage, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for getDocumentCaretAnnotations + * Build call for getBookmarks * @param name The document name. (required) - * @param storage The document storage. (optional) + * @param bookmarkPath The bookmark path. (required) * @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 getDocumentCaretAnnotationsCall(String name, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call getBookmarksCall(String name, String bookmarkPath, 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/caret" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + String localVarPath = "/pdf/{name}/bookmarks/list/{bookmarkPath}" + .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) + .replaceAll("\\{" + "bookmarkPath" + "\\}", apiClient.escapeString(bookmarkPath.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)); + if (storage != null) + localVarQueryParams.addAll(apiClient.parameterToPair("storage", storage)); Map localVarHeaderParams = new HashMap(); @@ -4212,45 +4218,51 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getDocumentCaretAnnotationsValidateBeforeCall(String name, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call getBookmarksValidateBeforeCall(String name, String bookmarkPath, 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 getDocumentCaretAnnotations(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling getBookmarks(Async)"); + } + + // verify the required parameter 'bookmarkPath' is set + if (bookmarkPath == null) { + throw new ApiException("Missing the required parameter 'bookmarkPath' when calling getBookmarks(Async)"); } - com.squareup.okhttp.Call call = getDocumentCaretAnnotationsCall(name, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getBookmarksCall(name, bookmarkPath, folder, storage, progressListener, progressRequestListener); return call; } /** - * Read document caret annotations. + * Read document bookmarks node list. * * @param name The document name. (required) - * @param storage The document storage. (optional) + * @param bookmarkPath The bookmark path. (required) * @param folder The document folder. (optional) - * @return CaretAnnotationsResponse + * @param storage The document storage. (optional) + * @return BookmarksResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public CaretAnnotationsResponse getDocumentCaretAnnotations(String name, String storage, String folder) throws ApiException { + public BookmarksResponse getBookmarks(String name, String bookmarkPath, String folder, String storage) throws ApiException { try { - ApiResponse resp = getDocumentCaretAnnotationsWithHttpInfo(name, storage, folder); + ApiResponse resp = getBookmarksWithHttpInfo(name, bookmarkPath, folder, storage); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = getDocumentCaretAnnotationsWithHttpInfo(name, storage, folder); + apiClient.requestToken(); + ApiResponse resp = getBookmarksWithHttpInfo(name, bookmarkPath, folder, storage); return resp.getData(); } throw ex; @@ -4258,31 +4270,33 @@ public CaretAnnotationsResponse getDocumentCaretAnnotations(String name, String } /** - * Read document caret annotations. + * Read document bookmarks node list. * * @param name The document name. (required) - * @param storage The document storage. (optional) + * @param bookmarkPath The bookmark path. (required) * @param folder The document folder. (optional) - * @return ApiResponse<CaretAnnotationsResponse> + * @param storage The document storage. (optional) + * @return ApiResponse<BookmarksResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse getDocumentCaretAnnotationsWithHttpInfo(String name, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = getDocumentCaretAnnotationsValidateBeforeCall(name, storage, folder, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse getBookmarksWithHttpInfo(String name, String bookmarkPath, String folder, String storage) throws ApiException { + com.squareup.okhttp.Call call = getBookmarksValidateBeforeCall(name, bookmarkPath, folder, storage, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Read document caret annotations. (asynchronously) + * Read document bookmarks node list. (asynchronously) * * @param name The document name. (required) - * @param storage The document storage. (optional) + * @param bookmarkPath The bookmark path. (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 getDocumentCaretAnnotationsAsync(String name, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call getBookmarksAsync(String name, String bookmarkPath, String folder, String storage, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -4303,14 +4317,15 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = getDocumentCaretAnnotationsValidateBeforeCall(name, storage, folder, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = getBookmarksValidateBeforeCall(name, bookmarkPath, folder, storage, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for getDocumentCircleAnnotations + * Build call for getCaretAnnotation * @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 @@ -4318,12 +4333,13 @@ 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 getDocumentCircleAnnotationsCall(String name, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call getCaretAnnotationCall(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/circle" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + String localVarPath = "/pdf/{name}/annotations/caret/{annotationId}" + .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) + .replaceAll("\\{" + "annotationId" + "\\}", apiClient.escapeString(annotationId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -4360,45 +4376,51 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getDocumentCircleAnnotationsValidateBeforeCall(String name, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call getCaretAnnotationValidateBeforeCall(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 getDocumentCircleAnnotations(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling getCaretAnnotation(Async)"); + } + + // verify the required parameter 'annotationId' is set + if (annotationId == null) { + throw new ApiException("Missing the required parameter 'annotationId' when calling getCaretAnnotation(Async)"); } - com.squareup.okhttp.Call call = getDocumentCircleAnnotationsCall(name, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getCaretAnnotationCall(name, annotationId, storage, folder, progressListener, progressRequestListener); return call; } /** - * Read document circle annotations. + * Read document page caret 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 CircleAnnotationsResponse + * @return CaretAnnotationResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public CircleAnnotationsResponse getDocumentCircleAnnotations(String name, String storage, String folder) throws ApiException { + public CaretAnnotationResponse getCaretAnnotation(String name, String annotationId, String storage, String folder) throws ApiException { try { - ApiResponse resp = getDocumentCircleAnnotationsWithHttpInfo(name, storage, folder); + ApiResponse resp = getCaretAnnotationWithHttpInfo(name, annotationId, storage, folder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = getDocumentCircleAnnotationsWithHttpInfo(name, storage, folder); + apiClient.requestToken(); + ApiResponse resp = getCaretAnnotationWithHttpInfo(name, annotationId, storage, folder); return resp.getData(); } throw ex; @@ -4406,31 +4428,33 @@ public CircleAnnotationsResponse getDocumentCircleAnnotations(String name, Strin } /** - * Read document circle annotations. + * Read document page caret 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<CircleAnnotationsResponse> + * @return ApiResponse<CaretAnnotationResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse getDocumentCircleAnnotationsWithHttpInfo(String name, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = getDocumentCircleAnnotationsValidateBeforeCall(name, storage, folder, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse getCaretAnnotationWithHttpInfo(String name, String annotationId, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = getCaretAnnotationValidateBeforeCall(name, annotationId, storage, folder, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Read document circle annotations. (asynchronously) + * Read document page caret annotation by ID. (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 getDocumentCircleAnnotationsAsync(String name, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call getCaretAnnotationAsync(String name, String annotationId, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -4451,14 +4475,15 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = getDocumentCircleAnnotationsValidateBeforeCall(name, storage, folder, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = getCaretAnnotationValidateBeforeCall(name, annotationId, storage, folder, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for getDocumentFileAttachmentAnnotations + * Build call for getCircleAnnotation * @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 @@ -4466,12 +4491,13 @@ 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 getDocumentFileAttachmentAnnotationsCall(String name, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call getCircleAnnotationCall(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/fileattachment" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + String localVarPath = "/pdf/{name}/annotations/circle/{annotationId}" + .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) + .replaceAll("\\{" + "annotationId" + "\\}", apiClient.escapeString(annotationId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -4508,45 +4534,51 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getDocumentFileAttachmentAnnotationsValidateBeforeCall(String name, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call getCircleAnnotationValidateBeforeCall(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 getDocumentFileAttachmentAnnotations(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling getCircleAnnotation(Async)"); + } + + // verify the required parameter 'annotationId' is set + if (annotationId == null) { + throw new ApiException("Missing the required parameter 'annotationId' when calling getCircleAnnotation(Async)"); } - com.squareup.okhttp.Call call = getDocumentFileAttachmentAnnotationsCall(name, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getCircleAnnotationCall(name, annotationId, storage, folder, progressListener, progressRequestListener); return call; } /** - * Read document FileAttachment annotations. + * Read document page circle 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 FileAttachmentAnnotationsResponse + * @return CircleAnnotationResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public FileAttachmentAnnotationsResponse getDocumentFileAttachmentAnnotations(String name, String storage, String folder) throws ApiException { + public CircleAnnotationResponse getCircleAnnotation(String name, String annotationId, String storage, String folder) throws ApiException { try { - ApiResponse resp = getDocumentFileAttachmentAnnotationsWithHttpInfo(name, storage, folder); + ApiResponse resp = getCircleAnnotationWithHttpInfo(name, annotationId, storage, folder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = getDocumentFileAttachmentAnnotationsWithHttpInfo(name, storage, folder); + apiClient.requestToken(); + ApiResponse resp = getCircleAnnotationWithHttpInfo(name, annotationId, storage, folder); return resp.getData(); } throw ex; @@ -4554,31 +4586,33 @@ public FileAttachmentAnnotationsResponse getDocumentFileAttachmentAnnotations(St } /** - * Read document FileAttachment annotations. + * Read document page circle 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<FileAttachmentAnnotationsResponse> + * @return ApiResponse<CircleAnnotationResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse getDocumentFileAttachmentAnnotationsWithHttpInfo(String name, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = getDocumentFileAttachmentAnnotationsValidateBeforeCall(name, storage, folder, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse getCircleAnnotationWithHttpInfo(String name, String annotationId, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = getCircleAnnotationValidateBeforeCall(name, annotationId, storage, folder, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Read document FileAttachment annotations. (asynchronously) + * Read document page circle annotation by ID. (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 getDocumentFileAttachmentAnnotationsAsync(String name, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call getCircleAnnotationAsync(String name, String annotationId, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -4599,34 +4633,29 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = getDocumentFileAttachmentAnnotationsValidateBeforeCall(name, storage, folder, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = getCircleAnnotationValidateBeforeCall(name, annotationId, storage, folder, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for getDocumentFreeTextAnnotations - * @param name The document name. (required) - * @param storage The document storage. (optional) - * @param folder The document folder. (optional) + * Build call for getDiscUsage + * @param storageName 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 getDocumentFreeTextAnnotationsCall(String name, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call getDiscUsageCall(String storageName, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; // create path and map variables - String localVarPath = "/pdf/{name}/annotations/freetext" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + String localVarPath = "/pdf/storage/disc"; 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)); + if (storageName != null) + localVarQueryParams.addAll(apiClient.parameterToPair("storageName", storageName)); Map localVarHeaderParams = new HashMap(); @@ -4656,45 +4685,38 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getDocumentFreeTextAnnotationsValidateBeforeCall(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 getDocumentFreeTextAnnotations(Async)"); - } + private com.squareup.okhttp.Call getDiscUsageValidateBeforeCall(String storageName, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - com.squareup.okhttp.Call call = getDocumentFreeTextAnnotationsCall(name, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getDiscUsageCall(storageName, progressListener, progressRequestListener); return call; } /** - * Read document free text annotations. + * Get disc usage * - * @param name The document name. (required) - * @param storage The document storage. (optional) - * @param folder The document folder. (optional) - * @return FreeTextAnnotationsResponse + * @param storageName Storage name (optional) + * @return DiscUsage * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public FreeTextAnnotationsResponse getDocumentFreeTextAnnotations(String name, String storage, String folder) throws ApiException { + public DiscUsage getDiscUsage(String storageName) throws ApiException { try { - ApiResponse resp = getDocumentFreeTextAnnotationsWithHttpInfo(name, storage, folder); + ApiResponse resp = getDiscUsageWithHttpInfo(storageName); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = getDocumentFreeTextAnnotationsWithHttpInfo(name, storage, folder); + apiClient.requestToken(); + ApiResponse resp = getDiscUsageWithHttpInfo(storageName); return resp.getData(); } throw ex; @@ -4702,31 +4724,27 @@ public FreeTextAnnotationsResponse getDocumentFreeTextAnnotations(String name, S } /** - * Read document free text annotations. + * Get disc usage * - * @param name The document name. (required) - * @param storage The document storage. (optional) - * @param folder The document folder. (optional) - * @return ApiResponse<FreeTextAnnotationsResponse> + * @param storageName Storage name (optional) + * @return ApiResponse<DiscUsage> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse getDocumentFreeTextAnnotationsWithHttpInfo(String name, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = getDocumentFreeTextAnnotationsValidateBeforeCall(name, storage, folder, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse getDiscUsageWithHttpInfo(String storageName) throws ApiException { + com.squareup.okhttp.Call call = getDiscUsageValidateBeforeCall(storageName, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Read document free text annotations. (asynchronously) + * Get disc usage (asynchronously) * - * @param name The document name. (required) - * @param storage The document storage. (optional) - * @param folder The document folder. (optional) + * @param storageName 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 getDocumentFreeTextAnnotationsAsync(String name, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call getDiscUsageAsync(String storageName, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -4747,13 +4765,13 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = getDocumentFreeTextAnnotationsValidateBeforeCall(name, storage, folder, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = getDiscUsageValidateBeforeCall(storageName, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for getDocumentHighlightAnnotations + * Build call for getDocument * @param name The document name. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) @@ -4762,11 +4780,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 getDocumentHighlightAnnotationsCall(String name, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call getDocumentCall(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/highlight" + String localVarPath = "/pdf/{name}" .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); @@ -4804,45 +4822,45 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getDocumentHighlightAnnotationsValidateBeforeCall(String name, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call getDocumentValidateBeforeCall(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 getDocumentHighlightAnnotations(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling getDocument(Async)"); } - com.squareup.okhttp.Call call = getDocumentHighlightAnnotationsCall(name, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getDocumentCall(name, storage, folder, progressListener, progressRequestListener); return call; } /** - * Read document highlight annotations. + * Read common document info. * * @param name The document name. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) - * @return HighlightAnnotationsResponse + * @return DocumentResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public HighlightAnnotationsResponse getDocumentHighlightAnnotations(String name, String storage, String folder) throws ApiException { + public DocumentResponse getDocument(String name, String storage, String folder) throws ApiException { try { - ApiResponse resp = getDocumentHighlightAnnotationsWithHttpInfo(name, storage, folder); + ApiResponse resp = getDocumentWithHttpInfo(name, storage, folder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = getDocumentHighlightAnnotationsWithHttpInfo(name, storage, folder); + apiClient.requestToken(); + ApiResponse resp = getDocumentWithHttpInfo(name, storage, folder); return resp.getData(); } throw ex; @@ -4850,22 +4868,22 @@ public HighlightAnnotationsResponse getDocumentHighlightAnnotations(String name, } /** - * Read document highlight annotations. + * Read common document info. * * @param name The document name. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) - * @return ApiResponse<HighlightAnnotationsResponse> + * @return ApiResponse<DocumentResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse getDocumentHighlightAnnotationsWithHttpInfo(String name, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = getDocumentHighlightAnnotationsValidateBeforeCall(name, storage, folder, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse getDocumentWithHttpInfo(String name, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = getDocumentValidateBeforeCall(name, storage, folder, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Read document highlight annotations. (asynchronously) + * Read common document info. (asynchronously) * * @param name The document name. (required) * @param storage The document storage. (optional) @@ -4874,7 +4892,7 @@ public ApiResponse getDocumentHighlightAnnotations * @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 getDocumentHighlightAnnotationsAsync(String name, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call getDocumentAsync(String name, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -4895,13 +4913,13 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = getDocumentHighlightAnnotationsValidateBeforeCall(name, storage, folder, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = getDocumentValidateBeforeCall(name, storage, folder, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for getDocumentInkAnnotations + * Build call for getDocumentAnnotations * @param name The document name. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) @@ -4910,11 +4928,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 getDocumentInkAnnotationsCall(String name, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call getDocumentAnnotationsCall(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/ink" + String localVarPath = "/pdf/{name}/annotations" .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); @@ -4952,45 +4970,45 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getDocumentInkAnnotationsValidateBeforeCall(String name, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call getDocumentAnnotationsValidateBeforeCall(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 getDocumentInkAnnotations(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling getDocumentAnnotations(Async)"); } - com.squareup.okhttp.Call call = getDocumentInkAnnotationsCall(name, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getDocumentAnnotationsCall(name, storage, folder, progressListener, progressRequestListener); return call; } /** - * Read document ink annotations. + * Read documant page annotations. Returns only FreeTextAnnotations, TextAnnotations, other annotations will implemented next releases. * * @param name The document name. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) - * @return InkAnnotationsResponse + * @return AnnotationsInfoResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public InkAnnotationsResponse getDocumentInkAnnotations(String name, String storage, String folder) throws ApiException { + public AnnotationsInfoResponse getDocumentAnnotations(String name, String storage, String folder) throws ApiException { try { - ApiResponse resp = getDocumentInkAnnotationsWithHttpInfo(name, storage, folder); + ApiResponse resp = getDocumentAnnotationsWithHttpInfo(name, storage, folder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = getDocumentInkAnnotationsWithHttpInfo(name, storage, folder); + apiClient.requestToken(); + ApiResponse resp = getDocumentAnnotationsWithHttpInfo(name, storage, folder); return resp.getData(); } throw ex; @@ -4998,22 +5016,22 @@ public InkAnnotationsResponse getDocumentInkAnnotations(String name, String stor } /** - * Read document ink annotations. + * Read documant page annotations. Returns only FreeTextAnnotations, TextAnnotations, other annotations will implemented next releases. * * @param name The document name. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) - * @return ApiResponse<InkAnnotationsResponse> + * @return ApiResponse<AnnotationsInfoResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse getDocumentInkAnnotationsWithHttpInfo(String name, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = getDocumentInkAnnotationsValidateBeforeCall(name, storage, folder, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse getDocumentAnnotationsWithHttpInfo(String name, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = getDocumentAnnotationsValidateBeforeCall(name, storage, folder, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Read document ink annotations. (asynchronously) + * Read documant page annotations. Returns only FreeTextAnnotations, TextAnnotations, other annotations will implemented next releases. (asynchronously) * * @param name The document name. (required) * @param storage The document storage. (optional) @@ -5022,7 +5040,7 @@ public ApiResponse getDocumentInkAnnotationsWithHttpInfo * @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 getDocumentInkAnnotationsAsync(String name, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call getDocumentAnnotationsAsync(String name, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -5043,14 +5061,15 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = getDocumentInkAnnotationsValidateBeforeCall(name, storage, folder, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = getDocumentAnnotationsValidateBeforeCall(name, storage, folder, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for getDocumentLineAnnotations + * Build call for getDocumentAttachmentByIndex * @param name The document name. (required) + * @param attachmentIndex The attachment index. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) * @param progressListener Progress listener @@ -5058,12 +5077,13 @@ 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 getDocumentLineAnnotationsCall(String name, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call getDocumentAttachmentByIndexCall(String name, Integer attachmentIndex, 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/line" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + String localVarPath = "/pdf/{name}/attachments/{attachmentIndex}" + .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) + .replaceAll("\\{" + "attachmentIndex" + "\\}", apiClient.escapeString(attachmentIndex.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -5100,45 +5120,51 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getDocumentLineAnnotationsValidateBeforeCall(String name, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call getDocumentAttachmentByIndexValidateBeforeCall(String name, Integer attachmentIndex, 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 getDocumentLineAnnotations(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling getDocumentAttachmentByIndex(Async)"); + } + + // verify the required parameter 'attachmentIndex' is set + if (attachmentIndex == null) { + throw new ApiException("Missing the required parameter 'attachmentIndex' when calling getDocumentAttachmentByIndex(Async)"); } - com.squareup.okhttp.Call call = getDocumentLineAnnotationsCall(name, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getDocumentAttachmentByIndexCall(name, attachmentIndex, storage, folder, progressListener, progressRequestListener); return call; } /** - * Read document line annotations. + * Read document attachment info by its index. * * @param name The document name. (required) + * @param attachmentIndex The attachment index. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) - * @return LineAnnotationsResponse + * @return AttachmentResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public LineAnnotationsResponse getDocumentLineAnnotations(String name, String storage, String folder) throws ApiException { + public AttachmentResponse getDocumentAttachmentByIndex(String name, Integer attachmentIndex, String storage, String folder) throws ApiException { try { - ApiResponse resp = getDocumentLineAnnotationsWithHttpInfo(name, storage, folder); + ApiResponse resp = getDocumentAttachmentByIndexWithHttpInfo(name, attachmentIndex, storage, folder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = getDocumentLineAnnotationsWithHttpInfo(name, storage, folder); + apiClient.requestToken(); + ApiResponse resp = getDocumentAttachmentByIndexWithHttpInfo(name, attachmentIndex, storage, folder); return resp.getData(); } throw ex; @@ -5146,31 +5172,33 @@ public LineAnnotationsResponse getDocumentLineAnnotations(String name, String st } /** - * Read document line annotations. + * Read document attachment info by its index. * * @param name The document name. (required) + * @param attachmentIndex The attachment index. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) - * @return ApiResponse<LineAnnotationsResponse> + * @return ApiResponse<AttachmentResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse getDocumentLineAnnotationsWithHttpInfo(String name, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = getDocumentLineAnnotationsValidateBeforeCall(name, storage, folder, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse getDocumentAttachmentByIndexWithHttpInfo(String name, Integer attachmentIndex, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = getDocumentAttachmentByIndexValidateBeforeCall(name, attachmentIndex, storage, folder, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Read document line annotations. (asynchronously) + * Read document attachment info by its index. (asynchronously) * * @param name The document name. (required) + * @param attachmentIndex The attachment index. (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 getDocumentLineAnnotationsAsync(String name, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call getDocumentAttachmentByIndexAsync(String name, Integer attachmentIndex, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -5191,13 +5219,13 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = getDocumentLineAnnotationsValidateBeforeCall(name, storage, folder, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = getDocumentAttachmentByIndexValidateBeforeCall(name, attachmentIndex, storage, folder, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for getDocumentMovieAnnotations + * Build call for getDocumentAttachments * @param name The document name. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) @@ -5206,11 +5234,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 getDocumentMovieAnnotationsCall(String name, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call getDocumentAttachmentsCall(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/movie" + String localVarPath = "/pdf/{name}/attachments" .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); @@ -5248,45 +5276,45 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getDocumentMovieAnnotationsValidateBeforeCall(String name, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call getDocumentAttachmentsValidateBeforeCall(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 getDocumentMovieAnnotations(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling getDocumentAttachments(Async)"); } - com.squareup.okhttp.Call call = getDocumentMovieAnnotationsCall(name, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getDocumentAttachmentsCall(name, storage, folder, progressListener, progressRequestListener); return call; } /** - * Read document movie annotations. + * Read document attachments info. * * @param name The document name. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) - * @return MovieAnnotationsResponse + * @return AttachmentsResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public MovieAnnotationsResponse getDocumentMovieAnnotations(String name, String storage, String folder) throws ApiException { + public AttachmentsResponse getDocumentAttachments(String name, String storage, String folder) throws ApiException { try { - ApiResponse resp = getDocumentMovieAnnotationsWithHttpInfo(name, storage, folder); + ApiResponse resp = getDocumentAttachmentsWithHttpInfo(name, storage, folder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = getDocumentMovieAnnotationsWithHttpInfo(name, storage, folder); + apiClient.requestToken(); + ApiResponse resp = getDocumentAttachmentsWithHttpInfo(name, storage, folder); return resp.getData(); } throw ex; @@ -5294,22 +5322,22 @@ public MovieAnnotationsResponse getDocumentMovieAnnotations(String name, String } /** - * Read document movie annotations. + * Read document attachments info. * * @param name The document name. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) - * @return ApiResponse<MovieAnnotationsResponse> + * @return ApiResponse<AttachmentsResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse getDocumentMovieAnnotationsWithHttpInfo(String name, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = getDocumentMovieAnnotationsValidateBeforeCall(name, storage, folder, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse getDocumentAttachmentsWithHttpInfo(String name, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = getDocumentAttachmentsValidateBeforeCall(name, storage, folder, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Read document movie annotations. (asynchronously) + * Read document attachments info. (asynchronously) * * @param name The document name. (required) * @param storage The document storage. (optional) @@ -5318,7 +5346,7 @@ public ApiResponse getDocumentMovieAnnotationsWithHttp * @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 getDocumentMovieAnnotationsAsync(String name, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call getDocumentAttachmentsAsync(String name, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -5339,34 +5367,34 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = getDocumentMovieAnnotationsValidateBeforeCall(name, storage, folder, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = getDocumentAttachmentsValidateBeforeCall(name, storage, folder, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for getDocumentPolyLineAnnotations + * Build call for getDocumentBookmarks * @param name The document 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 getDocumentPolyLineAnnotationsCall(String name, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call getDocumentBookmarksCall(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}/annotations/polyline" + String localVarPath = "/pdf/{name}/bookmarks/tree" .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)); + if (storage != null) + localVarQueryParams.addAll(apiClient.parameterToPair("storage", storage)); Map localVarHeaderParams = new HashMap(); @@ -5396,45 +5424,45 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getDocumentPolyLineAnnotationsValidateBeforeCall(String name, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call getDocumentBookmarksValidateBeforeCall(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 getDocumentPolyLineAnnotations(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling getDocumentBookmarks(Async)"); } - com.squareup.okhttp.Call call = getDocumentPolyLineAnnotationsCall(name, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getDocumentBookmarksCall(name, folder, storage, progressListener, progressRequestListener); return call; } /** - * Read document polyline annotations. + * Read document bookmarks tree. * * @param name The document name. (required) - * @param storage The document storage. (optional) * @param folder The document folder. (optional) - * @return PolyLineAnnotationsResponse + * @param storage The document storage. (optional) + * @return BookmarksResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public PolyLineAnnotationsResponse getDocumentPolyLineAnnotations(String name, String storage, String folder) throws ApiException { + public BookmarksResponse getDocumentBookmarks(String name, String folder, String storage) throws ApiException { try { - ApiResponse resp = getDocumentPolyLineAnnotationsWithHttpInfo(name, storage, folder); + ApiResponse resp = getDocumentBookmarksWithHttpInfo(name, folder, storage); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = getDocumentPolyLineAnnotationsWithHttpInfo(name, storage, folder); + apiClient.requestToken(); + ApiResponse resp = getDocumentBookmarksWithHttpInfo(name, folder, storage); return resp.getData(); } throw ex; @@ -5442,31 +5470,31 @@ public PolyLineAnnotationsResponse getDocumentPolyLineAnnotations(String name, S } /** - * Read document polyline annotations. + * Read document bookmarks tree. * * @param name The document name. (required) - * @param storage The document storage. (optional) * @param folder The document folder. (optional) - * @return ApiResponse<PolyLineAnnotationsResponse> + * @param storage The document storage. (optional) + * @return ApiResponse<BookmarksResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse getDocumentPolyLineAnnotationsWithHttpInfo(String name, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = getDocumentPolyLineAnnotationsValidateBeforeCall(name, storage, folder, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse getDocumentBookmarksWithHttpInfo(String name, String folder, String storage) throws ApiException { + com.squareup.okhttp.Call call = getDocumentBookmarksValidateBeforeCall(name, folder, storage, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Read document polyline annotations. (asynchronously) + * Read document bookmarks tree. (asynchronously) * * @param name The document 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 getDocumentPolyLineAnnotationsAsync(String name, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call getDocumentBookmarksAsync(String name, String folder, String storage, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -5487,13 +5515,13 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = getDocumentPolyLineAnnotationsValidateBeforeCall(name, storage, folder, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = getDocumentBookmarksValidateBeforeCall(name, folder, storage, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for getDocumentPolygonAnnotations + * Build call for getDocumentCaretAnnotations * @param name The document name. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) @@ -5502,11 +5530,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 getDocumentPolygonAnnotationsCall(String name, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call getDocumentCaretAnnotationsCall(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/polygon" + String localVarPath = "/pdf/{name}/annotations/caret" .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); @@ -5544,45 +5572,45 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getDocumentPolygonAnnotationsValidateBeforeCall(String name, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call getDocumentCaretAnnotationsValidateBeforeCall(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 getDocumentPolygonAnnotations(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling getDocumentCaretAnnotations(Async)"); } - com.squareup.okhttp.Call call = getDocumentPolygonAnnotationsCall(name, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getDocumentCaretAnnotationsCall(name, storage, folder, progressListener, progressRequestListener); return call; } /** - * Read document polygon annotations. + * Read document caret annotations. * * @param name The document name. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) - * @return PolygonAnnotationsResponse + * @return CaretAnnotationsResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public PolygonAnnotationsResponse getDocumentPolygonAnnotations(String name, String storage, String folder) throws ApiException { + public CaretAnnotationsResponse getDocumentCaretAnnotations(String name, String storage, String folder) throws ApiException { try { - ApiResponse resp = getDocumentPolygonAnnotationsWithHttpInfo(name, storage, folder); + ApiResponse resp = getDocumentCaretAnnotationsWithHttpInfo(name, storage, folder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = getDocumentPolygonAnnotationsWithHttpInfo(name, storage, folder); + apiClient.requestToken(); + ApiResponse resp = getDocumentCaretAnnotationsWithHttpInfo(name, storage, folder); return resp.getData(); } throw ex; @@ -5590,22 +5618,22 @@ public PolygonAnnotationsResponse getDocumentPolygonAnnotations(String name, Str } /** - * Read document polygon annotations. + * Read document caret annotations. * * @param name The document name. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) - * @return ApiResponse<PolygonAnnotationsResponse> + * @return ApiResponse<CaretAnnotationsResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse getDocumentPolygonAnnotationsWithHttpInfo(String name, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = getDocumentPolygonAnnotationsValidateBeforeCall(name, storage, folder, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse getDocumentCaretAnnotationsWithHttpInfo(String name, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = getDocumentCaretAnnotationsValidateBeforeCall(name, storage, folder, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Read document polygon annotations. (asynchronously) + * Read document caret annotations. (asynchronously) * * @param name The document name. (required) * @param storage The document storage. (optional) @@ -5614,7 +5642,7 @@ public ApiResponse getDocumentPolygonAnnotationsWith * @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 getDocumentPolygonAnnotationsAsync(String name, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call getDocumentCaretAnnotationsAsync(String name, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -5635,13 +5663,13 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = getDocumentPolygonAnnotationsValidateBeforeCall(name, storage, folder, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = getDocumentCaretAnnotationsValidateBeforeCall(name, storage, folder, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for getDocumentPopupAnnotations + * Build call for getDocumentCircleAnnotations * @param name The document name. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) @@ -5650,11 +5678,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 getDocumentPopupAnnotationsCall(String name, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call getDocumentCircleAnnotationsCall(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/popup" + String localVarPath = "/pdf/{name}/annotations/circle" .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); @@ -5692,45 +5720,45 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getDocumentPopupAnnotationsValidateBeforeCall(String name, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call getDocumentCircleAnnotationsValidateBeforeCall(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 getDocumentPopupAnnotations(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling getDocumentCircleAnnotations(Async)"); } - com.squareup.okhttp.Call call = getDocumentPopupAnnotationsCall(name, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getDocumentCircleAnnotationsCall(name, storage, folder, progressListener, progressRequestListener); return call; } /** - * Read document popup annotations. + * Read document circle annotations. * * @param name The document name. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) - * @return PopupAnnotationsResponse + * @return CircleAnnotationsResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public PopupAnnotationsResponse getDocumentPopupAnnotations(String name, String storage, String folder) throws ApiException { + public CircleAnnotationsResponse getDocumentCircleAnnotations(String name, String storage, String folder) throws ApiException { try { - ApiResponse resp = getDocumentPopupAnnotationsWithHttpInfo(name, storage, folder); + ApiResponse resp = getDocumentCircleAnnotationsWithHttpInfo(name, storage, folder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = getDocumentPopupAnnotationsWithHttpInfo(name, storage, folder); + apiClient.requestToken(); + ApiResponse resp = getDocumentCircleAnnotationsWithHttpInfo(name, storage, folder); return resp.getData(); } throw ex; @@ -5738,22 +5766,22 @@ public PopupAnnotationsResponse getDocumentPopupAnnotations(String name, String } /** - * Read document popup annotations. + * Read document circle annotations. * * @param name The document name. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) - * @return ApiResponse<PopupAnnotationsResponse> + * @return ApiResponse<CircleAnnotationsResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse getDocumentPopupAnnotationsWithHttpInfo(String name, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = getDocumentPopupAnnotationsValidateBeforeCall(name, storage, folder, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse getDocumentCircleAnnotationsWithHttpInfo(String name, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = getDocumentCircleAnnotationsValidateBeforeCall(name, storage, folder, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Read document popup annotations. (asynchronously) + * Read document circle annotations. (asynchronously) * * @param name The document name. (required) * @param storage The document storage. (optional) @@ -5762,7 +5790,7 @@ public ApiResponse getDocumentPopupAnnotationsWithHttp * @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 getDocumentPopupAnnotationsAsync(String name, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call getDocumentCircleAnnotationsAsync(String name, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -5783,15 +5811,14 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = getDocumentPopupAnnotationsValidateBeforeCall(name, storage, folder, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = getDocumentCircleAnnotationsValidateBeforeCall(name, storage, folder, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for getDocumentPopupAnnotationsByParent + * Build call for getDocumentFileAttachmentAnnotations * @param name The document name. (required) - * @param annotationId The parent annotation ID. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) * @param progressListener Progress listener @@ -5799,13 +5826,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 getDocumentPopupAnnotationsByParentCall(String name, String annotationId, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call getDocumentFileAttachmentAnnotationsCall(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/{annotationId}/popup" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "annotationId" + "\\}", apiClient.escapeString(annotationId.toString())); + String localVarPath = "/pdf/{name}/annotations/fileattachment" + .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -5842,51 +5868,45 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getDocumentPopupAnnotationsByParentValidateBeforeCall(String name, String annotationId, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call getDocumentFileAttachmentAnnotationsValidateBeforeCall(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 getDocumentPopupAnnotationsByParent(Async)"); - } - - // verify the required parameter 'annotationId' is set - if (annotationId == null) { - throw new ApiException("Missing the required parameter 'annotationId' when calling getDocumentPopupAnnotationsByParent(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling getDocumentFileAttachmentAnnotations(Async)"); } - com.squareup.okhttp.Call call = getDocumentPopupAnnotationsByParentCall(name, annotationId, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getDocumentFileAttachmentAnnotationsCall(name, storage, folder, progressListener, progressRequestListener); return call; } /** - * Read document popup annotations by parent id. + * Read document FileAttachment annotations. * * @param name The document name. (required) - * @param annotationId The parent annotation ID. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) - * @return PopupAnnotationsResponse + * @return FileAttachmentAnnotationsResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public PopupAnnotationsResponse getDocumentPopupAnnotationsByParent(String name, String annotationId, String storage, String folder) throws ApiException { + public FileAttachmentAnnotationsResponse getDocumentFileAttachmentAnnotations(String name, String storage, String folder) throws ApiException { try { - ApiResponse resp = getDocumentPopupAnnotationsByParentWithHttpInfo(name, annotationId, storage, folder); + ApiResponse resp = getDocumentFileAttachmentAnnotationsWithHttpInfo(name, storage, folder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = getDocumentPopupAnnotationsByParentWithHttpInfo(name, annotationId, storage, folder); + apiClient.requestToken(); + ApiResponse resp = getDocumentFileAttachmentAnnotationsWithHttpInfo(name, storage, folder); return resp.getData(); } throw ex; @@ -5894,33 +5914,31 @@ public PopupAnnotationsResponse getDocumentPopupAnnotationsByParent(String name, } /** - * Read document popup annotations by parent id. + * Read document FileAttachment annotations. * * @param name The document name. (required) - * @param annotationId The parent annotation ID. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) - * @return ApiResponse<PopupAnnotationsResponse> + * @return ApiResponse<FileAttachmentAnnotationsResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse getDocumentPopupAnnotationsByParentWithHttpInfo(String name, String annotationId, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = getDocumentPopupAnnotationsByParentValidateBeforeCall(name, annotationId, storage, folder, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse getDocumentFileAttachmentAnnotationsWithHttpInfo(String name, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = getDocumentFileAttachmentAnnotationsValidateBeforeCall(name, storage, folder, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Read document popup annotations by parent id. (asynchronously) + * Read document FileAttachment annotations. (asynchronously) * * @param name The document name. (required) - * @param annotationId The parent 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 getDocumentPopupAnnotationsByParentAsync(String name, String annotationId, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call getDocumentFileAttachmentAnnotationsAsync(String name, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -5941,26 +5959,26 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = getDocumentPopupAnnotationsByParentValidateBeforeCall(name, annotationId, storage, folder, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = getDocumentFileAttachmentAnnotationsValidateBeforeCall(name, storage, folder, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for getDocumentProperties - * @param name (required) - * @param storage (optional) - * @param folder (optional) + * Build call for getDocumentFreeTextAnnotations + * @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 getDocumentPropertiesCall(String name, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call getDocumentFreeTextAnnotationsCall(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}/documentproperties" + String localVarPath = "/pdf/{name}/annotations/freetext" .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); @@ -5998,45 +6016,45 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getDocumentPropertiesValidateBeforeCall(String name, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call getDocumentFreeTextAnnotationsValidateBeforeCall(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 getDocumentProperties(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling getDocumentFreeTextAnnotations(Async)"); } - com.squareup.okhttp.Call call = getDocumentPropertiesCall(name, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getDocumentFreeTextAnnotationsCall(name, storage, folder, progressListener, progressRequestListener); return call; } /** - * Read document properties. + * Read document free text annotations. * - * @param name (required) - * @param storage (optional) - * @param folder (optional) - * @return DocumentPropertiesResponse + * @param name The document name. (required) + * @param storage The document storage. (optional) + * @param folder The document folder. (optional) + * @return FreeTextAnnotationsResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public DocumentPropertiesResponse getDocumentProperties(String name, String storage, String folder) throws ApiException { + public FreeTextAnnotationsResponse getDocumentFreeTextAnnotations(String name, String storage, String folder) throws ApiException { try { - ApiResponse resp = getDocumentPropertiesWithHttpInfo(name, storage, folder); + ApiResponse resp = getDocumentFreeTextAnnotationsWithHttpInfo(name, storage, folder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = getDocumentPropertiesWithHttpInfo(name, storage, folder); + apiClient.requestToken(); + ApiResponse resp = getDocumentFreeTextAnnotationsWithHttpInfo(name, storage, folder); return resp.getData(); } throw ex; @@ -6044,31 +6062,31 @@ public DocumentPropertiesResponse getDocumentProperties(String name, String stor } /** - * Read document properties. + * Read document free text annotations. * - * @param name (required) - * @param storage (optional) - * @param folder (optional) - * @return ApiResponse<DocumentPropertiesResponse> + * @param name The document name. (required) + * @param storage The document storage. (optional) + * @param folder The document folder. (optional) + * @return ApiResponse<FreeTextAnnotationsResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse getDocumentPropertiesWithHttpInfo(String name, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = getDocumentPropertiesValidateBeforeCall(name, storage, folder, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse getDocumentFreeTextAnnotationsWithHttpInfo(String name, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = getDocumentFreeTextAnnotationsValidateBeforeCall(name, storage, folder, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Read document properties. (asynchronously) + * Read document free text annotations. (asynchronously) * - * @param name (required) - * @param storage (optional) - * @param folder (optional) + * @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 getDocumentPropertiesAsync(String name, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call getDocumentFreeTextAnnotationsAsync(String name, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -6089,29 +6107,27 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = getDocumentPropertiesValidateBeforeCall(name, storage, folder, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = getDocumentFreeTextAnnotationsValidateBeforeCall(name, storage, folder, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for getDocumentProperty - * @param name (required) - * @param propertyName (required) - * @param storage (optional) - * @param folder (optional) + * Build call for getDocumentHighlightAnnotations + * @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 getDocumentPropertyCall(String name, String propertyName, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call getDocumentHighlightAnnotationsCall(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}/documentproperties/{propertyName}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "propertyName" + "\\}", apiClient.escapeString(propertyName.toString())); + String localVarPath = "/pdf/{name}/annotations/highlight" + .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -6148,51 +6164,45 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getDocumentPropertyValidateBeforeCall(String name, String propertyName, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call getDocumentHighlightAnnotationsValidateBeforeCall(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 getDocumentProperty(Async)"); - } - - // verify the required parameter 'propertyName' is set - if (propertyName == null) { - throw new ApiException("Missing the required parameter 'propertyName' when calling getDocumentProperty(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling getDocumentHighlightAnnotations(Async)"); } - com.squareup.okhttp.Call call = getDocumentPropertyCall(name, propertyName, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getDocumentHighlightAnnotationsCall(name, storage, folder, progressListener, progressRequestListener); return call; } /** - * Read document property by name. + * Read document highlight annotations. * - * @param name (required) - * @param propertyName (required) - * @param storage (optional) - * @param folder (optional) - * @return DocumentPropertyResponse + * @param name The document name. (required) + * @param storage The document storage. (optional) + * @param folder The document folder. (optional) + * @return HighlightAnnotationsResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public DocumentPropertyResponse getDocumentProperty(String name, String propertyName, String storage, String folder) throws ApiException { + public HighlightAnnotationsResponse getDocumentHighlightAnnotations(String name, String storage, String folder) throws ApiException { try { - ApiResponse resp = getDocumentPropertyWithHttpInfo(name, propertyName, storage, folder); + ApiResponse resp = getDocumentHighlightAnnotationsWithHttpInfo(name, storage, folder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = getDocumentPropertyWithHttpInfo(name, propertyName, storage, folder); + apiClient.requestToken(); + ApiResponse resp = getDocumentHighlightAnnotationsWithHttpInfo(name, storage, folder); return resp.getData(); } throw ex; @@ -6200,33 +6210,31 @@ public DocumentPropertyResponse getDocumentProperty(String name, String property } /** - * Read document property by name. + * Read document highlight annotations. * - * @param name (required) - * @param propertyName (required) - * @param storage (optional) - * @param folder (optional) - * @return ApiResponse<DocumentPropertyResponse> + * @param name The document name. (required) + * @param storage The document storage. (optional) + * @param folder The document folder. (optional) + * @return ApiResponse<HighlightAnnotationsResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse getDocumentPropertyWithHttpInfo(String name, String propertyName, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = getDocumentPropertyValidateBeforeCall(name, propertyName, storage, folder, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse getDocumentHighlightAnnotationsWithHttpInfo(String name, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = getDocumentHighlightAnnotationsValidateBeforeCall(name, storage, folder, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Read document property by name. (asynchronously) + * Read document highlight annotations. (asynchronously) * - * @param name (required) - * @param propertyName (required) - * @param storage (optional) - * @param folder (optional) + * @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 getDocumentPropertyAsync(String name, String propertyName, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call getDocumentHighlightAnnotationsAsync(String name, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -6247,13 +6255,13 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = getDocumentPropertyValidateBeforeCall(name, propertyName, storage, folder, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = getDocumentHighlightAnnotationsValidateBeforeCall(name, storage, folder, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for getDocumentRedactionAnnotations + * Build call for getDocumentInkAnnotations * @param name The document name. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) @@ -6262,11 +6270,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 getDocumentRedactionAnnotationsCall(String name, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call getDocumentInkAnnotationsCall(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/redaction" + String localVarPath = "/pdf/{name}/annotations/ink" .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); @@ -6304,45 +6312,45 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getDocumentRedactionAnnotationsValidateBeforeCall(String name, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call getDocumentInkAnnotationsValidateBeforeCall(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 getDocumentRedactionAnnotations(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling getDocumentInkAnnotations(Async)"); } - com.squareup.okhttp.Call call = getDocumentRedactionAnnotationsCall(name, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getDocumentInkAnnotationsCall(name, storage, folder, progressListener, progressRequestListener); return call; } /** - * Read document redaction annotations. + * Read document ink annotations. * * @param name The document name. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) - * @return RedactionAnnotationsResponse + * @return InkAnnotationsResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public RedactionAnnotationsResponse getDocumentRedactionAnnotations(String name, String storage, String folder) throws ApiException { + public InkAnnotationsResponse getDocumentInkAnnotations(String name, String storage, String folder) throws ApiException { try { - ApiResponse resp = getDocumentRedactionAnnotationsWithHttpInfo(name, storage, folder); + ApiResponse resp = getDocumentInkAnnotationsWithHttpInfo(name, storage, folder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = getDocumentRedactionAnnotationsWithHttpInfo(name, storage, folder); + apiClient.requestToken(); + ApiResponse resp = getDocumentInkAnnotationsWithHttpInfo(name, storage, folder); return resp.getData(); } throw ex; @@ -6350,22 +6358,22 @@ public RedactionAnnotationsResponse getDocumentRedactionAnnotations(String name, } /** - * Read document redaction annotations. + * Read document ink annotations. * * @param name The document name. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) - * @return ApiResponse<RedactionAnnotationsResponse> + * @return ApiResponse<InkAnnotationsResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse getDocumentRedactionAnnotationsWithHttpInfo(String name, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = getDocumentRedactionAnnotationsValidateBeforeCall(name, storage, folder, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse getDocumentInkAnnotationsWithHttpInfo(String name, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = getDocumentInkAnnotationsValidateBeforeCall(name, storage, folder, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Read document redaction annotations. (asynchronously) + * Read document ink annotations. (asynchronously) * * @param name The document name. (required) * @param storage The document storage. (optional) @@ -6374,7 +6382,7 @@ public ApiResponse getDocumentRedactionAnnotations * @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 getDocumentRedactionAnnotationsAsync(String name, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call getDocumentInkAnnotationsAsync(String name, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -6395,13 +6403,13 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = getDocumentRedactionAnnotationsValidateBeforeCall(name, storage, folder, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = getDocumentInkAnnotationsValidateBeforeCall(name, storage, folder, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for getDocumentScreenAnnotations + * Build call for getDocumentLineAnnotations * @param name The document name. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) @@ -6410,11 +6418,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 getDocumentScreenAnnotationsCall(String name, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call getDocumentLineAnnotationsCall(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/screen" + String localVarPath = "/pdf/{name}/annotations/line" .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); @@ -6452,45 +6460,45 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getDocumentScreenAnnotationsValidateBeforeCall(String name, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call getDocumentLineAnnotationsValidateBeforeCall(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 getDocumentScreenAnnotations(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling getDocumentLineAnnotations(Async)"); } - com.squareup.okhttp.Call call = getDocumentScreenAnnotationsCall(name, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getDocumentLineAnnotationsCall(name, storage, folder, progressListener, progressRequestListener); return call; } /** - * Read document screen annotations. + * Read document line annotations. * * @param name The document name. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) - * @return ScreenAnnotationsResponse + * @return LineAnnotationsResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ScreenAnnotationsResponse getDocumentScreenAnnotations(String name, String storage, String folder) throws ApiException { + public LineAnnotationsResponse getDocumentLineAnnotations(String name, String storage, String folder) throws ApiException { try { - ApiResponse resp = getDocumentScreenAnnotationsWithHttpInfo(name, storage, folder); + ApiResponse resp = getDocumentLineAnnotationsWithHttpInfo(name, storage, folder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = getDocumentScreenAnnotationsWithHttpInfo(name, storage, folder); + apiClient.requestToken(); + ApiResponse resp = getDocumentLineAnnotationsWithHttpInfo(name, storage, folder); return resp.getData(); } throw ex; @@ -6498,22 +6506,22 @@ public ScreenAnnotationsResponse getDocumentScreenAnnotations(String name, Strin } /** - * Read document screen annotations. + * Read document line annotations. * * @param name The document name. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) - * @return ApiResponse<ScreenAnnotationsResponse> + * @return ApiResponse<LineAnnotationsResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse getDocumentScreenAnnotationsWithHttpInfo(String name, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = getDocumentScreenAnnotationsValidateBeforeCall(name, storage, folder, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse getDocumentLineAnnotationsWithHttpInfo(String name, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = getDocumentLineAnnotationsValidateBeforeCall(name, storage, folder, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Read document screen annotations. (asynchronously) + * Read document line annotations. (asynchronously) * * @param name The document name. (required) * @param storage The document storage. (optional) @@ -6522,7 +6530,7 @@ public ApiResponse getDocumentScreenAnnotationsWithHt * @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 getDocumentScreenAnnotationsAsync(String name, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call getDocumentLineAnnotationsAsync(String name, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -6543,13 +6551,13 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = getDocumentScreenAnnotationsValidateBeforeCall(name, storage, folder, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = getDocumentLineAnnotationsValidateBeforeCall(name, storage, folder, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for getDocumentSoundAnnotations + * Build call for getDocumentMovieAnnotations * @param name The document name. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) @@ -6558,11 +6566,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 getDocumentSoundAnnotationsCall(String name, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call getDocumentMovieAnnotationsCall(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/sound" + String localVarPath = "/pdf/{name}/annotations/movie" .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); @@ -6600,45 +6608,45 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getDocumentSoundAnnotationsValidateBeforeCall(String name, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call getDocumentMovieAnnotationsValidateBeforeCall(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 getDocumentSoundAnnotations(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling getDocumentMovieAnnotations(Async)"); } - com.squareup.okhttp.Call call = getDocumentSoundAnnotationsCall(name, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getDocumentMovieAnnotationsCall(name, storage, folder, progressListener, progressRequestListener); return call; } /** - * Read document sound annotations. + * Read document movie annotations. * * @param name The document name. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) - * @return SoundAnnotationsResponse + * @return MovieAnnotationsResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public SoundAnnotationsResponse getDocumentSoundAnnotations(String name, String storage, String folder) throws ApiException { + public MovieAnnotationsResponse getDocumentMovieAnnotations(String name, String storage, String folder) throws ApiException { try { - ApiResponse resp = getDocumentSoundAnnotationsWithHttpInfo(name, storage, folder); + ApiResponse resp = getDocumentMovieAnnotationsWithHttpInfo(name, storage, folder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = getDocumentSoundAnnotationsWithHttpInfo(name, storage, folder); + apiClient.requestToken(); + ApiResponse resp = getDocumentMovieAnnotationsWithHttpInfo(name, storage, folder); return resp.getData(); } throw ex; @@ -6646,22 +6654,22 @@ public SoundAnnotationsResponse getDocumentSoundAnnotations(String name, String } /** - * Read document sound annotations. + * Read document movie annotations. * * @param name The document name. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) - * @return ApiResponse<SoundAnnotationsResponse> + * @return ApiResponse<MovieAnnotationsResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse getDocumentSoundAnnotationsWithHttpInfo(String name, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = getDocumentSoundAnnotationsValidateBeforeCall(name, storage, folder, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse getDocumentMovieAnnotationsWithHttpInfo(String name, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = getDocumentMovieAnnotationsValidateBeforeCall(name, storage, folder, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Read document sound annotations. (asynchronously) + * Read document movie annotations. (asynchronously) * * @param name The document name. (required) * @param storage The document storage. (optional) @@ -6670,7 +6678,7 @@ public ApiResponse getDocumentSoundAnnotationsWithHttp * @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 getDocumentSoundAnnotationsAsync(String name, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call getDocumentMovieAnnotationsAsync(String name, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -6691,13 +6699,13 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = getDocumentSoundAnnotationsValidateBeforeCall(name, storage, folder, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = getDocumentMovieAnnotationsValidateBeforeCall(name, storage, folder, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for getDocumentSquareAnnotations + * Build call for getDocumentPolyLineAnnotations * @param name The document name. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) @@ -6706,11 +6714,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 getDocumentSquareAnnotationsCall(String name, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call getDocumentPolyLineAnnotationsCall(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/square" + String localVarPath = "/pdf/{name}/annotations/polyline" .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); @@ -6748,45 +6756,45 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getDocumentSquareAnnotationsValidateBeforeCall(String name, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call getDocumentPolyLineAnnotationsValidateBeforeCall(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 getDocumentSquareAnnotations(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling getDocumentPolyLineAnnotations(Async)"); } - com.squareup.okhttp.Call call = getDocumentSquareAnnotationsCall(name, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getDocumentPolyLineAnnotationsCall(name, storage, folder, progressListener, progressRequestListener); return call; } /** - * Read document square annotations. + * Read document polyline annotations. * * @param name The document name. (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 getDocumentSquareAnnotations(String name, String storage, String folder) throws ApiException { + public PolyLineAnnotationsResponse getDocumentPolyLineAnnotations(String name, String storage, String folder) throws ApiException { try { - ApiResponse resp = getDocumentSquareAnnotationsWithHttpInfo(name, storage, folder); + ApiResponse resp = getDocumentPolyLineAnnotationsWithHttpInfo(name, storage, folder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = getDocumentSquareAnnotationsWithHttpInfo(name, storage, folder); + apiClient.requestToken(); + ApiResponse resp = getDocumentPolyLineAnnotationsWithHttpInfo(name, storage, folder); return resp.getData(); } throw ex; @@ -6794,22 +6802,22 @@ public SquareAnnotationsResponse getDocumentSquareAnnotations(String name, Strin } /** - * Read document square annotations. + * Read document polyline annotations. * * @param name The document name. (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 getDocumentSquareAnnotationsWithHttpInfo(String name, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = getDocumentSquareAnnotationsValidateBeforeCall(name, storage, folder, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse getDocumentPolyLineAnnotationsWithHttpInfo(String name, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = getDocumentPolyLineAnnotationsValidateBeforeCall(name, storage, folder, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Read document square annotations. (asynchronously) + * Read document polyline annotations. (asynchronously) * * @param name The document name. (required) * @param storage The document storage. (optional) @@ -6818,7 +6826,7 @@ public ApiResponse getDocumentSquareAnnotationsWithHt * @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 getDocumentSquareAnnotationsAsync(String name, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call getDocumentPolyLineAnnotationsAsync(String name, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -6839,13 +6847,13 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = getDocumentSquareAnnotationsValidateBeforeCall(name, storage, folder, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = getDocumentPolyLineAnnotationsValidateBeforeCall(name, storage, folder, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for getDocumentSquigglyAnnotations + * Build call for getDocumentPolygonAnnotations * @param name The document name. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) @@ -6854,11 +6862,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 getDocumentSquigglyAnnotationsCall(String name, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call getDocumentPolygonAnnotationsCall(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/squiggly" + String localVarPath = "/pdf/{name}/annotations/polygon" .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); @@ -6896,45 +6904,45 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getDocumentSquigglyAnnotationsValidateBeforeCall(String name, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call getDocumentPolygonAnnotationsValidateBeforeCall(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 getDocumentSquigglyAnnotations(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling getDocumentPolygonAnnotations(Async)"); } - com.squareup.okhttp.Call call = getDocumentSquigglyAnnotationsCall(name, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getDocumentPolygonAnnotationsCall(name, storage, folder, progressListener, progressRequestListener); return call; } /** - * Read document squiggly annotations. + * Read document polygon annotations. * * @param name The document name. (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 getDocumentSquigglyAnnotations(String name, String storage, String folder) throws ApiException { + public PolygonAnnotationsResponse getDocumentPolygonAnnotations(String name, String storage, String folder) throws ApiException { try { - ApiResponse resp = getDocumentSquigglyAnnotationsWithHttpInfo(name, storage, folder); + ApiResponse resp = getDocumentPolygonAnnotationsWithHttpInfo(name, storage, folder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = getDocumentSquigglyAnnotationsWithHttpInfo(name, storage, folder); + apiClient.requestToken(); + ApiResponse resp = getDocumentPolygonAnnotationsWithHttpInfo(name, storage, folder); return resp.getData(); } throw ex; @@ -6942,22 +6950,22 @@ public SquigglyAnnotationsResponse getDocumentSquigglyAnnotations(String name, S } /** - * Read document squiggly annotations. + * Read document polygon annotations. * * @param name The document name. (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 getDocumentSquigglyAnnotationsWithHttpInfo(String name, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = getDocumentSquigglyAnnotationsValidateBeforeCall(name, storage, folder, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse getDocumentPolygonAnnotationsWithHttpInfo(String name, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = getDocumentPolygonAnnotationsValidateBeforeCall(name, storage, folder, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Read document squiggly annotations. (asynchronously) + * Read document polygon annotations. (asynchronously) * * @param name The document name. (required) * @param storage The document storage. (optional) @@ -6966,7 +6974,7 @@ public ApiResponse getDocumentSquigglyAnnotationsWi * @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 getDocumentSquigglyAnnotationsAsync(String name, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call getDocumentPolygonAnnotationsAsync(String name, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -6987,13 +6995,13 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = getDocumentSquigglyAnnotationsValidateBeforeCall(name, storage, folder, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = getDocumentPolygonAnnotationsValidateBeforeCall(name, storage, folder, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for getDocumentStampAnnotations + * Build call for getDocumentPopupAnnotations * @param name The document name. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) @@ -7002,11 +7010,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 getDocumentStampAnnotationsCall(String name, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call getDocumentPopupAnnotationsCall(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/stamp" + String localVarPath = "/pdf/{name}/annotations/popup" .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); @@ -7044,45 +7052,45 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getDocumentStampAnnotationsValidateBeforeCall(String name, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call getDocumentPopupAnnotationsValidateBeforeCall(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 getDocumentStampAnnotations(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling getDocumentPopupAnnotations(Async)"); } - com.squareup.okhttp.Call call = getDocumentStampAnnotationsCall(name, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getDocumentPopupAnnotationsCall(name, storage, folder, progressListener, progressRequestListener); return call; } /** - * Read document stamp annotations. + * Read document popup annotations. * * @param name The document name. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) - * @return StampAnnotationsResponse + * @return PopupAnnotationsResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public StampAnnotationsResponse getDocumentStampAnnotations(String name, String storage, String folder) throws ApiException { + public PopupAnnotationsResponse getDocumentPopupAnnotations(String name, String storage, String folder) throws ApiException { try { - ApiResponse resp = getDocumentStampAnnotationsWithHttpInfo(name, storage, folder); + ApiResponse resp = getDocumentPopupAnnotationsWithHttpInfo(name, storage, folder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = getDocumentStampAnnotationsWithHttpInfo(name, storage, folder); + apiClient.requestToken(); + ApiResponse resp = getDocumentPopupAnnotationsWithHttpInfo(name, storage, folder); return resp.getData(); } throw ex; @@ -7090,22 +7098,22 @@ public StampAnnotationsResponse getDocumentStampAnnotations(String name, String } /** - * Read document stamp annotations. + * Read document popup annotations. * * @param name The document name. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) - * @return ApiResponse<StampAnnotationsResponse> + * @return ApiResponse<PopupAnnotationsResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse getDocumentStampAnnotationsWithHttpInfo(String name, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = getDocumentStampAnnotationsValidateBeforeCall(name, storage, folder, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse getDocumentPopupAnnotationsWithHttpInfo(String name, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = getDocumentPopupAnnotationsValidateBeforeCall(name, storage, folder, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Read document stamp annotations. (asynchronously) + * Read document popup annotations. (asynchronously) * * @param name The document name. (required) * @param storage The document storage. (optional) @@ -7114,7 +7122,7 @@ public ApiResponse getDocumentStampAnnotationsWithHttp * @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 getDocumentStampAnnotationsAsync(String name, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call getDocumentPopupAnnotationsAsync(String name, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -7135,14 +7143,15 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = getDocumentStampAnnotationsValidateBeforeCall(name, storage, folder, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = getDocumentPopupAnnotationsValidateBeforeCall(name, storage, folder, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for getDocumentStamps + * Build call for getDocumentPopupAnnotationsByParent * @param name The document name. (required) + * @param annotationId The parent annotation ID. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) * @param progressListener Progress listener @@ -7150,12 +7159,13 @@ 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 getDocumentStampsCall(String name, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call getDocumentPopupAnnotationsByParentCall(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}/stamps" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + String localVarPath = "/pdf/{name}/annotations/{annotationId}/popup" + .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) + .replaceAll("\\{" + "annotationId" + "\\}", apiClient.escapeString(annotationId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -7192,45 +7202,51 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getDocumentStampsValidateBeforeCall(String name, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call getDocumentPopupAnnotationsByParentValidateBeforeCall(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 getDocumentStamps(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling getDocumentPopupAnnotationsByParent(Async)"); + } + + // verify the required parameter 'annotationId' is set + if (annotationId == null) { + throw new ApiException("Missing the required parameter 'annotationId' when calling getDocumentPopupAnnotationsByParent(Async)"); } - com.squareup.okhttp.Call call = getDocumentStampsCall(name, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getDocumentPopupAnnotationsByParentCall(name, annotationId, storage, folder, progressListener, progressRequestListener); return call; } /** - * Read document stamps. + * Read document popup annotations by parent id. * * @param name The document name. (required) + * @param annotationId The parent annotation ID. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) - * @return StampsInfoResponse + * @return PopupAnnotationsResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public StampsInfoResponse getDocumentStamps(String name, String storage, String folder) throws ApiException { + public PopupAnnotationsResponse getDocumentPopupAnnotationsByParent(String name, String annotationId, String storage, String folder) throws ApiException { try { - ApiResponse resp = getDocumentStampsWithHttpInfo(name, storage, folder); + ApiResponse resp = getDocumentPopupAnnotationsByParentWithHttpInfo(name, annotationId, storage, folder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = getDocumentStampsWithHttpInfo(name, storage, folder); + apiClient.requestToken(); + ApiResponse resp = getDocumentPopupAnnotationsByParentWithHttpInfo(name, annotationId, storage, folder); return resp.getData(); } throw ex; @@ -7238,31 +7254,33 @@ public StampsInfoResponse getDocumentStamps(String name, String storage, String } /** - * Read document stamps. + * Read document popup annotations by parent id. * * @param name The document name. (required) + * @param annotationId The parent annotation ID. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) - * @return ApiResponse<StampsInfoResponse> + * @return ApiResponse<PopupAnnotationsResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse getDocumentStampsWithHttpInfo(String name, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = getDocumentStampsValidateBeforeCall(name, storage, folder, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse getDocumentPopupAnnotationsByParentWithHttpInfo(String name, String annotationId, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = getDocumentPopupAnnotationsByParentValidateBeforeCall(name, annotationId, storage, folder, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Read document stamps. (asynchronously) + * Read document popup annotations by parent id. (asynchronously) * * @param name The document name. (required) + * @param annotationId The parent 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 getDocumentStampsAsync(String name, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call getDocumentPopupAnnotationsByParentAsync(String name, String annotationId, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -7283,26 +7301,26 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = getDocumentStampsValidateBeforeCall(name, storage, folder, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = getDocumentPopupAnnotationsByParentValidateBeforeCall(name, annotationId, storage, folder, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for getDocumentStrikeOutAnnotations - * @param name The document name. (required) - * @param storage The document storage. (optional) - * @param folder The document folder. (optional) + * Build call for getDocumentProperties + * @param name (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 getDocumentStrikeOutAnnotationsCall(String name, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call getDocumentPropertiesCall(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/strikeout" + String localVarPath = "/pdf/{name}/documentproperties" .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); @@ -7340,45 +7358,45 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getDocumentStrikeOutAnnotationsValidateBeforeCall(String name, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call getDocumentPropertiesValidateBeforeCall(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 getDocumentStrikeOutAnnotations(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling getDocumentProperties(Async)"); } - com.squareup.okhttp.Call call = getDocumentStrikeOutAnnotationsCall(name, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getDocumentPropertiesCall(name, storage, folder, progressListener, progressRequestListener); return call; } /** - * Read document StrikeOut annotations. + * Read document properties. * - * @param name The document name. (required) - * @param storage The document storage. (optional) - * @param folder The document folder. (optional) - * @return StrikeOutAnnotationsResponse + * @param name (required) + * @param storage (optional) + * @param folder (optional) + * @return DocumentPropertiesResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public StrikeOutAnnotationsResponse getDocumentStrikeOutAnnotations(String name, String storage, String folder) throws ApiException { + public DocumentPropertiesResponse getDocumentProperties(String name, String storage, String folder) throws ApiException { try { - ApiResponse resp = getDocumentStrikeOutAnnotationsWithHttpInfo(name, storage, folder); + ApiResponse resp = getDocumentPropertiesWithHttpInfo(name, storage, folder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = getDocumentStrikeOutAnnotationsWithHttpInfo(name, storage, folder); + apiClient.requestToken(); + ApiResponse resp = getDocumentPropertiesWithHttpInfo(name, storage, folder); return resp.getData(); } throw ex; @@ -7386,31 +7404,31 @@ public StrikeOutAnnotationsResponse getDocumentStrikeOutAnnotations(String name, } /** - * Read document StrikeOut annotations. + * Read document properties. * - * @param name The document name. (required) - * @param storage The document storage. (optional) - * @param folder The document folder. (optional) - * @return ApiResponse<StrikeOutAnnotationsResponse> + * @param name (required) + * @param storage (optional) + * @param folder (optional) + * @return ApiResponse<DocumentPropertiesResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse getDocumentStrikeOutAnnotationsWithHttpInfo(String name, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = getDocumentStrikeOutAnnotationsValidateBeforeCall(name, storage, folder, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse getDocumentPropertiesWithHttpInfo(String name, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = getDocumentPropertiesValidateBeforeCall(name, storage, folder, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Read document StrikeOut annotations. (asynchronously) + * Read document properties. (asynchronously) * - * @param name The document name. (required) - * @param storage The document storage. (optional) - * @param folder The document folder. (optional) + * @param name (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 getDocumentStrikeOutAnnotationsAsync(String name, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call getDocumentPropertiesAsync(String name, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -7431,14 +7449,15 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = getDocumentStrikeOutAnnotationsValidateBeforeCall(name, storage, folder, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = getDocumentPropertiesValidateBeforeCall(name, storage, folder, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for getDocumentTables + * Build call for getDocumentProperty * @param name (required) + * @param propertyName (required) * @param storage (optional) * @param folder (optional) * @param progressListener Progress listener @@ -7446,12 +7465,13 @@ 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 getDocumentTablesCall(String name, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call getDocumentPropertyCall(String name, String propertyName, 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}/tables" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + String localVarPath = "/pdf/{name}/documentproperties/{propertyName}" + .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) + .replaceAll("\\{" + "propertyName" + "\\}", apiClient.escapeString(propertyName.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -7488,45 +7508,51 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getDocumentTablesValidateBeforeCall(String name, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call getDocumentPropertyValidateBeforeCall(String name, String propertyName, 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 getDocumentTables(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling getDocumentProperty(Async)"); + } + + // verify the required parameter 'propertyName' is set + if (propertyName == null) { + throw new ApiException("Missing the required parameter 'propertyName' when calling getDocumentProperty(Async)"); } - com.squareup.okhttp.Call call = getDocumentTablesCall(name, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getDocumentPropertyCall(name, propertyName, storage, folder, progressListener, progressRequestListener); return call; } /** - * Read document tables. + * Read document property by name. * * @param name (required) + * @param propertyName (required) * @param storage (optional) * @param folder (optional) - * @return TablesRecognizedResponse + * @return DocumentPropertyResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public TablesRecognizedResponse getDocumentTables(String name, String storage, String folder) throws ApiException { + public DocumentPropertyResponse getDocumentProperty(String name, String propertyName, String storage, String folder) throws ApiException { try { - ApiResponse resp = getDocumentTablesWithHttpInfo(name, storage, folder); + ApiResponse resp = getDocumentPropertyWithHttpInfo(name, propertyName, storage, folder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = getDocumentTablesWithHttpInfo(name, storage, folder); + apiClient.requestToken(); + ApiResponse resp = getDocumentPropertyWithHttpInfo(name, propertyName, storage, folder); return resp.getData(); } throw ex; @@ -7534,31 +7560,33 @@ public TablesRecognizedResponse getDocumentTables(String name, String storage, S } /** - * Read document tables. + * Read document property by name. * * @param name (required) + * @param propertyName (required) * @param storage (optional) * @param folder (optional) - * @return ApiResponse<TablesRecognizedResponse> + * @return ApiResponse<DocumentPropertyResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse getDocumentTablesWithHttpInfo(String name, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = getDocumentTablesValidateBeforeCall(name, storage, folder, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse getDocumentPropertyWithHttpInfo(String name, String propertyName, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = getDocumentPropertyValidateBeforeCall(name, propertyName, storage, folder, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Read document tables. (asynchronously) + * Read document property by name. (asynchronously) * * @param name (required) + * @param propertyName (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 getDocumentTablesAsync(String name, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call getDocumentPropertyAsync(String name, String propertyName, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -7579,13 +7607,13 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = getDocumentTablesValidateBeforeCall(name, storage, folder, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = getDocumentPropertyValidateBeforeCall(name, propertyName, storage, folder, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for getDocumentTextAnnotations + * Build call for getDocumentRedactionAnnotations * @param name The document name. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) @@ -7594,11 +7622,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 getDocumentTextAnnotationsCall(String name, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call getDocumentRedactionAnnotationsCall(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/text" + String localVarPath = "/pdf/{name}/annotations/redaction" .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); @@ -7636,45 +7664,45 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getDocumentTextAnnotationsValidateBeforeCall(String name, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call getDocumentRedactionAnnotationsValidateBeforeCall(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 getDocumentTextAnnotations(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling getDocumentRedactionAnnotations(Async)"); } - com.squareup.okhttp.Call call = getDocumentTextAnnotationsCall(name, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getDocumentRedactionAnnotationsCall(name, storage, folder, progressListener, progressRequestListener); return call; } /** - * Read document text annotations. + * Read document redaction annotations. * * @param name The document name. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) - * @return TextAnnotationsResponse + * @return RedactionAnnotationsResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public TextAnnotationsResponse getDocumentTextAnnotations(String name, String storage, String folder) throws ApiException { + public RedactionAnnotationsResponse getDocumentRedactionAnnotations(String name, String storage, String folder) throws ApiException { try { - ApiResponse resp = getDocumentTextAnnotationsWithHttpInfo(name, storage, folder); + ApiResponse resp = getDocumentRedactionAnnotationsWithHttpInfo(name, storage, folder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = getDocumentTextAnnotationsWithHttpInfo(name, storage, folder); + apiClient.requestToken(); + ApiResponse resp = getDocumentRedactionAnnotationsWithHttpInfo(name, storage, folder); return resp.getData(); } throw ex; @@ -7682,22 +7710,22 @@ public TextAnnotationsResponse getDocumentTextAnnotations(String name, String st } /** - * Read document text annotations. + * Read document redaction annotations. * * @param name The document name. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) - * @return ApiResponse<TextAnnotationsResponse> + * @return ApiResponse<RedactionAnnotationsResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse getDocumentTextAnnotationsWithHttpInfo(String name, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = getDocumentTextAnnotationsValidateBeforeCall(name, storage, folder, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse getDocumentRedactionAnnotationsWithHttpInfo(String name, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = getDocumentRedactionAnnotationsValidateBeforeCall(name, storage, folder, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Read document text annotations. (asynchronously) + * Read document redaction annotations. (asynchronously) * * @param name The document name. (required) * @param storage The document storage. (optional) @@ -7706,7 +7734,7 @@ public ApiResponse getDocumentTextAnnotationsWithHttpIn * @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 getDocumentTextAnnotationsAsync(String name, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call getDocumentRedactionAnnotationsAsync(String name, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -7727,13 +7755,13 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = getDocumentTextAnnotationsValidateBeforeCall(name, storage, folder, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = getDocumentRedactionAnnotationsValidateBeforeCall(name, storage, folder, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for getDocumentUnderlineAnnotations + * Build call for getDocumentScreenAnnotations * @param name The document name. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) @@ -7742,11 +7770,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 getDocumentUnderlineAnnotationsCall(String name, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call getDocumentScreenAnnotationsCall(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" + String localVarPath = "/pdf/{name}/annotations/screen" .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); @@ -7784,45 +7812,45 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getDocumentUnderlineAnnotationsValidateBeforeCall(String name, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call getDocumentScreenAnnotationsValidateBeforeCall(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 getDocumentUnderlineAnnotations(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling getDocumentScreenAnnotations(Async)"); } - com.squareup.okhttp.Call call = getDocumentUnderlineAnnotationsCall(name, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getDocumentScreenAnnotationsCall(name, storage, folder, progressListener, progressRequestListener); return call; } /** - * Read document underline annotations. + * Read document screen annotations. * * @param name The document name. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) - * @return UnderlineAnnotationsResponse + * @return ScreenAnnotationsResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public UnderlineAnnotationsResponse getDocumentUnderlineAnnotations(String name, String storage, String folder) throws ApiException { + public ScreenAnnotationsResponse getDocumentScreenAnnotations(String name, String storage, String folder) throws ApiException { try { - ApiResponse resp = getDocumentUnderlineAnnotationsWithHttpInfo(name, storage, folder); + ApiResponse resp = getDocumentScreenAnnotationsWithHttpInfo(name, storage, folder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = getDocumentUnderlineAnnotationsWithHttpInfo(name, storage, folder); + apiClient.requestToken(); + ApiResponse resp = getDocumentScreenAnnotationsWithHttpInfo(name, storage, folder); return resp.getData(); } throw ex; @@ -7830,22 +7858,22 @@ public UnderlineAnnotationsResponse getDocumentUnderlineAnnotations(String name, } /** - * Read document underline annotations. + * Read document screen annotations. * * @param name The document name. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) - * @return ApiResponse<UnderlineAnnotationsResponse> + * @return ApiResponse<ScreenAnnotationsResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse getDocumentUnderlineAnnotationsWithHttpInfo(String name, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = getDocumentUnderlineAnnotationsValidateBeforeCall(name, storage, folder, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse getDocumentScreenAnnotationsWithHttpInfo(String name, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = getDocumentScreenAnnotationsValidateBeforeCall(name, storage, folder, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Read document underline annotations. (asynchronously) + * Read document screen annotations. (asynchronously) * * @param name The document name. (required) * @param storage The document storage. (optional) @@ -7854,7 +7882,7 @@ public ApiResponse getDocumentUnderlineAnnotations * @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 getDocumentUnderlineAnnotationsAsync(String name, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call getDocumentScreenAnnotationsAsync(String name, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -7875,42 +7903,41 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = getDocumentUnderlineAnnotationsValidateBeforeCall(name, storage, folder, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = getDocumentScreenAnnotationsValidateBeforeCall(name, storage, folder, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for getDownload - * @param path Path of the file including the file name and extension e.g. /file.ext (required) - * @param versionId File's version (optional) - * @param storage User's storage name (optional) + * Build call for getDocumentSoundAnnotations + * @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 getDownloadCall(String path, String versionId, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call getDocumentSoundAnnotationsCall(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 = "/storage/file"; + String localVarPath = "/pdf/{name}/annotations/sound" + .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); 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)); + 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); @@ -7933,45 +7960,45 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getDownloadValidateBeforeCall(String path, String versionId, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call getDocumentSoundAnnotationsValidateBeforeCall(String name, String storage, String folder, 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 getDownload(Async)"); + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling getDocumentSoundAnnotations(Async)"); } - com.squareup.okhttp.Call call = getDownloadCall(path, versionId, storage, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getDocumentSoundAnnotationsCall(name, storage, folder, progressListener, progressRequestListener); return call; } /** - * Download a specific file + * Read document sound annotations. * - * @param path Path of the file including the file name and extension e.g. /file.ext (required) - * @param versionId File's version (optional) - * @param storage User's storage name (optional) - * @return File + * @param name The document name. (required) + * @param storage The document storage. (optional) + * @param folder The document folder. (optional) + * @return SoundAnnotationsResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public File getDownload(String path, String versionId, String storage) throws ApiException { + public SoundAnnotationsResponse getDocumentSoundAnnotations(String name, String storage, String folder) throws ApiException { try { - ApiResponse resp = getDownloadWithHttpInfo(path, versionId, storage); + ApiResponse resp = getDocumentSoundAnnotationsWithHttpInfo(name, storage, folder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = getDownloadWithHttpInfo(path, versionId, storage); + apiClient.requestToken(); + ApiResponse resp = getDocumentSoundAnnotationsWithHttpInfo(name, storage, folder); return resp.getData(); } throw ex; @@ -7979,31 +8006,31 @@ public File getDownload(String path, String versionId, String storage) throws Ap } /** - * Download a specific file + * Read document sound annotations. * - * @param path Path of the file including the file name and extension e.g. /file.ext (required) - * @param versionId File's version (optional) - * @param storage User's storage name (optional) - * @return ApiResponse<File> + * @param name The document name. (required) + * @param storage The document storage. (optional) + * @param folder The document folder. (optional) + * @return ApiResponse<SoundAnnotationsResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse getDownloadWithHttpInfo(String path, String versionId, String storage) throws ApiException { - com.squareup.okhttp.Call call = getDownloadValidateBeforeCall(path, versionId, storage, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse getDocumentSoundAnnotationsWithHttpInfo(String name, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = getDocumentSoundAnnotationsValidateBeforeCall(name, storage, folder, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Download a specific file (asynchronously) + * Read document sound annotations. (asynchronously) * - * @param path Path of the file including the file name and extension e.g. /file.ext (required) - * @param versionId File's version (optional) - * @param storage User's storage name (optional) + * @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 getDownloadAsync(String path, String versionId, String storage, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call getDocumentSoundAnnotationsAsync(String name, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -8024,15 +8051,14 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = getDownloadValidateBeforeCall(path, versionId, storage, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = getDocumentSoundAnnotationsValidateBeforeCall(name, storage, folder, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for getDownloadDocumentAttachmentByIndex + * Build call for getDocumentSquareAnnotations * @param name The document name. (required) - * @param attachmentIndex The attachment index. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) * @param progressListener Progress listener @@ -8040,13 +8066,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 getDownloadDocumentAttachmentByIndexCall(String name, Integer attachmentIndex, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call getDocumentSquareAnnotationsCall(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}/attachments/{attachmentIndex}/download" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "attachmentIndex" + "\\}", apiClient.escapeString(attachmentIndex.toString())); + String localVarPath = "/pdf/{name}/annotations/square" + .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -8060,7 +8085,7 @@ public com.squareup.okhttp.Call getDownloadDocumentAttachmentByIndexCall(String 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); @@ -8083,51 +8108,45 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getDownloadDocumentAttachmentByIndexValidateBeforeCall(String name, Integer attachmentIndex, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call getDocumentSquareAnnotationsValidateBeforeCall(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 getDownloadDocumentAttachmentByIndex(Async)"); - } - - // verify the required parameter 'attachmentIndex' is set - if (attachmentIndex == null) { - throw new ApiException("Missing the required parameter 'attachmentIndex' when calling getDownloadDocumentAttachmentByIndex(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling getDocumentSquareAnnotations(Async)"); } - com.squareup.okhttp.Call call = getDownloadDocumentAttachmentByIndexCall(name, attachmentIndex, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getDocumentSquareAnnotationsCall(name, storage, folder, progressListener, progressRequestListener); return call; } /** - * Download document attachment content by its index. + * Read document square annotations. * * @param name The document name. (required) - * @param attachmentIndex The attachment index. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) - * @return File + * @return SquareAnnotationsResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public File getDownloadDocumentAttachmentByIndex(String name, Integer attachmentIndex, String storage, String folder) throws ApiException { + public SquareAnnotationsResponse getDocumentSquareAnnotations(String name, String storage, String folder) throws ApiException { try { - ApiResponse resp = getDownloadDocumentAttachmentByIndexWithHttpInfo(name, attachmentIndex, storage, folder); + ApiResponse resp = getDocumentSquareAnnotationsWithHttpInfo(name, storage, folder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = getDownloadDocumentAttachmentByIndexWithHttpInfo(name, attachmentIndex, storage, folder); + apiClient.requestToken(); + ApiResponse resp = getDocumentSquareAnnotationsWithHttpInfo(name, storage, folder); return resp.getData(); } throw ex; @@ -8135,33 +8154,31 @@ public File getDownloadDocumentAttachmentByIndex(String name, Integer attachment } /** - * Download document attachment content by its index. + * Read document square annotations. * * @param name The document name. (required) - * @param attachmentIndex The attachment index. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) - * @return ApiResponse<File> + * @return ApiResponse<SquareAnnotationsResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse getDownloadDocumentAttachmentByIndexWithHttpInfo(String name, Integer attachmentIndex, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = getDownloadDocumentAttachmentByIndexValidateBeforeCall(name, attachmentIndex, storage, folder, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse getDocumentSquareAnnotationsWithHttpInfo(String name, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = getDocumentSquareAnnotationsValidateBeforeCall(name, storage, folder, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Download document attachment content by its index. (asynchronously) + * Read document square annotations. (asynchronously) * * @param name The document name. (required) - * @param attachmentIndex The attachment index. (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 getDownloadDocumentAttachmentByIndexAsync(String name, Integer attachmentIndex, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call getDocumentSquareAnnotationsAsync(String name, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -8182,39 +8199,41 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = getDownloadDocumentAttachmentByIndexValidateBeforeCall(name, attachmentIndex, storage, folder, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = getDocumentSquareAnnotationsValidateBeforeCall(name, storage, folder, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for getEpubInStorageToPdf - * @param srcPath Full source filename (ex. /folder1/folder2/template.epub) (required) + * Build call for getDocumentSquigglyAnnotations + * @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 getEpubInStorageToPdfCall(String srcPath, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call getDocumentSquigglyAnnotationsCall(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/create/epub"; + String localVarPath = "/pdf/{name}/annotations/squiggly" + .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); @@ -8237,44 +8256,45 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getEpubInStorageToPdfValidateBeforeCall(String srcPath, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call getDocumentSquigglyAnnotationsValidateBeforeCall(String name, 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 getEpubInStorageToPdf(Async)"); + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling getDocumentSquigglyAnnotations(Async)"); } - com.squareup.okhttp.Call call = getEpubInStorageToPdfCall(srcPath, storage, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getDocumentSquigglyAnnotationsCall(name, storage, folder, progressListener, progressRequestListener); return call; } /** - * Convert EPUB file (located on storage) to PDF format and return resulting file in response. + * Read document squiggly annotations. * - * @param srcPath Full source filename (ex. /folder1/folder2/template.epub) (required) + * @param name The document name. (required) * @param storage The document storage. (optional) - * @return File + * @param folder The document folder. (optional) + * @return SquigglyAnnotationsResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public File getEpubInStorageToPdf(String srcPath, String storage) throws ApiException { + public SquigglyAnnotationsResponse getDocumentSquigglyAnnotations(String name, String storage, String folder) throws ApiException { try { - ApiResponse resp = getEpubInStorageToPdfWithHttpInfo(srcPath, storage); + ApiResponse resp = getDocumentSquigglyAnnotationsWithHttpInfo(name, storage, folder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = getEpubInStorageToPdfWithHttpInfo(srcPath, storage); + apiClient.requestToken(); + ApiResponse resp = getDocumentSquigglyAnnotationsWithHttpInfo(name, storage, folder); return resp.getData(); } throw ex; @@ -8282,29 +8302,31 @@ public File getEpubInStorageToPdf(String srcPath, String storage) throws ApiExce } /** - * Convert EPUB file (located on storage) to PDF format and return resulting file in response. + * Read document squiggly annotations. * - * @param srcPath Full source filename (ex. /folder1/folder2/template.epub) (required) + * @param name The document name. (required) * @param storage The document storage. (optional) - * @return ApiResponse<File> + * @param folder The document folder. (optional) + * @return ApiResponse<SquigglyAnnotationsResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse getEpubInStorageToPdfWithHttpInfo(String srcPath, String storage) throws ApiException { - com.squareup.okhttp.Call call = getEpubInStorageToPdfValidateBeforeCall(srcPath, storage, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse getDocumentSquigglyAnnotationsWithHttpInfo(String name, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = getDocumentSquigglyAnnotationsValidateBeforeCall(name, storage, folder, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Convert EPUB file (located on storage) to PDF format and return resulting file in response. (asynchronously) + * Read document squiggly annotations. (asynchronously) * - * @param srcPath Full source filename (ex. /folder1/folder2/template.epub) (required) + * @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 getEpubInStorageToPdfAsync(String srcPath, String storage, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call getDocumentSquigglyAnnotationsAsync(String name, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -8325,15 +8347,14 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = getEpubInStorageToPdfValidateBeforeCall(srcPath, storage, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = getDocumentSquigglyAnnotationsValidateBeforeCall(name, storage, folder, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for getField + * Build call for getDocumentStampAnnotations * @param name The document name. (required) - * @param fieldName The field name/ (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) * @param progressListener Progress listener @@ -8341,13 +8362,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 getFieldCall(String name, String fieldName, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call getDocumentStampAnnotationsCall(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}/fields/{fieldName}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "fieldName" + "\\}", apiClient.escapeString(fieldName.toString())); + String localVarPath = "/pdf/{name}/annotations/stamp" + .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -8384,51 +8404,45 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getFieldValidateBeforeCall(String name, String fieldName, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call getDocumentStampAnnotationsValidateBeforeCall(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 getField(Async)"); - } - - // verify the required parameter 'fieldName' is set - if (fieldName == null) { - throw new ApiException("Missing the required parameter 'fieldName' when calling getField(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling getDocumentStampAnnotations(Async)"); } - com.squareup.okhttp.Call call = getFieldCall(name, fieldName, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getDocumentStampAnnotationsCall(name, storage, folder, progressListener, progressRequestListener); return call; } /** - * Get document field by name. + * Read document stamp annotations. * * @param name The document name. (required) - * @param fieldName The field name/ (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) - * @return FieldResponse + * @return StampAnnotationsResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public FieldResponse getField(String name, String fieldName, String storage, String folder) throws ApiException { + public StampAnnotationsResponse getDocumentStampAnnotations(String name, String storage, String folder) throws ApiException { try { - ApiResponse resp = getFieldWithHttpInfo(name, fieldName, storage, folder); + ApiResponse resp = getDocumentStampAnnotationsWithHttpInfo(name, storage, folder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = getFieldWithHttpInfo(name, fieldName, storage, folder); + apiClient.requestToken(); + ApiResponse resp = getDocumentStampAnnotationsWithHttpInfo(name, storage, folder); return resp.getData(); } throw ex; @@ -8436,33 +8450,31 @@ public FieldResponse getField(String name, String fieldName, String storage, Str } /** - * Get document field by name. + * Read document stamp annotations. * * @param name The document name. (required) - * @param fieldName The field name/ (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) - * @return ApiResponse<FieldResponse> + * @return ApiResponse<StampAnnotationsResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse getFieldWithHttpInfo(String name, String fieldName, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = getFieldValidateBeforeCall(name, fieldName, storage, folder, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse getDocumentStampAnnotationsWithHttpInfo(String name, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = getDocumentStampAnnotationsValidateBeforeCall(name, storage, folder, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Get document field by name. (asynchronously) + * Read document stamp annotations. (asynchronously) * * @param name The document name. (required) - * @param fieldName The field 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 getFieldAsync(String name, String fieldName, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call getDocumentStampAnnotationsAsync(String name, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -8483,13 +8495,13 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = getFieldValidateBeforeCall(name, fieldName, storage, folder, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = getDocumentStampAnnotationsValidateBeforeCall(name, storage, folder, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for getFields + * Build call for getDocumentStamps * @param name The document name. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) @@ -8498,11 +8510,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 getFieldsCall(String name, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call getDocumentStampsCall(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}/fields" + String localVarPath = "/pdf/{name}/stamps" .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); @@ -8540,45 +8552,45 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getFieldsValidateBeforeCall(String name, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call getDocumentStampsValidateBeforeCall(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 getFields(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling getDocumentStamps(Async)"); } - com.squareup.okhttp.Call call = getFieldsCall(name, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getDocumentStampsCall(name, storage, folder, progressListener, progressRequestListener); return call; } /** - * Get document fields. + * Read document stamps. * * @param name The document name. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) - * @return FieldsResponse + * @return StampsInfoResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public FieldsResponse getFields(String name, String storage, String folder) throws ApiException { + public StampsInfoResponse getDocumentStamps(String name, String storage, String folder) throws ApiException { try { - ApiResponse resp = getFieldsWithHttpInfo(name, storage, folder); + ApiResponse resp = getDocumentStampsWithHttpInfo(name, storage, folder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = getFieldsWithHttpInfo(name, storage, folder); + apiClient.requestToken(); + ApiResponse resp = getDocumentStampsWithHttpInfo(name, storage, folder); return resp.getData(); } throw ex; @@ -8586,22 +8598,22 @@ public FieldsResponse getFields(String name, String storage, String folder) thro } /** - * Get document fields. + * Read document stamps. * * @param name The document name. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) - * @return ApiResponse<FieldsResponse> + * @return ApiResponse<StampsInfoResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse getFieldsWithHttpInfo(String name, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = getFieldsValidateBeforeCall(name, storage, folder, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse getDocumentStampsWithHttpInfo(String name, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = getDocumentStampsValidateBeforeCall(name, storage, folder, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Get document fields. (asynchronously) + * Read document stamps. (asynchronously) * * @param name The document name. (required) * @param storage The document storage. (optional) @@ -8610,7 +8622,7 @@ public ApiResponse getFieldsWithHttpInfo(String name, String sto * @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 getFieldsAsync(String name, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call getDocumentStampsAsync(String name, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -8631,15 +8643,14 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = getFieldsValidateBeforeCall(name, storage, folder, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = getDocumentStampsValidateBeforeCall(name, storage, folder, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for getFileAttachmentAnnotation + * Build call for getDocumentStrikeOutAnnotations * @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 @@ -8647,13 +8658,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 getFileAttachmentAnnotationCall(String name, String annotationId, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call getDocumentStrikeOutAnnotationsCall(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/fileattachment/{annotationId}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "annotationId" + "\\}", apiClient.escapeString(annotationId.toString())); + String localVarPath = "/pdf/{name}/annotations/strikeout" + .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -8667,7 +8677,7 @@ public com.squareup.okhttp.Call getFileAttachmentAnnotationCall(String name, Str 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); @@ -8690,51 +8700,45 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getFileAttachmentAnnotationValidateBeforeCall(String name, String annotationId, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call getDocumentStrikeOutAnnotationsValidateBeforeCall(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 getFileAttachmentAnnotation(Async)"); - } - - // verify the required parameter 'annotationId' is set - if (annotationId == null) { - throw new ApiException("Missing the required parameter 'annotationId' when calling getFileAttachmentAnnotation(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling getDocumentStrikeOutAnnotations(Async)"); } - com.squareup.okhttp.Call call = getFileAttachmentAnnotationCall(name, annotationId, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getDocumentStrikeOutAnnotationsCall(name, storage, folder, progressListener, progressRequestListener); return call; } /** - * Read document page FileAttachment annotation by ID. + * Read document StrikeOut annotations. * * @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 FileAttachmentAnnotationResponse + * @return StrikeOutAnnotationsResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public FileAttachmentAnnotationResponse getFileAttachmentAnnotation(String name, String annotationId, String storage, String folder) throws ApiException { + public StrikeOutAnnotationsResponse getDocumentStrikeOutAnnotations(String name, String storage, String folder) throws ApiException { try { - ApiResponse resp = getFileAttachmentAnnotationWithHttpInfo(name, annotationId, storage, folder); + ApiResponse resp = getDocumentStrikeOutAnnotationsWithHttpInfo(name, storage, folder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = getFileAttachmentAnnotationWithHttpInfo(name, annotationId, storage, folder); + apiClient.requestToken(); + ApiResponse resp = getDocumentStrikeOutAnnotationsWithHttpInfo(name, storage, folder); return resp.getData(); } throw ex; @@ -8742,33 +8746,31 @@ public FileAttachmentAnnotationResponse getFileAttachmentAnnotation(String name, } /** - * Read document page FileAttachment annotation by ID. + * Read document StrikeOut annotations. * * @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<FileAttachmentAnnotationResponse> + * @return ApiResponse<StrikeOutAnnotationsResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse getFileAttachmentAnnotationWithHttpInfo(String name, String annotationId, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = getFileAttachmentAnnotationValidateBeforeCall(name, annotationId, storage, folder, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse getDocumentStrikeOutAnnotationsWithHttpInfo(String name, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = getDocumentStrikeOutAnnotationsValidateBeforeCall(name, storage, folder, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Read document page FileAttachment annotation by ID. (asynchronously) + * Read document StrikeOut annotations. (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 getFileAttachmentAnnotationAsync(String name, String annotationId, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call getDocumentStrikeOutAnnotationsAsync(String name, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -8789,29 +8791,27 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = getFileAttachmentAnnotationValidateBeforeCall(name, annotationId, storage, folder, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = getDocumentStrikeOutAnnotationsValidateBeforeCall(name, storage, folder, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for getFileAttachmentAnnotationData - * @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 getDocumentTables + * @param name (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 getFileAttachmentAnnotationDataCall(String name, String annotationId, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call getDocumentTablesCall(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/fileattachment/{annotationId}/data" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "annotationId" + "\\}", apiClient.escapeString(annotationId.toString())); + String localVarPath = "/pdf/{name}/tables" + .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -8825,7 +8825,7 @@ public com.squareup.okhttp.Call getFileAttachmentAnnotationDataCall(String name, 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); @@ -8848,51 +8848,45 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getFileAttachmentAnnotationDataValidateBeforeCall(String name, String annotationId, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call getDocumentTablesValidateBeforeCall(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 getFileAttachmentAnnotationData(Async)"); - } - - // verify the required parameter 'annotationId' is set - if (annotationId == null) { - throw new ApiException("Missing the required parameter 'annotationId' when calling getFileAttachmentAnnotationData(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling getDocumentTables(Async)"); } - com.squareup.okhttp.Call call = getFileAttachmentAnnotationDataCall(name, annotationId, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getDocumentTablesCall(name, storage, folder, progressListener, progressRequestListener); return call; } /** - * Read document page FileAttachment annotation by ID. + * Read document tables. * - * @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 File + * @param name (required) + * @param storage (optional) + * @param folder (optional) + * @return TablesRecognizedResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public File getFileAttachmentAnnotationData(String name, String annotationId, String storage, String folder) throws ApiException { + public TablesRecognizedResponse getDocumentTables(String name, String storage, String folder) throws ApiException { try { - ApiResponse resp = getFileAttachmentAnnotationDataWithHttpInfo(name, annotationId, storage, folder); + ApiResponse resp = getDocumentTablesWithHttpInfo(name, storage, folder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = getFileAttachmentAnnotationDataWithHttpInfo(name, annotationId, storage, folder); + apiClient.requestToken(); + ApiResponse resp = getDocumentTablesWithHttpInfo(name, storage, folder); return resp.getData(); } throw ex; @@ -8900,33 +8894,31 @@ public File getFileAttachmentAnnotationData(String name, String annotationId, St } /** - * Read document page FileAttachment annotation by ID. + * Read document tables. * - * @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<File> + * @param name (required) + * @param storage (optional) + * @param folder (optional) + * @return ApiResponse<TablesRecognizedResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse getFileAttachmentAnnotationDataWithHttpInfo(String name, String annotationId, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = getFileAttachmentAnnotationDataValidateBeforeCall(name, annotationId, storage, folder, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse getDocumentTablesWithHttpInfo(String name, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = getDocumentTablesValidateBeforeCall(name, storage, folder, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Read document page FileAttachment annotation by ID. (asynchronously) + * Read document tables. (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 (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 getFileAttachmentAnnotationDataAsync(String name, String annotationId, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call getDocumentTablesAsync(String name, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -8947,15 +8939,14 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = getFileAttachmentAnnotationDataValidateBeforeCall(name, annotationId, storage, folder, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = getDocumentTablesValidateBeforeCall(name, storage, folder, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for getFreeTextAnnotation + * Build call for getDocumentTextAnnotations * @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 @@ -8963,13 +8954,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 getFreeTextAnnotationCall(String name, String annotationId, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call getDocumentTextAnnotationsCall(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/freetext/{annotationId}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "annotationId" + "\\}", apiClient.escapeString(annotationId.toString())); + String localVarPath = "/pdf/{name}/annotations/text" + .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -9006,51 +8996,45 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getFreeTextAnnotationValidateBeforeCall(String name, String annotationId, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call getDocumentTextAnnotationsValidateBeforeCall(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 getFreeTextAnnotation(Async)"); - } - - // verify the required parameter 'annotationId' is set - if (annotationId == null) { - throw new ApiException("Missing the required parameter 'annotationId' when calling getFreeTextAnnotation(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling getDocumentTextAnnotations(Async)"); } - com.squareup.okhttp.Call call = getFreeTextAnnotationCall(name, annotationId, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getDocumentTextAnnotationsCall(name, storage, folder, progressListener, progressRequestListener); return call; } /** - * Read document page free text annotation by ID. + * Read document text annotations. * * @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 FreeTextAnnotationResponse + * @return TextAnnotationsResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public FreeTextAnnotationResponse getFreeTextAnnotation(String name, String annotationId, String storage, String folder) throws ApiException { + public TextAnnotationsResponse getDocumentTextAnnotations(String name, String storage, String folder) throws ApiException { try { - ApiResponse resp = getFreeTextAnnotationWithHttpInfo(name, annotationId, storage, folder); + ApiResponse resp = getDocumentTextAnnotationsWithHttpInfo(name, storage, folder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = getFreeTextAnnotationWithHttpInfo(name, annotationId, storage, folder); + apiClient.requestToken(); + ApiResponse resp = getDocumentTextAnnotationsWithHttpInfo(name, storage, folder); return resp.getData(); } throw ex; @@ -9058,33 +9042,31 @@ public FreeTextAnnotationResponse getFreeTextAnnotation(String name, String anno } /** - * Read document page free text annotation by ID. + * Read document text annotations. * * @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<FreeTextAnnotationResponse> + * @return ApiResponse<TextAnnotationsResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse getFreeTextAnnotationWithHttpInfo(String name, String annotationId, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = getFreeTextAnnotationValidateBeforeCall(name, annotationId, storage, folder, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse getDocumentTextAnnotationsWithHttpInfo(String name, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = getDocumentTextAnnotationsValidateBeforeCall(name, storage, folder, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Read document page free text annotation by ID. (asynchronously) + * Read document text annotations. (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 getFreeTextAnnotationAsync(String name, String annotationId, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call getDocumentTextAnnotationsAsync(String name, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -9105,15 +9087,14 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = getFreeTextAnnotationValidateBeforeCall(name, annotationId, storage, folder, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = getDocumentTextAnnotationsValidateBeforeCall(name, storage, folder, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for getHighlightAnnotation + * Build call for getDocumentUnderlineAnnotations * @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 @@ -9121,13 +9102,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 getHighlightAnnotationCall(String name, String annotationId, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call getDocumentUnderlineAnnotationsCall(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/highlight/{annotationId}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "annotationId" + "\\}", apiClient.escapeString(annotationId.toString())); + String localVarPath = "/pdf/{name}/annotations/underline" + .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -9164,51 +9144,45 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getHighlightAnnotationValidateBeforeCall(String name, String annotationId, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call getDocumentUnderlineAnnotationsValidateBeforeCall(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 getHighlightAnnotation(Async)"); - } - - // verify the required parameter 'annotationId' is set - if (annotationId == null) { - throw new ApiException("Missing the required parameter 'annotationId' when calling getHighlightAnnotation(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling getDocumentUnderlineAnnotations(Async)"); } - com.squareup.okhttp.Call call = getHighlightAnnotationCall(name, annotationId, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getDocumentUnderlineAnnotationsCall(name, storage, folder, progressListener, progressRequestListener); return call; } /** - * Read document page highlight annotation by ID. + * Read document underline annotations. * * @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 HighlightAnnotationResponse + * @return UnderlineAnnotationsResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public HighlightAnnotationResponse getHighlightAnnotation(String name, String annotationId, String storage, String folder) throws ApiException { + public UnderlineAnnotationsResponse getDocumentUnderlineAnnotations(String name, String storage, String folder) throws ApiException { try { - ApiResponse resp = getHighlightAnnotationWithHttpInfo(name, annotationId, storage, folder); + ApiResponse resp = getDocumentUnderlineAnnotationsWithHttpInfo(name, storage, folder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = getHighlightAnnotationWithHttpInfo(name, annotationId, storage, folder); + apiClient.requestToken(); + ApiResponse resp = getDocumentUnderlineAnnotationsWithHttpInfo(name, storage, folder); return resp.getData(); } throw ex; @@ -9216,33 +9190,31 @@ public HighlightAnnotationResponse getHighlightAnnotation(String name, String an } /** - * Read document page highlight annotation by ID. + * Read document underline annotations. * * @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<HighlightAnnotationResponse> + * @return ApiResponse<UnderlineAnnotationsResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse getHighlightAnnotationWithHttpInfo(String name, String annotationId, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = getHighlightAnnotationValidateBeforeCall(name, annotationId, storage, folder, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse getDocumentUnderlineAnnotationsWithHttpInfo(String name, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = getDocumentUnderlineAnnotationsValidateBeforeCall(name, storage, folder, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Read document page highlight annotation by ID. (asynchronously) + * Read document underline annotations. (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 getHighlightAnnotationAsync(String name, String annotationId, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call getDocumentUnderlineAnnotationsAsync(String name, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -9263,56 +9235,36 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = getHighlightAnnotationValidateBeforeCall(name, annotationId, storage, folder, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = getDocumentUnderlineAnnotationsValidateBeforeCall(name, storage, folder, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for getHtmlInStorageToPdf - * @param srcPath Full source filename (ex. /folder1/folder2/template.zip) (required) - * @param htmlFileName Name of HTML file in ZIP. (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 getDownloadDocumentAttachmentByIndex + * @param name The document name. (required) + * @param attachmentIndex The attachment index. (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 getHtmlInStorageToPdfCall(String srcPath, String htmlFileName, 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 getDownloadDocumentAttachmentByIndexCall(String name, Integer attachmentIndex, 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/html"; + String localVarPath = "/pdf/{name}/attachments/{attachmentIndex}/download" + .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) + .replaceAll("\\{" + "attachmentIndex" + "\\}", apiClient.escapeString(attachmentIndex.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (srcPath != null) - localVarQueryParams.addAll(apiClient.parameterToPair("srcPath", srcPath)); - if (htmlFileName != null) - localVarQueryParams.addAll(apiClient.parameterToPair("htmlFileName", htmlFileName)); - 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(); @@ -9342,52 +9294,51 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getHtmlInStorageToPdfValidateBeforeCall(String srcPath, String htmlFileName, 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 getDownloadDocumentAttachmentByIndexValidateBeforeCall(String name, Integer attachmentIndex, 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 getHtmlInStorageToPdf(Async)"); + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling getDownloadDocumentAttachmentByIndex(Async)"); + } + + // verify the required parameter 'attachmentIndex' is set + if (attachmentIndex == null) { + throw new ApiException("Missing the required parameter 'attachmentIndex' when calling getDownloadDocumentAttachmentByIndex(Async)"); } - com.squareup.okhttp.Call call = getHtmlInStorageToPdfCall(srcPath, htmlFileName, height, width, isLandscape, marginLeft, marginBottom, marginRight, marginTop, storage, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getDownloadDocumentAttachmentByIndexCall(name, attachmentIndex, storage, folder, progressListener, progressRequestListener); return call; } /** - * Convert HTML file (located on storage) to PDF format and return resulting file in response. + * Download document attachment content by its index. * - * @param srcPath Full source filename (ex. /folder1/folder2/template.zip) (required) - * @param htmlFileName Name of HTML file in ZIP. (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 attachmentIndex The attachment index. (required) * @param storage The document storage. (optional) + * @param folder The document folder. (optional) * @return File * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public File getHtmlInStorageToPdf(String srcPath, String htmlFileName, Double height, Double width, Boolean isLandscape, Double marginLeft, Double marginBottom, Double marginRight, Double marginTop, String storage) throws ApiException { + public File getDownloadDocumentAttachmentByIndex(String name, Integer attachmentIndex, String storage, String folder) throws ApiException { try { - ApiResponse resp = getHtmlInStorageToPdfWithHttpInfo(srcPath, htmlFileName, height, width, isLandscape, marginLeft, marginBottom, marginRight, marginTop, storage); + ApiResponse resp = getDownloadDocumentAttachmentByIndexWithHttpInfo(name, attachmentIndex, storage, folder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = getHtmlInStorageToPdfWithHttpInfo(srcPath, htmlFileName, height, width, isLandscape, marginLeft, marginBottom, marginRight, marginTop, storage); + apiClient.requestToken(); + ApiResponse resp = getDownloadDocumentAttachmentByIndexWithHttpInfo(name, attachmentIndex, storage, folder); return resp.getData(); } throw ex; @@ -9395,45 +9346,33 @@ public File getHtmlInStorageToPdf(String srcPath, String htmlFileName, Double he } /** - * Convert HTML file (located on storage) to PDF format and return resulting file in response. + * Download document attachment content by its index. * - * @param srcPath Full source filename (ex. /folder1/folder2/template.zip) (required) - * @param htmlFileName Name of HTML file in ZIP. (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 attachmentIndex The attachment index. (required) * @param storage The document storage. (optional) + * @param folder The document folder. (optional) * @return ApiResponse<File> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse getHtmlInStorageToPdfWithHttpInfo(String srcPath, String htmlFileName, Double height, Double width, Boolean isLandscape, Double marginLeft, Double marginBottom, Double marginRight, Double marginTop, String storage) throws ApiException { - com.squareup.okhttp.Call call = getHtmlInStorageToPdfValidateBeforeCall(srcPath, htmlFileName, height, width, isLandscape, marginLeft, marginBottom, marginRight, marginTop, storage, null, null); + public ApiResponse getDownloadDocumentAttachmentByIndexWithHttpInfo(String name, Integer attachmentIndex, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = getDownloadDocumentAttachmentByIndexValidateBeforeCall(name, attachmentIndex, storage, folder, null, null); Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Convert HTML file (located on storage) to PDF format and return resulting file in response. (asynchronously) + * Download document attachment content by its index. (asynchronously) * - * @param srcPath Full source filename (ex. /folder1/folder2/template.zip) (required) - * @param htmlFileName Name of HTML file in ZIP. (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 attachmentIndex The attachment index. (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 getHtmlInStorageToPdfAsync(String srcPath, String htmlFileName, 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 getDownloadDocumentAttachmentByIndexAsync(String name, Integer attachmentIndex, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -9454,36 +9393,32 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = getHtmlInStorageToPdfValidateBeforeCall(srcPath, htmlFileName, height, width, isLandscape, marginLeft, marginBottom, marginRight, marginTop, storage, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getDownloadDocumentAttachmentByIndexValidateBeforeCall(name, attachmentIndex, storage, folder, progressListener, progressRequestListener); Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for getImage - * @param name The document name. (required) - * @param imageId Image ID. (required) + * Build call for getEpubInStorageToPdf + * @param srcPath Full source filename (ex. /folder1/folder2/template.epub) (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 getImageCall(String name, String imageId, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call getEpubInStorageToPdfCall(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}/images/{imageId}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "imageId" + "\\}", apiClient.escapeString(imageId.toString())); + String localVarPath = "/pdf/create/epub"; 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(); @@ -9513,51 +9448,44 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getImageValidateBeforeCall(String name, String imageId, 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 getImage(Async)"); - } + private com.squareup.okhttp.Call getEpubInStorageToPdfValidateBeforeCall(String srcPath, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - // verify the required parameter 'imageId' is set - if (imageId == null) { - throw new ApiException("Missing the required parameter 'imageId' when calling getImage(Async)"); + // verify the required parameter 'srcPath' is set + if (srcPath == null) { + throw new ApiException("Missing the required parameter 'srcPath' when calling getEpubInStorageToPdf(Async)"); } - com.squareup.okhttp.Call call = getImageCall(name, imageId, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getEpubInStorageToPdfCall(srcPath, storage, progressListener, progressRequestListener); return call; } /** - * Read document image by ID. + * Convert EPUB file (located on storage) to PDF format and return resulting file in response. * - * @param name The document name. (required) - * @param imageId Image ID. (required) + * @param srcPath Full source filename (ex. /folder1/folder2/template.epub) (required) * @param storage The document storage. (optional) - * @param folder The document folder. (optional) - * @return ImageResponse + * @return File * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ImageResponse getImage(String name, String imageId, String storage, String folder) throws ApiException { + public File getEpubInStorageToPdf(String srcPath, String storage) throws ApiException { try { - ApiResponse resp = getImageWithHttpInfo(name, imageId, storage, folder); + ApiResponse resp = getEpubInStorageToPdfWithHttpInfo(srcPath, storage); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = getImageWithHttpInfo(name, imageId, storage, folder); + apiClient.requestToken(); + ApiResponse resp = getEpubInStorageToPdfWithHttpInfo(srcPath, storage); return resp.getData(); } throw ex; @@ -9565,33 +9493,29 @@ public ImageResponse getImage(String name, String imageId, String storage, Strin } /** - * Read document image by ID. + * Convert EPUB file (located on storage) to PDF format and return resulting file in response. * - * @param name The document name. (required) - * @param imageId Image ID. (required) + * @param srcPath Full source filename (ex. /folder1/folder2/template.epub) (required) * @param storage The document storage. (optional) - * @param folder The document folder. (optional) - * @return ApiResponse<ImageResponse> + * @return ApiResponse<File> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse getImageWithHttpInfo(String name, String imageId, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = getImageValidateBeforeCall(name, imageId, storage, folder, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse getEpubInStorageToPdfWithHttpInfo(String srcPath, String storage) throws ApiException { + com.squareup.okhttp.Call call = getEpubInStorageToPdfValidateBeforeCall(srcPath, storage, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Read document image by ID. (asynchronously) + * Convert EPUB file (located on storage) to PDF format and return resulting file in response. (asynchronously) * - * @param name The document name. (required) - * @param imageId Image ID. (required) + * @param srcPath Full source filename (ex. /folder1/folder2/template.epub) (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 getImageAsync(String name, String imageId, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call getEpubInStorageToPdfAsync(String srcPath, String storage, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -9612,17 +9536,14 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = getImageValidateBeforeCall(name, imageId, storage, folder, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = getEpubInStorageToPdfValidateBeforeCall(srcPath, storage, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for getImageExtractAsGif + * Build call for getExportFieldsFromPdfToFdfInStorage * @param name The document name. (required) - * @param imageId Image ID. (required) - * @param width The converted image width. (optional) - * @param height The converted image height. (optional) * @param storage The document storage. (optional) * @param folder The document folder. (optional) * @param progressListener Progress listener @@ -9630,20 +9551,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 getImageExtractAsGifCall(String name, String imageId, Integer width, Integer height, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call getExportFieldsFromPdfToFdfInStorageCall(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}/images/{imageId}/extract/gif" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "imageId" + "\\}", apiClient.escapeString(imageId.toString())); + String localVarPath = "/pdf/{name}/export/fdf" + .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.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 (storage != null) localVarQueryParams.addAll(apiClient.parameterToPair("storage", storage)); if (folder != null) @@ -9677,53 +9593,45 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getImageExtractAsGifValidateBeforeCall(String name, String imageId, Integer width, Integer height, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call getExportFieldsFromPdfToFdfInStorageValidateBeforeCall(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 getImageExtractAsGif(Async)"); - } - - // verify the required parameter 'imageId' is set - if (imageId == null) { - throw new ApiException("Missing the required parameter 'imageId' when calling getImageExtractAsGif(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling getExportFieldsFromPdfToFdfInStorage(Async)"); } - com.squareup.okhttp.Call call = getImageExtractAsGifCall(name, imageId, width, height, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getExportFieldsFromPdfToFdfInStorageCall(name, storage, folder, progressListener, progressRequestListener); return call; } /** - * Extract document image in GIF format + * Export fields from from PDF in storage to FDF file. * * @param name The document name. (required) - * @param imageId Image ID. (required) - * @param width The converted image width. (optional) - * @param height The converted image height. (optional) * @param storage The document storage. (optional) * @param folder The document folder. (optional) * @return File * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public File getImageExtractAsGif(String name, String imageId, Integer width, Integer height, String storage, String folder) throws ApiException { + public File getExportFieldsFromPdfToFdfInStorage(String name, String storage, String folder) throws ApiException { try { - ApiResponse resp = getImageExtractAsGifWithHttpInfo(name, imageId, width, height, storage, folder); + ApiResponse resp = getExportFieldsFromPdfToFdfInStorageWithHttpInfo(name, storage, folder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = getImageExtractAsGifWithHttpInfo(name, imageId, width, height, storage, folder); + apiClient.requestToken(); + ApiResponse resp = getExportFieldsFromPdfToFdfInStorageWithHttpInfo(name, storage, folder); return resp.getData(); } throw ex; @@ -9731,37 +9639,31 @@ public File getImageExtractAsGif(String name, String imageId, Integer width, Int } /** - * Extract document image in GIF format + * Export fields from from PDF in storage to FDF file. * * @param name The document name. (required) - * @param imageId Image ID. (required) - * @param width The converted image width. (optional) - * @param height The converted image height. (optional) * @param storage The document storage. (optional) * @param folder The document folder. (optional) * @return ApiResponse<File> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse getImageExtractAsGifWithHttpInfo(String name, String imageId, Integer width, Integer height, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = getImageExtractAsGifValidateBeforeCall(name, imageId, width, height, storage, folder, null, null); + public ApiResponse getExportFieldsFromPdfToFdfInStorageWithHttpInfo(String name, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = getExportFieldsFromPdfToFdfInStorageValidateBeforeCall(name, storage, folder, null, null); Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Extract document image in GIF format (asynchronously) + * Export fields from from PDF in storage to FDF file. (asynchronously) * * @param name The document name. (required) - * @param imageId Image ID. (required) - * @param width The converted image width. (optional) - * @param height The converted image height. (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 getImageExtractAsGifAsync(String name, String imageId, Integer width, Integer height, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call getExportFieldsFromPdfToFdfInStorageAsync(String name, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -9782,17 +9684,14 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = getImageExtractAsGifValidateBeforeCall(name, imageId, width, height, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getExportFieldsFromPdfToFdfInStorageValidateBeforeCall(name, storage, folder, progressListener, progressRequestListener); Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for getImageExtractAsJpeg + * Build call for getExportFieldsFromPdfToXfdfInStorage * @param name The document name. (required) - * @param imageId Image ID. (required) - * @param width The converted image width. (optional) - * @param height The converted image height. (optional) * @param storage The document storage. (optional) * @param folder The document folder. (optional) * @param progressListener Progress listener @@ -9800,20 +9699,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 getImageExtractAsJpegCall(String name, String imageId, Integer width, Integer height, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call getExportFieldsFromPdfToXfdfInStorageCall(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}/images/{imageId}/extract/jpeg" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "imageId" + "\\}", apiClient.escapeString(imageId.toString())); + String localVarPath = "/pdf/{name}/export/xfdf" + .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.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 (storage != null) localVarQueryParams.addAll(apiClient.parameterToPair("storage", storage)); if (folder != null) @@ -9847,53 +9741,45 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getImageExtractAsJpegValidateBeforeCall(String name, String imageId, Integer width, Integer height, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call getExportFieldsFromPdfToXfdfInStorageValidateBeforeCall(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 getImageExtractAsJpeg(Async)"); - } - - // verify the required parameter 'imageId' is set - if (imageId == null) { - throw new ApiException("Missing the required parameter 'imageId' when calling getImageExtractAsJpeg(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling getExportFieldsFromPdfToXfdfInStorage(Async)"); } - com.squareup.okhttp.Call call = getImageExtractAsJpegCall(name, imageId, width, height, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getExportFieldsFromPdfToXfdfInStorageCall(name, storage, folder, progressListener, progressRequestListener); return call; } /** - * Extract document image in JPEG format + * Export fields from from PDF in storage to XFDF file. * * @param name The document name. (required) - * @param imageId Image ID. (required) - * @param width The converted image width. (optional) - * @param height The converted image height. (optional) * @param storage The document storage. (optional) * @param folder The document folder. (optional) * @return File * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public File getImageExtractAsJpeg(String name, String imageId, Integer width, Integer height, String storage, String folder) throws ApiException { + public File getExportFieldsFromPdfToXfdfInStorage(String name, String storage, String folder) throws ApiException { try { - ApiResponse resp = getImageExtractAsJpegWithHttpInfo(name, imageId, width, height, storage, folder); + ApiResponse resp = getExportFieldsFromPdfToXfdfInStorageWithHttpInfo(name, storage, folder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = getImageExtractAsJpegWithHttpInfo(name, imageId, width, height, storage, folder); + apiClient.requestToken(); + ApiResponse resp = getExportFieldsFromPdfToXfdfInStorageWithHttpInfo(name, storage, folder); return resp.getData(); } throw ex; @@ -9901,37 +9787,31 @@ public File getImageExtractAsJpeg(String name, String imageId, Integer width, In } /** - * Extract document image in JPEG format + * Export fields from from PDF in storage to XFDF file. * * @param name The document name. (required) - * @param imageId Image ID. (required) - * @param width The converted image width. (optional) - * @param height The converted image height. (optional) * @param storage The document storage. (optional) * @param folder The document folder. (optional) * @return ApiResponse<File> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse getImageExtractAsJpegWithHttpInfo(String name, String imageId, Integer width, Integer height, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = getImageExtractAsJpegValidateBeforeCall(name, imageId, width, height, storage, folder, null, null); + public ApiResponse getExportFieldsFromPdfToXfdfInStorageWithHttpInfo(String name, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = getExportFieldsFromPdfToXfdfInStorageValidateBeforeCall(name, storage, folder, null, null); Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Extract document image in JPEG format (asynchronously) + * Export fields from from PDF in storage to XFDF file. (asynchronously) * * @param name The document name. (required) - * @param imageId Image ID. (required) - * @param width The converted image width. (optional) - * @param height The converted image height. (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 getImageExtractAsJpegAsync(String name, String imageId, Integer width, Integer height, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call getExportFieldsFromPdfToXfdfInStorageAsync(String name, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -9952,17 +9832,14 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = getImageExtractAsJpegValidateBeforeCall(name, imageId, width, height, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getExportFieldsFromPdfToXfdfInStorageValidateBeforeCall(name, storage, folder, progressListener, progressRequestListener); Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for getImageExtractAsPng + * Build call for getExportFieldsFromPdfToXmlInStorage * @param name The document name. (required) - * @param imageId Image ID. (required) - * @param width The converted image width. (optional) - * @param height The converted image height. (optional) * @param storage The document storage. (optional) * @param folder The document folder. (optional) * @param progressListener Progress listener @@ -9970,20 +9847,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 getImageExtractAsPngCall(String name, String imageId, Integer width, Integer height, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call getExportFieldsFromPdfToXmlInStorageCall(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}/images/{imageId}/extract/png" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "imageId" + "\\}", apiClient.escapeString(imageId.toString())); + String localVarPath = "/pdf/{name}/export/xml" + .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.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 (storage != null) localVarQueryParams.addAll(apiClient.parameterToPair("storage", storage)); if (folder != null) @@ -10017,53 +9889,45 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getImageExtractAsPngValidateBeforeCall(String name, String imageId, Integer width, Integer height, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call getExportFieldsFromPdfToXmlInStorageValidateBeforeCall(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 getImageExtractAsPng(Async)"); - } - - // verify the required parameter 'imageId' is set - if (imageId == null) { - throw new ApiException("Missing the required parameter 'imageId' when calling getImageExtractAsPng(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling getExportFieldsFromPdfToXmlInStorage(Async)"); } - com.squareup.okhttp.Call call = getImageExtractAsPngCall(name, imageId, width, height, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getExportFieldsFromPdfToXmlInStorageCall(name, storage, folder, progressListener, progressRequestListener); return call; } /** - * Extract document image in PNG format + * Export fields from from PDF in storage to XML file. * * @param name The document name. (required) - * @param imageId Image ID. (required) - * @param width The converted image width. (optional) - * @param height The converted image height. (optional) * @param storage The document storage. (optional) * @param folder The document folder. (optional) * @return File * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public File getImageExtractAsPng(String name, String imageId, Integer width, Integer height, String storage, String folder) throws ApiException { + public File getExportFieldsFromPdfToXmlInStorage(String name, String storage, String folder) throws ApiException { try { - ApiResponse resp = getImageExtractAsPngWithHttpInfo(name, imageId, width, height, storage, folder); + ApiResponse resp = getExportFieldsFromPdfToXmlInStorageWithHttpInfo(name, storage, folder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = getImageExtractAsPngWithHttpInfo(name, imageId, width, height, storage, folder); + apiClient.requestToken(); + ApiResponse resp = getExportFieldsFromPdfToXmlInStorageWithHttpInfo(name, storage, folder); return resp.getData(); } throw ex; @@ -10071,37 +9935,31 @@ public File getImageExtractAsPng(String name, String imageId, Integer width, Int } /** - * Extract document image in PNG format + * Export fields from from PDF in storage to XML file. * * @param name The document name. (required) - * @param imageId Image ID. (required) - * @param width The converted image width. (optional) - * @param height The converted image height. (optional) * @param storage The document storage. (optional) * @param folder The document folder. (optional) * @return ApiResponse<File> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse getImageExtractAsPngWithHttpInfo(String name, String imageId, Integer width, Integer height, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = getImageExtractAsPngValidateBeforeCall(name, imageId, width, height, storage, folder, null, null); + public ApiResponse getExportFieldsFromPdfToXmlInStorageWithHttpInfo(String name, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = getExportFieldsFromPdfToXmlInStorageValidateBeforeCall(name, storage, folder, null, null); Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Extract document image in PNG format (asynchronously) + * Export fields from from PDF in storage to XML file. (asynchronously) * * @param name The document name. (required) - * @param imageId Image ID. (required) - * @param width The converted image width. (optional) - * @param height The converted image height. (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 getImageExtractAsPngAsync(String name, String imageId, Integer width, Integer height, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call getExportFieldsFromPdfToXmlInStorageAsync(String name, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -10122,17 +9980,15 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = getImageExtractAsPngValidateBeforeCall(name, imageId, width, height, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getExportFieldsFromPdfToXmlInStorageValidateBeforeCall(name, storage, folder, progressListener, progressRequestListener); Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for getImageExtractAsTiff + * Build call for getField * @param name The document name. (required) - * @param imageId Image ID. (required) - * @param width The converted image width. (optional) - * @param height The converted image height. (optional) + * @param fieldName The field name (name should be encoded). (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) * @param progressListener Progress listener @@ -10140,20 +9996,16 @@ 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 getImageExtractAsTiffCall(String name, String imageId, Integer width, Integer height, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call getFieldCall(String name, String fieldName, 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}/images/{imageId}/extract/tiff" + String localVarPath = "/pdf/{name}/fields/{fieldName}" .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "imageId" + "\\}", apiClient.escapeString(imageId.toString())); + .replaceAll("\\{" + "fieldName" + "\\}", apiClient.escapeString(fieldName.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 (storage != null) localVarQueryParams.addAll(apiClient.parameterToPair("storage", storage)); if (folder != null) @@ -10164,7 +10016,7 @@ public com.squareup.okhttp.Call getImageExtractAsTiffCall(String name, String im 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); @@ -10187,53 +10039,51 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getImageExtractAsTiffValidateBeforeCall(String name, String imageId, Integer width, Integer height, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call getFieldValidateBeforeCall(String name, String fieldName, 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 getImageExtractAsTiff(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling getField(Async)"); } - // verify the required parameter 'imageId' is set - if (imageId == null) { - throw new ApiException("Missing the required parameter 'imageId' when calling getImageExtractAsTiff(Async)"); + // verify the required parameter 'fieldName' is set + if (fieldName == null) { + throw new ApiException("Missing the required parameter 'fieldName' when calling getField(Async)"); } - com.squareup.okhttp.Call call = getImageExtractAsTiffCall(name, imageId, width, height, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getFieldCall(name, fieldName, storage, folder, progressListener, progressRequestListener); return call; } /** - * Extract document image in TIFF format + * Get document field by name. * * @param name The document name. (required) - * @param imageId Image ID. (required) - * @param width The converted image width. (optional) - * @param height The converted image height. (optional) + * @param fieldName The field name (name should be encoded). (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) - * @return File + * @return FieldResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public File getImageExtractAsTiff(String name, String imageId, Integer width, Integer height, String storage, String folder) throws ApiException { + public FieldResponse getField(String name, String fieldName, String storage, String folder) throws ApiException { try { - ApiResponse resp = getImageExtractAsTiffWithHttpInfo(name, imageId, width, height, storage, folder); + ApiResponse resp = getFieldWithHttpInfo(name, fieldName, storage, folder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = getImageExtractAsTiffWithHttpInfo(name, imageId, width, height, storage, folder); + apiClient.requestToken(); + ApiResponse resp = getFieldWithHttpInfo(name, fieldName, storage, folder); return resp.getData(); } throw ex; @@ -10241,37 +10091,33 @@ public File getImageExtractAsTiff(String name, String imageId, Integer width, In } /** - * Extract document image in TIFF format + * Get document field by name. * * @param name The document name. (required) - * @param imageId Image ID. (required) - * @param width The converted image width. (optional) - * @param height The converted image height. (optional) + * @param fieldName The field name (name should be encoded). (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) - * @return ApiResponse<File> + * @return ApiResponse<FieldResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse getImageExtractAsTiffWithHttpInfo(String name, String imageId, Integer width, Integer height, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = getImageExtractAsTiffValidateBeforeCall(name, imageId, width, height, storage, folder, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse getFieldWithHttpInfo(String name, String fieldName, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = getFieldValidateBeforeCall(name, fieldName, storage, folder, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Extract document image in TIFF format (asynchronously) + * Get document field by name. (asynchronously) * * @param name The document name. (required) - * @param imageId Image ID. (required) - * @param width The converted image width. (optional) - * @param height The converted image height. (optional) + * @param fieldName The field name (name should be encoded). (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 getImageExtractAsTiffAsync(String name, String imageId, Integer width, Integer height, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call getFieldAsync(String name, String fieldName, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -10292,15 +10138,14 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = getImageExtractAsTiffValidateBeforeCall(name, imageId, width, height, storage, folder, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = getFieldValidateBeforeCall(name, fieldName, storage, folder, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for getImages + * Build call for getFields * @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 @@ -10308,13 +10153,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 getImagesCall(String name, Integer pageNumber, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call getFieldsCall(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/{pageNumber}/images" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "pageNumber" + "\\}", apiClient.escapeString(pageNumber.toString())); + String localVarPath = "/pdf/{name}/fields" + .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -10351,51 +10195,45 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getImagesValidateBeforeCall(String name, Integer pageNumber, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call getFieldsValidateBeforeCall(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 getImages(Async)"); - } - - // verify the required parameter 'pageNumber' is set - if (pageNumber == null) { - throw new ApiException("Missing the required parameter 'pageNumber' when calling getImages(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling getFields(Async)"); } - com.squareup.okhttp.Call call = getImagesCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getFieldsCall(name, storage, folder, progressListener, progressRequestListener); return call; } /** - * Read document images. + * Get document fields. * * @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 ImagesResponse + * @return FieldsResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ImagesResponse getImages(String name, Integer pageNumber, String storage, String folder) throws ApiException { + public FieldsResponse getFields(String name, String storage, String folder) throws ApiException { try { - ApiResponse resp = getImagesWithHttpInfo(name, pageNumber, storage, folder); + ApiResponse resp = getFieldsWithHttpInfo(name, storage, folder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = getImagesWithHttpInfo(name, pageNumber, storage, folder); + apiClient.requestToken(); + ApiResponse resp = getFieldsWithHttpInfo(name, storage, folder); return resp.getData(); } throw ex; @@ -10403,33 +10241,31 @@ public ImagesResponse getImages(String name, Integer pageNumber, String storage, } /** - * Read document images. + * Get document fields. * * @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<ImagesResponse> + * @return ApiResponse<FieldsResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse getImagesWithHttpInfo(String name, Integer pageNumber, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = getImagesValidateBeforeCall(name, pageNumber, storage, folder, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse getFieldsWithHttpInfo(String name, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = getFieldsValidateBeforeCall(name, storage, folder, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Read document images. (asynchronously) + * Get document fields. (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 getImagesAsync(String name, Integer pageNumber, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call getFieldsAsync(String name, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -10450,13 +10286,13 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = getImagesValidateBeforeCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = getFieldsValidateBeforeCall(name, storage, folder, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for getInkAnnotation + * Build call for getFileAttachmentAnnotation * @param name The document name. (required) * @param annotationId The annotation ID. (required) * @param storage The document storage. (optional) @@ -10466,11 +10302,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 getInkAnnotationCall(String name, String annotationId, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call getFileAttachmentAnnotationCall(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/ink/{annotationId}" + String localVarPath = "/pdf/{name}/annotations/fileattachment/{annotationId}" .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) .replaceAll("\\{" + "annotationId" + "\\}", apiClient.escapeString(annotationId.toString())); @@ -10509,51 +10345,51 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getInkAnnotationValidateBeforeCall(String name, String annotationId, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call getFileAttachmentAnnotationValidateBeforeCall(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 getInkAnnotation(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling getFileAttachmentAnnotation(Async)"); } // verify the required parameter 'annotationId' is set if (annotationId == null) { - throw new ApiException("Missing the required parameter 'annotationId' when calling getInkAnnotation(Async)"); + throw new ApiException("Missing the required parameter 'annotationId' when calling getFileAttachmentAnnotation(Async)"); } - com.squareup.okhttp.Call call = getInkAnnotationCall(name, annotationId, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getFileAttachmentAnnotationCall(name, annotationId, storage, folder, progressListener, progressRequestListener); return call; } /** - * Read document page ink annotation by ID. + * Read document page FileAttachment 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 InkAnnotationResponse + * @return FileAttachmentAnnotationResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public InkAnnotationResponse getInkAnnotation(String name, String annotationId, String storage, String folder) throws ApiException { + public FileAttachmentAnnotationResponse getFileAttachmentAnnotation(String name, String annotationId, String storage, String folder) throws ApiException { try { - ApiResponse resp = getInkAnnotationWithHttpInfo(name, annotationId, storage, folder); + ApiResponse resp = getFileAttachmentAnnotationWithHttpInfo(name, annotationId, storage, folder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = getInkAnnotationWithHttpInfo(name, annotationId, storage, folder); + apiClient.requestToken(); + ApiResponse resp = getFileAttachmentAnnotationWithHttpInfo(name, annotationId, storage, folder); return resp.getData(); } throw ex; @@ -10561,23 +10397,23 @@ public InkAnnotationResponse getInkAnnotation(String name, String annotationId, } /** - * Read document page ink annotation by ID. + * Read document page FileAttachment 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<InkAnnotationResponse> + * @return ApiResponse<FileAttachmentAnnotationResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse getInkAnnotationWithHttpInfo(String name, String annotationId, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = getInkAnnotationValidateBeforeCall(name, annotationId, storage, folder, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse getFileAttachmentAnnotationWithHttpInfo(String name, String annotationId, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = getFileAttachmentAnnotationValidateBeforeCall(name, annotationId, storage, folder, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Read document page ink annotation by ID. (asynchronously) + * Read document page FileAttachment annotation by ID. (asynchronously) * * @param name The document name. (required) * @param annotationId The annotation ID. (required) @@ -10587,7 +10423,7 @@ public ApiResponse getInkAnnotationWithHttpInfo(String na * @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 getInkAnnotationAsync(String name, String annotationId, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call getFileAttachmentAnnotationAsync(String name, String annotationId, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -10608,42 +10444,43 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = getInkAnnotationValidateBeforeCall(name, annotationId, storage, folder, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = getFileAttachmentAnnotationValidateBeforeCall(name, annotationId, storage, folder, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * 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) + * Build call for getFileAttachmentAnnotationData + * @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 getIsExistCall(String path, String versionId, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call getFileAttachmentAnnotationDataCall(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/exist"; + String localVarPath = "/pdf/{name}/annotations/fileattachment/{annotationId}/data" + .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 (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)); 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); @@ -10666,45 +10503,51 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getIsExistValidateBeforeCall(String path, String versionId, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call getFileAttachmentAnnotationDataValidateBeforeCall(String name, String annotationId, String storage, String folder, 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 getIsExist(Async)"); + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling getFileAttachmentAnnotationData(Async)"); + } + + // verify the required parameter 'annotationId' is set + if (annotationId == null) { + throw new ApiException("Missing the required parameter 'annotationId' when calling getFileAttachmentAnnotationData(Async)"); } - com.squareup.okhttp.Call call = getIsExistCall(path, versionId, storage, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getFileAttachmentAnnotationDataCall(name, annotationId, storage, folder, progressListener, progressRequestListener); return call; } /** - * Check if a specific file or folder exists + * Read document page FileAttachment annotation by ID. * - * @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 + * @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 File * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public FileExistResponse getIsExist(String path, String versionId, String storage) throws ApiException { + public File getFileAttachmentAnnotationData(String name, String annotationId, String storage, String folder) throws ApiException { try { - ApiResponse resp = getIsExistWithHttpInfo(path, versionId, storage); + ApiResponse resp = getFileAttachmentAnnotationDataWithHttpInfo(name, annotationId, storage, folder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = getIsExistWithHttpInfo(path, versionId, storage); + apiClient.requestToken(); + ApiResponse resp = getFileAttachmentAnnotationDataWithHttpInfo(name, annotationId, storage, folder); return resp.getData(); } throw ex; @@ -10712,31 +10555,33 @@ public FileExistResponse getIsExist(String path, String versionId, String storag } /** - * Check if a specific file or folder exists + * Read document page FileAttachment annotation by ID. * - * @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> + * @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<File> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - 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(); + public ApiResponse getFileAttachmentAnnotationDataWithHttpInfo(String name, String annotationId, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = getFileAttachmentAnnotationDataValidateBeforeCall(name, annotationId, storage, folder, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Check if a specific file or folder exists (asynchronously) + * Read document page FileAttachment annotation by ID. (asynchronously) * - * @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 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 getIsExistAsync(String path, String versionId, String storage, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call getFileAttachmentAnnotationDataAsync(String name, String annotationId, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -10757,28 +10602,31 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = getIsExistValidateBeforeCall(path, versionId, storage, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = getFileAttachmentAnnotationDataValidateBeforeCall(name, annotationId, storage, folder, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for getIsStorageExist - * @param name Storage name (required) + * Build call for getFileVersions + * @param path File path e.g. '/file.ext' (required) + * @param storageName 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 getIsStorageExistCall(String name, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call getFileVersionsCall(String path, String storageName, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; // create path and map variables - String localVarPath = "/storage/{name}/exist" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + String localVarPath = "/pdf/storage/version/{path}" + .replaceAll("\\{" + "path" + "\\}", apiClient.escapeString(path.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + if (storageName != null) + localVarQueryParams.addAll(apiClient.parameterToPair("storageName", storageName)); Map localVarHeaderParams = new HashMap(); @@ -10808,43 +10656,44 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getIsStorageExistValidateBeforeCall(String name, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call getFileVersionsValidateBeforeCall(String path, String storageName, 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 getIsStorageExist(Async)"); + // verify the required parameter 'path' is set + if (path == null) { + throw new ApiException("Missing the required parameter 'path' when calling getFileVersions(Async)"); } - com.squareup.okhttp.Call call = getIsStorageExistCall(name, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getFileVersionsCall(path, storageName, progressListener, progressRequestListener); return call; } /** - * Check if storage exists + * Get file versions * - * @param name Storage name (required) - * @return StorageExistResponse + * @param path File path e.g. '/file.ext' (required) + * @param storageName Storage name (optional) + * @return FileVersions * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public StorageExistResponse getIsStorageExist(String name) throws ApiException { + public FileVersions getFileVersions(String path, String storageName) throws ApiException { try { - ApiResponse resp = getIsStorageExistWithHttpInfo(name); + ApiResponse resp = getFileVersionsWithHttpInfo(path, storageName); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = getIsStorageExistWithHttpInfo(name); + apiClient.requestToken(); + ApiResponse resp = getFileVersionsWithHttpInfo(path, storageName); return resp.getData(); } throw ex; @@ -10852,27 +10701,29 @@ public StorageExistResponse getIsStorageExist(String name) throws ApiException { } /** - * Check if storage exists + * Get file versions * - * @param name Storage name (required) - * @return ApiResponse<StorageExistResponse> + * @param path File path e.g. '/file.ext' (required) + * @param storageName Storage name (optional) + * @return ApiResponse<FileVersions> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse getIsStorageExistWithHttpInfo(String name) throws ApiException { - com.squareup.okhttp.Call call = getIsStorageExistValidateBeforeCall(name, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse getFileVersionsWithHttpInfo(String path, String storageName) throws ApiException { + com.squareup.okhttp.Call call = getFileVersionsValidateBeforeCall(path, storageName, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Check if storage exists (asynchronously) + * Get file versions (asynchronously) * - * @param name Storage name (required) + * @param path File path e.g. '/file.ext' (required) + * @param storageName 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 getIsStorageExistAsync(String name, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call getFileVersionsAsync(String path, String storageName, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -10893,39 +10744,38 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = getIsStorageExistValidateBeforeCall(name, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = getFileVersionsValidateBeforeCall(path, storageName, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); 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 getFilesList + * @param path Folder path e.g. '/folder' (required) + * @param storageName 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 getFilesListCall(String path, String storageName, 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 = "/pdf/storage/folder/{path}" + .replaceAll("\\{" + "path" + "\\}", apiClient.escapeString(path.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 (storageName != null) + localVarQueryParams.addAll(apiClient.parameterToPair("storageName", storageName)); 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); @@ -10948,44 +10798,44 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @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 getFilesListValidateBeforeCall(String path, String storageName, 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 getFilesList(Async)"); } - com.squareup.okhttp.Call call = getLaTeXInStorageToPdfCall(srcPath, storage, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getFilesListCall(path, storageName, progressListener, progressRequestListener); return call; } /** - * Convert LaTeX file (located on storage) to PDF format and return resulting file in response. + * Get all files and folders within a folder * - * @param srcPath Full source filename (ex. /folder1/folder2/template.tex) (required) - * @param storage The document storage. (optional) - * @return File + * @param path Folder path e.g. '/folder' (required) + * @param storageName Storage name (optional) + * @return FilesList * @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 FilesList getFilesList(String path, String storageName) throws ApiException { try { - ApiResponse resp = getLaTeXInStorageToPdfWithHttpInfo(srcPath, storage); + ApiResponse resp = getFilesListWithHttpInfo(path, storageName); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = getLaTeXInStorageToPdfWithHttpInfo(srcPath, storage); + apiClient.requestToken(); + ApiResponse resp = getFilesListWithHttpInfo(path, storageName); return resp.getData(); } throw ex; @@ -10993,29 +10843,29 @@ public File getLaTeXInStorageToPdf(String srcPath, String storage) throws ApiExc } /** - * Convert LaTeX file (located on storage) to PDF format and return resulting file in response. + * Get all files and folders within a folder * - * @param srcPath Full source filename (ex. /folder1/folder2/template.tex) (required) - * @param storage The document storage. (optional) - * @return ApiResponse<File> + * @param path Folder path e.g. '/folder' (required) + * @param storageName Storage name (optional) + * @return ApiResponse<FilesList> * @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 getFilesListWithHttpInfo(String path, String storageName) throws ApiException { + com.squareup.okhttp.Call call = getFilesListValidateBeforeCall(path, storageName, 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) + * Get all files and folders within a folder (asynchronously) * - * @param srcPath Full source filename (ex. /folder1/folder2/template.tex) (required) - * @param storage The document storage. (optional) + * @param path Folder path e.g. '/folder' (required) + * @param storageName 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 getFilesListAsync(String path, String storageName, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -11036,13 +10886,13 @@ 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 = getFilesListValidateBeforeCall(path, storageName, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for getLineAnnotation + * Build call for getFreeTextAnnotation * @param name The document name. (required) * @param annotationId The annotation ID. (required) * @param storage The document storage. (optional) @@ -11052,11 +10902,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 getLineAnnotationCall(String name, String annotationId, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call getFreeTextAnnotationCall(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/line/{annotationId}" + String localVarPath = "/pdf/{name}/annotations/freetext/{annotationId}" .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) .replaceAll("\\{" + "annotationId" + "\\}", apiClient.escapeString(annotationId.toString())); @@ -11095,51 +10945,51 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @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 getFreeTextAnnotationValidateBeforeCall(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)"); + throw new ApiException("Missing the required parameter 'name' when calling getFreeTextAnnotation(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 'annotationId' when calling getFreeTextAnnotation(Async)"); } - com.squareup.okhttp.Call call = getLineAnnotationCall(name, annotationId, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getFreeTextAnnotationCall(name, annotationId, storage, folder, progressListener, progressRequestListener); return call; } /** - * Read document page line annotation by ID. + * Read document page free 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 LineAnnotationResponse + * @return FreeTextAnnotationResponse * @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 FreeTextAnnotationResponse getFreeTextAnnotation(String name, String annotationId, String storage, String folder) throws ApiException { try { - ApiResponse resp = getLineAnnotationWithHttpInfo(name, annotationId, storage, folder); + ApiResponse resp = getFreeTextAnnotationWithHttpInfo(name, annotationId, storage, folder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = getLineAnnotationWithHttpInfo(name, annotationId, storage, folder); + apiClient.requestToken(); + ApiResponse resp = getFreeTextAnnotationWithHttpInfo(name, annotationId, storage, folder); return resp.getData(); } throw ex; @@ -11147,23 +10997,23 @@ public LineAnnotationResponse getLineAnnotation(String name, String annotationId } /** - * Read document page line annotation by ID. + * Read document page free 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<LineAnnotationResponse> + * @return ApiResponse<FreeTextAnnotationResponse> * @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 getFreeTextAnnotationWithHttpInfo(String name, String annotationId, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = getFreeTextAnnotationValidateBeforeCall(name, annotationId, storage, folder, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Read document page line annotation by ID. (asynchronously) + * Read document page free text annotation by ID. (asynchronously) * * @param name The document name. (required) * @param annotationId The annotation ID. (required) @@ -11173,7 +11023,7 @@ public ApiResponse getLineAnnotationWithHttpInfo(String * @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 getFreeTextAnnotationAsync(String name, String annotationId, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -11194,15 +11044,15 @@ 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 = getFreeTextAnnotationValidateBeforeCall(name, annotationId, storage, folder, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for getLinkAnnotation + * Build call for getHighlightAnnotation * @param name The document name. (required) - * @param linkId The link ID. (required) + * @param annotationId The annotation ID. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) * @param progressListener Progress listener @@ -11210,13 +11060,13 @@ 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 getLinkAnnotationCall(String name, String linkId, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call getHighlightAnnotationCall(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}/links/{linkId}" + String localVarPath = "/pdf/{name}/annotations/highlight/{annotationId}" .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "linkId" + "\\}", apiClient.escapeString(linkId.toString())); + .replaceAll("\\{" + "annotationId" + "\\}", apiClient.escapeString(annotationId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -11253,51 +11103,51 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @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 { + private com.squareup.okhttp.Call getHighlightAnnotationValidateBeforeCall(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 getLinkAnnotation(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling getHighlightAnnotation(Async)"); } - // 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 'annotationId' is set + if (annotationId == null) { + throw new ApiException("Missing the required parameter 'annotationId' when calling getHighlightAnnotation(Async)"); } - com.squareup.okhttp.Call call = getLinkAnnotationCall(name, linkId, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getHighlightAnnotationCall(name, annotationId, storage, folder, progressListener, progressRequestListener); return call; } /** - * Read document link annotation by ID. + * Read document page highlight annotation by ID. * * @param name The document name. (required) - * @param linkId The link ID. (required) + * @param annotationId The annotation ID. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) - * @return LinkAnnotationResponse + * @return HighlightAnnotationResponse * @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 HighlightAnnotationResponse getHighlightAnnotation(String name, String annotationId, String storage, String folder) throws ApiException { try { - ApiResponse resp = getLinkAnnotationWithHttpInfo(name, linkId, storage, folder); + ApiResponse resp = getHighlightAnnotationWithHttpInfo(name, annotationId, storage, folder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = getLinkAnnotationWithHttpInfo(name, linkId, storage, folder); + apiClient.requestToken(); + ApiResponse resp = getHighlightAnnotationWithHttpInfo(name, annotationId, storage, folder); return resp.getData(); } throw ex; @@ -11305,33 +11155,33 @@ public LinkAnnotationResponse getLinkAnnotation(String name, String linkId, Stri } /** - * Read document link annotation by ID. + * Read document page highlight annotation by ID. * * @param name The document name. (required) - * @param linkId The link ID. (required) + * @param annotationId The annotation ID. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) - * @return ApiResponse<LinkAnnotationResponse> + * @return ApiResponse<HighlightAnnotationResponse> * @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 getHighlightAnnotationWithHttpInfo(String name, String annotationId, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = getHighlightAnnotationValidateBeforeCall(name, annotationId, storage, folder, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Read document link annotation by ID. (asynchronously) + * Read document page highlight annotation by ID. (asynchronously) * * @param name The document name. (required) - * @param linkId The link ID. (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 getLinkAnnotationAsync(String name, String linkId, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call getHighlightAnnotationAsync(String name, String annotationId, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -11352,30 +11202,54 @@ 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 = getHighlightAnnotationValidateBeforeCall(name, annotationId, storage, folder, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for getListFileVersions - * @param path File path e.g. /file.ext or /Folder1/file.ext (required) - * @param storage User's storage name (optional) + * Build call for getHtmlInStorageToPdf + * @param srcPath Full source filename (ex. /folder1/folder2/template.zip) (required) + * @param htmlFileName Name of HTML file in ZIP. (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 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 getListFileVersionsCall(String path, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call getHtmlInStorageToPdfCall(String srcPath, String htmlFileName, 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 = "/storage/version"; + String localVarPath = "/pdf/create/html"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (path != null) - localVarQueryParams.addAll(apiClient.parameterToPair("path", path)); + if (srcPath != null) + localVarQueryParams.addAll(apiClient.parameterToPair("srcPath", srcPath)); + if (htmlFileName != null) + localVarQueryParams.addAll(apiClient.parameterToPair("htmlFileName", htmlFileName)); + 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)); @@ -11384,7 +11258,7 @@ public com.squareup.okhttp.Call getListFileVersionsCall(String path, String stor 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); @@ -11407,44 +11281,52 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getListFileVersionsValidateBeforeCall(String path, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call getHtmlInStorageToPdfValidateBeforeCall(String srcPath, String htmlFileName, 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 'path' is set - if (path == null) { - throw new ApiException("Missing the required parameter 'path' when calling getListFileVersions(Async)"); + // verify the required parameter 'srcPath' is set + if (srcPath == null) { + throw new ApiException("Missing the required parameter 'srcPath' when calling getHtmlInStorageToPdf(Async)"); } - com.squareup.okhttp.Call call = getListFileVersionsCall(path, storage, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getHtmlInStorageToPdfCall(srcPath, htmlFileName, height, width, isLandscape, marginLeft, marginBottom, marginRight, marginTop, storage, progressListener, progressRequestListener); return call; } /** - * Get the file's versions list + * Convert HTML file (located on storage) to PDF format and return resulting file in response. * - * @param path File path e.g. /file.ext or /Folder1/file.ext (required) - * @param storage User's storage name (optional) - * @return FileVersionsResponse + * @param srcPath Full source filename (ex. /folder1/folder2/template.zip) (required) + * @param htmlFileName Name of HTML file in ZIP. (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) + * @return File * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public FileVersionsResponse getListFileVersions(String path, String storage) throws ApiException { + public File getHtmlInStorageToPdf(String srcPath, String htmlFileName, Double height, Double width, Boolean isLandscape, Double marginLeft, Double marginBottom, Double marginRight, Double marginTop, String storage) throws ApiException { try { - ApiResponse resp = getListFileVersionsWithHttpInfo(path, storage); + ApiResponse resp = getHtmlInStorageToPdfWithHttpInfo(srcPath, htmlFileName, height, width, isLandscape, marginLeft, marginBottom, marginRight, marginTop, storage); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = getListFileVersionsWithHttpInfo(path, storage); + apiClient.requestToken(); + ApiResponse resp = getHtmlInStorageToPdfWithHttpInfo(srcPath, htmlFileName, height, width, isLandscape, marginLeft, marginBottom, marginRight, marginTop, storage); return resp.getData(); } throw ex; @@ -11452,29 +11334,45 @@ public FileVersionsResponse getListFileVersions(String path, String storage) thr } /** - * Get the file's versions list + * Convert HTML file (located on storage) to PDF format and return resulting file in response. * - * @param path File path e.g. /file.ext or /Folder1/file.ext (required) - * @param storage User's storage name (optional) - * @return ApiResponse<FileVersionsResponse> + * @param srcPath Full source filename (ex. /folder1/folder2/template.zip) (required) + * @param htmlFileName Name of HTML file in ZIP. (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) + * @return ApiResponse<File> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse getListFileVersionsWithHttpInfo(String path, String storage) throws ApiException { - com.squareup.okhttp.Call call = getListFileVersionsValidateBeforeCall(path, storage, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse getHtmlInStorageToPdfWithHttpInfo(String srcPath, String htmlFileName, Double height, Double width, Boolean isLandscape, Double marginLeft, Double marginBottom, Double marginRight, Double marginTop, String storage) throws ApiException { + com.squareup.okhttp.Call call = getHtmlInStorageToPdfValidateBeforeCall(srcPath, htmlFileName, height, width, isLandscape, marginLeft, marginBottom, marginRight, marginTop, storage, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Get the file's versions list (asynchronously) + * Convert HTML file (located on storage) to PDF format and return resulting file in response. (asynchronously) * - * @param path File path e.g. /file.ext or /Folder1/file.ext (required) - * @param storage User's storage name (optional) + * @param srcPath Full source filename (ex. /folder1/folder2/template.zip) (required) + * @param htmlFileName Name of HTML file in ZIP. (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 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 getListFileVersionsAsync(String path, String storage, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call getHtmlInStorageToPdfAsync(String srcPath, String htmlFileName, 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; @@ -11495,32 +11393,36 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = getListFileVersionsValidateBeforeCall(path, storage, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = getHtmlInStorageToPdfValidateBeforeCall(srcPath, htmlFileName, 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 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 getImage + * @param name The document name. (required) + * @param imageId Image 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 getImageCall(String name, String imageId, 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}/images/{imageId}" + .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) + .replaceAll("\\{" + "imageId" + "\\}", apiClient.escapeString(imageId.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(); @@ -11550,39 +11452,51 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @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 getImageValidateBeforeCall(String name, String imageId, 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 getImage(Async)"); + } + + // verify the required parameter 'imageId' is set + if (imageId == null) { + throw new ApiException("Missing the required parameter 'imageId' when calling getImage(Async)"); + } - com.squareup.okhttp.Call call = getListFilesCall(path, storage, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getImageCall(name, imageId, storage, folder, progressListener, progressRequestListener); return call; } /** - * Get the file listing of a specific folder + * Read document image 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 imageId Image ID. (required) + * @param storage The document storage. (optional) + * @param folder The document folder. (optional) + * @return ImageResponse * @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 ImageResponse getImage(String name, String imageId, String storage, String folder) throws ApiException { try { - ApiResponse resp = getListFilesWithHttpInfo(path, storage); + ApiResponse resp = getImageWithHttpInfo(name, imageId, storage, folder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = getListFilesWithHttpInfo(path, storage); + apiClient.requestToken(); + ApiResponse resp = getImageWithHttpInfo(name, imageId, storage, folder); return resp.getData(); } throw ex; @@ -11590,29 +11504,33 @@ public FilesResponse getListFiles(String path, String storage) throws ApiExcepti } /** - * Get the file listing of a specific folder + * Read document image 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 imageId Image ID. (required) + * @param storage The document storage. (optional) + * @param folder The document folder. (optional) + * @return ApiResponse<ImageResponse> * @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 getImageWithHttpInfo(String name, String imageId, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = getImageValidateBeforeCall(name, imageId, 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 image 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 imageId Image 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 getImageAsync(String name, String imageId, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -11633,32 +11551,42 @@ 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 = getImageValidateBeforeCall(name, imageId, 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 getImageExtractAsGif + * @param name The document name. (required) + * @param imageId Image ID. (required) + * @param width The converted image width. (optional, default to 0) + * @param height The converted image height. (optional, default to 0) * @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 getImageExtractAsGifCall(String name, String imageId, Integer width, Integer height, 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}/images/{imageId}/extract/gif" + .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) + .replaceAll("\\{" + "imageId" + "\\}", apiClient.escapeString(imageId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (srcPath != null) - localVarQueryParams.addAll(apiClient.parameterToPair("srcPath", srcPath)); + if (width != null) + localVarQueryParams.addAll(apiClient.parameterToPair("width", width)); + if (height != null) + localVarQueryParams.addAll(apiClient.parameterToPair("height", height)); if (storage != null) localVarQueryParams.addAll(apiClient.parameterToPair("storage", storage)); + if (folder != null) + localVarQueryParams.addAll(apiClient.parameterToPair("folder", folder)); Map localVarHeaderParams = new HashMap(); @@ -11688,44 +11616,53 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @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 getImageExtractAsGifValidateBeforeCall(String name, String imageId, Integer width, Integer height, 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 getImageExtractAsGif(Async)"); + } + + // verify the required parameter 'imageId' is set + if (imageId == null) { + throw new ApiException("Missing the required parameter 'imageId' when calling getImageExtractAsGif(Async)"); } - com.squareup.okhttp.Call call = getMhtInStorageToPdfCall(srcPath, storage, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getImageExtractAsGifCall(name, imageId, width, height, storage, folder, progressListener, progressRequestListener); return call; } /** - * Convert MHT file (located on storage) to PDF format and return resulting file in response. + * Extract document image in GIF format * - * @param srcPath Full source filename (ex. /folder1/folder2/template.mht) (required) + * @param name The document name. (required) + * @param imageId Image ID. (required) + * @param width The converted image width. (optional, default to 0) + * @param height The converted image height. (optional, default to 0) * @param storage The document storage. (optional) + * @param folder The document folder. (optional) * @return File * @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 File getImageExtractAsGif(String name, String imageId, Integer width, Integer height, String storage, String folder) throws ApiException { try { - ApiResponse resp = getMhtInStorageToPdfWithHttpInfo(srcPath, storage); + ApiResponse resp = getImageExtractAsGifWithHttpInfo(name, imageId, width, height, storage, folder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = getMhtInStorageToPdfWithHttpInfo(srcPath, storage); + apiClient.requestToken(); + ApiResponse resp = getImageExtractAsGifWithHttpInfo(name, imageId, width, height, storage, folder); return resp.getData(); } throw ex; @@ -11733,29 +11670,37 @@ public File getMhtInStorageToPdf(String srcPath, String storage) throws ApiExcep } /** - * Convert MHT file (located on storage) to PDF format and return resulting file in response. + * Extract document image in GIF format * - * @param srcPath Full source filename (ex. /folder1/folder2/template.mht) (required) + * @param name The document name. (required) + * @param imageId Image ID. (required) + * @param width The converted image width. (optional, default to 0) + * @param height The converted image height. (optional, default to 0) * @param storage The document storage. (optional) + * @param folder The document folder. (optional) * @return ApiResponse<File> * @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); + public ApiResponse getImageExtractAsGifWithHttpInfo(String name, String imageId, Integer width, Integer height, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = getImageExtractAsGifValidateBeforeCall(name, imageId, width, height, 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) + * Extract document image in GIF format (asynchronously) * - * @param srcPath Full source filename (ex. /folder1/folder2/template.mht) (required) + * @param name The document name. (required) + * @param imageId Image ID. (required) + * @param width The converted image width. (optional, default to 0) + * @param height The converted image height. (optional, default to 0) * @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 getImageExtractAsGifAsync(String name, String imageId, Integer width, Integer height, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -11776,15 +11721,17 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = getMhtInStorageToPdfValidateBeforeCall(srcPath, storage, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getImageExtractAsGifValidateBeforeCall(name, imageId, width, height, storage, folder, progressListener, progressRequestListener); Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for getMovieAnnotation + * Build call for getImageExtractAsJpeg * @param name The document name. (required) - * @param annotationId The annotation ID. (required) + * @param imageId Image ID. (required) + * @param width The converted image width. (optional, default to 0) + * @param height The converted image height. (optional, default to 0) * @param storage The document storage. (optional) * @param folder The document folder. (optional) * @param progressListener Progress listener @@ -11792,16 +11739,20 @@ 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 getMovieAnnotationCall(String name, String annotationId, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call getImageExtractAsJpegCall(String name, String imageId, Integer width, Integer height, 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/movie/{annotationId}" + String localVarPath = "/pdf/{name}/images/{imageId}/extract/jpeg" .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "annotationId" + "\\}", apiClient.escapeString(annotationId.toString())); + .replaceAll("\\{" + "imageId" + "\\}", apiClient.escapeString(imageId.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 (storage != null) localVarQueryParams.addAll(apiClient.parameterToPair("storage", storage)); if (folder != null) @@ -11812,7 +11763,7 @@ public com.squareup.okhttp.Call getMovieAnnotationCall(String name, String annot 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); @@ -11835,51 +11786,53 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getMovieAnnotationValidateBeforeCall(String name, String annotationId, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call getImageExtractAsJpegValidateBeforeCall(String name, String imageId, Integer width, Integer height, 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 getMovieAnnotation(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling getImageExtractAsJpeg(Async)"); } - // verify the required parameter 'annotationId' is set - if (annotationId == null) { - throw new ApiException("Missing the required parameter 'annotationId' when calling getMovieAnnotation(Async)"); + // verify the required parameter 'imageId' is set + if (imageId == null) { + throw new ApiException("Missing the required parameter 'imageId' when calling getImageExtractAsJpeg(Async)"); } - com.squareup.okhttp.Call call = getMovieAnnotationCall(name, annotationId, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getImageExtractAsJpegCall(name, imageId, width, height, storage, folder, progressListener, progressRequestListener); return call; } /** - * Read document page movie annotation by ID. + * Extract document image in JPEG format * * @param name The document name. (required) - * @param annotationId The annotation ID. (required) + * @param imageId Image ID. (required) + * @param width The converted image width. (optional, default to 0) + * @param height The converted image height. (optional, default to 0) * @param storage The document storage. (optional) * @param folder The document folder. (optional) - * @return MovieAnnotationResponse + * @return File * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public MovieAnnotationResponse getMovieAnnotation(String name, String annotationId, String storage, String folder) throws ApiException { + public File getImageExtractAsJpeg(String name, String imageId, Integer width, Integer height, String storage, String folder) throws ApiException { try { - ApiResponse resp = getMovieAnnotationWithHttpInfo(name, annotationId, storage, folder); + ApiResponse resp = getImageExtractAsJpegWithHttpInfo(name, imageId, width, height, storage, folder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = getMovieAnnotationWithHttpInfo(name, annotationId, storage, folder); + apiClient.requestToken(); + ApiResponse resp = getImageExtractAsJpegWithHttpInfo(name, imageId, width, height, storage, folder); return resp.getData(); } throw ex; @@ -11887,33 +11840,37 @@ public MovieAnnotationResponse getMovieAnnotation(String name, String annotation } /** - * Read document page movie annotation by ID. + * Extract document image in JPEG format * * @param name The document name. (required) - * @param annotationId The annotation ID. (required) + * @param imageId Image ID. (required) + * @param width The converted image width. (optional, default to 0) + * @param height The converted image height. (optional, default to 0) * @param storage The document storage. (optional) * @param folder The document folder. (optional) - * @return ApiResponse<MovieAnnotationResponse> + * @return ApiResponse<File> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse getMovieAnnotationWithHttpInfo(String name, String annotationId, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = getMovieAnnotationValidateBeforeCall(name, annotationId, storage, folder, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse getImageExtractAsJpegWithHttpInfo(String name, String imageId, Integer width, Integer height, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = getImageExtractAsJpegValidateBeforeCall(name, imageId, width, height, storage, folder, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Read document page movie annotation by ID. (asynchronously) + * Extract document image in JPEG format (asynchronously) * * @param name The document name. (required) - * @param annotationId The annotation ID. (required) + * @param imageId Image ID. (required) + * @param width The converted image width. (optional, default to 0) + * @param height The converted image height. (optional, default to 0) * @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 getMovieAnnotationAsync(String name, String annotationId, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call getImageExtractAsJpegAsync(String name, String imageId, Integer width, Integer height, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -11934,15 +11891,17 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = getMovieAnnotationValidateBeforeCall(name, annotationId, storage, folder, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = getImageExtractAsJpegValidateBeforeCall(name, imageId, width, height, storage, folder, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for getPage + * Build call for getImageExtractAsPng * @param name The document name. (required) - * @param pageNumber The page number. (required) + * @param imageId Image ID. (required) + * @param width The converted image width. (optional, default to 0) + * @param height The converted image height. (optional, default to 0) * @param storage The document storage. (optional) * @param folder The document folder. (optional) * @param progressListener Progress listener @@ -11950,16 +11909,20 @@ 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 getPageCall(String name, Integer pageNumber, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call getImageExtractAsPngCall(String name, String imageId, Integer width, Integer height, 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}" + String localVarPath = "/pdf/{name}/images/{imageId}/extract/png" .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "pageNumber" + "\\}", apiClient.escapeString(pageNumber.toString())); + .replaceAll("\\{" + "imageId" + "\\}", apiClient.escapeString(imageId.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 (storage != null) localVarQueryParams.addAll(apiClient.parameterToPair("storage", storage)); if (folder != null) @@ -11993,51 +11956,53 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @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 { + private com.squareup.okhttp.Call getImageExtractAsPngValidateBeforeCall(String name, String imageId, Integer width, Integer height, 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)"); + throw new ApiException("Missing the required parameter 'name' when calling getImageExtractAsPng(Async)"); } - // 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 'imageId' is set + if (imageId == null) { + throw new ApiException("Missing the required parameter 'imageId' when calling getImageExtractAsPng(Async)"); } - com.squareup.okhttp.Call call = getPageCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getImageExtractAsPngCall(name, imageId, width, height, storage, folder, progressListener, progressRequestListener); return call; } /** - * Read document page info. + * Extract document image in PNG format * * @param name The document name. (required) - * @param pageNumber The page number. (required) + * @param imageId Image ID. (required) + * @param width The converted image width. (optional, default to 0) + * @param height The converted image height. (optional, default to 0) * @param storage The document storage. (optional) * @param folder The document folder. (optional) - * @return DocumentPageResponse + * @return File * @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 File getImageExtractAsPng(String name, String imageId, Integer width, Integer height, String storage, String folder) throws ApiException { try { - ApiResponse resp = getPageWithHttpInfo(name, pageNumber, storage, folder); + ApiResponse resp = getImageExtractAsPngWithHttpInfo(name, imageId, width, height, storage, folder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = getPageWithHttpInfo(name, pageNumber, storage, folder); + apiClient.requestToken(); + ApiResponse resp = getImageExtractAsPngWithHttpInfo(name, imageId, width, height, storage, folder); return resp.getData(); } throw ex; @@ -12045,33 +12010,37 @@ public DocumentPageResponse getPage(String name, Integer pageNumber, String stor } /** - * Read document page info. + * Extract document image in PNG format * * @param name The document name. (required) - * @param pageNumber The page number. (required) + * @param imageId Image ID. (required) + * @param width The converted image width. (optional, default to 0) + * @param height The converted image height. (optional, default to 0) * @param storage The document storage. (optional) * @param folder The document folder. (optional) - * @return ApiResponse<DocumentPageResponse> + * @return ApiResponse<File> * @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 getImageExtractAsPngWithHttpInfo(String name, String imageId, Integer width, Integer height, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = getImageExtractAsPngValidateBeforeCall(name, imageId, width, height, storage, folder, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Read document page info. (asynchronously) + * Extract document image in PNG format (asynchronously) * * @param name The document name. (required) - * @param pageNumber The page number. (required) + * @param imageId Image ID. (required) + * @param width The converted image width. (optional, default to 0) + * @param height The converted image height. (optional, default to 0) * @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 getPageAsync(String name, Integer pageNumber, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call getImageExtractAsPngAsync(String name, String imageId, Integer width, Integer height, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -12092,15 +12061,17 @@ 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 = getImageExtractAsPngValidateBeforeCall(name, imageId, width, height, storage, folder, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for getPageAnnotations + * Build call for getImageExtractAsTiff * @param name The document name. (required) - * @param pageNumber The page number. (required) + * @param imageId Image ID. (required) + * @param width The converted image width. (optional, default to 0) + * @param height The converted image height. (optional, default to 0) * @param storage The document storage. (optional) * @param folder The document folder. (optional) * @param progressListener Progress listener @@ -12108,16 +12079,20 @@ 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 getPageAnnotationsCall(String name, Integer pageNumber, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call getImageExtractAsTiffCall(String name, String imageId, Integer width, Integer height, 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" + String localVarPath = "/pdf/{name}/images/{imageId}/extract/tiff" .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "pageNumber" + "\\}", apiClient.escapeString(pageNumber.toString())); + .replaceAll("\\{" + "imageId" + "\\}", apiClient.escapeString(imageId.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 (storage != null) localVarQueryParams.addAll(apiClient.parameterToPair("storage", storage)); if (folder != null) @@ -12128,7 +12103,7 @@ public com.squareup.okhttp.Call getPageAnnotationsCall(String name, Integer page 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); @@ -12151,51 +12126,53 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @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 { + private com.squareup.okhttp.Call getImageExtractAsTiffValidateBeforeCall(String name, String imageId, Integer width, Integer height, 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)"); + throw new ApiException("Missing the required parameter 'name' when calling getImageExtractAsTiff(Async)"); } - // verify the required parameter 'pageNumber' is set - if (pageNumber == null) { - throw new ApiException("Missing the required parameter 'pageNumber' when calling getPageAnnotations(Async)"); + // verify the required parameter 'imageId' is set + if (imageId == null) { + throw new ApiException("Missing the required parameter 'imageId' when calling getImageExtractAsTiff(Async)"); } - com.squareup.okhttp.Call call = getPageAnnotationsCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getImageExtractAsTiffCall(name, imageId, width, height, storage, folder, progressListener, progressRequestListener); return call; } /** - * Read document page annotations. Returns only FreeTextAnnotations, TextAnnotations, other annotations will implemented next releases. + * Extract document image in TIFF format * * @param name The document name. (required) - * @param pageNumber The page number. (required) + * @param imageId Image ID. (required) + * @param width The converted image width. (optional, default to 0) + * @param height The converted image height. (optional, default to 0) * @param storage The document storage. (optional) * @param folder The document folder. (optional) - * @return AnnotationsInfoResponse + * @return File * @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 File getImageExtractAsTiff(String name, String imageId, Integer width, Integer height, String storage, String folder) throws ApiException { try { - ApiResponse resp = getPageAnnotationsWithHttpInfo(name, pageNumber, storage, folder); + ApiResponse resp = getImageExtractAsTiffWithHttpInfo(name, imageId, width, height, storage, folder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = getPageAnnotationsWithHttpInfo(name, pageNumber, storage, folder); + apiClient.requestToken(); + ApiResponse resp = getImageExtractAsTiffWithHttpInfo(name, imageId, width, height, storage, folder); return resp.getData(); } throw ex; @@ -12203,33 +12180,37 @@ public AnnotationsInfoResponse getPageAnnotations(String name, Integer pageNumbe } /** - * Read document page annotations. Returns only FreeTextAnnotations, TextAnnotations, other annotations will implemented next releases. + * Extract document image in TIFF format * * @param name The document name. (required) - * @param pageNumber The page number. (required) + * @param imageId Image ID. (required) + * @param width The converted image width. (optional, default to 0) + * @param height The converted image height. (optional, default to 0) * @param storage The document storage. (optional) * @param folder The document folder. (optional) - * @return ApiResponse<AnnotationsInfoResponse> + * @return ApiResponse<File> * @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 getImageExtractAsTiffWithHttpInfo(String name, String imageId, Integer width, Integer height, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = getImageExtractAsTiffValidateBeforeCall(name, imageId, width, height, storage, folder, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Read document page annotations. Returns only FreeTextAnnotations, TextAnnotations, other annotations will implemented next releases. (asynchronously) + * Extract document image in TIFF format (asynchronously) * * @param name The document name. (required) - * @param pageNumber The page number. (required) + * @param imageId Image ID. (required) + * @param width The converted image width. (optional, default to 0) + * @param height The converted image height. (optional, default to 0) * @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 getPageAnnotationsAsync(String name, Integer pageNumber, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call getImageExtractAsTiffAsync(String name, String imageId, Integer width, Integer height, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -12250,13 +12231,13 @@ 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 = getImageExtractAsTiffValidateBeforeCall(name, imageId, width, height, storage, folder, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for getPageCaretAnnotations + * Build call for getImages * @param name The document name. (required) * @param pageNumber The page number. (required) * @param storage The document storage. (optional) @@ -12266,11 +12247,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 getPageCaretAnnotationsCall(String name, Integer pageNumber, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call getImagesCall(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/caret" + String localVarPath = "/pdf/{name}/pages/{pageNumber}/images" .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) .replaceAll("\\{" + "pageNumber" + "\\}", apiClient.escapeString(pageNumber.toString())); @@ -12309,51 +12290,51 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @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 { + private com.squareup.okhttp.Call getImagesValidateBeforeCall(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)"); + throw new ApiException("Missing the required parameter 'name' when calling getImages(Async)"); } // verify the required parameter 'pageNumber' is set if (pageNumber == null) { - throw new ApiException("Missing the required parameter 'pageNumber' when calling getPageCaretAnnotations(Async)"); + throw new ApiException("Missing the required parameter 'pageNumber' when calling getImages(Async)"); } - com.squareup.okhttp.Call call = getPageCaretAnnotationsCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getImagesCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); return call; } /** - * Read document page caret annotations. + * Read document images. * * @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 CaretAnnotationsResponse + * @return ImagesResponse * @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 ImagesResponse getImages(String name, Integer pageNumber, String storage, String folder) throws ApiException { try { - ApiResponse resp = getPageCaretAnnotationsWithHttpInfo(name, pageNumber, storage, folder); + ApiResponse resp = getImagesWithHttpInfo(name, pageNumber, storage, folder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = getPageCaretAnnotationsWithHttpInfo(name, pageNumber, storage, folder); + apiClient.requestToken(); + ApiResponse resp = getImagesWithHttpInfo(name, pageNumber, storage, folder); return resp.getData(); } throw ex; @@ -12361,23 +12342,23 @@ public CaretAnnotationsResponse getPageCaretAnnotations(String name, Integer pag } /** - * Read document page caret annotations. + * Read document images. * * @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<CaretAnnotationsResponse> + * @return ApiResponse<ImagesResponse> * @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 getImagesWithHttpInfo(String name, Integer pageNumber, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = getImagesValidateBeforeCall(name, pageNumber, storage, folder, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Read document page caret annotations. (asynchronously) + * Read document images. (asynchronously) * * @param name The document name. (required) * @param pageNumber The page number. (required) @@ -12387,7 +12368,7 @@ public ApiResponse getPageCaretAnnotationsWithHttpInfo * @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 getImagesAsync(String name, Integer pageNumber, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -12408,15 +12389,15 @@ 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 = getImagesValidateBeforeCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for getPageCircleAnnotations + * Build call for getImportFieldsFromFdfInStorage * @param name The document name. (required) - * @param pageNumber The page number. (required) + * @param fdfFilePath The Fdf file path. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) * @param progressListener Progress listener @@ -12424,16 +12405,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 getPageCircleAnnotationsCall(String name, Integer pageNumber, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call getImportFieldsFromFdfInStorageCall(String name, String fdfFilePath, 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" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "pageNumber" + "\\}", apiClient.escapeString(pageNumber.toString())); + String localVarPath = "/pdf/{name}/import/fdf" + .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + if (fdfFilePath != null) + localVarQueryParams.addAll(apiClient.parameterToPair("fdfFilePath", fdfFilePath)); if (storage != null) localVarQueryParams.addAll(apiClient.parameterToPair("storage", storage)); if (folder != null) @@ -12444,7 +12426,7 @@ public com.squareup.okhttp.Call getPageCircleAnnotationsCall(String name, Intege 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); @@ -12467,51 +12449,51 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @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 getImportFieldsFromFdfInStorageValidateBeforeCall(String name, String fdfFilePath, 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 getImportFieldsFromFdfInStorage(Async)"); } - // verify the required parameter 'pageNumber' is set - if (pageNumber == null) { - throw new ApiException("Missing the required parameter 'pageNumber' when calling getPageCircleAnnotations(Async)"); + // verify the required parameter 'fdfFilePath' is set + if (fdfFilePath == null) { + throw new ApiException("Missing the required parameter 'fdfFilePath' when calling getImportFieldsFromFdfInStorage(Async)"); } - com.squareup.okhttp.Call call = getPageCircleAnnotationsCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getImportFieldsFromFdfInStorageCall(name, fdfFilePath, storage, folder, progressListener, progressRequestListener); return call; } /** - * Read document page circle annotations. + * Update fields from FDF file in storage. * * @param name The document name. (required) - * @param pageNumber The page number. (required) + * @param fdfFilePath The Fdf file path. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) - * @return CircleAnnotationsResponse + * @return File * @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 File getImportFieldsFromFdfInStorage(String name, String fdfFilePath, String storage, String folder) throws ApiException { try { - ApiResponse resp = getPageCircleAnnotationsWithHttpInfo(name, pageNumber, storage, folder); + ApiResponse resp = getImportFieldsFromFdfInStorageWithHttpInfo(name, fdfFilePath, storage, folder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = getPageCircleAnnotationsWithHttpInfo(name, pageNumber, storage, folder); + apiClient.requestToken(); + ApiResponse resp = getImportFieldsFromFdfInStorageWithHttpInfo(name, fdfFilePath, storage, folder); return resp.getData(); } throw ex; @@ -12519,33 +12501,33 @@ public CircleAnnotationsResponse getPageCircleAnnotations(String name, Integer p } /** - * Read document page circle annotations. + * Update fields from FDF file in storage. * * @param name The document name. (required) - * @param pageNumber The page number. (required) + * @param fdfFilePath The Fdf file path. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) - * @return ApiResponse<CircleAnnotationsResponse> + * @return ApiResponse<File> * @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 getImportFieldsFromFdfInStorageWithHttpInfo(String name, String fdfFilePath, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = getImportFieldsFromFdfInStorageValidateBeforeCall(name, fdfFilePath, storage, folder, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Read document page circle annotations. (asynchronously) + * Update fields from FDF file in storage. (asynchronously) * * @param name The document name. (required) - * @param pageNumber The page number. (required) + * @param fdfFilePath The Fdf file path. (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 getPageCircleAnnotationsAsync(String name, Integer pageNumber, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call getImportFieldsFromFdfInStorageAsync(String name, String fdfFilePath, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -12566,42 +12548,37 @@ 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 = getImportFieldsFromFdfInStorageValidateBeforeCall(name, fdfFilePath, storage, folder, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for getPageConvertToBmp + * Build call for getImportFieldsFromXfdfInStorage * @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 xfdfFilePath The XFDF file path. (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 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 getImportFieldsFromXfdfInStorageCall(String name, String xfdfFilePath, 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" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "pageNumber" + "\\}", apiClient.escapeString(pageNumber.toString())); + String localVarPath = "/pdf/{name}/import/xfdf" + .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.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 (xfdfFilePath != null) + localVarQueryParams.addAll(apiClient.parameterToPair("xfdfFilePath", xfdfFilePath)); if (storage != null) localVarQueryParams.addAll(apiClient.parameterToPair("storage", storage)); + if (folder != null) + localVarQueryParams.addAll(apiClient.parameterToPair("folder", folder)); Map localVarHeaderParams = new HashMap(); @@ -12631,53 +12608,51 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @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 getImportFieldsFromXfdfInStorageValidateBeforeCall(String name, String xfdfFilePath, 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 getImportFieldsFromXfdfInStorage(Async)"); } - // verify the required parameter 'pageNumber' is set - if (pageNumber == null) { - throw new ApiException("Missing the required parameter 'pageNumber' when calling getPageConvertToBmp(Async)"); + // verify the required parameter 'xfdfFilePath' is set + if (xfdfFilePath == null) { + throw new ApiException("Missing the required parameter 'xfdfFilePath' when calling getImportFieldsFromXfdfInStorage(Async)"); } - com.squareup.okhttp.Call call = getPageConvertToBmpCall(name, pageNumber, width, height, folder, storage, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getImportFieldsFromXfdfInStorageCall(name, xfdfFilePath, storage, folder, progressListener, progressRequestListener); return call; } /** - * Convert document page to Bmp image and return resulting file in response. + * Update fields from XFDF file in storage. * * @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 xfdfFilePath The XFDF file path. (required) * @param storage The document storage. (optional) + * @param folder The document folder. (optional) * @return File * @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 File getImportFieldsFromXfdfInStorage(String name, String xfdfFilePath, String storage, String folder) throws ApiException { try { - ApiResponse resp = getPageConvertToBmpWithHttpInfo(name, pageNumber, width, height, folder, storage); + ApiResponse resp = getImportFieldsFromXfdfInStorageWithHttpInfo(name, xfdfFilePath, storage, folder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = getPageConvertToBmpWithHttpInfo(name, pageNumber, width, height, folder, storage); + apiClient.requestToken(); + ApiResponse resp = getImportFieldsFromXfdfInStorageWithHttpInfo(name, xfdfFilePath, storage, folder); return resp.getData(); } throw ex; @@ -12685,37 +12660,33 @@ public File getPageConvertToBmp(String name, Integer pageNumber, Integer width, } /** - * Convert document page to Bmp image and return resulting file in response. + * Update fields from XFDF file in storage. * * @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 xfdfFilePath The XFDF file path. (required) * @param storage The document storage. (optional) + * @param folder The document folder. (optional) * @return ApiResponse<File> * @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); + public ApiResponse getImportFieldsFromXfdfInStorageWithHttpInfo(String name, String xfdfFilePath, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = getImportFieldsFromXfdfInStorageValidateBeforeCall(name, xfdfFilePath, 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) + * Update fields from XFDF file in storage. (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 xfdfFilePath The XFDF file path. (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 getPageConvertToBmpAsync(String name, Integer pageNumber, Integer width, Integer height, String folder, String storage, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call getImportFieldsFromXfdfInStorageAsync(String name, String xfdfFilePath, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -12736,42 +12707,37 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = getPageConvertToBmpValidateBeforeCall(name, pageNumber, width, height, folder, storage, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getImportFieldsFromXfdfInStorageValidateBeforeCall(name, xfdfFilePath, storage, folder, progressListener, progressRequestListener); Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for getPageConvertToEmf + * Build call for getImportFieldsFromXmlInStorage * @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 xmlFilePath Full source filename (ex. /folder1/folder2/template.xml) (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 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 getImportFieldsFromXmlInStorageCall(String name, String xmlFilePath, 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" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "pageNumber" + "\\}", apiClient.escapeString(pageNumber.toString())); + String localVarPath = "/pdf/{name}/import/xml" + .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.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 (xmlFilePath != null) + localVarQueryParams.addAll(apiClient.parameterToPair("xmlFilePath", xmlFilePath)); if (storage != null) localVarQueryParams.addAll(apiClient.parameterToPair("storage", storage)); + if (folder != null) + localVarQueryParams.addAll(apiClient.parameterToPair("folder", folder)); Map localVarHeaderParams = new HashMap(); @@ -12801,53 +12767,51 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @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 getImportFieldsFromXmlInStorageValidateBeforeCall(String name, String xmlFilePath, 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 getImportFieldsFromXmlInStorage(Async)"); } - // verify the required parameter 'pageNumber' is set - if (pageNumber == null) { - throw new ApiException("Missing the required parameter 'pageNumber' when calling getPageConvertToEmf(Async)"); + // verify the required parameter 'xmlFilePath' is set + if (xmlFilePath == null) { + throw new ApiException("Missing the required parameter 'xmlFilePath' when calling getImportFieldsFromXmlInStorage(Async)"); } - com.squareup.okhttp.Call call = getPageConvertToEmfCall(name, pageNumber, width, height, folder, storage, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getImportFieldsFromXmlInStorageCall(name, xmlFilePath, storage, folder, progressListener, progressRequestListener); return call; } /** - * Convert document page to Emf image and return resulting file in response. + * Import from XML 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 width The converted image width. (optional) - * @param height The converted image height. (optional) - * @param folder The document folder. (optional) + * @param xmlFilePath Full source filename (ex. /folder1/folder2/template.xml) (required) * @param storage The document storage. (optional) + * @param folder The document folder. (optional) * @return File * @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 File getImportFieldsFromXmlInStorage(String name, String xmlFilePath, String storage, String folder) throws ApiException { try { - ApiResponse resp = getPageConvertToEmfWithHttpInfo(name, pageNumber, width, height, folder, storage); + ApiResponse resp = getImportFieldsFromXmlInStorageWithHttpInfo(name, xmlFilePath, storage, folder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = getPageConvertToEmfWithHttpInfo(name, pageNumber, width, height, folder, storage); + apiClient.requestToken(); + ApiResponse resp = getImportFieldsFromXmlInStorageWithHttpInfo(name, xmlFilePath, storage, folder); return resp.getData(); } throw ex; @@ -12855,37 +12819,33 @@ public File getPageConvertToEmf(String name, Integer pageNumber, Integer width, } /** - * Convert document page to Emf image and return resulting file in response. + * Import from XML 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 width The converted image width. (optional) - * @param height The converted image height. (optional) - * @param folder The document folder. (optional) + * @param xmlFilePath Full source filename (ex. /folder1/folder2/template.xml) (required) * @param storage The document storage. (optional) + * @param folder The document folder. (optional) * @return ApiResponse<File> * @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); + public ApiResponse getImportFieldsFromXmlInStorageWithHttpInfo(String name, String xmlFilePath, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = getImportFieldsFromXmlInStorageValidateBeforeCall(name, xmlFilePath, 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) + * Import from XML 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 width The converted image width. (optional) - * @param height The converted image height. (optional) - * @param folder The document folder. (optional) + * @param xmlFilePath Full source filename (ex. /folder1/folder2/template.xml) (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 getPageConvertToEmfAsync(String name, Integer pageNumber, Integer width, Integer height, String folder, String storage, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call getImportFieldsFromXmlInStorageAsync(String name, String xmlFilePath, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -12906,49 +12866,43 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = getPageConvertToEmfValidateBeforeCall(name, pageNumber, width, height, folder, storage, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getImportFieldsFromXmlInStorageValidateBeforeCall(name, xmlFilePath, storage, folder, progressListener, progressRequestListener); Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for getPageConvertToGif + * Build call for getInkAnnotation * @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 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 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 getInkAnnotationCall(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}/pages/{pageNumber}/convert/gif" + String localVarPath = "/pdf/{name}/annotations/ink/{annotationId}" .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "pageNumber" + "\\}", apiClient.escapeString(pageNumber.toString())); + .replaceAll("\\{" + "annotationId" + "\\}", apiClient.escapeString(annotationId.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(); 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); @@ -12971,53 +12925,51 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @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 getInkAnnotationValidateBeforeCall(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 getPageConvertToGif(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling getInkAnnotation(Async)"); } - // verify the required parameter 'pageNumber' is set - if (pageNumber == null) { - throw new ApiException("Missing the required parameter 'pageNumber' when calling getPageConvertToGif(Async)"); + // verify the required parameter 'annotationId' is set + if (annotationId == null) { + throw new ApiException("Missing the required parameter 'annotationId' when calling getInkAnnotation(Async)"); } - com.squareup.okhttp.Call call = getPageConvertToGifCall(name, pageNumber, width, height, folder, storage, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getInkAnnotationCall(name, annotationId, storage, folder, progressListener, progressRequestListener); return call; } /** - * Convert document page to Gif image and return resulting file in response. + * Read document page ink annotation by ID. * * @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 annotationId The annotation ID. (required) * @param storage The document storage. (optional) - * @return File + * @param folder The document folder. (optional) + * @return InkAnnotationResponse * @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 InkAnnotationResponse getInkAnnotation(String name, String annotationId, String storage, String folder) throws ApiException { try { - ApiResponse resp = getPageConvertToGifWithHttpInfo(name, pageNumber, width, height, folder, storage); + ApiResponse resp = getInkAnnotationWithHttpInfo(name, annotationId, storage, folder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = getPageConvertToGifWithHttpInfo(name, pageNumber, width, height, folder, storage); + apiClient.requestToken(); + ApiResponse resp = getInkAnnotationWithHttpInfo(name, annotationId, storage, folder); return resp.getData(); } throw ex; @@ -13025,37 +12977,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 ink annotation by ID. * * @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 annotationId The annotation ID. (required) * @param storage The document storage. (optional) - * @return ApiResponse<File> + * @param folder The document folder. (optional) + * @return ApiResponse<InkAnnotationResponse> * @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 getInkAnnotationWithHttpInfo(String name, String annotationId, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = getInkAnnotationValidateBeforeCall(name, annotationId, 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 ink annotation by ID. (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 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 getPageConvertToGifAsync(String name, Integer pageNumber, Integer width, Integer height, String folder, String storage, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call getInkAnnotationAsync(String name, String annotationId, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -13076,40 +13024,30 @@ 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 = getInkAnnotationValidateBeforeCall(name, annotationId, storage, folder, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for getPageConvertToJpeg - * @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) + * Build call for getLaTeXInStorageToPdf + * @param srcPath Full source filename (ex. /folder1/folder2/template.tex) (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 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 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}/pages/{pageNumber}/convert/jpeg" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "pageNumber" + "\\}", apiClient.escapeString(pageNumber.toString())); + String localVarPath = "/pdf/create/latex"; 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 (srcPath != null) + localVarQueryParams.addAll(apiClient.parameterToPair("srcPath", srcPath)); if (storage != null) localVarQueryParams.addAll(apiClient.parameterToPair("storage", storage)); @@ -13141,53 +13079,44 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @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 { - - // verify the required parameter 'name' is set - if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling getPageConvertToJpeg(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 'pageNumber' is set - if (pageNumber == null) { - throw new ApiException("Missing the required parameter 'pageNumber' when calling getPageConvertToJpeg(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 = getPageConvertToJpegCall(name, pageNumber, width, height, folder, storage, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getLaTeXInStorageToPdfCall(srcPath, storage, progressListener, progressRequestListener); return call; } /** - * Convert document page to Jpeg image and return resulting file in response. + * Convert LaTeX 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 width The converted image width. (optional) - * @param height The converted image height. (optional) - * @param folder The document folder. (optional) + * @param srcPath Full source filename (ex. /folder1/folder2/template.tex) (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 getPageConvertToJpeg(String name, Integer pageNumber, Integer width, Integer height, String folder, String storage) throws ApiException { + public File getLaTeXInStorageToPdf(String srcPath, String storage) throws ApiException { try { - ApiResponse resp = getPageConvertToJpegWithHttpInfo(name, pageNumber, width, height, folder, storage); + ApiResponse resp = getLaTeXInStorageToPdfWithHttpInfo(srcPath, storage); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = getPageConvertToJpegWithHttpInfo(name, pageNumber, width, height, folder, storage); + apiClient.requestToken(); + ApiResponse resp = getLaTeXInStorageToPdfWithHttpInfo(srcPath, storage); return resp.getData(); } throw ex; @@ -13195,37 +13124,29 @@ public File getPageConvertToJpeg(String name, Integer pageNumber, Integer width, } /** - * Convert document page to Jpeg image and return resulting file in response. + * Convert LaTeX 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 width The converted image width. (optional) - * @param height The converted image height. (optional) - * @param folder The document folder. (optional) + * @param srcPath Full source filename (ex. /folder1/folder2/template.tex) (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 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 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); } /** - * Convert document page to Jpeg image and return resulting file in response. (asynchronously) + * Convert LaTeX 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 width The converted image width. (optional) - * @param height The converted image height. (optional) - * @param folder The document folder. (optional) + * @param srcPath Full source filename (ex. /folder1/folder2/template.tex) (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 getPageConvertToJpegAsync(String name, Integer pageNumber, Integer width, Integer height, String folder, String storage, 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; @@ -13246,49 +13167,43 @@ 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 = getLaTeXInStorageToPdfValidateBeforeCall(srcPath, storage, progressListener, progressRequestListener); Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for getPageConvertToPng + * Build call for getLineAnnotation * @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 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 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 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 = "/pdf/{name}/pages/{pageNumber}/convert/png" + String localVarPath = "/pdf/{name}/annotations/line/{annotationId}" .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "pageNumber" + "\\}", apiClient.escapeString(pageNumber.toString())); + .replaceAll("\\{" + "annotationId" + "\\}", apiClient.escapeString(annotationId.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(); 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); @@ -13311,53 +13226,51 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @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 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 getPageConvertToPng(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling getLineAnnotation(Async)"); } - // verify the required parameter 'pageNumber' is set - if (pageNumber == null) { - throw new ApiException("Missing the required parameter 'pageNumber' when calling getPageConvertToPng(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 = getPageConvertToPngCall(name, pageNumber, width, height, folder, storage, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getLineAnnotationCall(name, annotationId, storage, folder, progressListener, progressRequestListener); return call; } /** - * Convert document page to Png image and return resulting file in response. + * Read document page line annotation by ID. * * @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 annotationId The annotation ID. (required) * @param storage The document storage. (optional) - * @return File + * @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 File getPageConvertToPng(String name, Integer pageNumber, Integer width, Integer height, String folder, String storage) throws ApiException { + public LineAnnotationResponse getLineAnnotation(String name, String annotationId, String storage, String folder) throws ApiException { try { - ApiResponse resp = getPageConvertToPngWithHttpInfo(name, pageNumber, width, height, folder, storage); + ApiResponse resp = getLineAnnotationWithHttpInfo(name, annotationId, storage, folder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = getPageConvertToPngWithHttpInfo(name, pageNumber, width, height, folder, storage); + apiClient.requestToken(); + ApiResponse resp = getLineAnnotationWithHttpInfo(name, annotationId, storage, folder); return resp.getData(); } throw ex; @@ -13365,37 +13278,33 @@ public File getPageConvertToPng(String name, Integer pageNumber, Integer width, } /** - * Convert document page to Png image and return resulting file in response. + * Read document page line annotation by ID. * * @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 annotationId The annotation ID. (required) * @param storage The document storage. (optional) - * @return ApiResponse<File> + * @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 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(); + 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); } /** - * Convert document page to Png image and return resulting file in response. (asynchronously) + * Read document page line annotation by ID. (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 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 getPageConvertToPngAsync(String name, Integer pageNumber, Integer width, Integer height, String folder, 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; @@ -13416,49 +13325,43 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = getPageConvertToPngValidateBeforeCall(name, pageNumber, width, height, folder, 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 getPageConvertToTiff + * Build call for getLinkAnnotation * @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 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 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 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/{name}/pages/{pageNumber}/convert/tiff" + String localVarPath = "/pdf/{name}/links/{linkId}" .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "pageNumber" + "\\}", apiClient.escapeString(pageNumber.toString())); + .replaceAll("\\{" + "linkId" + "\\}", apiClient.escapeString(linkId.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(); 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); @@ -13481,53 +13384,51 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @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 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 getPageConvertToTiff(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling getLinkAnnotation(Async)"); } - // verify the required parameter 'pageNumber' is set - if (pageNumber == null) { - throw new ApiException("Missing the required parameter 'pageNumber' when calling getPageConvertToTiff(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 = getPageConvertToTiffCall(name, pageNumber, width, height, folder, storage, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getLinkAnnotationCall(name, linkId, storage, folder, progressListener, progressRequestListener); return call; } /** - * Convert document page to Tiff image and return resulting file in response. + * Read document link annotation by ID. * * @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 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 getPageConvertToTiff(String name, Integer pageNumber, Integer width, Integer height, String folder, String storage) throws ApiException { + public LinkAnnotationResponse getLinkAnnotation(String name, String linkId, String storage, String folder) throws ApiException { try { - ApiResponse resp = getPageConvertToTiffWithHttpInfo(name, pageNumber, width, height, folder, storage); + ApiResponse resp = getLinkAnnotationWithHttpInfo(name, linkId, storage, folder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = getPageConvertToTiffWithHttpInfo(name, pageNumber, width, height, folder, storage); + apiClient.requestToken(); + ApiResponse resp = getLinkAnnotationWithHttpInfo(name, linkId, storage, folder); return resp.getData(); } throw ex; @@ -13535,37 +13436,33 @@ public File getPageConvertToTiff(String name, Integer pageNumber, Integer width, } /** - * Convert document page to Tiff image and return resulting file in response. + * Read document link annotation by ID. * * @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 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 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(); + 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 document page to Tiff image and return resulting file in response. (asynchronously) + * Read document link annotation by ID. (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 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 getPageConvertToTiffAsync(String name, Integer pageNumber, Integer width, Integer height, String folder, 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; @@ -13586,43 +13483,39 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = getPageConvertToTiffValidateBeforeCall(name, pageNumber, width, height, folder, 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 getPageFileAttachmentAnnotations - * @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 getPageFileAttachmentAnnotationsCall(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/fileattachment" - .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); @@ -13645,51 +13538,44 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getPageFileAttachmentAnnotationsValidateBeforeCall(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 getPageFileAttachmentAnnotations(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 getPageFileAttachmentAnnotations(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 = getPageFileAttachmentAnnotationsCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getMhtInStorageToPdfCall(srcPath, storage, progressListener, progressRequestListener); return call; } /** - * Read document page FileAttachment 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 FileAttachmentAnnotationsResponse + * @return File * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public FileAttachmentAnnotationsResponse getPageFileAttachmentAnnotations(String name, Integer pageNumber, String storage, String folder) throws ApiException { + public File getMhtInStorageToPdf(String srcPath, String storage) throws ApiException { try { - ApiResponse resp = getPageFileAttachmentAnnotationsWithHttpInfo(name, pageNumber, storage, folder); + ApiResponse resp = getMhtInStorageToPdfWithHttpInfo(srcPath, storage); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = getPageFileAttachmentAnnotationsWithHttpInfo(name, pageNumber, storage, folder); + apiClient.requestToken(); + ApiResponse resp = getMhtInStorageToPdfWithHttpInfo(srcPath, storage); return resp.getData(); } throw ex; @@ -13697,33 +13583,29 @@ public FileAttachmentAnnotationsResponse getPageFileAttachmentAnnotations(String } /** - * Read document page FileAttachment 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<FileAttachmentAnnotationsResponse> + * @return ApiResponse<File> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse getPageFileAttachmentAnnotationsWithHttpInfo(String name, Integer pageNumber, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = getPageFileAttachmentAnnotationsValidateBeforeCall(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 FileAttachment 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 getPageFileAttachmentAnnotationsAsync(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; @@ -13744,15 +13626,15 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = getPageFileAttachmentAnnotationsValidateBeforeCall(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 getPageFreeTextAnnotations + * Build call for getMovieAnnotation * @param name The document name. (required) - * @param pageNumber The page number. (required) + * @param annotationId The annotation ID. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) * @param progressListener Progress listener @@ -13760,13 +13642,13 @@ 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 getPageFreeTextAnnotationsCall(String name, Integer pageNumber, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call getMovieAnnotationCall(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}/pages/{pageNumber}/annotations/freetext" + String localVarPath = "/pdf/{name}/annotations/movie/{annotationId}" .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "pageNumber" + "\\}", apiClient.escapeString(pageNumber.toString())); + .replaceAll("\\{" + "annotationId" + "\\}", apiClient.escapeString(annotationId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -13803,51 +13685,51 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @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 getMovieAnnotationValidateBeforeCall(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 getPageFreeTextAnnotations(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling getMovieAnnotation(Async)"); } - // verify the required parameter 'pageNumber' is set - if (pageNumber == null) { - throw new ApiException("Missing the required parameter 'pageNumber' when calling getPageFreeTextAnnotations(Async)"); + // verify the required parameter 'annotationId' is set + if (annotationId == null) { + throw new ApiException("Missing the required parameter 'annotationId' when calling getMovieAnnotation(Async)"); } - com.squareup.okhttp.Call call = getPageFreeTextAnnotationsCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getMovieAnnotationCall(name, annotationId, storage, folder, progressListener, progressRequestListener); return call; } /** - * Read document page free text annotations. + * Read document page movie annotation by ID. * * @param name The document name. (required) - * @param pageNumber The page number. (required) + * @param annotationId The annotation ID. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) - * @return FreeTextAnnotationsResponse + * @return MovieAnnotationResponse * @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 MovieAnnotationResponse getMovieAnnotation(String name, String annotationId, String storage, String folder) throws ApiException { try { - ApiResponse resp = getPageFreeTextAnnotationsWithHttpInfo(name, pageNumber, storage, folder); + ApiResponse resp = getMovieAnnotationWithHttpInfo(name, annotationId, storage, folder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = getPageFreeTextAnnotationsWithHttpInfo(name, pageNumber, storage, folder); + apiClient.requestToken(); + ApiResponse resp = getMovieAnnotationWithHttpInfo(name, annotationId, storage, folder); return resp.getData(); } throw ex; @@ -13855,33 +13737,33 @@ public FreeTextAnnotationsResponse getPageFreeTextAnnotations(String name, Integ } /** - * Read document page free text annotations. + * Read document page movie annotation by ID. * * @param name The document name. (required) - * @param pageNumber The page number. (required) + * @param annotationId The annotation ID. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) - * @return ApiResponse<FreeTextAnnotationsResponse> + * @return ApiResponse<MovieAnnotationResponse> * @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 getMovieAnnotationWithHttpInfo(String name, String annotationId, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = getMovieAnnotationValidateBeforeCall(name, annotationId, storage, folder, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Read document page free text annotations. (asynchronously) + * Read document page movie annotation by ID. (asynchronously) * * @param name The document name. (required) - * @param pageNumber The page number. (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 getPageFreeTextAnnotationsAsync(String name, Integer pageNumber, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call getMovieAnnotationAsync(String name, String annotationId, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -13902,13 +13784,13 @@ 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 = getMovieAnnotationValidateBeforeCall(name, annotationId, storage, folder, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for getPageHighlightAnnotations + * Build call for getPage * @param name The document name. (required) * @param pageNumber The page number. (required) * @param storage The document storage. (optional) @@ -13918,11 +13800,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 getPageHighlightAnnotationsCall(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/highlight" + String localVarPath = "/pdf/{name}/pages/{pageNumber}" .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) .replaceAll("\\{" + "pageNumber" + "\\}", apiClient.escapeString(pageNumber.toString())); @@ -13961,51 +13843,51 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @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 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 getPageHighlightAnnotations(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 getPageHighlightAnnotations(Async)"); + throw new ApiException("Missing the required parameter 'pageNumber' when calling getPage(Async)"); } - com.squareup.okhttp.Call call = getPageHighlightAnnotationsCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getPageCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); return call; } /** - * Read document page highlight 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 HighlightAnnotationsResponse + * @return DocumentPageResponse * @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 DocumentPageResponse getPage(String name, Integer pageNumber, String storage, String folder) throws ApiException { try { - ApiResponse resp = getPageHighlightAnnotationsWithHttpInfo(name, pageNumber, storage, folder); + ApiResponse resp = getPageWithHttpInfo(name, pageNumber, storage, folder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = getPageHighlightAnnotationsWithHttpInfo(name, pageNumber, storage, folder); + apiClient.requestToken(); + ApiResponse resp = getPageWithHttpInfo(name, pageNumber, storage, folder); return resp.getData(); } throw ex; @@ -14013,23 +13895,23 @@ public HighlightAnnotationsResponse getPageHighlightAnnotations(String name, Int } /** - * Read document page highlight 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<HighlightAnnotationsResponse> + * @return ApiResponse<DocumentPageResponse> * @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 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 highlight annotations. (asynchronously) + * Read document page info. (asynchronously) * * @param name The document name. (required) * @param pageNumber The page number. (required) @@ -14039,7 +13921,7 @@ public ApiResponse getPageHighlightAnnotationsWith * @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 getPageAsync(String name, Integer pageNumber, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -14060,13 +13942,13 @@ 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 = getPageValidateBeforeCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for getPageInkAnnotations + * Build call for getPageAnnotations * @param name The document name. (required) * @param pageNumber The page number. (required) * @param storage The document storage. (optional) @@ -14076,11 +13958,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 getPageInkAnnotationsCall(String name, Integer pageNumber, String storage, String folder, 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}/annotations/ink" + String localVarPath = "/pdf/{name}/pages/{pageNumber}/annotations" .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) .replaceAll("\\{" + "pageNumber" + "\\}", apiClient.escapeString(pageNumber.toString())); @@ -14119,51 +14001,51 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @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 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 getPageInkAnnotations(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 getPageInkAnnotations(Async)"); + throw new ApiException("Missing the required parameter 'pageNumber' when calling getPageAnnotations(Async)"); } - com.squareup.okhttp.Call call = getPageInkAnnotationsCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getPageAnnotationsCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); return call; } /** - * Read document page ink annotations. + * Read document 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 storage The document storage. (optional) * @param folder The document folder. (optional) - * @return InkAnnotationsResponse + * @return AnnotationsInfoResponse * @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 AnnotationsInfoResponse getPageAnnotations(String name, Integer pageNumber, String storage, String folder) throws ApiException { try { - ApiResponse resp = getPageInkAnnotationsWithHttpInfo(name, pageNumber, storage, folder); + ApiResponse resp = getPageAnnotationsWithHttpInfo(name, pageNumber, storage, folder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = getPageInkAnnotationsWithHttpInfo(name, pageNumber, storage, folder); + apiClient.requestToken(); + ApiResponse resp = getPageAnnotationsWithHttpInfo(name, pageNumber, storage, folder); return resp.getData(); } throw ex; @@ -14171,23 +14053,23 @@ public InkAnnotationsResponse getPageInkAnnotations(String name, Integer pageNum } /** - * Read document page ink annotations. + * Read document 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 storage The document storage. (optional) * @param folder The document folder. (optional) - * @return ApiResponse<InkAnnotationsResponse> + * @return ApiResponse<AnnotationsInfoResponse> * @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 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); } /** - * Read document page ink annotations. (asynchronously) + * Read document 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) @@ -14197,7 +14079,7 @@ public ApiResponse getPageInkAnnotationsWithHttpInfo(Str * @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 getPageAnnotationsAsync(String name, Integer pageNumber, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -14218,13 +14100,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 = getPageAnnotationsValidateBeforeCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for getPageLineAnnotations + * Build call for getPageCaretAnnotations * @param name The document name. (required) * @param pageNumber The page number. (required) * @param storage The document storage. (optional) @@ -14234,11 +14116,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 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}/annotations/line" + String localVarPath = "/pdf/{name}/pages/{pageNumber}/annotations/caret" .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) .replaceAll("\\{" + "pageNumber" + "\\}", apiClient.escapeString(pageNumber.toString())); @@ -14277,51 +14159,51 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @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 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 getPageLineAnnotations(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 getPageLineAnnotations(Async)"); + throw new ApiException("Missing the required parameter 'pageNumber' when calling getPageCaretAnnotations(Async)"); } - com.squareup.okhttp.Call call = getPageLineAnnotationsCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getPageCaretAnnotationsCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); return call; } /** - * Read document page line annotations. + * Read document page caret 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 CaretAnnotationsResponse * @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 CaretAnnotationsResponse getPageCaretAnnotations(String name, Integer pageNumber, String storage, String folder) throws ApiException { try { - ApiResponse resp = getPageLineAnnotationsWithHttpInfo(name, pageNumber, storage, folder); + ApiResponse resp = getPageCaretAnnotationsWithHttpInfo(name, pageNumber, storage, folder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = getPageLineAnnotationsWithHttpInfo(name, pageNumber, storage, folder); + apiClient.requestToken(); + ApiResponse resp = getPageCaretAnnotationsWithHttpInfo(name, pageNumber, storage, folder); return resp.getData(); } throw ex; @@ -14329,23 +14211,23 @@ public LineAnnotationsResponse getPageLineAnnotations(String name, Integer pageN } /** - * Read document page line annotations. + * Read document page caret 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<CaretAnnotationsResponse> * @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 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); } /** - * Read document page line annotations. (asynchronously) + * Read document page caret annotations. (asynchronously) * * @param name The document name. (required) * @param pageNumber The page number. (required) @@ -14355,7 +14237,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 getPageCaretAnnotationsAsync(String name, Integer pageNumber, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -14376,33 +14258,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 = getPageCaretAnnotationsValidateBeforeCall(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 getPageCircleAnnotations * @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 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}/links/{linkId}" + String localVarPath = "/pdf/{name}/pages/{pageNumber}/annotations/circle" .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(); @@ -14439,60 +14317,51 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; 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 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 getPageLinkAnnotation(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 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 getPageCircleAnnotations(Async)"); } - com.squareup.okhttp.Call call = getPageLinkAnnotationCall(name, pageNumber, linkId, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getPageCircleAnnotationsCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); return call; } /** - * Read document page link annotation by ID. + * Read document page circle 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 CircleAnnotationsResponse * @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 CircleAnnotationsResponse getPageCircleAnnotations(String name, Integer pageNumber, String storage, String folder) throws ApiException { try { - ApiResponse resp = getPageLinkAnnotationWithHttpInfo(name, pageNumber, linkId, storage, folder); + ApiResponse resp = getPageCircleAnnotationsWithHttpInfo(name, pageNumber, storage, folder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = getPageLinkAnnotationWithHttpInfo(name, pageNumber, linkId, storage, folder); + apiClient.requestToken(); + ApiResponse resp = getPageCircleAnnotationsWithHttpInfo(name, pageNumber, storage, folder); return resp.getData(); } throw ex; @@ -14500,39 +14369,33 @@ public LinkAnnotationResponse getPageLinkAnnotation(String name, Integer pageNum } /** - * Read document page link annotation by ID. + * Read document page circle 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<CircleAnnotationsResponse> * @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 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); } /** - * Read document page link annotation by ID. (asynchronously) + * Read document page circle 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 getPageCircleAnnotationsAsync(String name, Integer pageNumber, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -14553,43 +14416,49 @@ 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 = getPageCircleAnnotationsValidateBeforeCall(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 getPageConvertToBmp * @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, default to 0) + * @param height The converted image height. (optional, default to 0) * @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 getPageLinkAnnotationsCall(String name, Integer pageNumber, String storage, String folder, 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}/links" + String localVarPath = "/pdf/{name}/pages/{pageNumber}/convert/bmp" .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(); 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); @@ -14612,51 +14481,53 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @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 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 getPageLinkAnnotations(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 getPageLinkAnnotations(Async)"); + throw new ApiException("Missing the required parameter 'pageNumber' when calling getPageConvertToBmp(Async)"); } - com.squareup.okhttp.Call call = getPageLinkAnnotationsCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getPageConvertToBmpCall(name, pageNumber, width, height, folder, storage, progressListener, progressRequestListener); return call; } /** - * Read document page link annotations. + * Convert document page to Bmp 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, default to 0) + * @param height The converted image height. (optional, default to 0) * @param folder The document folder. (optional) - * @return LinkAnnotationsResponse + * @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 LinkAnnotationsResponse getPageLinkAnnotations(String name, Integer pageNumber, String storage, String folder) throws ApiException { + public File getPageConvertToBmp(String name, Integer pageNumber, Integer width, Integer height, String folder, String storage) throws ApiException { try { - ApiResponse resp = getPageLinkAnnotationsWithHttpInfo(name, pageNumber, storage, folder); + ApiResponse resp = getPageConvertToBmpWithHttpInfo(name, pageNumber, width, height, folder, storage); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = getPageLinkAnnotationsWithHttpInfo(name, pageNumber, storage, folder); + apiClient.requestToken(); + ApiResponse resp = getPageConvertToBmpWithHttpInfo(name, pageNumber, width, height, folder, storage); return resp.getData(); } throw ex; @@ -14664,33 +14535,37 @@ public LinkAnnotationsResponse getPageLinkAnnotations(String name, Integer pageN } /** - * Read document page link annotations. + * Convert document page to Bmp 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, default to 0) + * @param height The converted image height. (optional, default to 0) * @param folder The document folder. (optional) - * @return ApiResponse<LinkAnnotationsResponse> + * @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 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 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); } /** - * Read document page link annotations. (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) - * @param storage The document storage. (optional) + * @param width The converted image width. (optional, default to 0) + * @param height The converted image height. (optional, default to 0) * @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 getPageLinkAnnotationsAsync(String name, Integer pageNumber, String storage, String folder, 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; @@ -14711,43 +14586,49 @@ 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 = getPageConvertToBmpValidateBeforeCall(name, pageNumber, width, height, folder, storage, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for getPageMovieAnnotations + * Build call for getPageConvertToEmf * @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, default to 0) + * @param height The converted image height. (optional, default to 0) * @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 getPageMovieAnnotationsCall(String name, Integer pageNumber, String storage, String folder, 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}/annotations/movie" + String localVarPath = "/pdf/{name}/pages/{pageNumber}/convert/emf" .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(); 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); @@ -14770,51 +14651,53 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getPageMovieAnnotationsValidateBeforeCall(String name, Integer pageNumber, String storage, String folder, 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 getPageMovieAnnotations(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 getPageMovieAnnotations(Async)"); + throw new ApiException("Missing the required parameter 'pageNumber' when calling getPageConvertToEmf(Async)"); } - com.squareup.okhttp.Call call = getPageMovieAnnotationsCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getPageConvertToEmfCall(name, pageNumber, width, height, folder, storage, progressListener, progressRequestListener); return call; } /** - * Read document page movie annotations. + * Convert document page to Emf 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, default to 0) + * @param height The converted image height. (optional, default to 0) * @param folder The document folder. (optional) - * @return MovieAnnotationsResponse + * @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 MovieAnnotationsResponse getPageMovieAnnotations(String name, Integer pageNumber, String storage, String folder) throws ApiException { + public File getPageConvertToEmf(String name, Integer pageNumber, Integer width, Integer height, String folder, String storage) throws ApiException { try { - ApiResponse resp = getPageMovieAnnotationsWithHttpInfo(name, pageNumber, storage, folder); + ApiResponse resp = getPageConvertToEmfWithHttpInfo(name, pageNumber, width, height, folder, storage); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = getPageMovieAnnotationsWithHttpInfo(name, pageNumber, storage, folder); + apiClient.requestToken(); + ApiResponse resp = getPageConvertToEmfWithHttpInfo(name, pageNumber, width, height, folder, storage); return resp.getData(); } throw ex; @@ -14822,33 +14705,37 @@ public MovieAnnotationsResponse getPageMovieAnnotations(String name, Integer pag } /** - * Read document page movie annotations. + * Convert document page to Emf 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, default to 0) + * @param height The converted image height. (optional, default to 0) * @param folder The document folder. (optional) - * @return ApiResponse<MovieAnnotationsResponse> + * @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 getPageMovieAnnotationsWithHttpInfo(String name, Integer pageNumber, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = getPageMovieAnnotationsValidateBeforeCall(name, pageNumber, storage, folder, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + 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); } /** - * Read document page movie annotations. (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) - * @param storage The document storage. (optional) + * @param width The converted image width. (optional, default to 0) + * @param height The converted image height. (optional, default to 0) * @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 getPageMovieAnnotationsAsync(String name, Integer pageNumber, String storage, String folder, 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; @@ -14869,43 +14756,49 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = getPageMovieAnnotationsValidateBeforeCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + 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 getPagePolyLineAnnotations + * Build call for getPageConvertToGif * @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, default to 0) + * @param height The converted image height. (optional, default to 0) * @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 getPagePolyLineAnnotationsCall(String name, Integer pageNumber, String storage, String folder, 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}/annotations/polyline" + String localVarPath = "/pdf/{name}/pages/{pageNumber}/convert/gif" .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(); 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); @@ -14928,51 +14821,53 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @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 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 getPagePolyLineAnnotations(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 getPagePolyLineAnnotations(Async)"); + throw new ApiException("Missing the required parameter 'pageNumber' when calling getPageConvertToGif(Async)"); } - com.squareup.okhttp.Call call = getPagePolyLineAnnotationsCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getPageConvertToGifCall(name, pageNumber, width, height, folder, storage, progressListener, progressRequestListener); return call; } /** - * Read document page polyline annotations. + * Convert document page to Gif 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, default to 0) + * @param height The converted image height. (optional, default to 0) * @param folder The document folder. (optional) - * @return PolyLineAnnotationsResponse + * @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 PolyLineAnnotationsResponse getPagePolyLineAnnotations(String name, Integer pageNumber, String storage, String folder) throws ApiException { + public File getPageConvertToGif(String name, Integer pageNumber, Integer width, Integer height, String folder, String storage) throws ApiException { try { - ApiResponse resp = getPagePolyLineAnnotationsWithHttpInfo(name, pageNumber, storage, folder); + ApiResponse resp = getPageConvertToGifWithHttpInfo(name, pageNumber, width, height, folder, storage); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = getPagePolyLineAnnotationsWithHttpInfo(name, pageNumber, storage, folder); + apiClient.requestToken(); + ApiResponse resp = getPageConvertToGifWithHttpInfo(name, pageNumber, width, height, folder, storage); return resp.getData(); } throw ex; @@ -14980,33 +14875,37 @@ public PolyLineAnnotationsResponse getPagePolyLineAnnotations(String name, Integ } /** - * Read document page polyline annotations. + * Convert document page to Gif 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, default to 0) + * @param height The converted image height. (optional, default to 0) * @param folder The document folder. (optional) - * @return ApiResponse<PolyLineAnnotationsResponse> + * @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 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 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); } /** - * Read document page polyline annotations. (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) - * @param storage The document storage. (optional) + * @param width The converted image width. (optional, default to 0) + * @param height The converted image height. (optional, default to 0) * @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 getPagePolyLineAnnotationsAsync(String name, Integer pageNumber, String storage, String folder, 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; @@ -15027,43 +14926,49 @@ 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 = getPageConvertToGifValidateBeforeCall(name, pageNumber, width, height, folder, storage, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for getPagePolygonAnnotations + * 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, default to 0) + * @param height The converted image height. (optional, default to 0) * @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 getPagePolygonAnnotationsCall(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/polygon" + 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(); 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); @@ -15086,51 +14991,53 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @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 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 getPagePolygonAnnotations(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 getPagePolygonAnnotations(Async)"); + throw new ApiException("Missing the required parameter 'pageNumber' when calling getPageConvertToJpeg(Async)"); } - com.squareup.okhttp.Call call = getPagePolygonAnnotationsCall(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 polygon 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, default to 0) + * @param height The converted image height. (optional, default to 0) * @param folder The document folder. (optional) - * @return PolygonAnnotationsResponse + * @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 PolygonAnnotationsResponse getPagePolygonAnnotations(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 = getPagePolygonAnnotationsWithHttpInfo(name, pageNumber, storage, folder); + ApiResponse resp = getPageConvertToJpegWithHttpInfo(name, pageNumber, width, height, folder, storage); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = getPagePolygonAnnotationsWithHttpInfo(name, pageNumber, storage, folder); + apiClient.requestToken(); + ApiResponse resp = getPageConvertToJpegWithHttpInfo(name, pageNumber, width, height, folder, storage); return resp.getData(); } throw ex; @@ -15138,33 +15045,37 @@ public PolygonAnnotationsResponse getPagePolygonAnnotations(String name, Integer } /** - * Read document page polygon 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, default to 0) + * @param height The converted image height. (optional, default to 0) * @param folder The document folder. (optional) - * @return ApiResponse<PolygonAnnotationsResponse> + * @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 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(); + 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 polygon 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, default to 0) + * @param height The converted image height. (optional, default to 0) * @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 getPagePolygonAnnotationsAsync(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; @@ -15185,43 +15096,49 @@ 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 = getPageConvertToJpegValidateBeforeCall(name, pageNumber, width, height, folder, storage, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for getPagePopupAnnotations + * 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, default to 0) + * @param height The converted image height. (optional, default to 0) * @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 getPagePopupAnnotationsCall(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/popup" + 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(); 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); @@ -15244,51 +15161,53 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @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 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 getPagePopupAnnotations(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 getPagePopupAnnotations(Async)"); + throw new ApiException("Missing the required parameter 'pageNumber' when calling getPageConvertToPng(Async)"); } - com.squareup.okhttp.Call call = getPagePopupAnnotationsCall(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 popup 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, default to 0) + * @param height The converted image height. (optional, default to 0) * @param folder The document folder. (optional) - * @return PopupAnnotationsResponse + * @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 PopupAnnotationsResponse getPagePopupAnnotations(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 = getPagePopupAnnotationsWithHttpInfo(name, pageNumber, storage, folder); + ApiResponse resp = getPageConvertToPngWithHttpInfo(name, pageNumber, width, height, folder, storage); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = getPagePopupAnnotationsWithHttpInfo(name, pageNumber, storage, folder); + apiClient.requestToken(); + ApiResponse resp = getPageConvertToPngWithHttpInfo(name, pageNumber, width, height, folder, storage); return resp.getData(); } throw ex; @@ -15296,33 +15215,37 @@ public PopupAnnotationsResponse getPagePopupAnnotations(String name, Integer pag } /** - * Read document page popup 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, default to 0) + * @param height The converted image height. (optional, default to 0) * @param folder The document folder. (optional) - * @return ApiResponse<PopupAnnotationsResponse> + * @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 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 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 popup 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, default to 0) + * @param height The converted image height. (optional, default to 0) * @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 getPagePopupAnnotationsAsync(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; @@ -15343,43 +15266,49 @@ 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 = getPageConvertToPngValidateBeforeCall(name, pageNumber, width, height, folder, storage, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for getPageRedactionAnnotations + * 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, default to 0) + * @param height The converted image height. (optional, default to 0) * @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 getPageRedactionAnnotationsCall(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/redaction" + 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(); 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); @@ -15402,51 +15331,53 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getPageRedactionAnnotationsValidateBeforeCall(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 getPageRedactionAnnotations(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 getPageRedactionAnnotations(Async)"); + throw new ApiException("Missing the required parameter 'pageNumber' when calling getPageConvertToTiff(Async)"); } - com.squareup.okhttp.Call call = getPageRedactionAnnotationsCall(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 redaction 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, default to 0) + * @param height The converted image height. (optional, default to 0) * @param folder The document folder. (optional) - * @return RedactionAnnotationsResponse + * @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 RedactionAnnotationsResponse getPageRedactionAnnotations(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 = getPageRedactionAnnotationsWithHttpInfo(name, pageNumber, storage, folder); + ApiResponse resp = getPageConvertToTiffWithHttpInfo(name, pageNumber, width, height, folder, storage); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = getPageRedactionAnnotationsWithHttpInfo(name, pageNumber, storage, folder); + apiClient.requestToken(); + ApiResponse resp = getPageConvertToTiffWithHttpInfo(name, pageNumber, width, height, folder, storage); return resp.getData(); } throw ex; @@ -15454,33 +15385,37 @@ public RedactionAnnotationsResponse getPageRedactionAnnotations(String name, Int } /** - * Read document page redaction 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, default to 0) + * @param height The converted image height. (optional, default to 0) * @param folder The document folder. (optional) - * @return ApiResponse<RedactionAnnotationsResponse> + * @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 getPageRedactionAnnotationsWithHttpInfo(String name, Integer pageNumber, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = getPageRedactionAnnotationsValidateBeforeCall(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 redaction 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, default to 0) + * @param height The converted image height. (optional, default to 0) * @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 getPageRedactionAnnotationsAsync(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; @@ -15501,13 +15436,13 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = getPageRedactionAnnotationsValidateBeforeCall(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 getPageScreenAnnotations + * Build call for getPageFileAttachmentAnnotations * @param name The document name. (required) * @param pageNumber The page number. (required) * @param storage The document storage. (optional) @@ -15517,11 +15452,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 getPageScreenAnnotationsCall(String name, Integer pageNumber, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call getPageFileAttachmentAnnotationsCall(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/screen" + String localVarPath = "/pdf/{name}/pages/{pageNumber}/annotations/fileattachment" .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) .replaceAll("\\{" + "pageNumber" + "\\}", apiClient.escapeString(pageNumber.toString())); @@ -15560,51 +15495,51 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getPageScreenAnnotationsValidateBeforeCall(String name, Integer pageNumber, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call getPageFileAttachmentAnnotationsValidateBeforeCall(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 getPageScreenAnnotations(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling getPageFileAttachmentAnnotations(Async)"); } // verify the required parameter 'pageNumber' is set if (pageNumber == null) { - throw new ApiException("Missing the required parameter 'pageNumber' when calling getPageScreenAnnotations(Async)"); + throw new ApiException("Missing the required parameter 'pageNumber' when calling getPageFileAttachmentAnnotations(Async)"); } - com.squareup.okhttp.Call call = getPageScreenAnnotationsCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getPageFileAttachmentAnnotationsCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); return call; } /** - * Read document page screen annotations. + * Read document page FileAttachment 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 ScreenAnnotationsResponse + * @return FileAttachmentAnnotationsResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ScreenAnnotationsResponse getPageScreenAnnotations(String name, Integer pageNumber, String storage, String folder) throws ApiException { + public FileAttachmentAnnotationsResponse getPageFileAttachmentAnnotations(String name, Integer pageNumber, String storage, String folder) throws ApiException { try { - ApiResponse resp = getPageScreenAnnotationsWithHttpInfo(name, pageNumber, storage, folder); + ApiResponse resp = getPageFileAttachmentAnnotationsWithHttpInfo(name, pageNumber, storage, folder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = getPageScreenAnnotationsWithHttpInfo(name, pageNumber, storage, folder); + apiClient.requestToken(); + ApiResponse resp = getPageFileAttachmentAnnotationsWithHttpInfo(name, pageNumber, storage, folder); return resp.getData(); } throw ex; @@ -15612,23 +15547,23 @@ public ScreenAnnotationsResponse getPageScreenAnnotations(String name, Integer p } /** - * Read document page screen annotations. + * Read document page FileAttachment 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<ScreenAnnotationsResponse> + * @return ApiResponse<FileAttachmentAnnotationsResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse getPageScreenAnnotationsWithHttpInfo(String name, Integer pageNumber, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = getPageScreenAnnotationsValidateBeforeCall(name, pageNumber, storage, folder, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse getPageFileAttachmentAnnotationsWithHttpInfo(String name, Integer pageNumber, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = getPageFileAttachmentAnnotationsValidateBeforeCall(name, pageNumber, storage, folder, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Read document page screen annotations. (asynchronously) + * Read document page FileAttachment annotations. (asynchronously) * * @param name The document name. (required) * @param pageNumber The page number. (required) @@ -15638,7 +15573,7 @@ public ApiResponse getPageScreenAnnotationsWithHttpIn * @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 getPageScreenAnnotationsAsync(String name, Integer pageNumber, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call getPageFileAttachmentAnnotationsAsync(String name, Integer pageNumber, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -15659,13 +15594,13 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = getPageScreenAnnotationsValidateBeforeCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = getPageFileAttachmentAnnotationsValidateBeforeCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for getPageSoundAnnotations + * Build call for getPageFreeTextAnnotations * @param name The document name. (required) * @param pageNumber The page number. (required) * @param storage The document storage. (optional) @@ -15675,11 +15610,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 getPageSoundAnnotationsCall(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/sound" + String localVarPath = "/pdf/{name}/pages/{pageNumber}/annotations/freetext" .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) .replaceAll("\\{" + "pageNumber" + "\\}", apiClient.escapeString(pageNumber.toString())); @@ -15718,51 +15653,51 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getPageSoundAnnotationsValidateBeforeCall(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 getPageSoundAnnotations(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 getPageSoundAnnotations(Async)"); + throw new ApiException("Missing the required parameter 'pageNumber' when calling getPageFreeTextAnnotations(Async)"); } - com.squareup.okhttp.Call call = getPageSoundAnnotationsCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getPageFreeTextAnnotationsCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); return call; } /** - * Read document page sound 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 SoundAnnotationsResponse + * @return FreeTextAnnotationsResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public SoundAnnotationsResponse getPageSoundAnnotations(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 = getPageSoundAnnotationsWithHttpInfo(name, pageNumber, storage, folder); + ApiResponse resp = getPageFreeTextAnnotationsWithHttpInfo(name, pageNumber, storage, folder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = getPageSoundAnnotationsWithHttpInfo(name, pageNumber, storage, folder); + apiClient.requestToken(); + ApiResponse resp = getPageFreeTextAnnotationsWithHttpInfo(name, pageNumber, storage, folder); return resp.getData(); } throw ex; @@ -15770,23 +15705,23 @@ public SoundAnnotationsResponse getPageSoundAnnotations(String name, Integer pag } /** - * Read document page sound 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<SoundAnnotationsResponse> + * @return ApiResponse<FreeTextAnnotationsResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse getPageSoundAnnotationsWithHttpInfo(String name, Integer pageNumber, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = getPageSoundAnnotationsValidateBeforeCall(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 sound annotations. (asynchronously) + * Read document page free text annotations. (asynchronously) * * @param name The document name. (required) * @param pageNumber The page number. (required) @@ -15796,7 +15731,7 @@ public ApiResponse getPageSoundAnnotationsWithHttpInfo * @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 getPageSoundAnnotationsAsync(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; @@ -15817,13 +15752,13 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = getPageSoundAnnotationsValidateBeforeCall(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 getPageSquareAnnotations + * Build call for getPageHighlightAnnotations * @param name The document name. (required) * @param pageNumber The page number. (required) * @param storage The document storage. (optional) @@ -15833,11 +15768,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 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}/annotations/square" + String localVarPath = "/pdf/{name}/pages/{pageNumber}/annotations/highlight" .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) .replaceAll("\\{" + "pageNumber" + "\\}", apiClient.escapeString(pageNumber.toString())); @@ -15876,51 +15811,51 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @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 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 getPageSquareAnnotations(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 getPageSquareAnnotations(Async)"); + throw new ApiException("Missing the required parameter 'pageNumber' when calling getPageHighlightAnnotations(Async)"); } - com.squareup.okhttp.Call call = getPageSquareAnnotationsCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getPageHighlightAnnotationsCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); return call; } /** - * Read document page square annotations. + * Read document page highlight 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 HighlightAnnotationsResponse * @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 HighlightAnnotationsResponse getPageHighlightAnnotations(String name, Integer pageNumber, String storage, String folder) throws ApiException { try { - ApiResponse resp = getPageSquareAnnotationsWithHttpInfo(name, pageNumber, storage, folder); + ApiResponse resp = getPageHighlightAnnotationsWithHttpInfo(name, pageNumber, storage, folder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = getPageSquareAnnotationsWithHttpInfo(name, pageNumber, storage, folder); + apiClient.requestToken(); + ApiResponse resp = getPageHighlightAnnotationsWithHttpInfo(name, pageNumber, storage, folder); return resp.getData(); } throw ex; @@ -15928,23 +15863,23 @@ public SquareAnnotationsResponse getPageSquareAnnotations(String name, Integer p } /** - * Read document page square annotations. + * Read document page highlight 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<HighlightAnnotationsResponse> * @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 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 square annotations. (asynchronously) + * Read document page highlight annotations. (asynchronously) * * @param name The document name. (required) * @param pageNumber The page number. (required) @@ -15954,7 +15889,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 getPageHighlightAnnotationsAsync(String name, Integer pageNumber, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -15975,13 +15910,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 = getPageHighlightAnnotationsValidateBeforeCall(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 getPageInkAnnotations * @param name The document name. (required) * @param pageNumber The page number. (required) * @param storage The document storage. (optional) @@ -15991,11 +15926,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 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}/annotations/squiggly" + String localVarPath = "/pdf/{name}/pages/{pageNumber}/annotations/ink" .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) .replaceAll("\\{" + "pageNumber" + "\\}", apiClient.escapeString(pageNumber.toString())); @@ -16034,51 +15969,51 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @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 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 getPageSquigglyAnnotations(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 getPageSquigglyAnnotations(Async)"); + throw new ApiException("Missing the required parameter 'pageNumber' when calling getPageInkAnnotations(Async)"); } - com.squareup.okhttp.Call call = getPageSquigglyAnnotationsCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getPageInkAnnotationsCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); return call; } /** - * Read document page squiggly 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 SquigglyAnnotationsResponse + * @return InkAnnotationsResponse * @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 InkAnnotationsResponse getPageInkAnnotations(String name, Integer pageNumber, String storage, String folder) throws ApiException { try { - ApiResponse resp = getPageSquigglyAnnotationsWithHttpInfo(name, pageNumber, storage, folder); + ApiResponse resp = getPageInkAnnotationsWithHttpInfo(name, pageNumber, storage, folder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = getPageSquigglyAnnotationsWithHttpInfo(name, pageNumber, storage, folder); + apiClient.requestToken(); + ApiResponse resp = getPageInkAnnotationsWithHttpInfo(name, pageNumber, storage, folder); return resp.getData(); } throw ex; @@ -16086,23 +16021,23 @@ public SquigglyAnnotationsResponse getPageSquigglyAnnotations(String name, Integ } /** - * Read document page squiggly 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<SquigglyAnnotationsResponse> + * @return ApiResponse<InkAnnotationsResponse> * @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 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 squiggly annotations. (asynchronously) + * Read document page ink annotations. (asynchronously) * * @param name The document name. (required) * @param pageNumber The page number. (required) @@ -16112,7 +16047,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 getPageInkAnnotationsAsync(String name, Integer pageNumber, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -16133,13 +16068,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 = getPageInkAnnotationsValidateBeforeCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for getPageStampAnnotations + * Build call for getPageLineAnnotations * @param name The document name. (required) * @param pageNumber The page number. (required) * @param storage The document storage. (optional) @@ -16149,11 +16084,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 getPageStampAnnotationsCall(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/stamp" + String localVarPath = "/pdf/{name}/pages/{pageNumber}/annotations/line" .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) .replaceAll("\\{" + "pageNumber" + "\\}", apiClient.escapeString(pageNumber.toString())); @@ -16192,51 +16127,51 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getPageStampAnnotationsValidateBeforeCall(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 getPageStampAnnotations(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 getPageStampAnnotations(Async)"); + throw new ApiException("Missing the required parameter 'pageNumber' when calling getPageLineAnnotations(Async)"); } - com.squareup.okhttp.Call call = getPageStampAnnotationsCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getPageLineAnnotationsCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); return call; } /** - * Read document page stamp 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 StampAnnotationsResponse + * @return LineAnnotationsResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public StampAnnotationsResponse getPageStampAnnotations(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 = getPageStampAnnotationsWithHttpInfo(name, pageNumber, storage, folder); + ApiResponse resp = getPageLineAnnotationsWithHttpInfo(name, pageNumber, storage, folder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = getPageStampAnnotationsWithHttpInfo(name, pageNumber, storage, folder); + apiClient.requestToken(); + ApiResponse resp = getPageLineAnnotationsWithHttpInfo(name, pageNumber, storage, folder); return resp.getData(); } throw ex; @@ -16244,23 +16179,23 @@ public StampAnnotationsResponse getPageStampAnnotations(String name, Integer pag } /** - * Read document page stamp 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<StampAnnotationsResponse> + * @return ApiResponse<LineAnnotationsResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse getPageStampAnnotationsWithHttpInfo(String name, Integer pageNumber, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = getPageStampAnnotationsValidateBeforeCall(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 stamp annotations. (asynchronously) + * Read document page line annotations. (asynchronously) * * @param name The document name. (required) * @param pageNumber The page number. (required) @@ -16270,7 +16205,7 @@ public ApiResponse getPageStampAnnotationsWithHttpInfo * @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 getPageStampAnnotationsAsync(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; @@ -16291,29 +16226,33 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = getPageStampAnnotationsValidateBeforeCall(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 getPageStamps + * 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 getPageStampsCall(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}/stamps" + 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(); @@ -16350,51 +16289,60 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } + @Deprecated @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getPageStampsValidateBeforeCall(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 getPageStamps(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 getPageStamps(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 = getPageStampsCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getPageLinkAnnotationCall(name, pageNumber, linkId, storage, folder, progressListener, progressRequestListener); return call; } /** - * Read page document stamps. + * 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 StampsInfoResponse + * @return LinkAnnotationResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @deprecated */ - public StampsInfoResponse getPageStamps(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 = getPageStampsWithHttpInfo(name, pageNumber, storage, folder); + ApiResponse resp = getPageLinkAnnotationWithHttpInfo(name, pageNumber, linkId, storage, folder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = getPageStampsWithHttpInfo(name, pageNumber, storage, folder); + apiClient.requestToken(); + ApiResponse resp = getPageLinkAnnotationWithHttpInfo(name, pageNumber, linkId, storage, folder); return resp.getData(); } throw ex; @@ -16402,33 +16350,39 @@ public StampsInfoResponse getPageStamps(String name, Integer pageNumber, String } /** - * Read page document stamps. + * 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<StampsInfoResponse> + * @return ApiResponse<LinkAnnotationResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @deprecated */ - public ApiResponse getPageStampsWithHttpInfo(String name, Integer pageNumber, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = getPageStampsValidateBeforeCall(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 page document stamps. (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 getPageStampsAsync(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; @@ -16449,13 +16403,13 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = getPageStampsValidateBeforeCall(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 getPageStrikeOutAnnotations + * Build call for getPageLinkAnnotations * @param name The document name. (required) * @param pageNumber The page number. (required) * @param storage The document storage. (optional) @@ -16465,11 +16419,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 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/strikeout" + String localVarPath = "/pdf/{name}/pages/{pageNumber}/links" .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) .replaceAll("\\{" + "pageNumber" + "\\}", apiClient.escapeString(pageNumber.toString())); @@ -16508,51 +16462,51 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @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 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 getPageStrikeOutAnnotations(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 getPageStrikeOutAnnotations(Async)"); + throw new ApiException("Missing the required parameter 'pageNumber' when calling getPageLinkAnnotations(Async)"); } - com.squareup.okhttp.Call call = getPageStrikeOutAnnotationsCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getPageLinkAnnotationsCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); return call; } /** - * Read document page StrikeOut 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 StrikeOutAnnotationsResponse + * @return LinkAnnotationsResponse * @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 LinkAnnotationsResponse getPageLinkAnnotations(String name, Integer pageNumber, String storage, String folder) throws ApiException { try { - ApiResponse resp = getPageStrikeOutAnnotationsWithHttpInfo(name, pageNumber, storage, folder); + ApiResponse resp = getPageLinkAnnotationsWithHttpInfo(name, pageNumber, storage, folder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = getPageStrikeOutAnnotationsWithHttpInfo(name, pageNumber, storage, folder); + apiClient.requestToken(); + ApiResponse resp = getPageLinkAnnotationsWithHttpInfo(name, pageNumber, storage, folder); return resp.getData(); } throw ex; @@ -16560,23 +16514,23 @@ public StrikeOutAnnotationsResponse getPageStrikeOutAnnotations(String name, Int } /** - * Read document page StrikeOut 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<StrikeOutAnnotationsResponse> + * @return ApiResponse<LinkAnnotationsResponse> * @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 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 StrikeOut annotations. (asynchronously) + * Read document page link annotations. (asynchronously) * * @param name The document name. (required) * @param pageNumber The page number. (required) @@ -16586,7 +16540,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 getPageLinkAnnotationsAsync(String name, Integer pageNumber, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -16607,27 +16561,27 @@ 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 = getPageLinkAnnotationsValidateBeforeCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for getPageTables - * @param name (required) - * @param pageNumber (required) - * @param storage (optional) - * @param folder (optional) + * Build call for getPageMovieAnnotations + * @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 getPageTablesCall(String name, Integer pageNumber, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call getPageMovieAnnotationsCall(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}/tables" + String localVarPath = "/pdf/{name}/pages/{pageNumber}/annotations/movie" .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) .replaceAll("\\{" + "pageNumber" + "\\}", apiClient.escapeString(pageNumber.toString())); @@ -16666,51 +16620,51 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getPageTablesValidateBeforeCall(String name, Integer pageNumber, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call getPageMovieAnnotationsValidateBeforeCall(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 getPageTables(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling getPageMovieAnnotations(Async)"); } // verify the required parameter 'pageNumber' is set if (pageNumber == null) { - throw new ApiException("Missing the required parameter 'pageNumber' when calling getPageTables(Async)"); + throw new ApiException("Missing the required parameter 'pageNumber' when calling getPageMovieAnnotations(Async)"); } - com.squareup.okhttp.Call call = getPageTablesCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getPageMovieAnnotationsCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); return call; } /** - * Read document page tables. + * Read document page movie annotations. * - * @param name (required) - * @param pageNumber (required) - * @param storage (optional) - * @param folder (optional) - * @return TablesRecognizedResponse + * @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 MovieAnnotationsResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public TablesRecognizedResponse getPageTables(String name, Integer pageNumber, String storage, String folder) throws ApiException { + public MovieAnnotationsResponse getPageMovieAnnotations(String name, Integer pageNumber, String storage, String folder) throws ApiException { try { - ApiResponse resp = getPageTablesWithHttpInfo(name, pageNumber, storage, folder); + ApiResponse resp = getPageMovieAnnotationsWithHttpInfo(name, pageNumber, storage, folder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = getPageTablesWithHttpInfo(name, pageNumber, storage, folder); + apiClient.requestToken(); + ApiResponse resp = getPageMovieAnnotationsWithHttpInfo(name, pageNumber, storage, folder); return resp.getData(); } throw ex; @@ -16718,33 +16672,33 @@ public TablesRecognizedResponse getPageTables(String name, Integer pageNumber, S } /** - * Read document page tables. + * Read document page movie annotations. * - * @param name (required) - * @param pageNumber (required) - * @param storage (optional) - * @param folder (optional) - * @return ApiResponse<TablesRecognizedResponse> + * @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<MovieAnnotationsResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse getPageTablesWithHttpInfo(String name, Integer pageNumber, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = getPageTablesValidateBeforeCall(name, pageNumber, storage, folder, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse getPageMovieAnnotationsWithHttpInfo(String name, Integer pageNumber, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = getPageMovieAnnotationsValidateBeforeCall(name, pageNumber, storage, folder, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Read document page tables. (asynchronously) + * Read document page movie annotations. (asynchronously) * - * @param name (required) - * @param pageNumber (required) - * @param storage (optional) - * @param folder (optional) + * @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 getPageTablesAsync(String name, Integer pageNumber, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call getPageMovieAnnotationsAsync(String name, Integer pageNumber, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -16765,57 +16719,36 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = getPageTablesValidateBeforeCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = getPageMovieAnnotationsValidateBeforeCall(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 getPagePolyLineAnnotations * @param name The document name. (required) - * @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 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 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}/text" + String localVarPath = "/pdf/{name}/pages/{pageNumber}/annotations/polyline" .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(); @@ -16845,78 +16778,51 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @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 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 getPageText(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 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 getPagePolyLineAnnotations(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 = getPagePolyLineAnnotationsCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); return call; } /** - * Read page text items. + * Read document page polyline annotations. * * @param name The document name. (required) - * @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 pageNumber The page number. (required) * @param storage The document storage. (optional) - * @return TextRectsResponse + * @param folder The document folder. (optional) + * @return PolyLineAnnotationsResponse * @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 PolyLineAnnotationsResponse getPagePolyLineAnnotations(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 = getPagePolyLineAnnotationsWithHttpInfo(name, pageNumber, storage, folder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = getPageTextWithHttpInfo(name, pageNumber, LLX, LLY, URX, URY, format, regex, splitRects, folder, storage); + apiClient.requestToken(); + ApiResponse resp = getPagePolyLineAnnotationsWithHttpInfo(name, pageNumber, storage, folder); return resp.getData(); } throw ex; @@ -16924,47 +16830,33 @@ public TextRectsResponse getPageText(String name, Integer pageNumber, Double LLX } /** - * Read page text items. + * Read document page polyline annotations. * * @param name The document name. (required) - * @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 pageNumber The page number. (required) * @param storage The document storage. (optional) - * @return ApiResponse<TextRectsResponse> + * @param folder The document folder. (optional) + * @return ApiResponse<PolyLineAnnotationsResponse> * @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 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 page text items. (asynchronously) + * Read document page polyline annotations. (asynchronously) * * @param name The document name. (required) - * @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 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 getPagePolyLineAnnotationsAsync(String name, Integer pageNumber, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -16985,13 +16877,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 = getPagePolyLineAnnotationsValidateBeforeCall(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 getPagePolygonAnnotations * @param name The document name. (required) * @param pageNumber The page number. (required) * @param storage The document storage. (optional) @@ -17001,11 +16893,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 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/text" + String localVarPath = "/pdf/{name}/pages/{pageNumber}/annotations/polygon" .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) .replaceAll("\\{" + "pageNumber" + "\\}", apiClient.escapeString(pageNumber.toString())); @@ -17044,51 +16936,51 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @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 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 getPageTextAnnotations(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 getPageTextAnnotations(Async)"); + throw new ApiException("Missing the required parameter 'pageNumber' when calling getPagePolygonAnnotations(Async)"); } - com.squareup.okhttp.Call call = getPageTextAnnotationsCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getPagePolygonAnnotationsCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); return call; } /** - * Read document page text 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 TextAnnotationsResponse + * @return PolygonAnnotationsResponse * @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 PolygonAnnotationsResponse getPagePolygonAnnotations(String name, Integer pageNumber, String storage, String folder) throws ApiException { try { - ApiResponse resp = getPageTextAnnotationsWithHttpInfo(name, pageNumber, storage, folder); + ApiResponse resp = getPagePolygonAnnotationsWithHttpInfo(name, pageNumber, storage, folder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = getPageTextAnnotationsWithHttpInfo(name, pageNumber, storage, folder); + apiClient.requestToken(); + ApiResponse resp = getPagePolygonAnnotationsWithHttpInfo(name, pageNumber, storage, folder); return resp.getData(); } throw ex; @@ -17096,23 +16988,23 @@ public TextAnnotationsResponse getPageTextAnnotations(String name, Integer pageN } /** - * Read document page text 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<TextAnnotationsResponse> + * @return ApiResponse<PolygonAnnotationsResponse> * @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 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 text annotations. (asynchronously) + * Read document page polygon annotations. (asynchronously) * * @param name The document name. (required) * @param pageNumber The page number. (required) @@ -17122,7 +17014,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 getPagePolygonAnnotationsAsync(String name, Integer pageNumber, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -17143,13 +17035,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 = getPagePolygonAnnotationsValidateBeforeCall(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 getPagePopupAnnotations * @param name The document name. (required) * @param pageNumber The page number. (required) * @param storage The document storage. (optional) @@ -17159,11 +17051,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 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/underline" + String localVarPath = "/pdf/{name}/pages/{pageNumber}/annotations/popup" .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) .replaceAll("\\{" + "pageNumber" + "\\}", apiClient.escapeString(pageNumber.toString())); @@ -17202,51 +17094,51 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @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 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 getPageUnderlineAnnotations(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 getPageUnderlineAnnotations(Async)"); + throw new ApiException("Missing the required parameter 'pageNumber' when calling getPagePopupAnnotations(Async)"); } - com.squareup.okhttp.Call call = getPageUnderlineAnnotationsCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getPagePopupAnnotationsCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); return call; } /** - * Read document page underline 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 UnderlineAnnotationsResponse + * @return PopupAnnotationsResponse * @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 PopupAnnotationsResponse getPagePopupAnnotations(String name, Integer pageNumber, String storage, String folder) throws ApiException { try { - ApiResponse resp = getPageUnderlineAnnotationsWithHttpInfo(name, pageNumber, storage, folder); + ApiResponse resp = getPagePopupAnnotationsWithHttpInfo(name, pageNumber, storage, folder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = getPageUnderlineAnnotationsWithHttpInfo(name, pageNumber, storage, folder); + apiClient.requestToken(); + ApiResponse resp = getPagePopupAnnotationsWithHttpInfo(name, pageNumber, storage, folder); return resp.getData(); } throw ex; @@ -17254,23 +17146,23 @@ public UnderlineAnnotationsResponse getPageUnderlineAnnotations(String name, Int } /** - * Read document page underline 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<UnderlineAnnotationsResponse> + * @return ApiResponse<PopupAnnotationsResponse> * @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 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 underline annotations. (asynchronously) + * Read document page popup annotations. (asynchronously) * * @param name The document name. (required) * @param pageNumber The page number. (required) @@ -17280,7 +17172,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 getPagePopupAnnotationsAsync(String name, Integer pageNumber, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -17301,14 +17193,15 @@ 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(); + 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 getPages + * Build call for getPageRedactionAnnotations * @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 @@ -17316,12 +17209,13 @@ 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 getPagesCall(String name, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call getPageRedactionAnnotationsCall(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" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + String localVarPath = "/pdf/{name}/pages/{pageNumber}/annotations/redaction" + .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) + .replaceAll("\\{" + "pageNumber" + "\\}", apiClient.escapeString(pageNumber.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -17358,45 +17252,51 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; 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 { + private com.squareup.okhttp.Call getPageRedactionAnnotationsValidateBeforeCall(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 getPages(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling getPageRedactionAnnotations(Async)"); + } + + // verify the required parameter 'pageNumber' is set + if (pageNumber == null) { + throw new ApiException("Missing the required parameter 'pageNumber' when calling getPageRedactionAnnotations(Async)"); } - com.squareup.okhttp.Call call = getPagesCall(name, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getPageRedactionAnnotationsCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); return call; } /** - * Read document pages info. + * Read document page redaction 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 DocumentPagesResponse + * @return RedactionAnnotationsResponse * @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 RedactionAnnotationsResponse getPageRedactionAnnotations(String name, Integer pageNumber, String storage, String folder) throws ApiException { try { - ApiResponse resp = getPagesWithHttpInfo(name, storage, folder); + ApiResponse resp = getPageRedactionAnnotationsWithHttpInfo(name, pageNumber, storage, folder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = getPagesWithHttpInfo(name, storage, folder); + apiClient.requestToken(); + ApiResponse resp = getPageRedactionAnnotationsWithHttpInfo(name, pageNumber, storage, folder); return resp.getData(); } throw ex; @@ -17404,31 +17304,33 @@ public DocumentPagesResponse getPages(String name, String storage, String folder } /** - * Read document pages info. + * Read document page redaction 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<DocumentPagesResponse> + * @return ApiResponse<RedactionAnnotationsResponse> * @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 getPageRedactionAnnotationsWithHttpInfo(String name, Integer pageNumber, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = getPageRedactionAnnotationsValidateBeforeCall(name, pageNumber, storage, folder, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Read document pages info. (asynchronously) + * Read document page redaction 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 getPagesAsync(String name, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call getPageRedactionAnnotationsAsync(String name, Integer pageNumber, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -17449,39 +17351,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 = getPageRedactionAnnotationsValidateBeforeCall(name, pageNumber, 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) + * Build call for getPageScreenAnnotations + * @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 getPageScreenAnnotationsCall(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/screen" + .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); @@ -17504,44 +17410,51 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; 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 { + private com.squareup.okhttp.Call getPageScreenAnnotationsValidateBeforeCall(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 getPageScreenAnnotations(Async)"); + } + + // verify the required parameter 'pageNumber' is set + if (pageNumber == null) { + throw new ApiException("Missing the required parameter 'pageNumber' when calling getPageScreenAnnotations(Async)"); } - com.squareup.okhttp.Call call = getPclInStorageToPdfCall(srcPath, storage, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getPageScreenAnnotationsCall(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 screen 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 ScreenAnnotationsResponse * @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 ScreenAnnotationsResponse getPageScreenAnnotations(String name, Integer pageNumber, String storage, String folder) throws ApiException { try { - ApiResponse resp = getPclInStorageToPdfWithHttpInfo(srcPath, storage); + ApiResponse resp = getPageScreenAnnotationsWithHttpInfo(name, pageNumber, storage, folder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = getPclInStorageToPdfWithHttpInfo(srcPath, storage); + apiClient.requestToken(); + ApiResponse resp = getPageScreenAnnotationsWithHttpInfo(name, pageNumber, storage, folder); return resp.getData(); } throw ex; @@ -17549,29 +17462,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 screen 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<ScreenAnnotationsResponse> * @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 getPageScreenAnnotationsWithHttpInfo(String name, Integer pageNumber, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = getPageScreenAnnotationsValidateBeforeCall(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 screen 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 getPageScreenAnnotationsAsync(String name, Integer pageNumber, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -17592,65 +17509,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 = getPageScreenAnnotationsValidateBeforeCall(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 getPageSoundAnnotations * @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 getPageSoundAnnotationsCall(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/sound" + .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); @@ -17673,53 +17568,51 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; 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 { + private com.squareup.okhttp.Call getPageSoundAnnotationsValidateBeforeCall(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 getPageSoundAnnotations(Async)"); + } + + // verify the required parameter 'pageNumber' is set + if (pageNumber == null) { + throw new ApiException("Missing the required parameter 'pageNumber' when calling getPageSoundAnnotations(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 = getPageSoundAnnotationsCall(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 sound 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 SoundAnnotationsResponse * @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 SoundAnnotationsResponse getPageSoundAnnotations(String name, Integer pageNumber, String storage, String folder) throws ApiException { try { - ApiResponse resp = getPdfInStorageToDocWithHttpInfo(name, addReturnToLineEnd, format, imageResolutionX, imageResolutionY, maxDistanceBetweenTextLines, mode, recognizeBullets, relativeHorizontalProximity, folder, storage); + ApiResponse resp = getPageSoundAnnotationsWithHttpInfo(name, pageNumber, storage, folder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = getPdfInStorageToDocWithHttpInfo(name, addReturnToLineEnd, format, imageResolutionX, imageResolutionY, maxDistanceBetweenTextLines, mode, recognizeBullets, relativeHorizontalProximity, folder, storage); + apiClient.requestToken(); + ApiResponse resp = getPageSoundAnnotationsWithHttpInfo(name, pageNumber, storage, folder); return resp.getData(); } throw ex; @@ -17727,47 +17620,33 @@ public File getPdfInStorageToDoc(String name, Boolean addReturnToLineEnd, String } /** - * Converts PDF document (located on storage) to DOC format and returns resulting file in response content + * Read document page sound 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 ApiResponse<File> + * @param folder The document folder. (optional) + * @return ApiResponse<SoundAnnotationsResponse> * @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(); + public ApiResponse getPageSoundAnnotationsWithHttpInfo(String name, Integer pageNumber, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = getPageSoundAnnotationsValidateBeforeCall(name, pageNumber, storage, folder, 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) + * Read document page sound annotations. (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 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 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 getPageSoundAnnotationsAsync(String name, Integer pageNumber, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -17788,44 +17667,43 @@ 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); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = getPageSoundAnnotationsValidateBeforeCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for getPdfInStorageToEpub + * Build call for getPageSquareAnnotations * @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 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 getPdfInStorageToEpubCall(String name, String contentRecognitionMode, 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}/convert/epub" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + 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 (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)); + 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); @@ -17848,7 +17726,1979 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @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 { + + // verify the required parameter 'name' is set + if (name == null) { + 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 getPageSquareAnnotations(Async)"); + } + + + com.squareup.okhttp.Call call = getPageSquareAnnotationsCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); + return call; + + } + + /** + * Read document page square 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 + * @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 { + try + { + ApiResponse resp = getPageSquareAnnotationsWithHttpInfo(name, pageNumber, storage, folder); + return resp.getData(); + } + catch (ApiException ex) + { + if (ex.getCode() == 401) + { + apiClient.requestToken(); + ApiResponse resp = getPageSquareAnnotationsWithHttpInfo(name, pageNumber, storage, folder); + return resp.getData(); + } + throw ex; + } + } + + /** + * Read document page square 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> + * @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(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Read document page square 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 getPageSquareAnnotationsAsync(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 = getPageSquareAnnotationsValidateBeforeCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for getPageSquigglyAnnotations + * @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 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/squiggly" + .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 (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[] { "JWT" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @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 { + + // verify the required parameter 'name' is set + if (name == null) { + 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 getPageSquigglyAnnotations(Async)"); + } + + + com.squareup.okhttp.Call call = getPageSquigglyAnnotationsCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); + return call; + + } + + /** + * 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 SquigglyAnnotationsResponse + * @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 { + try + { + ApiResponse resp = getPageSquigglyAnnotationsWithHttpInfo(name, pageNumber, storage, folder); + return resp.getData(); + } + catch (ApiException ex) + { + if (ex.getCode() == 401) + { + apiClient.requestToken(); + ApiResponse resp = getPageSquigglyAnnotationsWithHttpInfo(name, pageNumber, storage, folder); + return resp.getData(); + } + throw ex; + } + } + + /** + * 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<SquigglyAnnotationsResponse> + * @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(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Read document page squiggly 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 getPageSquigglyAnnotationsAsync(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 = getPageSquigglyAnnotationsValidateBeforeCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for getPageStampAnnotations + * @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 getPageStampAnnotationsCall(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/stamp" + .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 (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[] { "JWT" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call getPageStampAnnotationsValidateBeforeCall(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 getPageStampAnnotations(Async)"); + } + + // verify the required parameter 'pageNumber' is set + if (pageNumber == null) { + throw new ApiException("Missing the required parameter 'pageNumber' when calling getPageStampAnnotations(Async)"); + } + + + com.squareup.okhttp.Call call = getPageStampAnnotationsCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); + return call; + + } + + /** + * Read document page stamp 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 StampAnnotationsResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public StampAnnotationsResponse getPageStampAnnotations(String name, Integer pageNumber, String storage, String folder) throws ApiException { + try + { + ApiResponse resp = getPageStampAnnotationsWithHttpInfo(name, pageNumber, storage, folder); + return resp.getData(); + } + catch (ApiException ex) + { + if (ex.getCode() == 401) + { + apiClient.requestToken(); + ApiResponse resp = getPageStampAnnotationsWithHttpInfo(name, pageNumber, storage, folder); + return resp.getData(); + } + throw ex; + } + } + + /** + * Read document page stamp 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<StampAnnotationsResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse getPageStampAnnotationsWithHttpInfo(String name, Integer pageNumber, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = getPageStampAnnotationsValidateBeforeCall(name, pageNumber, storage, folder, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Read document page stamp 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 getPageStampAnnotationsAsync(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 = getPageStampAnnotationsValidateBeforeCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for getPageStamps + * @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 getPageStampsCall(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}/stamps" + .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 (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[] { "JWT" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call getPageStampsValidateBeforeCall(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 getPageStamps(Async)"); + } + + // verify the required parameter 'pageNumber' is set + if (pageNumber == null) { + throw new ApiException("Missing the required parameter 'pageNumber' when calling getPageStamps(Async)"); + } + + + com.squareup.okhttp.Call call = getPageStampsCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); + return call; + + } + + /** + * Read page document stamps. + * + * @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 StampsInfoResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public StampsInfoResponse getPageStamps(String name, Integer pageNumber, String storage, String folder) throws ApiException { + try + { + ApiResponse resp = getPageStampsWithHttpInfo(name, pageNumber, storage, folder); + return resp.getData(); + } + catch (ApiException ex) + { + if (ex.getCode() == 401) + { + apiClient.requestToken(); + ApiResponse resp = getPageStampsWithHttpInfo(name, pageNumber, storage, folder); + return resp.getData(); + } + throw ex; + } + } + + /** + * Read page document stamps. + * + * @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<StampsInfoResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse getPageStampsWithHttpInfo(String name, Integer pageNumber, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = getPageStampsValidateBeforeCall(name, pageNumber, storage, folder, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Read page document stamps. (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 getPageStampsAsync(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 = getPageStampsValidateBeforeCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for getPageStrikeOutAnnotations + * @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 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/strikeout" + .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 (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[] { "JWT" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @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 { + + // verify the required parameter 'name' is set + if (name == null) { + 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 getPageStrikeOutAnnotations(Async)"); + } + + + com.squareup.okhttp.Call call = getPageStrikeOutAnnotationsCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); + return call; + + } + + /** + * 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 StrikeOutAnnotationsResponse + * @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 { + try + { + ApiResponse resp = getPageStrikeOutAnnotationsWithHttpInfo(name, pageNumber, storage, folder); + return resp.getData(); + } + catch (ApiException ex) + { + if (ex.getCode() == 401) + { + apiClient.requestToken(); + ApiResponse resp = getPageStrikeOutAnnotationsWithHttpInfo(name, pageNumber, storage, folder); + return resp.getData(); + } + throw ex; + } + } + + /** + * 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<StrikeOutAnnotationsResponse> + * @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(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Read document page StrikeOut 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 getPageStrikeOutAnnotationsAsync(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 = getPageStrikeOutAnnotationsValidateBeforeCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for getPageTables + * @param name (required) + * @param pageNumber (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 getPageTablesCall(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}/tables" + .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 (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[] { "JWT" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call getPageTablesValidateBeforeCall(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 getPageTables(Async)"); + } + + // verify the required parameter 'pageNumber' is set + if (pageNumber == null) { + throw new ApiException("Missing the required parameter 'pageNumber' when calling getPageTables(Async)"); + } + + + com.squareup.okhttp.Call call = getPageTablesCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); + return call; + + } + + /** + * Read document page tables. + * + * @param name (required) + * @param pageNumber (required) + * @param storage (optional) + * @param folder (optional) + * @return TablesRecognizedResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public TablesRecognizedResponse getPageTables(String name, Integer pageNumber, String storage, String folder) throws ApiException { + try + { + ApiResponse resp = getPageTablesWithHttpInfo(name, pageNumber, storage, folder); + return resp.getData(); + } + catch (ApiException ex) + { + if (ex.getCode() == 401) + { + apiClient.requestToken(); + ApiResponse resp = getPageTablesWithHttpInfo(name, pageNumber, storage, folder); + return resp.getData(); + } + throw ex; + } + } + + /** + * Read document page tables. + * + * @param name (required) + * @param pageNumber (required) + * @param storage (optional) + * @param folder (optional) + * @return ApiResponse<TablesRecognizedResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse getPageTablesWithHttpInfo(String name, Integer pageNumber, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = getPageTablesValidateBeforeCall(name, pageNumber, storage, folder, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Read document page tables. (asynchronously) + * + * @param name (required) + * @param pageNumber (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 getPageTablesAsync(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 = getPageTablesValidateBeforeCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for getPageText + * @param name The document name. (required) + * @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, default to true) + * @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 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/{pageNumber}/text" + .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("csv", "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(); + + 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[] { "JWT" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @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 { + + // verify the required parameter 'name' is set + if (name == null) { + 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 = getPageTextCall(name, pageNumber, LLX, LLY, URX, URY, format, regex, splitRects, folder, storage, progressListener, progressRequestListener); + return call; + + } + + /** + * Read page text items. + * + * @param name The document name. (required) + * @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, default to true) + * @param folder The document folder. (optional) + * @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 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 = getPageTextWithHttpInfo(name, pageNumber, LLX, LLY, URX, URY, format, regex, splitRects, folder, storage); + return resp.getData(); + } + catch (ApiException ex) + { + if (ex.getCode() == 401) + { + apiClient.requestToken(); + ApiResponse resp = getPageTextWithHttpInfo(name, pageNumber, LLX, LLY, URX, URY, format, regex, splitRects, folder, storage); + return resp.getData(); + } + throw ex; + } + } + + /** + * Read page text items. + * + * @param name The document name. (required) + * @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, default to true) + * @param folder The document folder. (optional) + * @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 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 page text items. (asynchronously) + * + * @param name The document name. (required) + * @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, default to true) + * @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 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; + + 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 = 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 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 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/{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 (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[] { "JWT" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @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 { + + // 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 = getPageTextAnnotationsCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); + return call; + + } + + /** + * Read document page 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 TextAnnotationsResponse + * @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 { + try + { + ApiResponse resp = getPageTextAnnotationsWithHttpInfo(name, pageNumber, storage, folder); + return resp.getData(); + } + catch (ApiException ex) + { + if (ex.getCode() == 401) + { + apiClient.requestToken(); + ApiResponse resp = getPageTextAnnotationsWithHttpInfo(name, pageNumber, storage, folder); + return resp.getData(); + } + throw ex; + } + } + + /** + * Read document page 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<TextAnnotationsResponse> + * @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(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Read document page text 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 getPageTextAnnotationsAsync(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 = getPageTextAnnotationsValidateBeforeCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for getPageUnderlineAnnotations + * @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 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}/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 (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[] { "JWT" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @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 { + + // verify the required parameter 'name' is set + if (name == null) { + 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 = getPageUnderlineAnnotationsCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); + return call; + + } + + /** + * 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 UnderlineAnnotationsResponse + * @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 { + try + { + ApiResponse resp = getPageUnderlineAnnotationsWithHttpInfo(name, pageNumber, storage, folder); + return resp.getData(); + } + catch (ApiException ex) + { + if (ex.getCode() == 401) + { + apiClient.requestToken(); + 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[] { "JWT" }; + 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.requestToken(); + 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[] { "JWT" }; + 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.requestToken(); + 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[] { "JWT" }; + 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); + return resp.getData(); + } + catch (ApiException ex) + { + if (ex.getCode() == 401) + { + apiClient.requestToken(); + 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[] { "JWT" }; return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @@ -17857,37 +19707,1704 @@ private com.squareup.okhttp.Call getPdfInStorageToEpubValidateBeforeCall(String // 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 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.requestToken(); + 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("csv", "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[] { "JWT" }; + 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.requestToken(); + 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; + } + } + + /** + * 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 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); + 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) + * + * @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 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 { + + 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[] { "JWT" }; + 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.requestToken(); + 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; + + 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 = getPdfInStorageToLaTeXValidateBeforeCall(name, pagesCount, folder, storage, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for getPdfInStorageToMobiXml + * @param name The document name. (required) + * @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 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/mobixml" + .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.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)); + + 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[] { "JWT" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + 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 getPdfInStorageToMobiXml(Async)"); + } + + + com.squareup.okhttp.Call call = getPdfInStorageToMobiXmlCall(name, folder, storage, progressListener, progressRequestListener); + return call; + + } + + /** + * Converts PDF document (located on storage) to MOBIXML format and returns resulting file in response content + * + * @param name The document name. (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 getPdfInStorageToMobiXml(String name, String folder, String storage) throws ApiException { + try + { + ApiResponse resp = getPdfInStorageToMobiXmlWithHttpInfo(name, folder, storage); + return resp.getData(); + } + catch (ApiException ex) + { + if (ex.getCode() == 401) + { + apiClient.requestToken(); + ApiResponse resp = getPdfInStorageToMobiXmlWithHttpInfo(name, folder, storage); + return resp.getData(); + } + throw ex; + } + } + + /** + * Converts PDF document (located on storage) to MOBIXML format and returns resulting file in response content + * + * @param name The document name. (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 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 MOBIXML format and returns resulting file in response content (asynchronously) + * + * @param name The document name. (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 getPdfInStorageToMobiXmlAsync(String name, 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 = getPdfInStorageToMobiXmlValidateBeforeCall(name, folder, storage, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for getPdfInStorageToPdfA + * @param name The document name. (required) + * @param type Type of PdfA format. (required) + * @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 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/pdfa" + .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (type != null) + localVarQueryParams.addAll(apiClient.parameterToPair("type", type)); + 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[] { "JWT" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @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 { + + // 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)"); + } + + + com.squareup.okhttp.Call call = getPdfInStorageToPdfACall(name, type, folder, storage, progressListener, progressRequestListener); + return call; + + } + + /** + * Converts PDF document (located on storage) to PdfA format and returns resulting file in response content + * + * @param name The document name. (required) + * @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 getPdfInStorageToPdfA(String name, String type, String folder, String storage) throws ApiException { + try + { + ApiResponse resp = getPdfInStorageToPdfAWithHttpInfo(name, type, folder, storage); + return resp.getData(); + } + catch (ApiException ex) + { + if (ex.getCode() == 401) + { + apiClient.requestToken(); + ApiResponse resp = getPdfInStorageToPdfAWithHttpInfo(name, type, folder, storage); + return resp.getData(); + } + throw ex; + } + } + + /** + * Converts PDF document (located on storage) to PdfA format and returns resulting file in response content + * + * @param name The document name. (required) + * @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 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 PdfA format and returns resulting file in response content (asynchronously) + * + * @param name The document name. (required) + * @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 getPdfInStorageToPdfAAsync(String name, String type, 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 = getPdfInStorageToPdfAValidateBeforeCall(name, type, folder, storage, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for getPdfInStorageToPptx + * @param name The document name. (required) + * @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 + * @param progressRequestListener Progress request listener + * @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 { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/pdf/{name}/convert/pptx" + .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 (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[] { "JWT" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @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 { + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling getPdfInStorageToPptx(Async)"); + } + + + com.squareup.okhttp.Call call = getPdfInStorageToPptxCall(name, separateImages, slidesAsImages, folder, storage, progressListener, progressRequestListener); + return call; + + } + + /** + * Converts PDF document (located on storage) to PPTX 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 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 { + try + { + ApiResponse resp = getPdfInStorageToPptxWithHttpInfo(name, separateImages, slidesAsImages, folder, storage); + return resp.getData(); + } + catch (ApiException ex) + { + if (ex.getCode() == 401) + { + apiClient.requestToken(); + ApiResponse resp = getPdfInStorageToPptxWithHttpInfo(name, separateImages, slidesAsImages, folder, storage); + return resp.getData(); + } + throw ex; + } + } + + /** + * Converts PDF document (located on storage) to PPTX 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 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); + 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) + * + * @param name The document name. (required) + * @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 getPdfInStorageToPptxAsync(String name, Boolean separateImages, Boolean slidesAsImages, 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 = getPdfInStorageToPptxValidateBeforeCall(name, separateImages, slidesAsImages, folder, storage, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * 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 + * @param progressRequestListener Progress request listener + * @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 { + Object localVarPostBody = null; + + // create path and map variables + 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) + 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[] { "JWT" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @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 { + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling getPdfInStorageToSvg(Async)"); + } + + + com.squareup.okhttp.Call call = getPdfInStorageToSvgCall(name, compressOutputToZipArchive, folder, storage, progressListener, progressRequestListener); + return call; + + } + + /** + * 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 getPdfInStorageToSvg(String name, Boolean compressOutputToZipArchive, String folder, String storage) throws ApiException { + try + { + ApiResponse resp = getPdfInStorageToSvgWithHttpInfo(name, compressOutputToZipArchive, folder, storage); + return resp.getData(); + } + catch (ApiException ex) + { + if (ex.getCode() == 401) + { + apiClient.requestToken(); + ApiResponse resp = getPdfInStorageToSvgWithHttpInfo(name, compressOutputToZipArchive, folder, storage); + return resp.getData(); + } + throw ex; + } + } + + /** + * 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 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 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 getPdfInStorageToSvgAsync(String name, Boolean compressOutputToZipArchive, 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 = getPdfInStorageToSvgValidateBeforeCall(name, compressOutputToZipArchive, folder, storage, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for getPdfInStorageToTiff + * @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 + * @param progressRequestListener Progress request listener + * @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 { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/pdf/{name}/convert/tiff" + .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) + 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[] { "JWT" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @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 { + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling getPdfInStorageToTiff(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); + return call; + + } + + /** + * Converts PDF document (located on storage) to TIFF 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 { + try + { + 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) + { + if (ex.getCode() == 401) + { + apiClient.requestToken(); + 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; + } + } + + /** + * Converts PDF document (located on storage) to TIFF 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); + 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) + * + * @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 { + + 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 = 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 getPdfInStorageToXls + * @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 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 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/xls" + .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.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)); + + 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[] { "JWT" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @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 { + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling getPdfInStorageToXls(Async)"); + } + + + com.squareup.okhttp.Call call = getPdfInStorageToXlsCall(name, insertBlankColumnAtFirst, minimizeTheNumberOfWorksheets, scaleFactor, uniformWorksheets, folder, storage, progressListener, progressRequestListener); + return call; + + } + + /** + * Converts PDF document (located on storage) to XLS format and returns resulting file in response content + * + * @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 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 getPdfInStorageToXls(String name, Boolean insertBlankColumnAtFirst, Boolean minimizeTheNumberOfWorksheets, Double scaleFactor, Boolean uniformWorksheets, String folder, String storage) throws ApiException { + try + { + ApiResponse resp = getPdfInStorageToXlsWithHttpInfo(name, insertBlankColumnAtFirst, minimizeTheNumberOfWorksheets, scaleFactor, uniformWorksheets, folder, storage); + return resp.getData(); + } + catch (ApiException ex) + { + if (ex.getCode() == 401) + { + apiClient.requestToken(); + ApiResponse resp = getPdfInStorageToXlsWithHttpInfo(name, insertBlankColumnAtFirst, minimizeTheNumberOfWorksheets, scaleFactor, uniformWorksheets, folder, storage); + return resp.getData(); + } + throw ex; + } + } + + /** + * Converts PDF document (located on storage) to XLS format and returns resulting file in response content + * + * @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 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 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 XLS format and returns resulting file in response content (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 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 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; + + 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 = 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 getPdfInStorageToXlsx + * @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 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 getPdfInStorageToXlsxCall(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/xlsx" + .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.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)); + + 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[] { "JWT" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call getPdfInStorageToXlsxValidateBeforeCall(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 getPdfInStorageToXlsx(Async)"); } - com.squareup.okhttp.Call call = getPdfInStorageToEpubCall(name, contentRecognitionMode, folder, storage, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getPdfInStorageToXlsxCall(name, insertBlankColumnAtFirst, minimizeTheNumberOfWorksheets, scaleFactor, uniformWorksheets, 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 XLSX 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 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 getPdfInStorageToEpub(String name, String contentRecognitionMode, String folder, String storage) throws ApiException { + public File getPdfInStorageToXlsx(String name, Boolean insertBlankColumnAtFirst, Boolean minimizeTheNumberOfWorksheets, Double scaleFactor, Boolean uniformWorksheets, String folder, String storage) throws ApiException { try { - ApiResponse resp = getPdfInStorageToEpubWithHttpInfo(name, contentRecognitionMode, folder, storage); + ApiResponse resp = getPdfInStorageToXlsxWithHttpInfo(name, insertBlankColumnAtFirst, minimizeTheNumberOfWorksheets, scaleFactor, uniformWorksheets, folder, storage); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = getPdfInStorageToEpubWithHttpInfo(name, contentRecognitionMode, folder, storage); + apiClient.requestToken(); + ApiResponse resp = getPdfInStorageToXlsxWithHttpInfo(name, insertBlankColumnAtFirst, minimizeTheNumberOfWorksheets, scaleFactor, uniformWorksheets, folder, storage); return resp.getData(); } throw ex; @@ -17895,33 +21412,39 @@ 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 XLSX 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 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 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 getPdfInStorageToXlsxWithHttpInfo(String name, Boolean insertBlankColumnAtFirst, Boolean minimizeTheNumberOfWorksheets, Double scaleFactor, Boolean uniformWorksheets, String folder, String storage) throws ApiException { + com.squareup.okhttp.Call call = getPdfInStorageToXlsxValidateBeforeCall(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 EPUB format and returns resulting file in response content (asynchronously) + * Converts PDF document (located on storage) to XLSX 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 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 getPdfInStorageToEpubAsync(String name, String contentRecognitionMode, String folder, String storage, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call getPdfInStorageToXlsxAsync(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; @@ -17942,42 +21465,14 @@ 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 = getPdfInStorageToXlsxValidateBeforeCall(name, insertBlankColumnAtFirst, minimizeTheNumberOfWorksheets, scaleFactor, uniformWorksheets, folder, storage, progressListener, progressRequestListener); Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for getPdfInStorageToHtml + * Build call for getPdfInStorageToXml * @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 @@ -17985,71 +21480,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 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 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/html" + String localVarPath = "/pdf/{name}/convert/xml" .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) @@ -18083,73 +21522,45 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; 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 { + 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 getPdfInStorageToHtml(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling getPdfInStorageToXml(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 = getPdfInStorageToXmlCall(name, 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 XML 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 { + public File getPdfInStorageToXml(String name, 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 = getPdfInStorageToXmlWithHttpInfo(name, 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); + apiClient.requestToken(); + ApiResponse resp = getPdfInStorageToXmlWithHttpInfo(name, folder, storage); return resp.getData(); } throw ex; @@ -18157,87 +21568,31 @@ 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 XML 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 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 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 Html 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 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 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 getPdfInStorageToXmlAsync(String name, String folder, String storage, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -18258,15 +21613,14 @@ 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 = getPdfInStorageToXmlValidateBeforeCall(name, folder, storage, progressListener, progressRequestListener); Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for getPdfInStorageToLaTeX + * Build call for getPdfInStorageToXps * @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 @@ -18274,17 +21628,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 getPdfInStorageToLaTeXCall(String name, Integer pagesCount, 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/latex" + String localVarPath = "/pdf/{name}/convert/xps" .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) @@ -18318,46 +21670,201 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + 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 getPdfInStorageToXps(Async)"); + } + + + com.squareup.okhttp.Call call = getPdfInStorageToXpsCall(name, folder, storage, progressListener, progressRequestListener); + return call; + + } + + /** + * Converts PDF document (located on storage) to XPS format and returns resulting file in response content + * + * @param name The document name. (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 getPdfInStorageToXps(String name, String folder, String storage) throws ApiException { + try + { + ApiResponse resp = getPdfInStorageToXpsWithHttpInfo(name, folder, storage); + return resp.getData(); + } + catch (ApiException ex) + { + if (ex.getCode() == 401) + { + apiClient.requestToken(); + ApiResponse resp = getPdfInStorageToXpsWithHttpInfo(name, folder, storage); + return resp.getData(); + } + throw ex; + } + } + + /** + * Converts PDF document (located on storage) to XPS format and returns resulting file in response content + * + * @param name The document name. (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 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 XPS format and returns resulting file in response content (asynchronously) + * + * @param name The document name. (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 getPdfInStorageToXpsAsync(String name, 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 = getPdfInStorageToXpsValidateBeforeCall(name, folder, storage, 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) + * @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 { + 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())); + + 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[] { "JWT" }; 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 { + 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 getPdfInStorageToLaTeX(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 = getPdfInStorageToLaTeXCall(name, pagesCount, 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 LaTeX format and returns resulting file in response content + * Read document page polyline annotation by ID. * * @param name The document name. (required) - * @param pagesCount Pages count. (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 getPdfInStorageToLaTeX(String name, Integer pagesCount, String folder, String storage) throws ApiException { + public PolyLineAnnotationResponse getPolyLineAnnotation(String name, String annotationId, String storage, String folder) throws ApiException { try { - ApiResponse resp = getPdfInStorageToLaTeXWithHttpInfo(name, pagesCount, folder, storage); + ApiResponse resp = getPolyLineAnnotationWithHttpInfo(name, annotationId, storage, folder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = getPdfInStorageToLaTeXWithHttpInfo(name, pagesCount, folder, storage); + apiClient.requestToken(); + ApiResponse resp = getPolyLineAnnotationWithHttpInfo(name, annotationId, storage, folder); return resp.getData(); } throw ex; @@ -18365,33 +21872,33 @@ 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 + * Read document page polyline annotation by ID. * * @param name The document name. (required) - * @param pagesCount Pages count. (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 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(); + 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 LaTeX format and returns resulting file in response content (asynchronously) + * Read document page polyline annotation by ID. (asynchronously) * * @param name The document name. (required) - * @param pagesCount Pages count. (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 getPdfInStorageToLaTeXAsync(String name, Integer pagesCount, 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; @@ -18412,41 +21919,43 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = getPdfInStorageToLaTeXValidateBeforeCall(name, pagesCount, 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 getPdfInStorageToMobiXml + * 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 getPdfInStorageToMobiXmlCall(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/mobixml" - .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); @@ -18469,45 +21978,51 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @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 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 getPdfInStorageToMobiXml(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 = getPdfInStorageToMobiXmlCall(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 MOBIXML 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 getPdfInStorageToMobiXml(String name, String folder, String storage) throws ApiException { + public PolygonAnnotationResponse getPolygonAnnotation(String name, String annotationId, String storage, String folder) throws ApiException { try { - ApiResponse resp = getPdfInStorageToMobiXmlWithHttpInfo(name, folder, storage); + ApiResponse resp = getPolygonAnnotationWithHttpInfo(name, annotationId, storage, folder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = getPdfInStorageToMobiXmlWithHttpInfo(name, folder, storage); + apiClient.requestToken(); + ApiResponse resp = getPolygonAnnotationWithHttpInfo(name, annotationId, storage, folder); return resp.getData(); } throw ex; @@ -18515,31 +22030,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 + * 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 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(); + 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 MOBIXML 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 getPdfInStorageToMobiXmlAsync(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; @@ -18560,44 +22077,43 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = getPdfInStorageToMobiXmlValidateBeforeCall(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 getPdfInStorageToPdfA + * Build call for getPopupAnnotation * @param name The document name. (required) - * @param type Type of PdfA format. (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 getPdfInStorageToPdfACall(String name, String type, 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/pdfa" - .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 (type != null) - localVarQueryParams.addAll(apiClient.parameterToPair("type", type)); - 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); @@ -18620,51 +22136,51 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @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 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 getPdfInStorageToPdfA(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling getPopupAnnotation(Async)"); } - // verify the required parameter 'type' is set - if (type == null) { - throw new ApiException("Missing the required parameter 'type' when calling getPdfInStorageToPdfA(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 = getPdfInStorageToPdfACall(name, type, 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 PdfA format and returns resulting file in response content + * Read document page popup annotation by ID. * * @param name The document name. (required) - * @param type Type of PdfA format. (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 getPdfInStorageToPdfA(String name, String type, String folder, String storage) throws ApiException { + public PopupAnnotationResponse getPopupAnnotation(String name, String annotationId, String storage, String folder) throws ApiException { try { - ApiResponse resp = getPdfInStorageToPdfAWithHttpInfo(name, type, folder, storage); + ApiResponse resp = getPopupAnnotationWithHttpInfo(name, annotationId, storage, folder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = getPdfInStorageToPdfAWithHttpInfo(name, type, folder, storage); + apiClient.requestToken(); + ApiResponse resp = getPopupAnnotationWithHttpInfo(name, annotationId, storage, folder); return resp.getData(); } throw ex; @@ -18672,33 +22188,33 @@ 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 + * Read document page popup annotation by ID. * * @param name The document name. (required) - * @param type Type of PdfA format. (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 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(); + 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 PdfA format and returns resulting file in response content (asynchronously) + * Read document page popup annotation by ID. (asynchronously) * * @param name The document name. (required) - * @param type Type of PdfA format. (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 getPdfInStorageToPdfAAsync(String name, String type, 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; @@ -18719,38 +22235,30 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = getPdfInStorageToPdfAValidateBeforeCall(name, type, 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 getPdfInStorageToPptx - * @param name The document name. (required) - * @param separateImages Separate images. (optional) - * @param slidesAsImages Slides as images. (optional) - * @param folder The document folder. (optional) + * Build call for getPsInStorageToPdf + * @param srcPath Full source filename (ex. /folder1/folder2/template.ps) (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 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 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}/convert/pptx" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + String localVarPath = "/pdf/create/ps"; 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 (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)); @@ -18782,47 +22290,44 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @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 getPsInStorageToPdfValidateBeforeCall(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 getPdfInStorageToPptx(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 = getPdfInStorageToPptxCall(name, separateImages, slidesAsImages, folder, storage, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getPsInStorageToPdfCall(srcPath, storage, progressListener, progressRequestListener); return call; } /** - * Converts PDF document (located on storage) to PPTX format and returns resulting file in response content + * Convert PS file (located on storage) to PDF format and return resulting file in response. * - * @param name The document name. (required) - * @param separateImages Separate images. (optional) - * @param slidesAsImages Slides as images. (optional) - * @param folder The document folder. (optional) + * @param srcPath Full source filename (ex. /folder1/folder2/template.ps) (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 getPdfInStorageToPptx(String name, Boolean separateImages, Boolean slidesAsImages, String folder, String storage) throws ApiException { + public File getPsInStorageToPdf(String srcPath, String storage) throws ApiException { try { - ApiResponse resp = getPdfInStorageToPptxWithHttpInfo(name, separateImages, slidesAsImages, folder, storage); + ApiResponse resp = getPsInStorageToPdfWithHttpInfo(srcPath, storage); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = getPdfInStorageToPptxWithHttpInfo(name, separateImages, slidesAsImages, folder, storage); + apiClient.requestToken(); + ApiResponse resp = getPsInStorageToPdfWithHttpInfo(srcPath, storage); return resp.getData(); } throw ex; @@ -18830,35 +22335,29 @@ 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 + * Convert PS file (located on storage) to PDF format and return resulting file in response. * - * @param name The document name. (required) - * @param separateImages Separate images. (optional) - * @param slidesAsImages Slides as images. (optional) - * @param folder The document folder. (optional) + * @param srcPath Full source filename (ex. /folder1/folder2/template.ps) (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 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 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); } /** - * Converts PDF document (located on storage) to PPTX format and returns resulting file in response content (asynchronously) + * Convert PS file (located on storage) to PDF format and return resulting file in response. (asynchronously) * - * @param name The document name. (required) - * @param separateImages Separate images. (optional) - * @param slidesAsImages Slides as images. (optional) - * @param folder The document folder. (optional) + * @param srcPath Full source filename (ex. /folder1/folder2/template.ps) (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 getPdfInStorageToPptxAsync(String name, Boolean separateImages, Boolean slidesAsImages, String folder, String storage, 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; @@ -18879,44 +22378,43 @@ 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 = getPsInStorageToPdfValidateBeforeCall(srcPath, storage, progressListener, progressRequestListener); Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for getPdfInStorageToSvg + * Build call for getRedactionAnnotation * @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 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 getPdfInStorageToSvgCall(String name, Boolean compressOutputToZipArchive, String folder, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call getRedactionAnnotationCall(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/svg" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + String localVarPath = "/pdf/{name}/annotations/redaction/{annotationId}" + .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) + .replaceAll("\\{" + "annotationId" + "\\}", apiClient.escapeString(annotationId.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) 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); @@ -18939,46 +22437,51 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @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 getRedactionAnnotationValidateBeforeCall(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 getPdfInStorageToSvg(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling getRedactionAnnotation(Async)"); + } + + // verify the required parameter 'annotationId' is set + if (annotationId == null) { + throw new ApiException("Missing the required parameter 'annotationId' when calling getRedactionAnnotation(Async)"); } - com.squareup.okhttp.Call call = getPdfInStorageToSvgCall(name, compressOutputToZipArchive, folder, storage, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getRedactionAnnotationCall(name, annotationId, storage, folder, progressListener, progressRequestListener); return call; } /** - * Converts PDF document (located on storage) to SVG format and returns resulting file in response content + * Read document page redaction annotation by ID. * * @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 annotationId The annotation ID. (required) * @param storage The document storage. (optional) - * @return File + * @param folder The document folder. (optional) + * @return RedactionAnnotationResponse * @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 RedactionAnnotationResponse getRedactionAnnotation(String name, String annotationId, String storage, String folder) throws ApiException { try { - ApiResponse resp = getPdfInStorageToSvgWithHttpInfo(name, compressOutputToZipArchive, folder, storage); + ApiResponse resp = getRedactionAnnotationWithHttpInfo(name, annotationId, storage, folder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = getPdfInStorageToSvgWithHttpInfo(name, compressOutputToZipArchive, folder, storage); + apiClient.requestToken(); + ApiResponse resp = getRedactionAnnotationWithHttpInfo(name, annotationId, storage, folder); return resp.getData(); } throw ex; @@ -18986,33 +22489,33 @@ public File getPdfInStorageToSvg(String name, Boolean compressOutputToZipArchive } /** - * Converts PDF document (located on storage) to SVG format and returns resulting file in response content + * Read document page redaction annotation by ID. * * @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 annotationId The annotation ID. (required) * @param storage The document storage. (optional) - * @return ApiResponse<File> + * @param folder The document folder. (optional) + * @return ApiResponse<RedactionAnnotationResponse> * @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); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse getRedactionAnnotationWithHttpInfo(String name, String annotationId, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = getRedactionAnnotationValidateBeforeCall(name, annotationId, storage, folder, 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) + * Read document page redaction annotation by ID. (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 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 getPdfInStorageToSvgAsync(String name, Boolean compressOutputToZipArchive, String folder, String storage, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call getRedactionAnnotationAsync(String name, String annotationId, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -19033,86 +22536,43 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = getPdfInStorageToSvgValidateBeforeCall(name, compressOutputToZipArchive, folder, storage, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = getRedactionAnnotationValidateBeforeCall(name, annotationId, storage, folder, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for getPdfInStorageToTiff + * Build call for getScreenAnnotation * @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 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 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 getScreenAnnotationCall(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/tiff" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + String localVarPath = "/pdf/{name}/annotations/screen/{annotationId}" + .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) + .replaceAll("\\{" + "annotationId" + "\\}", apiClient.escapeString(annotationId.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) 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); @@ -19135,60 +22595,51 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @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 getScreenAnnotationValidateBeforeCall(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 getPdfInStorageToTiff(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling getScreenAnnotation(Async)"); + } + + // verify the required parameter 'annotationId' is set + if (annotationId == null) { + throw new ApiException("Missing the required parameter 'annotationId' when calling getScreenAnnotation(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 = getScreenAnnotationCall(name, annotationId, storage, folder, progressListener, progressRequestListener); return call; } /** - * Converts PDF document (located on storage) to TIFF format and returns resulting file in response content + * Read document page screen annotation by ID. * * @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 annotationId The annotation ID. (required) * @param storage The document storage. (optional) - * @return File + * @param folder The document folder. (optional) + * @return ScreenAnnotationResponse * @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 ScreenAnnotationResponse getScreenAnnotation(String name, String annotationId, String storage, String folder) 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 = getScreenAnnotationWithHttpInfo(name, annotationId, storage, folder); return resp.getData(); } catch (ApiException ex) { 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); + apiClient.requestToken(); + ApiResponse resp = getScreenAnnotationWithHttpInfo(name, annotationId, storage, folder); return resp.getData(); } throw ex; @@ -19196,61 +22647,33 @@ 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 + * Read document page screen annotation by ID. * * @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 annotationId The annotation ID. (required) * @param storage The document storage. (optional) - * @return ApiResponse<File> + * @param folder The document folder. (optional) + * @return ApiResponse<ScreenAnnotationResponse> * @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); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse getScreenAnnotationWithHttpInfo(String name, String annotationId, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = getScreenAnnotationValidateBeforeCall(name, annotationId, storage, folder, 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) + * Read document page screen annotation by ID. (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 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 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 getScreenAnnotationAsync(String name, String annotationId, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -19271,46 +22694,36 @@ 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); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = getScreenAnnotationValidateBeforeCall(name, annotationId, storage, folder, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for getPdfInStorageToXls + * Build call for getScreenAnnotationData * @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 getScreenAnnotationDataCall(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/screen/{annotationId}/data" + .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(); @@ -19340,49 +22753,51 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @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 getScreenAnnotationDataValidateBeforeCall(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 getScreenAnnotationData(Async)"); + } + + // verify the required parameter 'annotationId' is set + if (annotationId == null) { + throw new ApiException("Missing the required parameter 'annotationId' when calling getScreenAnnotationData(Async)"); } - com.squareup.okhttp.Call call = getPdfInStorageToXlsCall(name, insertBlankColumnAtFirst, minimizeTheNumberOfWorksheets, scaleFactor, uniformWorksheets, folder, storage, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getScreenAnnotationDataCall(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 screen 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) + * @param folder The document folder. (optional) * @return File * @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 File getScreenAnnotationData(String name, String annotationId, String storage, String folder) throws ApiException { try { - ApiResponse resp = getPdfInStorageToXlsWithHttpInfo(name, insertBlankColumnAtFirst, minimizeTheNumberOfWorksheets, scaleFactor, uniformWorksheets, folder, storage); + ApiResponse resp = getScreenAnnotationDataWithHttpInfo(name, annotationId, storage, folder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = getPdfInStorageToXlsWithHttpInfo(name, insertBlankColumnAtFirst, minimizeTheNumberOfWorksheets, scaleFactor, uniformWorksheets, folder, storage); + apiClient.requestToken(); + ApiResponse resp = getScreenAnnotationDataWithHttpInfo(name, annotationId, storage, folder); return resp.getData(); } throw ex; @@ -19390,39 +22805,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 screen 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) + * @param folder The document folder. (optional) * @return ApiResponse<File> * @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); + public ApiResponse getScreenAnnotationDataWithHttpInfo(String name, String annotationId, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = getScreenAnnotationDataValidateBeforeCall(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 screen 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 getScreenAnnotationDataAsync(String name, String annotationId, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -19443,53 +22852,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); + com.squareup.okhttp.Call call = getScreenAnnotationDataValidateBeforeCall(name, annotationId, storage, folder, progressListener, progressRequestListener); Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for getPdfInStorageToXlsx + * Build call for getSoundAnnotation * @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 getPdfInStorageToXlsxCall(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 getSoundAnnotationCall(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/xlsx" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + String localVarPath = "/pdf/{name}/annotations/sound/{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); @@ -19512,49 +22911,51 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getPdfInStorageToXlsxValidateBeforeCall(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 getSoundAnnotationValidateBeforeCall(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 getPdfInStorageToXlsx(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling getSoundAnnotation(Async)"); + } + + // verify the required parameter 'annotationId' is set + if (annotationId == null) { + throw new ApiException("Missing the required parameter 'annotationId' when calling getSoundAnnotation(Async)"); } - com.squareup.okhttp.Call call = getPdfInStorageToXlsxCall(name, insertBlankColumnAtFirst, minimizeTheNumberOfWorksheets, scaleFactor, uniformWorksheets, folder, storage, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getSoundAnnotationCall(name, annotationId, storage, folder, progressListener, progressRequestListener); return call; } /** - * Converts PDF document (located on storage) to XLSX format and returns resulting file in response content + * Read document page sound 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 SoundAnnotationResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public File getPdfInStorageToXlsx(String name, Boolean insertBlankColumnAtFirst, Boolean minimizeTheNumberOfWorksheets, Double scaleFactor, Boolean uniformWorksheets, String folder, String storage) throws ApiException { + public SoundAnnotationResponse getSoundAnnotation(String name, String annotationId, String storage, String folder) throws ApiException { try { - ApiResponse resp = getPdfInStorageToXlsxWithHttpInfo(name, insertBlankColumnAtFirst, minimizeTheNumberOfWorksheets, scaleFactor, uniformWorksheets, folder, storage); + ApiResponse resp = getSoundAnnotationWithHttpInfo(name, annotationId, storage, folder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = getPdfInStorageToXlsxWithHttpInfo(name, insertBlankColumnAtFirst, minimizeTheNumberOfWorksheets, scaleFactor, uniformWorksheets, folder, storage); + apiClient.requestToken(); + ApiResponse resp = getSoundAnnotationWithHttpInfo(name, annotationId, storage, folder); return resp.getData(); } throw ex; @@ -19562,39 +22963,33 @@ public File getPdfInStorageToXlsx(String name, Boolean insertBlankColumnAtFirst, } /** - * Converts PDF document (located on storage) to XLSX format and returns resulting file in response content + * Read document page sound 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<SoundAnnotationResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse getPdfInStorageToXlsxWithHttpInfo(String name, Boolean insertBlankColumnAtFirst, Boolean minimizeTheNumberOfWorksheets, Double scaleFactor, Boolean uniformWorksheets, String folder, String storage) throws ApiException { - com.squareup.okhttp.Call call = getPdfInStorageToXlsxValidateBeforeCall(name, insertBlankColumnAtFirst, minimizeTheNumberOfWorksheets, scaleFactor, uniformWorksheets, folder, storage, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse getSoundAnnotationWithHttpInfo(String name, String annotationId, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = getSoundAnnotationValidateBeforeCall(name, annotationId, storage, folder, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Converts PDF document (located on storage) to XLSX format and returns resulting file in response content (asynchronously) + * Read document page sound 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 getPdfInStorageToXlsxAsync(String name, Boolean insertBlankColumnAtFirst, Boolean minimizeTheNumberOfWorksheets, Double scaleFactor, Boolean uniformWorksheets, String folder, String storage, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call getSoundAnnotationAsync(String name, String annotationId, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -19615,34 +23010,36 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = getPdfInStorageToXlsxValidateBeforeCall(name, insertBlankColumnAtFirst, minimizeTheNumberOfWorksheets, scaleFactor, uniformWorksheets, folder, storage, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = getSoundAnnotationValidateBeforeCall(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 getSoundAnnotationData * @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 getSoundAnnotationDataCall(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/sound/{annotationId}/data" + .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(); @@ -19672,45 +23069,51 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @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 getSoundAnnotationDataValidateBeforeCall(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 getSoundAnnotationData(Async)"); + } + + // verify the required parameter 'annotationId' is set + if (annotationId == null) { + throw new ApiException("Missing the required parameter 'annotationId' when calling getSoundAnnotationData(Async)"); } - com.squareup.okhttp.Call call = getPdfInStorageToXmlCall(name, folder, storage, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getSoundAnnotationDataCall(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 sound 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) + * @param folder The document folder. (optional) * @return File * @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 File getSoundAnnotationData(String name, String annotationId, String storage, String folder) throws ApiException { try { - ApiResponse resp = getPdfInStorageToXmlWithHttpInfo(name, folder, storage); + ApiResponse resp = getSoundAnnotationDataWithHttpInfo(name, annotationId, storage, folder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = getPdfInStorageToXmlWithHttpInfo(name, folder, storage); + apiClient.requestToken(); + ApiResponse resp = getSoundAnnotationDataWithHttpInfo(name, annotationId, storage, folder); return resp.getData(); } throw ex; @@ -19718,31 +23121,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 sound 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) + * @param folder The document folder. (optional) * @return ApiResponse<File> * @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); + public ApiResponse getSoundAnnotationDataWithHttpInfo(String name, String annotationId, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = getSoundAnnotationDataValidateBeforeCall(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 sound 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 getSoundAnnotationDataAsync(String name, String annotationId, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -19763,41 +23168,43 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = getPdfInStorageToXmlValidateBeforeCall(name, folder, storage, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getSoundAnnotationDataValidateBeforeCall(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 getSquareAnnotation * @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 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}/convert/xps" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + String localVarPath = "/pdf/{name}/annotations/square/{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); @@ -19820,45 +23227,51 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @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 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 getPdfInStorageToXps(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 getSquareAnnotation(Async)"); } - com.squareup.okhttp.Call call = getPdfInStorageToXpsCall(name, folder, storage, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getSquareAnnotationCall(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 square 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 SquareAnnotationResponse * @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 SquareAnnotationResponse getSquareAnnotation(String name, String annotationId, String storage, String folder) throws ApiException { try { - ApiResponse resp = getPdfInStorageToXpsWithHttpInfo(name, folder, storage); + ApiResponse resp = getSquareAnnotationWithHttpInfo(name, annotationId, storage, folder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = getPdfInStorageToXpsWithHttpInfo(name, folder, storage); + apiClient.requestToken(); + ApiResponse resp = getSquareAnnotationWithHttpInfo(name, annotationId, storage, folder); return resp.getData(); } throw ex; @@ -19866,31 +23279,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 square 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<SquareAnnotationResponse> * @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 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); } /** - * Converts PDF document (located on storage) to XPS format and returns resulting file in response content (asynchronously) + * Read document page square 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 getSquareAnnotationAsync(String name, String annotationId, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -19911,13 +23326,13 @@ 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 = getSquareAnnotationValidateBeforeCall(name, annotationId, storage, folder, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for getPolyLineAnnotation + * Build call for getSquigglyAnnotation * @param name The document name. (required) * @param annotationId The annotation ID. (required) * @param storage The document storage. (optional) @@ -19927,11 +23342,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 getPolyLineAnnotationCall(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/polyline/{annotationId}" + String localVarPath = "/pdf/{name}/annotations/squiggly/{annotationId}" .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) .replaceAll("\\{" + "annotationId" + "\\}", apiClient.escapeString(annotationId.toString())); @@ -19970,51 +23385,51 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @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 { + 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 getPolyLineAnnotation(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 getPolyLineAnnotation(Async)"); + throw new ApiException("Missing the required parameter 'annotationId' when calling getSquigglyAnnotation(Async)"); } - com.squareup.okhttp.Call call = getPolyLineAnnotationCall(name, annotationId, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getSquigglyAnnotationCall(name, annotationId, storage, folder, progressListener, progressRequestListener); return call; } /** - * Read document page polyline 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 PolyLineAnnotationResponse + * @return SquigglyAnnotationResponse * @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 SquigglyAnnotationResponse getSquigglyAnnotation(String name, String annotationId, String storage, String folder) throws ApiException { try { - ApiResponse resp = getPolyLineAnnotationWithHttpInfo(name, annotationId, storage, folder); + ApiResponse resp = getSquigglyAnnotationWithHttpInfo(name, annotationId, storage, folder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = getPolyLineAnnotationWithHttpInfo(name, annotationId, storage, folder); + apiClient.requestToken(); + ApiResponse resp = getSquigglyAnnotationWithHttpInfo(name, annotationId, storage, folder); return resp.getData(); } throw ex; @@ -20022,23 +23437,23 @@ public PolyLineAnnotationResponse getPolyLineAnnotation(String name, String anno } /** - * Read document page polyline 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<PolyLineAnnotationResponse> + * @return ApiResponse<SquigglyAnnotationResponse> * @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 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 polyline annotation by ID. (asynchronously) + * Read document page squiggly annotation by ID. (asynchronously) * * @param name The document name. (required) * @param annotationId The annotation ID. (required) @@ -20048,7 +23463,7 @@ public ApiResponse getPolyLineAnnotationWithHttpInfo * @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 getSquigglyAnnotationAsync(String name, String annotationId, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -20069,13 +23484,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 = getSquigglyAnnotationValidateBeforeCall(name, annotationId, storage, folder, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for getPolygonAnnotation + * Build call for getStampAnnotation * @param name The document name. (required) * @param annotationId The annotation ID. (required) * @param storage The document storage. (optional) @@ -20085,11 +23500,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 getStampAnnotationCall(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/stamp/{annotationId}" .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) .replaceAll("\\{" + "annotationId" + "\\}", apiClient.escapeString(annotationId.toString())); @@ -20128,51 +23543,51 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @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 getStampAnnotationValidateBeforeCall(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 getStampAnnotation(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 getStampAnnotation(Async)"); } - com.squareup.okhttp.Call call = getPolygonAnnotationCall(name, annotationId, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getStampAnnotationCall(name, annotationId, storage, folder, progressListener, progressRequestListener); return call; } /** - * Read document page polygon annotation by ID. + * Read document page stamp 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 StampAnnotationResponse * @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 StampAnnotationResponse getStampAnnotation(String name, String annotationId, String storage, String folder) throws ApiException { try { - ApiResponse resp = getPolygonAnnotationWithHttpInfo(name, annotationId, storage, folder); + ApiResponse resp = getStampAnnotationWithHttpInfo(name, annotationId, storage, folder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = getPolygonAnnotationWithHttpInfo(name, annotationId, storage, folder); + apiClient.requestToken(); + ApiResponse resp = getStampAnnotationWithHttpInfo(name, annotationId, storage, folder); return resp.getData(); } throw ex; @@ -20180,23 +23595,23 @@ public PolygonAnnotationResponse getPolygonAnnotation(String name, String annota } /** - * Read document page polygon annotation by ID. + * Read document page stamp 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> + * @return ApiResponse<StampAnnotationResponse> * @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(); + public ApiResponse getStampAnnotationWithHttpInfo(String name, String annotationId, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = getStampAnnotationValidateBeforeCall(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 stamp annotation by ID. (asynchronously) * * @param name The document name. (required) * @param annotationId The annotation ID. (required) @@ -20206,7 +23621,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 getStampAnnotationAsync(String name, String annotationId, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -20227,13 +23642,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 = getStampAnnotationValidateBeforeCall(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 getStampAnnotationData * @param name The document name. (required) * @param annotationId The annotation ID. (required) * @param storage The document storage. (optional) @@ -20243,11 +23658,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 getStampAnnotationDataCall(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/stamp/{annotationId}/data" .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) .replaceAll("\\{" + "annotationId" + "\\}", apiClient.escapeString(annotationId.toString())); @@ -20286,51 +23701,51 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @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 getStampAnnotationDataValidateBeforeCall(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 getStampAnnotationData(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 getStampAnnotationData(Async)"); } - com.squareup.okhttp.Call call = getPopupAnnotationCall(name, annotationId, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getStampAnnotationDataCall(name, annotationId, storage, folder, progressListener, progressRequestListener); return call; } /** - * Read document page popup annotation by ID. + * Read document page stamp 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 File * @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 File getStampAnnotationData(String name, String annotationId, String storage, String folder) throws ApiException { try { - ApiResponse resp = getPopupAnnotationWithHttpInfo(name, annotationId, storage, folder); + ApiResponse resp = getStampAnnotationDataWithHttpInfo(name, annotationId, storage, folder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = getPopupAnnotationWithHttpInfo(name, annotationId, storage, folder); + apiClient.requestToken(); + ApiResponse resp = getStampAnnotationDataWithHttpInfo(name, annotationId, storage, folder); return resp.getData(); } throw ex; @@ -20338,23 +23753,23 @@ public PopupAnnotationResponse getPopupAnnotation(String name, String annotation } /** - * Read document page popup annotation by ID. + * Read document page stamp 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<File> * @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 getStampAnnotationDataWithHttpInfo(String name, String annotationId, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = getStampAnnotationDataValidateBeforeCall(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 stamp annotation by ID. (asynchronously) * * @param name The document name. (required) * @param annotationId The annotation ID. (required) @@ -20364,7 +23779,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 getStampAnnotationDataAsync(String name, String annotationId, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -20385,39 +23800,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 = getStampAnnotationDataValidateBeforeCall(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); @@ -20440,44 +23859,51 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @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) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = getPsInStorageToPdfWithHttpInfo(srcPath, storage); + apiClient.requestToken(); + ApiResponse resp = getStrikeOutAnnotationWithHttpInfo(name, annotationId, storage, folder); return resp.getData(); } throw ex; @@ -20485,29 +23911,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; @@ -20528,43 +23958,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 getRedactionAnnotation - * @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 getRedactionAnnotationCall(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/redaction/{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); @@ -20587,51 +24037,52 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getRedactionAnnotationValidateBeforeCall(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 getRedactionAnnotation(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 getRedactionAnnotation(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 = getRedactionAnnotationCall(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 redaction 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 RedactionAnnotationResponse + * @return File * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public RedactionAnnotationResponse getRedactionAnnotation(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 = getRedactionAnnotationWithHttpInfo(name, annotationId, storage, folder); + ApiResponse resp = getSvgInStorageToPdfWithHttpInfo(srcPath, adjustPageSize, height, width, isLandscape, marginLeft, marginBottom, marginRight, marginTop, storage); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = getRedactionAnnotationWithHttpInfo(name, annotationId, storage, folder); + apiClient.requestToken(); + ApiResponse resp = getSvgInStorageToPdfWithHttpInfo(srcPath, adjustPageSize, height, width, isLandscape, marginLeft, marginBottom, marginRight, marginTop, storage); return resp.getData(); } throw ex; @@ -20639,33 +24090,45 @@ public RedactionAnnotationResponse getRedactionAnnotation(String name, String an } /** - * Read document page redaction 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<RedactionAnnotationResponse> + * @return ApiResponse<File> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse getRedactionAnnotationWithHttpInfo(String name, String annotationId, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = getRedactionAnnotationValidateBeforeCall(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 redaction 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 getRedactionAnnotationAsync(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; @@ -20686,15 +24149,15 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = getRedactionAnnotationValidateBeforeCall(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 getScreenAnnotation + * Build call for getTable * @param name The document name. (required) - * @param annotationId The annotation ID. (required) + * @param tableId The table ID. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) * @param progressListener Progress listener @@ -20702,13 +24165,13 @@ 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 getScreenAnnotationCall(String name, String annotationId, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call getTableCall(String name, String tableId, 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/screen/{annotationId}" + String localVarPath = "/pdf/{name}/tables/{tableId}" .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "annotationId" + "\\}", apiClient.escapeString(annotationId.toString())); + .replaceAll("\\{" + "tableId" + "\\}", apiClient.escapeString(tableId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -20722,7 +24185,7 @@ public com.squareup.okhttp.Call getScreenAnnotationCall(String name, String anno 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); @@ -20745,51 +24208,51 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getScreenAnnotationValidateBeforeCall(String name, String annotationId, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call getTableValidateBeforeCall(String name, String tableId, 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 getScreenAnnotation(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling getTable(Async)"); } - // verify the required parameter 'annotationId' is set - if (annotationId == null) { - throw new ApiException("Missing the required parameter 'annotationId' when calling getScreenAnnotation(Async)"); + // verify the required parameter 'tableId' is set + if (tableId == null) { + throw new ApiException("Missing the required parameter 'tableId' when calling getTable(Async)"); } - com.squareup.okhttp.Call call = getScreenAnnotationCall(name, annotationId, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getTableCall(name, tableId, storage, folder, progressListener, progressRequestListener); return call; } /** - * Read document page screen annotation by ID. + * Read document page table by ID. * * @param name The document name. (required) - * @param annotationId The annotation ID. (required) + * @param tableId The table ID. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) - * @return ScreenAnnotationResponse + * @return TableRecognizedResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ScreenAnnotationResponse getScreenAnnotation(String name, String annotationId, String storage, String folder) throws ApiException { + public TableRecognizedResponse getTable(String name, String tableId, String storage, String folder) throws ApiException { try { - ApiResponse resp = getScreenAnnotationWithHttpInfo(name, annotationId, storage, folder); + ApiResponse resp = getTableWithHttpInfo(name, tableId, storage, folder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = getScreenAnnotationWithHttpInfo(name, annotationId, storage, folder); + apiClient.requestToken(); + ApiResponse resp = getTableWithHttpInfo(name, tableId, storage, folder); return resp.getData(); } throw ex; @@ -20797,33 +24260,33 @@ public ScreenAnnotationResponse getScreenAnnotation(String name, String annotati } /** - * Read document page screen annotation by ID. + * Read document page table by ID. * * @param name The document name. (required) - * @param annotationId The annotation ID. (required) + * @param tableId The table ID. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) - * @return ApiResponse<ScreenAnnotationResponse> + * @return ApiResponse<TableRecognizedResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse getScreenAnnotationWithHttpInfo(String name, String annotationId, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = getScreenAnnotationValidateBeforeCall(name, annotationId, storage, folder, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse getTableWithHttpInfo(String name, String tableId, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = getTableValidateBeforeCall(name, tableId, storage, folder, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Read document page screen annotation by ID. (asynchronously) + * Read document page table by ID. (asynchronously) * * @param name The document name. (required) - * @param annotationId The annotation ID. (required) + * @param tableId The table 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 getScreenAnnotationAsync(String name, String annotationId, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call getTableAsync(String name, String tableId, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -20844,43 +24307,62 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = getScreenAnnotationValidateBeforeCall(name, annotationId, storage, folder, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = getTableValidateBeforeCall(name, tableId, storage, folder, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for getScreenAnnotationData + * 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, default to true) * @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 getScreenAnnotationDataCall(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/screen/{annotationId}/data" - .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("csv", "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(); 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); @@ -20903,51 +24385,72 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getScreenAnnotationDataValidateBeforeCall(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 getScreenAnnotationData(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 getScreenAnnotationData(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 = getScreenAnnotationDataCall(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 screen 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, default to true) * @param folder The document folder. (optional) - * @return File + * @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 File getScreenAnnotationData(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 = getScreenAnnotationDataWithHttpInfo(name, annotationId, storage, folder); + ApiResponse resp = getTextWithHttpInfo(name, LLX, LLY, URX, URY, format, regex, splitRects, folder, storage); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = getScreenAnnotationDataWithHttpInfo(name, annotationId, storage, folder); + apiClient.requestToken(); + ApiResponse resp = getTextWithHttpInfo(name, LLX, LLY, URX, URY, format, regex, splitRects, folder, storage); return resp.getData(); } throw ex; @@ -20955,33 +24458,45 @@ public File getScreenAnnotationData(String name, String annotationId, String sto } /** - * Read document page screen 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, default to true) * @param folder The document folder. (optional) - * @return ApiResponse<File> + * @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 getScreenAnnotationDataWithHttpInfo(String name, String annotationId, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = getScreenAnnotationDataValidateBeforeCall(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 screen 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, default to true) * @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 getScreenAnnotationDataAsync(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; @@ -21002,13 +24517,13 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = getScreenAnnotationDataValidateBeforeCall(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 getSoundAnnotation + * Build call for getTextAnnotation * @param name The document name. (required) * @param annotationId The annotation ID. (required) * @param storage The document storage. (optional) @@ -21018,11 +24533,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 getSoundAnnotationCall(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/sound/{annotationId}" + String localVarPath = "/pdf/{name}/annotations/text/{annotationId}" .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) .replaceAll("\\{" + "annotationId" + "\\}", apiClient.escapeString(annotationId.toString())); @@ -21038,7 +24553,7 @@ public com.squareup.okhttp.Call getSoundAnnotationCall(String name, String annot 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); @@ -21061,51 +24576,51 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getSoundAnnotationValidateBeforeCall(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 getSoundAnnotation(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 getSoundAnnotation(Async)"); + throw new ApiException("Missing the required parameter 'annotationId' when calling getTextAnnotation(Async)"); } - com.squareup.okhttp.Call call = getSoundAnnotationCall(name, annotationId, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getTextAnnotationCall(name, annotationId, storage, folder, progressListener, progressRequestListener); return call; } /** - * Read document page sound 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 SoundAnnotationResponse + * @return TextAnnotationResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public SoundAnnotationResponse getSoundAnnotation(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 = getSoundAnnotationWithHttpInfo(name, annotationId, storage, folder); + ApiResponse resp = getTextAnnotationWithHttpInfo(name, annotationId, storage, folder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = getSoundAnnotationWithHttpInfo(name, annotationId, storage, folder); + apiClient.requestToken(); + ApiResponse resp = getTextAnnotationWithHttpInfo(name, annotationId, storage, folder); return resp.getData(); } throw ex; @@ -21113,23 +24628,23 @@ public SoundAnnotationResponse getSoundAnnotation(String name, String annotation } /** - * Read document page sound 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<SoundAnnotationResponse> + * @return ApiResponse<TextAnnotationResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse getSoundAnnotationWithHttpInfo(String name, String annotationId, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = getSoundAnnotationValidateBeforeCall(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 sound annotation by ID. (asynchronously) + * Read document page text annotation by ID. (asynchronously) * * @param name The document name. (required) * @param annotationId The annotation ID. (required) @@ -21139,7 +24654,7 @@ public ApiResponse getSoundAnnotationWithHttpInfo(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 getSoundAnnotationAsync(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; @@ -21160,13 +24675,13 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = getSoundAnnotationValidateBeforeCall(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 getSoundAnnotationData + * Build call for getUnderlineAnnotation * @param name The document name. (required) * @param annotationId The annotation ID. (required) * @param storage The document storage. (optional) @@ -21176,11 +24691,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 getSoundAnnotationDataCall(String name, String annotationId, String storage, String folder, 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/{name}/annotations/sound/{annotationId}/data" + String localVarPath = "/pdf/{name}/annotations/underline/{annotationId}" .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) .replaceAll("\\{" + "annotationId" + "\\}", apiClient.escapeString(annotationId.toString())); @@ -21196,7 +24711,7 @@ public com.squareup.okhttp.Call getSoundAnnotationDataCall(String name, String a 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); @@ -21219,51 +24734,51 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getSoundAnnotationDataValidateBeforeCall(String name, String annotationId, String storage, String folder, 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 'name' is set if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling getSoundAnnotationData(Async)"); + 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 getSoundAnnotationData(Async)"); + throw new ApiException("Missing the required parameter 'annotationId' when calling getUnderlineAnnotation(Async)"); } - com.squareup.okhttp.Call call = getSoundAnnotationDataCall(name, annotationId, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getUnderlineAnnotationCall(name, annotationId, storage, folder, progressListener, progressRequestListener); return call; } /** - * Read document page sound annotation by ID. + * Read document page underline 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 File + * @return UnderlineAnnotationResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public File getSoundAnnotationData(String name, String annotationId, String storage, String folder) throws ApiException { + public UnderlineAnnotationResponse getUnderlineAnnotation(String name, String annotationId, String storage, String folder) throws ApiException { try { - ApiResponse resp = getSoundAnnotationDataWithHttpInfo(name, annotationId, storage, folder); + ApiResponse resp = getUnderlineAnnotationWithHttpInfo(name, annotationId, storage, folder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = getSoundAnnotationDataWithHttpInfo(name, annotationId, storage, folder); + apiClient.requestToken(); + ApiResponse resp = getUnderlineAnnotationWithHttpInfo(name, annotationId, storage, folder); return resp.getData(); } throw ex; @@ -21271,23 +24786,23 @@ public File getSoundAnnotationData(String name, String annotationId, String stor } /** - * Read document page sound annotation by ID. + * Read document page underline 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<File> + * @return ApiResponse<UnderlineAnnotationResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse getSoundAnnotationDataWithHttpInfo(String name, String annotationId, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = getSoundAnnotationDataValidateBeforeCall(name, annotationId, storage, folder, 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); } /** - * Read document page sound annotation by ID. (asynchronously) + * Read document page underline annotation by ID. (asynchronously) * * @param name The document name. (required) * @param annotationId The annotation ID. (required) @@ -21297,7 +24812,7 @@ public ApiResponse getSoundAnnotationDataWithHttpInfo(String name, String * @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 getSoundAnnotationDataAsync(String name, String annotationId, String storage, String folder, 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; @@ -21318,15 +24833,15 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = getSoundAnnotationDataValidateBeforeCall(name, annotationId, storage, folder, 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 getSquareAnnotation + * Build call for getVerifySignature * @param name The document name. (required) - * @param annotationId The annotation ID. (required) + * @param signName Sign name. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) * @param progressListener Progress listener @@ -21334,16 +24849,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 getSquareAnnotationCall(String name, String annotationId, String storage, String folder, 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}/annotations/square/{annotationId}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "annotationId" + "\\}", apiClient.escapeString(annotationId.toString())); + String localVarPath = "/pdf/{name}/verifySignature" + .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) @@ -21377,51 +24893,51 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @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 { + 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 getSquareAnnotation(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling getVerifySignature(Async)"); } - // 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 'signName' is set + if (signName == null) { + throw new ApiException("Missing the required parameter 'signName' when calling getVerifySignature(Async)"); } - com.squareup.okhttp.Call call = getSquareAnnotationCall(name, annotationId, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getVerifySignatureCall(name, signName, storage, folder, progressListener, progressRequestListener); return call; } /** - * Read document page square annotation by ID. + * Verify signature document. * * @param name The document name. (required) - * @param annotationId The annotation ID. (required) + * @param signName Sign name. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) - * @return SquareAnnotationResponse + * @return SignatureVerifyResponse * @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 SignatureVerifyResponse getVerifySignature(String name, String signName, String storage, String folder) throws ApiException { try { - ApiResponse resp = getSquareAnnotationWithHttpInfo(name, annotationId, storage, folder); + ApiResponse resp = getVerifySignatureWithHttpInfo(name, signName, storage, folder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = getSquareAnnotationWithHttpInfo(name, annotationId, storage, folder); + apiClient.requestToken(); + ApiResponse resp = getVerifySignatureWithHttpInfo(name, signName, storage, folder); return resp.getData(); } throw ex; @@ -21429,33 +24945,33 @@ public SquareAnnotationResponse getSquareAnnotation(String name, String annotati } /** - * Read document page square annotation by ID. + * Verify signature document. * * @param name The document name. (required) - * @param annotationId The annotation ID. (required) + * @param signName Sign name. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) - * @return ApiResponse<SquareAnnotationResponse> + * @return ApiResponse<SignatureVerifyResponse> * @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 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 page square annotation by ID. (asynchronously) + * Verify signature document. (asynchronously) * * @param name The document name. (required) - * @param annotationId The annotation ID. (required) + * @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 getSquareAnnotationAsync(String name, String annotationId, String storage, String folder, 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; @@ -21476,43 +24992,60 @@ 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 = getVerifySignatureValidateBeforeCall(name, signName, storage, folder, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for getSquigglyAnnotation - * @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 getSquigglyAnnotationCall(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/squiggly/{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); @@ -21535,51 +25068,51 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @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 { - - // verify the required parameter 'name' is set - if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling getSquigglyAnnotation(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 getSquigglyAnnotation(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 = getSquigglyAnnotationCall(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 squiggly 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 SquigglyAnnotationResponse + * @return File * @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 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 = getSquigglyAnnotationWithHttpInfo(name, annotationId, storage, folder); + ApiResponse resp = getWebInStorageToPdfWithHttpInfo(url, height, width, isLandscape, marginLeft, marginBottom, marginRight, marginTop, storage); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = getSquigglyAnnotationWithHttpInfo(name, annotationId, storage, folder); + apiClient.requestToken(); + ApiResponse resp = getWebInStorageToPdfWithHttpInfo(url, height, width, isLandscape, marginLeft, marginBottom, marginRight, marginTop, storage); return resp.getData(); } throw ex; @@ -21587,33 +25120,43 @@ public SquigglyAnnotationResponse getSquigglyAnnotation(String name, String anno } /** - * Read document page squiggly 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<SquigglyAnnotationResponse> + * @return ApiResponse<File> * @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 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 squiggly 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 getSquigglyAnnotationAsync(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; @@ -21634,15 +25177,14 @@ 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 = 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 getStampAnnotation + * 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 @@ -21650,13 +25192,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 getStampAnnotationCall(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/stamp/{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(); @@ -21693,51 +25234,45 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getStampAnnotationValidateBeforeCall(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 getStampAnnotation(Async)"); - } - - // verify the required parameter 'annotationId' is set - if (annotationId == null) { - throw new ApiException("Missing the required parameter 'annotationId' when calling getStampAnnotation(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling getWordsPerPage(Async)"); } - com.squareup.okhttp.Call call = getStampAnnotationCall(name, annotationId, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getWordsPerPageCall(name, storage, folder, progressListener, progressRequestListener); return call; } /** - * Read document page stamp 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 StampAnnotationResponse + * @return WordCountResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public StampAnnotationResponse getStampAnnotation(String name, String annotationId, String storage, String folder) throws ApiException { + public WordCountResponse getWordsPerPage(String name, String storage, String folder) throws ApiException { try { - ApiResponse resp = getStampAnnotationWithHttpInfo(name, annotationId, storage, folder); + ApiResponse resp = getWordsPerPageWithHttpInfo(name, storage, folder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = getStampAnnotationWithHttpInfo(name, annotationId, storage, folder); + apiClient.requestToken(); + ApiResponse resp = getWordsPerPageWithHttpInfo(name, storage, folder); return resp.getData(); } throw ex; @@ -21745,33 +25280,31 @@ public StampAnnotationResponse getStampAnnotation(String name, String annotation } /** - * Read document page stamp 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<StampAnnotationResponse> + * @return ApiResponse<WordCountResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse getStampAnnotationWithHttpInfo(String name, String annotationId, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = getStampAnnotationValidateBeforeCall(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 stamp 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 getStampAnnotationAsync(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; @@ -21792,43 +25325,41 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = getStampAnnotationValidateBeforeCall(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 getStampAnnotationData + * Build call for getXfaPdfInStorageToAcroForm * @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 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 getStampAnnotationDataCall(String name, String annotationId, 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}/annotations/stamp/{annotationId}/data" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "annotationId" + "\\}", apiClient.escapeString(annotationId.toString())); + String localVarPath = "/pdf/{name}/convert/xfatoacroform" + .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)); + 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); @@ -21851,51 +25382,45 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getStampAnnotationDataValidateBeforeCall(String name, String annotationId, 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 getStampAnnotationData(Async)"); - } - - // verify the required parameter 'annotationId' is set - if (annotationId == null) { - throw new ApiException("Missing the required parameter 'annotationId' when calling getStampAnnotationData(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling getXfaPdfInStorageToAcroForm(Async)"); } - com.squareup.okhttp.Call call = getStampAnnotationDataCall(name, annotationId, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getXfaPdfInStorageToAcroFormCall(name, folder, storage, progressListener, progressRequestListener); return call; } /** - * Read document page stamp annotation by ID. + * 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 annotationId The annotation ID. (required) - * @param storage The document storage. (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 getStampAnnotationData(String name, String annotationId, String storage, String folder) throws ApiException { + public File getXfaPdfInStorageToAcroForm(String name, String folder, String storage) throws ApiException { try { - ApiResponse resp = getStampAnnotationDataWithHttpInfo(name, annotationId, storage, folder); + ApiResponse resp = getXfaPdfInStorageToAcroFormWithHttpInfo(name, folder, storage); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = getStampAnnotationDataWithHttpInfo(name, annotationId, storage, folder); + apiClient.requestToken(); + ApiResponse resp = getXfaPdfInStorageToAcroFormWithHttpInfo(name, folder, storage); return resp.getData(); } throw ex; @@ -21903,33 +25428,31 @@ public File getStampAnnotationData(String name, String annotationId, String stor } /** - * Read document page stamp annotation by ID. + * 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 annotationId The annotation ID. (required) - * @param storage The document storage. (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 getStampAnnotationDataWithHttpInfo(String name, String annotationId, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = getStampAnnotationDataValidateBeforeCall(name, annotationId, storage, folder, null, null); + 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); } /** - * Read document page stamp annotation by ID. (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 annotationId The annotation ID. (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 getStampAnnotationDataAsync(String name, String annotationId, 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; @@ -21950,43 +25473,42 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = getStampAnnotationDataValidateBeforeCall(name, annotationId, storage, folder, progressListener, progressRequestListener); + 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 getStrikeOutAnnotation - * @param name The document name. (required) - * @param annotationId The annotation ID. (required) + * 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 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 getStrikeOutAnnotationCall(String name, String annotationId, String storage, String folder, 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/{name}/annotations/strikeout/{annotationId}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "annotationId" + "\\}", apiClient.escapeString(annotationId.toString())); + String localVarPath = "/pdf/create/xml"; 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 (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); @@ -22009,51 +25531,45 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @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 { - - // verify the required parameter 'name' is set - if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling getStrikeOutAnnotation(Async)"); - } + 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 'annotationId' is set - if (annotationId == null) { - throw new ApiException("Missing the required parameter 'annotationId' when calling getStrikeOutAnnotation(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 = getStrikeOutAnnotationCall(name, annotationId, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getXmlInStorageToPdfCall(srcPath, xslFilePath, storage, progressListener, progressRequestListener); return call; } /** - * Read document page StrikeOut annotation by ID. + * Convert XML 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.xml) (required) + * @param xslFilePath Full XSL source filename (ex. /folder1/folder2/template.xsl) (optional) * @param storage The document storage. (optional) - * @param folder The document folder. (optional) - * @return StrikeOutAnnotationResponse + * @return File * @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 File getXmlInStorageToPdf(String srcPath, String xslFilePath, String storage) throws ApiException { try { - ApiResponse resp = getStrikeOutAnnotationWithHttpInfo(name, annotationId, storage, folder); + ApiResponse resp = getXmlInStorageToPdfWithHttpInfo(srcPath, xslFilePath, storage); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = getStrikeOutAnnotationWithHttpInfo(name, annotationId, storage, folder); + apiClient.requestToken(); + ApiResponse resp = getXmlInStorageToPdfWithHttpInfo(srcPath, xslFilePath, storage); return resp.getData(); } throw ex; @@ -22061,33 +25577,31 @@ public StrikeOutAnnotationResponse getStrikeOutAnnotation(String name, String an } /** - * Read document page StrikeOut annotation by ID. + * Convert XML 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.xml) (required) + * @param xslFilePath Full XSL source filename (ex. /folder1/folder2/template.xsl) (optional) * @param storage The document storage. (optional) - * @param folder The document folder. (optional) - * @return ApiResponse<StrikeOutAnnotationResponse> + * @return ApiResponse<File> * @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 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); } /** - * Read document page StrikeOut annotation by ID. (asynchronously) + * Convert XML 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.xml) (required) + * @param xslFilePath Full XSL source filename (ex. /folder1/folder2/template.xsl) (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 getStrikeOutAnnotationAsync(String name, String annotationId, String storage, String folder, 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; @@ -22108,54 +25622,30 @@ 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 = getXmlInStorageToPdfValidateBeforeCall(srcPath, xslFilePath, storage, 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 getXpsInStorageToPdf + * @param srcPath Full source filename (ex. /folder1/folder2/template.xps) (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 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 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/create/svg"; + String localVarPath = "/pdf/create/xps"; 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)); @@ -22187,52 +25677,44 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @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 getXpsInStorageToPdfValidateBeforeCall(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 getSvgInStorageToPdf(Async)"); + throw new ApiException("Missing the required parameter 'srcPath' when calling getXpsInStorageToPdf(Async)"); } - com.squareup.okhttp.Call call = getSvgInStorageToPdfCall(srcPath, adjustPageSize, height, width, isLandscape, marginLeft, marginBottom, marginRight, marginTop, storage, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getXpsInStorageToPdfCall(srcPath, storage, progressListener, progressRequestListener); return call; } /** - * Convert SVG file (located on storage) to PDF format and return resulting file in response. + * Convert XPS file (located on storage) to PDF format and return resulting file in response. * - * @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 srcPath Full source filename (ex. /folder1/folder2/template.xps) (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 getSvgInStorageToPdf(String srcPath, Boolean adjustPageSize, Double height, Double width, Boolean isLandscape, Double marginLeft, Double marginBottom, Double marginRight, Double marginTop, String storage) throws ApiException { + public File getXpsInStorageToPdf(String srcPath, String storage) throws ApiException { try { - ApiResponse resp = getSvgInStorageToPdfWithHttpInfo(srcPath, adjustPageSize, height, width, isLandscape, marginLeft, marginBottom, marginRight, marginTop, storage); + ApiResponse resp = getXpsInStorageToPdfWithHttpInfo(srcPath, storage); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = getSvgInStorageToPdfWithHttpInfo(srcPath, adjustPageSize, height, width, isLandscape, marginLeft, marginBottom, marginRight, marginTop, storage); + apiClient.requestToken(); + ApiResponse resp = getXpsInStorageToPdfWithHttpInfo(srcPath, storage); return resp.getData(); } throw ex; @@ -22240,45 +25722,29 @@ public File getSvgInStorageToPdf(String srcPath, Boolean adjustPageSize, Double } /** - * Convert SVG file (located on storage) to PDF format and return resulting file in response. + * Convert XPS file (located on storage) to PDF format and return resulting file in response. * - * @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 srcPath Full source filename (ex. /folder1/folder2/template.xps) (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 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); + 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); } /** - * Convert SVG file (located on storage) to PDF format and return resulting file in response. (asynchronously) + * Convert XPS file (located on storage) to PDF format and return resulting file in response. (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 srcPath Full source filename (ex. /folder1/folder2/template.xps) (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 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 getXpsInStorageToPdfAsync(String srcPath, String storage, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -22299,43 +25765,39 @@ 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); + 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 getTable - * @param name The document name. (required) - * @param tableId The table ID. (required) + * Build call for getXslFoInStorageToPdf + * @param srcPath Full source filename (ex. /folder1/folder2/template.xslfo) (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 getTableCall(String name, String tableId, String storage, String folder, 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}/tables/{tableId}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "tableId" + "\\}", apiClient.escapeString(tableId.toString())); + String localVarPath = "/pdf/create/xslfo"; 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); @@ -22358,51 +25820,44 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getTableValidateBeforeCall(String name, String tableId, 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 getTable(Async)"); - } + private com.squareup.okhttp.Call getXslFoInStorageToPdfValidateBeforeCall(String srcPath, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - // verify the required parameter 'tableId' is set - if (tableId == null) { - throw new ApiException("Missing the required parameter 'tableId' when calling getTable(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 = getTableCall(name, tableId, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getXslFoInStorageToPdfCall(srcPath, storage, progressListener, progressRequestListener); return call; } /** - * Read document page table by ID. + * Convert XslFo file (located on storage) to PDF format and return resulting file in response. * - * @param name The document name. (required) - * @param tableId The table ID. (required) + * @param srcPath Full source filename (ex. /folder1/folder2/template.xslfo) (required) * @param storage The document storage. (optional) - * @param folder The document folder. (optional) - * @return TableRecognizedResponse + * @return File * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public TableRecognizedResponse getTable(String name, String tableId, String storage, String folder) throws ApiException { + public File getXslFoInStorageToPdf(String srcPath, String storage) throws ApiException { try { - ApiResponse resp = getTableWithHttpInfo(name, tableId, storage, folder); + ApiResponse resp = getXslFoInStorageToPdfWithHttpInfo(srcPath, storage); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = getTableWithHttpInfo(name, tableId, storage, folder); + apiClient.requestToken(); + ApiResponse resp = getXslFoInStorageToPdfWithHttpInfo(srcPath, storage); return resp.getData(); } throw ex; @@ -22410,33 +25865,29 @@ public TableRecognizedResponse getTable(String name, String tableId, String stor } /** - * Read document page table by ID. + * Convert XslFo file (located on storage) to PDF format and return resulting file in response. * - * @param name The document name. (required) - * @param tableId The table ID. (required) + * @param srcPath Full source filename (ex. /folder1/folder2/template.xslfo) (required) * @param storage The document storage. (optional) - * @param folder The document folder. (optional) - * @return ApiResponse<TableRecognizedResponse> + * @return ApiResponse<File> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse getTableWithHttpInfo(String name, String tableId, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = getTableValidateBeforeCall(name, tableId, storage, folder, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + 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); } /** - * Read document page table by ID. (asynchronously) + * Convert XslFo file (located on storage) to PDF format and return resulting file in response. (asynchronously) * - * @param name The document name. (required) - * @param tableId The table ID. (required) + * @param srcPath Full source filename (ex. /folder1/folder2/template.xslfo) (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 getTableAsync(String name, String tableId, String storage, String folder, 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; @@ -22457,55 +25908,40 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = getTableValidateBeforeCall(name, tableId, storage, folder, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + 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 getText - * @param name The document name. (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) + * Build call for moveFile + * @param srcPath Source file path e.g. '/src.ext' (required) + * @param destPath Destination file path e.g. '/dest.ext' (required) + * @param srcStorageName Source storage name (optional) + * @param destStorageName Destination storage name (optional) + * @param versionId File version ID to move (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 moveFileCall(String srcPath, String destPath, String srcStorageName, String destStorageName, String versionId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; // create path and map variables - String localVarPath = "/pdf/{name}/text" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + String localVarPath = "/pdf/storage/file/move/{srcPath}" + .replaceAll("\\{" + "srcPath" + "\\}", apiClient.escapeString(srcPath.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 (destPath != null) + localVarQueryParams.addAll(apiClient.parameterToPair("destPath", destPath)); + if (srcStorageName != null) + localVarQueryParams.addAll(apiClient.parameterToPair("srcStorageName", srcStorageName)); + if (destStorageName != null) + localVarQueryParams.addAll(apiClient.parameterToPair("destStorageName", destStorageName)); + if (versionId != null) + localVarQueryParams.addAll(apiClient.parameterToPair("versionId", versionId)); Map localVarHeaderParams = new HashMap(); @@ -22535,118 +25971,84 @@ 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); + String[] localVarAuthNames = new String[] { "JWT" }; + return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @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 moveFileValidateBeforeCall(String srcPath, String destPath, String srcStorageName, String destStorageName, String versionId, 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)"); + // verify the required parameter 'srcPath' is set + if (srcPath == null) { + throw new ApiException("Missing the required parameter 'srcPath' when calling moveFile(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 'destPath' is set + if (destPath == null) { + throw new ApiException("Missing the required parameter 'destPath' when calling moveFile(Async)"); } - com.squareup.okhttp.Call call = getTextCall(name, LLX, LLY, URX, URY, format, regex, splitRects, folder, storage, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = moveFileCall(srcPath, destPath, srcStorageName, destStorageName, versionId, progressListener, progressRequestListener); return call; } /** - * Read document text. + * Move file * - * @param name The document name. (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) - * @return TextRectsResponse + * @param srcPath Source file path e.g. '/src.ext' (required) + * @param destPath Destination file path e.g. '/dest.ext' (required) + * @param srcStorageName Source storage name (optional) + * @param destStorageName Destination storage name (optional) + * @param versionId File version ID to move (optional) * @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 void moveFile(String srcPath, String destPath, String srcStorageName, String destStorageName, String versionId) throws ApiException { try { - ApiResponse resp = getTextWithHttpInfo(name, LLX, LLY, URX, URY, format, regex, splitRects, folder, storage); - return resp.getData(); + moveFileWithHttpInfo(srcPath, destPath, srcStorageName, destStorageName, versionId); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = getTextWithHttpInfo(name, LLX, LLY, URX, URY, format, regex, splitRects, folder, storage); - return resp.getData(); + apiClient.requestToken(); + moveFileWithHttpInfo(srcPath, destPath, srcStorageName, destStorageName, versionId); } throw ex; } } /** - * Read document text. + * Move file * - * @param name The document name. (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) - * @return ApiResponse<TextRectsResponse> + * @param srcPath Source file path e.g. '/src.ext' (required) + * @param destPath Destination file path e.g. '/dest.ext' (required) + * @param srcStorageName Source storage name (optional) + * @param destStorageName Destination storage name (optional) + * @param versionId File version ID to move (optional) + * @return ApiResponse<Void> * @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(); - return apiClient.execute(call, localVarReturnType); + public ApiResponse moveFileWithHttpInfo(String srcPath, String destPath, String srcStorageName, String destStorageName, String versionId) throws ApiException { + com.squareup.okhttp.Call call = moveFileValidateBeforeCall(srcPath, destPath, srcStorageName, destStorageName, versionId, null, null); + return apiClient.execute(call); } /** - * Read document text. (asynchronously) + * Move file (asynchronously) * - * @param name The document name. (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 srcPath Source file path e.g. '/src.ext' (required) + * @param destPath Destination file path e.g. '/dest.ext' (required) + * @param srcStorageName Source storage name (optional) + * @param destStorageName Destination storage name (optional) + * @param versionId File version ID to move (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 moveFileAsync(String srcPath, String destPath, String srcStorageName, String destStorageName, String versionId, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -22667,36 +26069,36 @@ 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(); - apiClient.executeAsync(call, localVarReturnType, callback); + com.squareup.okhttp.Call call = moveFileValidateBeforeCall(srcPath, destPath, srcStorageName, destStorageName, versionId, progressListener, progressRequestListener); + apiClient.executeAsync(call, callback); return call; } /** - * Build call for getTextAnnotation - * @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 moveFolder + * @param srcPath Folder path to move e.g. '/folder' (required) + * @param destPath Destination folder path to move to e.g '/dst' (required) + * @param srcStorageName Source storage name (optional) + * @param destStorageName 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 getTextAnnotationCall(String name, String annotationId, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call moveFolderCall(String srcPath, String destPath, String srcStorageName, String destStorageName, 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/storage/folder/move/{srcPath}" + .replaceAll("\\{" + "srcPath" + "\\}", apiClient.escapeString(srcPath.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)); + if (destPath != null) + localVarQueryParams.addAll(apiClient.parameterToPair("destPath", destPath)); + if (srcStorageName != null) + localVarQueryParams.addAll(apiClient.parameterToPair("srcStorageName", srcStorageName)); + if (destStorageName != null) + localVarQueryParams.addAll(apiClient.parameterToPair("destStorageName", destStorageName)); Map localVarHeaderParams = new HashMap(); @@ -22726,85 +26128,81 @@ 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); + String[] localVarAuthNames = new String[] { "JWT" }; + return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @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 { + private com.squareup.okhttp.Call moveFolderValidateBeforeCall(String srcPath, String destPath, String srcStorageName, String destStorageName, 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)"); + // verify the required parameter 'srcPath' is set + if (srcPath == null) { + throw new ApiException("Missing the required parameter 'srcPath' when calling moveFolder(Async)"); } - // 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 'destPath' is set + if (destPath == null) { + throw new ApiException("Missing the required parameter 'destPath' when calling moveFolder(Async)"); } - com.squareup.okhttp.Call call = getTextAnnotationCall(name, annotationId, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = moveFolderCall(srcPath, destPath, srcStorageName, destStorageName, progressListener, progressRequestListener); return call; } /** - * Read document page text annotation by ID. + * Move folder * - * @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 TextAnnotationResponse + * @param srcPath Folder path to move e.g. '/folder' (required) + * @param destPath Destination folder path to move to e.g '/dst' (required) + * @param srcStorageName Source storage name (optional) + * @param destStorageName Destination storage name (optional) * @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 void moveFolder(String srcPath, String destPath, String srcStorageName, String destStorageName) throws ApiException { try { - ApiResponse resp = getTextAnnotationWithHttpInfo(name, annotationId, storage, folder); - return resp.getData(); + moveFolderWithHttpInfo(srcPath, destPath, srcStorageName, destStorageName); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = getTextAnnotationWithHttpInfo(name, annotationId, storage, folder); - return resp.getData(); + apiClient.requestToken(); + moveFolderWithHttpInfo(srcPath, destPath, srcStorageName, destStorageName); } throw ex; } } /** - * Read document page text annotation by ID. + * Move folder * - * @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<TextAnnotationResponse> + * @param srcPath Folder path to move e.g. '/folder' (required) + * @param destPath Destination folder path to move to e.g '/dst' (required) + * @param srcStorageName Source storage name (optional) + * @param destStorageName Destination storage name (optional) + * @return ApiResponse<Void> * @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(); - return apiClient.execute(call, localVarReturnType); + public ApiResponse moveFolderWithHttpInfo(String srcPath, String destPath, String srcStorageName, String destStorageName) throws ApiException { + com.squareup.okhttp.Call call = moveFolderValidateBeforeCall(srcPath, destPath, srcStorageName, destStorageName, null, null); + return apiClient.execute(call); } /** - * Read document page text annotation by ID. (asynchronously) + * Move folder (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 srcPath Folder path to move e.g. '/folder' (required) + * @param destPath Destination folder path to move to e.g '/dst' (required) + * @param srcStorageName Source storage name (optional) + * @param destStorageName 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 getTextAnnotationAsync(String name, String annotationId, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call moveFolderAsync(String srcPath, String destPath, String srcStorageName, String destStorageName, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -22825,36 +26223,33 @@ 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(); - apiClient.executeAsync(call, localVarReturnType, callback); + com.squareup.okhttp.Call call = moveFolderValidateBeforeCall(srcPath, destPath, srcStorageName, destStorageName, progressListener, progressRequestListener); + apiClient.executeAsync(call, callback); return call; } /** - * 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) + * Build call for objectExists + * @param path File or folder path e.g. '/file.ext' or '/folder' (required) + * @param storageName Storage name (optional) + * @param versionId File version ID (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 getUnderlineAnnotationCall(String name, String annotationId, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call objectExistsCall(String path, String storageName, String versionId, 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/storage/exist/{path}" + .replaceAll("\\{" + "path" + "\\}", apiClient.escapeString(path.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)); + if (storageName != null) + localVarQueryParams.addAll(apiClient.parameterToPair("storageName", storageName)); + if (versionId != null) + localVarQueryParams.addAll(apiClient.parameterToPair("versionId", versionId)); Map localVarHeaderParams = new HashMap(); @@ -22884,51 +26279,45 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @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 { - - // verify the required parameter 'name' is set - if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling getUnderlineAnnotation(Async)"); - } + private com.squareup.okhttp.Call objectExistsValidateBeforeCall(String path, String storageName, String versionId, 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 getUnderlineAnnotation(Async)"); + // verify the required parameter 'path' is set + if (path == null) { + throw new ApiException("Missing the required parameter 'path' when calling objectExists(Async)"); } - com.squareup.okhttp.Call call = getUnderlineAnnotationCall(name, annotationId, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = objectExistsCall(path, storageName, versionId, progressListener, progressRequestListener); return call; } /** - * Read document page underline annotation by ID. + * Check if file or folder 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 UnderlineAnnotationResponse + * @param path File or folder path e.g. '/file.ext' or '/folder' (required) + * @param storageName Storage name (optional) + * @param versionId File version ID (optional) + * @return ObjectExist * @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 ObjectExist objectExists(String path, String storageName, String versionId) throws ApiException { try { - ApiResponse resp = getUnderlineAnnotationWithHttpInfo(name, annotationId, storage, folder); + ApiResponse resp = objectExistsWithHttpInfo(path, storageName, versionId); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = getUnderlineAnnotationWithHttpInfo(name, annotationId, storage, folder); + apiClient.requestToken(); + ApiResponse resp = objectExistsWithHttpInfo(path, storageName, versionId); return resp.getData(); } throw ex; @@ -22936,33 +26325,31 @@ public UnderlineAnnotationResponse getUnderlineAnnotation(String name, String an } /** - * Read document page underline annotation by ID. + * Check if file or folder 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<UnderlineAnnotationResponse> + * @param path File or folder path e.g. '/file.ext' or '/folder' (required) + * @param storageName Storage name (optional) + * @param versionId File version ID (optional) + * @return ApiResponse<ObjectExist> * @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 objectExistsWithHttpInfo(String path, String storageName, String versionId) throws ApiException { + com.squareup.okhttp.Call call = objectExistsValidateBeforeCall(path, storageName, versionId, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Read document page underline annotation by ID. (asynchronously) + * Check if file or folder 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 path File or folder path e.g. '/file.ext' or '/folder' (required) + * @param storageName Storage name (optional) + * @param versionId File version ID (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 objectExistsAsync(String path, String storageName, String versionId, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -22983,33 +26370,39 @@ 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 = objectExistsValidateBeforeCall(path, storageName, versionId, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for getVerifySignature - * @param name The document name. (required) - * @param signName Sign name. (required) - * @param storage The document storage. (optional) - * @param folder The document folder. (optional) + * Build call for postAppendDocument + * @param name The original document name. (required) + * @param appendFile Append file server path. (required) + * @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 getVerifySignatureCall(String name, String signName, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call postAppendDocumentCall(String name, String appendFile, Integer startPage, Integer endPage, 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}/verifySignature" + String localVarPath = "/pdf/{name}/appendDocument" .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (signName != null) - localVarQueryParams.addAll(apiClient.parameterToPair("signName", signName)); + 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) @@ -23043,51 +26436,53 @@ 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); + String[] localVarAuthNames = new String[] { "JWT" }; + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @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 postAppendDocumentValidateBeforeCall(String name, String appendFile, Integer startPage, Integer endPage, 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 getVerifySignature(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling postAppendDocument(Async)"); } - // verify the required parameter 'signName' is set - if (signName == null) { - throw new ApiException("Missing the required parameter 'signName' when calling getVerifySignature(Async)"); + // verify the required parameter 'appendFile' is set + if (appendFile == null) { + throw new ApiException("Missing the required parameter 'appendFile' when calling postAppendDocument(Async)"); } - com.squareup.okhttp.Call call = getVerifySignatureCall(name, signName, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = postAppendDocumentCall(name, appendFile, startPage, endPage, storage, folder, progressListener, progressRequestListener); return call; } /** - * Verify signature document. + * Append document to existing one. * - * @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 name The original document name. (required) + * @param appendFile Append file server path. (required) + * @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 SignatureVerifyResponse getVerifySignature(String name, String signName, String storage, String folder) throws ApiException { + public DocumentResponse postAppendDocument(String name, String appendFile, Integer startPage, Integer endPage, String storage, String folder) throws ApiException { try { - ApiResponse resp = getVerifySignatureWithHttpInfo(name, signName, storage, folder); + ApiResponse resp = postAppendDocumentWithHttpInfo(name, appendFile, startPage, endPage, storage, folder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = getVerifySignatureWithHttpInfo(name, signName, storage, folder); + apiClient.requestToken(); + ApiResponse resp = postAppendDocumentWithHttpInfo(name, appendFile, startPage, endPage, storage, folder); return resp.getData(); } throw ex; @@ -23095,33 +26490,37 @@ public SignatureVerifyResponse getVerifySignature(String name, String signName, } /** - * Verify signature document. + * Append document to existing one. * - * @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 name The original document name. (required) + * @param appendFile Append file server path. (required) + * @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 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 postAppendDocumentWithHttpInfo(String name, String appendFile, Integer startPage, Integer endPage, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = postAppendDocumentValidateBeforeCall(name, appendFile, startPage, endPage, storage, folder, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Verify signature document. (asynchronously) + * Append document to existing one. (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 name The original document name. (required) + * @param appendFile Append file server path. (required) + * @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 getVerifySignatureAsync(String name, String signName, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call postAppendDocumentAsync(String name, String appendFile, Integer startPage, Integer endPage, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -23142,51 +26541,35 @@ 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 = postAppendDocumentValidateBeforeCall(name, appendFile, startPage, endPage, storage, folder, 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 postBookmark + * @param name The document name. (required) + * @param bookmarkPath The bookmark path. (required) + * @param bookmarks The array of bookmark. (required) + * @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 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; + public com.squareup.okhttp.Call postBookmarkCall(String name, String bookmarkPath, List bookmarks, String folder, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = bookmarks; // create path and map variables - String localVarPath = "/pdf/create/web"; + String localVarPath = "/pdf/{name}/bookmarks/bookmark/{bookmarkPath}" + .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) + .replaceAll("\\{" + "bookmarkPath" + "\\}", apiClient.escapeString(bookmarkPath.toString())); 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 (folder != null) + localVarQueryParams.addAll(apiClient.parameterToPair("folder", folder)); if (storage != null) localVarQueryParams.addAll(apiClient.parameterToPair("storage", storage)); @@ -23195,7 +26578,7 @@ public com.squareup.okhttp.Call getWebInStorageToPdfCall(String url, Double heig 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); @@ -23218,51 +26601,57 @@ 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); + String[] localVarAuthNames = new String[] { "JWT" }; + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @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 postBookmarkValidateBeforeCall(String name, String bookmarkPath, List bookmarks, String folder, 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 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling postBookmark(Async)"); + } + + // verify the required parameter 'bookmarkPath' is set + if (bookmarkPath == null) { + throw new ApiException("Missing the required parameter 'bookmarkPath' when calling postBookmark(Async)"); + } + + // verify the required parameter 'bookmarks' is set + if (bookmarks == null) { + throw new ApiException("Missing the required parameter 'bookmarks' when calling postBookmark(Async)"); } - com.squareup.okhttp.Call call = getWebInStorageToPdfCall(url, height, width, isLandscape, marginLeft, marginBottom, marginRight, marginTop, storage, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = postBookmarkCall(name, bookmarkPath, bookmarks, folder, storage, progressListener, progressRequestListener); return call; } /** - * Convert web page to PDF format and return resulting file in response. + * Add document bookmarks. * - * @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 name The document name. (required) + * @param bookmarkPath The bookmark path. (required) + * @param bookmarks The array of bookmark. (required) + * @param folder The document folder. (optional) * @param storage The document storage. (optional) - * @return File + * @return BookmarksResponse * @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 BookmarksResponse postBookmark(String name, String bookmarkPath, List bookmarks, String folder, String storage) throws ApiException { try { - ApiResponse resp = getWebInStorageToPdfWithHttpInfo(url, height, width, isLandscape, marginLeft, marginBottom, marginRight, marginTop, storage); + ApiResponse resp = postBookmarkWithHttpInfo(name, bookmarkPath, bookmarks, folder, storage); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = getWebInStorageToPdfWithHttpInfo(url, height, width, isLandscape, marginLeft, marginBottom, marginRight, marginTop, storage); + apiClient.requestToken(); + ApiResponse resp = postBookmarkWithHttpInfo(name, bookmarkPath, bookmarks, folder, storage); return resp.getData(); } throw ex; @@ -23270,43 +26659,35 @@ public File getWebInStorageToPdf(String url, Double height, Double width, Boolea } /** - * Convert web page to PDF format and return resulting file in response. + * Add document bookmarks. * - * @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 name The document name. (required) + * @param bookmarkPath The bookmark path. (required) + * @param bookmarks The array of bookmark. (required) + * @param folder The document folder. (optional) * @param storage The document storage. (optional) - * @return ApiResponse<File> + * @return ApiResponse<BookmarksResponse> * @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); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse postBookmarkWithHttpInfo(String name, String bookmarkPath, List bookmarks, String folder, String storage) throws ApiException { + com.squareup.okhttp.Call call = postBookmarkValidateBeforeCall(name, bookmarkPath, bookmarks, folder, 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) + * Add document bookmarks. (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 name The document name. (required) + * @param bookmarkPath The bookmark path. (required) + * @param bookmarks The array of bookmark. (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 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 postBookmarkAsync(String name, String bookmarkPath, List bookmarks, String folder, String storage, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -23327,14 +26708,17 @@ 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); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = postBookmarkValidateBeforeCall(name, bookmarkPath, bookmarks, folder, 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 postChangePasswordDocumentInStorage + * @param name Document name. (required) + * @param ownerPassword Owner password (encrypted Base64). (required) + * @param newUserPassword New user password (encrypted Base64). (required) + * @param newOwnerPassword New owner password (encrypted Base64). (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) * @param progressListener Progress listener @@ -23342,15 +26726,21 @@ 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 getWordsPerPageCall(String name, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call postChangePasswordDocumentInStorageCall(String name, String ownerPassword, String newUserPassword, String newOwnerPassword, 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/wordCount" + String localVarPath = "/pdf/{name}/changepassword" .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + if (ownerPassword != null) + localVarQueryParams.addAll(apiClient.parameterToPair("ownerPassword", ownerPassword)); + if (newUserPassword != null) + localVarQueryParams.addAll(apiClient.parameterToPair("newUserPassword", newUserPassword)); + if (newOwnerPassword != null) + localVarQueryParams.addAll(apiClient.parameterToPair("newOwnerPassword", newOwnerPassword)); if (storage != null) localVarQueryParams.addAll(apiClient.parameterToPair("storage", storage)); if (folder != null) @@ -23384,45 +26774,63 @@ 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); + String[] localVarAuthNames = new String[] { "JWT" }; + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @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 postChangePasswordDocumentInStorageValidateBeforeCall(String name, String ownerPassword, String newUserPassword, String newOwnerPassword, 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 getWordsPerPage(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling postChangePasswordDocumentInStorage(Async)"); + } + + // verify the required parameter 'ownerPassword' is set + if (ownerPassword == null) { + throw new ApiException("Missing the required parameter 'ownerPassword' when calling postChangePasswordDocumentInStorage(Async)"); + } + + // verify the required parameter 'newUserPassword' is set + if (newUserPassword == null) { + throw new ApiException("Missing the required parameter 'newUserPassword' when calling postChangePasswordDocumentInStorage(Async)"); + } + + // verify the required parameter 'newOwnerPassword' is set + if (newOwnerPassword == null) { + throw new ApiException("Missing the required parameter 'newOwnerPassword' when calling postChangePasswordDocumentInStorage(Async)"); } - com.squareup.okhttp.Call call = getWordsPerPageCall(name, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = postChangePasswordDocumentInStorageCall(name, ownerPassword, newUserPassword, newOwnerPassword, storage, folder, progressListener, progressRequestListener); return call; } /** - * Get number of words per document page. + * Change document password in storage. * - * @param name The document name. (required) + * @param name Document name. (required) + * @param ownerPassword Owner password (encrypted Base64). (required) + * @param newUserPassword New user password (encrypted Base64). (required) + * @param newOwnerPassword New owner password (encrypted Base64). (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) - * @return WordCountResponse + * @return AsposeResponse * @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 AsposeResponse postChangePasswordDocumentInStorage(String name, String ownerPassword, String newUserPassword, String newOwnerPassword, String storage, String folder) throws ApiException { try { - ApiResponse resp = getWordsPerPageWithHttpInfo(name, storage, folder); + ApiResponse resp = postChangePasswordDocumentInStorageWithHttpInfo(name, ownerPassword, newUserPassword, newOwnerPassword, storage, folder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = getWordsPerPageWithHttpInfo(name, storage, folder); + apiClient.requestToken(); + ApiResponse resp = postChangePasswordDocumentInStorageWithHttpInfo(name, ownerPassword, newUserPassword, newOwnerPassword, storage, folder); return resp.getData(); } throw ex; @@ -23430,31 +26838,37 @@ public WordCountResponse getWordsPerPage(String name, String storage, String fol } /** - * Get number of words per document page. + * Change document password in storage. * - * @param name The document name. (required) + * @param name Document name. (required) + * @param ownerPassword Owner password (encrypted Base64). (required) + * @param newUserPassword New user password (encrypted Base64). (required) + * @param newOwnerPassword New owner password (encrypted Base64). (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) - * @return ApiResponse<WordCountResponse> + * @return ApiResponse<AsposeResponse> * @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 postChangePasswordDocumentInStorageWithHttpInfo(String name, String ownerPassword, String newUserPassword, String newOwnerPassword, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = postChangePasswordDocumentInStorageValidateBeforeCall(name, ownerPassword, newUserPassword, newOwnerPassword, storage, folder, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Get number of words per document page. (asynchronously) + * Change document password in storage. (asynchronously) * - * @param name The document name. (required) + * @param name Document name. (required) + * @param ownerPassword Owner password (encrypted Base64). (required) + * @param newUserPassword New user password (encrypted Base64). (required) + * @param newOwnerPassword New owner password (encrypted Base64). (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 postChangePasswordDocumentInStorageAsync(String name, String ownerPassword, String newUserPassword, String newOwnerPassword, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -23475,41 +26889,45 @@ 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 = postChangePasswordDocumentInStorageValidateBeforeCall(name, ownerPassword, newUserPassword, newOwnerPassword, storage, folder, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for getXfaPdfInStorageToAcroForm + * Build call for postCreateField * @param name The document name. (required) - * @param folder The document folder. (optional) + * @param page Document page number. (required) + * @param field Field with the field data. (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 getXfaPdfInStorageToAcroFormCall(String name, String folder, 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/{name}/convert/xfatoacroform" + String localVarPath = "/pdf/{name}/fields" .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (folder != null) - localVarQueryParams.addAll(apiClient.parameterToPair("folder", folder)); + 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); @@ -23532,45 +26950,57 @@ 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); + String[] localVarAuthNames = new String[] { "JWT" }; + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @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 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 'name' is set if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling getXfaPdfInStorageToAcroForm(Async)"); + 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)"); + } + + // verify the required parameter 'field' is set + if (field == null) { + throw new ApiException("Missing the required parameter 'field' when calling postCreateField(Async)"); } - com.squareup.okhttp.Call call = getXfaPdfInStorageToAcroFormCall(name, folder, storage, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = postCreateFieldCall(name, page, field, storage, folder, progressListener, progressRequestListener); return call; } /** - * Converts PDF document which contatins XFA form (located on storage) to PDF with AcroForm and returns resulting file response content + * Create field. * * @param name The document name. (required) - * @param folder The document folder. (optional) + * @param page Document page number. (required) + * @param field Field with the field data. (required) * @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 getXfaPdfInStorageToAcroForm(String name, String folder, String storage) throws ApiException { + public AsposeResponse postCreateField(String name, Integer page, Field field, String storage, String folder) throws ApiException { try { - ApiResponse resp = getXfaPdfInStorageToAcroFormWithHttpInfo(name, folder, storage); + ApiResponse resp = postCreateFieldWithHttpInfo(name, page, field, storage, folder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = getXfaPdfInStorageToAcroFormWithHttpInfo(name, folder, storage); + apiClient.requestToken(); + ApiResponse resp = postCreateFieldWithHttpInfo(name, page, field, storage, folder); return resp.getData(); } throw ex; @@ -23578,31 +27008,35 @@ 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 + * Create field. * * @param name The document name. (required) - * @param folder The document folder. (optional) + * @param page Document page number. (required) + * @param field Field with the field data. (required) * @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 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(); + 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); } /** - * Converts PDF document which contatins XFA form (located on storage) to PDF with AcroForm and returns resulting file response content (asynchronously) + * Create field. (asynchronously) * * @param name The document name. (required) - * @param folder The document folder. (optional) + * @param page Document page number. (required) + * @param field Field with the field data. (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 getXfaPdfInStorageToAcroFormAsync(String name, String folder, 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; @@ -23623,42 +27057,44 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = getXfaPdfInStorageToAcroFormValidateBeforeCall(name, folder, 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 getXmlInStorageToPdf - * @param srcPath Full source filename (ex. /folder1/folder2/template.xml) (required) - * @param xslFilePath Full XSL source filename (ex. /folder1/folder2/template.xsl) (optional) + * Build call for postDecryptDocumentInStorage + * @param name Document name. (required) + * @param password The password (encrypted Base64). (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 getXmlInStorageToPdfCall(String srcPath, String xslFilePath, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call postDecryptDocumentInStorageCall(String name, String password, 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/xml"; + String localVarPath = "/pdf/{name}/decrypt" + .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 (password != null) + localVarQueryParams.addAll(apiClient.parameterToPair("password", password)); 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); @@ -23681,45 +27117,51 @@ 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); + String[] localVarAuthNames = new String[] { "JWT" }; + 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 postDecryptDocumentInStorageValidateBeforeCall(String name, String password, 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 postDecryptDocumentInStorage(Async)"); + } + + // verify the required parameter 'password' is set + if (password == null) { + throw new ApiException("Missing the required parameter 'password' when calling postDecryptDocumentInStorage(Async)"); } - com.squareup.okhttp.Call call = getXmlInStorageToPdfCall(srcPath, xslFilePath, storage, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = postDecryptDocumentInStorageCall(name, password, storage, folder, progressListener, progressRequestListener); return call; } /** - * Convert XML file (located on storage) to PDF format and return resulting file in response. + * Decrypt document in storage. * - * @param srcPath Full source filename (ex. /folder1/folder2/template.xml) (required) - * @param xslFilePath Full XSL source filename (ex. /folder1/folder2/template.xsl) (optional) + * @param name Document name. (required) + * @param password The password (encrypted Base64). (required) * @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 getXmlInStorageToPdf(String srcPath, String xslFilePath, String storage) throws ApiException { + public AsposeResponse postDecryptDocumentInStorage(String name, String password, String storage, String folder) throws ApiException { try { - ApiResponse resp = getXmlInStorageToPdfWithHttpInfo(srcPath, xslFilePath, storage); + ApiResponse resp = postDecryptDocumentInStorageWithHttpInfo(name, password, storage, folder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = getXmlInStorageToPdfWithHttpInfo(srcPath, xslFilePath, storage); + apiClient.requestToken(); + ApiResponse resp = postDecryptDocumentInStorageWithHttpInfo(name, password, storage, folder); return resp.getData(); } throw ex; @@ -23727,31 +27169,33 @@ public File getXmlInStorageToPdf(String srcPath, String xslFilePath, String stor } /** - * Convert XML file (located on storage) to PDF format and return resulting file in response. + * Decrypt document in storage. * - * @param srcPath Full source filename (ex. /folder1/folder2/template.xml) (required) - * @param xslFilePath Full XSL source filename (ex. /folder1/folder2/template.xsl) (optional) + * @param name Document name. (required) + * @param password The password (encrypted Base64). (required) * @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 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 postDecryptDocumentInStorageWithHttpInfo(String name, String password, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = postDecryptDocumentInStorageValidateBeforeCall(name, password, 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) + * Decrypt document in storage. (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 name Document name. (required) + * @param password The password (encrypted Base64). (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 getXmlInStorageToPdfAsync(String srcPath, String xslFilePath, String storage, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call postDecryptDocumentInStorageAsync(String name, String password, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -23772,39 +27216,48 @@ 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 = postDecryptDocumentInStorageValidateBeforeCall(name, password, 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 postDocumentImageFooter + * @param name The document name. (required) + * @param imageFooter The image footer. (required) + * @param startPageNumber The start page number. (optional) + * @param endPageNumber The end page number. (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 postDocumentImageFooterCall(String name, ImageFooter imageFooter, Integer startPageNumber, Integer endPageNumber, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = imageFooter; // create path and map variables - String localVarPath = "/pdf/create/xps"; + String localVarPath = "/pdf/{name}/footer/image" + .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (srcPath != null) - localVarQueryParams.addAll(apiClient.parameterToPair("srcPath", srcPath)); + if (startPageNumber != null) + localVarQueryParams.addAll(apiClient.parameterToPair("startPageNumber", startPageNumber)); + if (endPageNumber != null) + localVarQueryParams.addAll(apiClient.parameterToPair("endPageNumber", endPageNumber)); 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); @@ -23827,44 +27280,53 @@ 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); + String[] localVarAuthNames = new String[] { "JWT" }; + 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 postDocumentImageFooterValidateBeforeCall(String name, ImageFooter imageFooter, Integer startPageNumber, Integer endPageNumber, 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 postDocumentImageFooter(Async)"); + } + + // verify the required parameter 'imageFooter' is set + if (imageFooter == null) { + throw new ApiException("Missing the required parameter 'imageFooter' when calling postDocumentImageFooter(Async)"); } - com.squareup.okhttp.Call call = getXpsInStorageToPdfCall(srcPath, storage, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = postDocumentImageFooterCall(name, imageFooter, startPageNumber, endPageNumber, storage, folder, progressListener, progressRequestListener); return call; } /** - * Convert XPS file (located on storage) to PDF format and return resulting file in response. + * Add document image footer. * - * @param srcPath Full source filename (ex. /folder1/folder2/template.xps) (required) + * @param name The document name. (required) + * @param imageFooter The image footer. (required) + * @param startPageNumber The start page number. (optional) + * @param endPageNumber The end page number. (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 postDocumentImageFooter(String name, ImageFooter imageFooter, Integer startPageNumber, Integer endPageNumber, String storage, String folder) throws ApiException { try { - ApiResponse resp = getXpsInStorageToPdfWithHttpInfo(srcPath, storage); + ApiResponse resp = postDocumentImageFooterWithHttpInfo(name, imageFooter, startPageNumber, endPageNumber, storage, folder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = getXpsInStorageToPdfWithHttpInfo(srcPath, storage); + apiClient.requestToken(); + ApiResponse resp = postDocumentImageFooterWithHttpInfo(name, imageFooter, startPageNumber, endPageNumber, storage, folder); return resp.getData(); } throw ex; @@ -23872,29 +27334,37 @@ public File getXpsInStorageToPdf(String srcPath, String storage) throws ApiExcep } /** - * Convert XPS file (located on storage) to PDF format and return resulting file in response. + * Add document image footer. * - * @param srcPath Full source filename (ex. /folder1/folder2/template.xps) (required) + * @param name The document name. (required) + * @param imageFooter The image footer. (required) + * @param startPageNumber The start page number. (optional) + * @param endPageNumber The end page number. (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 postDocumentImageFooterWithHttpInfo(String name, ImageFooter imageFooter, Integer startPageNumber, Integer endPageNumber, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = postDocumentImageFooterValidateBeforeCall(name, imageFooter, startPageNumber, endPageNumber, 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) + * Add document image footer. (asynchronously) * - * @param srcPath Full source filename (ex. /folder1/folder2/template.xps) (required) + * @param name The document name. (required) + * @param imageFooter The image footer. (required) + * @param startPageNumber The start page number. (optional) + * @param endPageNumber The end page number. (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 postDocumentImageFooterAsync(String name, ImageFooter imageFooter, Integer startPageNumber, Integer endPageNumber, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -23915,39 +27385,48 @@ 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 = postDocumentImageFooterValidateBeforeCall(name, imageFooter, startPageNumber, endPageNumber, 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) + * Build call for postDocumentImageHeader + * @param name The document name. (required) + * @param imageHeader The image header. (required) + * @param startPageNumber The start page number. (optional) + * @param endPageNumber The end page number. (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 getXslFoInStorageToPdfCall(String srcPath, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = null; + public com.squareup.okhttp.Call postDocumentImageHeaderCall(String name, ImageHeader imageHeader, Integer startPageNumber, Integer endPageNumber, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = imageHeader; // create path and map variables - String localVarPath = "/pdf/create/xslfo"; + String localVarPath = "/pdf/{name}/header/image" + .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (srcPath != null) - localVarQueryParams.addAll(apiClient.parameterToPair("srcPath", srcPath)); + if (startPageNumber != null) + localVarQueryParams.addAll(apiClient.parameterToPair("startPageNumber", startPageNumber)); + if (endPageNumber != null) + localVarQueryParams.addAll(apiClient.parameterToPair("endPageNumber", endPageNumber)); 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); @@ -23970,44 +27449,53 @@ 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); + String[] localVarAuthNames = new String[] { "JWT" }; + 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 postDocumentImageHeaderValidateBeforeCall(String name, ImageHeader imageHeader, Integer startPageNumber, Integer endPageNumber, 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 getXslFoInStorageToPdf(Async)"); + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling postDocumentImageHeader(Async)"); + } + + // verify the required parameter 'imageHeader' is set + if (imageHeader == null) { + throw new ApiException("Missing the required parameter 'imageHeader' when calling postDocumentImageHeader(Async)"); } - com.squareup.okhttp.Call call = getXslFoInStorageToPdfCall(srcPath, storage, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = postDocumentImageHeaderCall(name, imageHeader, startPageNumber, endPageNumber, storage, folder, progressListener, progressRequestListener); return call; } /** - * Convert XslFo file (located on storage) to PDF format and return resulting file in response. + * Add document image header. * - * @param srcPath Full source filename (ex. /folder1/folder2/template.xslfo) (required) + * @param name The document name. (required) + * @param imageHeader The image header. (required) + * @param startPageNumber The start page number. (optional) + * @param endPageNumber The end page number. (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 getXslFoInStorageToPdf(String srcPath, String storage) throws ApiException { + public AsposeResponse postDocumentImageHeader(String name, ImageHeader imageHeader, Integer startPageNumber, Integer endPageNumber, String storage, String folder) throws ApiException { try { - ApiResponse resp = getXslFoInStorageToPdfWithHttpInfo(srcPath, storage); + ApiResponse resp = postDocumentImageHeaderWithHttpInfo(name, imageHeader, startPageNumber, endPageNumber, storage, folder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = getXslFoInStorageToPdfWithHttpInfo(srcPath, storage); + apiClient.requestToken(); + ApiResponse resp = postDocumentImageHeaderWithHttpInfo(name, imageHeader, startPageNumber, endPageNumber, storage, folder); return resp.getData(); } throw ex; @@ -24015,29 +27503,37 @@ public File getXslFoInStorageToPdf(String srcPath, String storage) throws ApiExc } /** - * Convert XslFo file (located on storage) to PDF format and return resulting file in response. + * Add document image header. * - * @param srcPath Full source filename (ex. /folder1/folder2/template.xslfo) (required) + * @param name The document name. (required) + * @param imageHeader The image header. (required) + * @param startPageNumber The start page number. (optional) + * @param endPageNumber The end page number. (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 getXslFoInStorageToPdfWithHttpInfo(String srcPath, String storage) throws ApiException { - com.squareup.okhttp.Call call = getXslFoInStorageToPdfValidateBeforeCall(srcPath, storage, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse postDocumentImageHeaderWithHttpInfo(String name, ImageHeader imageHeader, Integer startPageNumber, Integer endPageNumber, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = postDocumentImageHeaderValidateBeforeCall(name, imageHeader, startPageNumber, endPageNumber, 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) + * Add document image header. (asynchronously) * - * @param srcPath Full source filename (ex. /folder1/folder2/template.xslfo) (required) + * @param name The document name. (required) + * @param imageHeader The image header. (required) + * @param startPageNumber The start page number. (optional) + * @param endPageNumber The end page number. (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 getXslFoInStorageToPdfAsync(String srcPath, String storage, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call postDocumentImageHeaderAsync(String name, ImageHeader imageHeader, Integer startPageNumber, Integer endPageNumber, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -24058,40 +27554,37 @@ 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 = postDocumentImageHeaderValidateBeforeCall(name, imageHeader, startPageNumber, endPageNumber, 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 postDocumentPageNumberStamps + * @param name The document name. (required) + * @param stamp The stamp. (required) + * @param startPageNumber The start page number. (optional) + * @param endPageNumber The end page number. (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 postDocumentPageNumberStampsCall(String name, PageNumberStamp stamp, Integer startPageNumber, Integer endPageNumber, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = stamp; // create path and map variables - String localVarPath = "/pdf/{name}/appendDocument" + String localVarPath = "/pdf/{name}/stamps/pagenumber" .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 (startPageNumber != null) + localVarQueryParams.addAll(apiClient.parameterToPair("startPageNumber", startPageNumber)); + if (endPageNumber != null) + localVarQueryParams.addAll(apiClient.parameterToPair("endPageNumber", endPageNumber)); if (storage != null) localVarQueryParams.addAll(apiClient.parameterToPair("storage", storage)); if (folder != null) @@ -24125,49 +27618,53 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @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 postDocumentPageNumberStampsValidateBeforeCall(String name, PageNumberStamp stamp, Integer startPageNumber, Integer endPageNumber, 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 postDocumentPageNumberStamps(Async)"); + } + + // verify the required parameter 'stamp' is set + if (stamp == null) { + throw new ApiException("Missing the required parameter 'stamp' when calling postDocumentPageNumberStamps(Async)"); } - com.squareup.okhttp.Call call = postAppendDocumentCall(name, appendDocument, appendFile, startPage, endPage, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = postDocumentPageNumberStampsCall(name, stamp, startPageNumber, endPageNumber, storage, folder, progressListener, progressRequestListener); return call; } /** - * Append document to existing one. + * Add document page number stamps. * - * @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 stamp The stamp. (required) + * @param startPageNumber The start page number. (optional) + * @param endPageNumber The end page number. (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 postDocumentPageNumberStamps(String name, PageNumberStamp stamp, Integer startPageNumber, Integer endPageNumber, String storage, String folder) throws ApiException { try { - ApiResponse resp = postAppendDocumentWithHttpInfo(name, appendDocument, appendFile, startPage, endPage, storage, folder); + ApiResponse resp = postDocumentPageNumberStampsWithHttpInfo(name, stamp, startPageNumber, endPageNumber, storage, folder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = postAppendDocumentWithHttpInfo(name, appendDocument, appendFile, startPage, endPage, storage, folder); + apiClient.requestToken(); + ApiResponse resp = postDocumentPageNumberStampsWithHttpInfo(name, stamp, startPageNumber, endPageNumber, storage, folder); return resp.getData(); } throw ex; @@ -24175,39 +27672,37 @@ public DocumentResponse postAppendDocument(String name, AppendDocument appendDoc } /** - * Append document to existing one. + * Add document page number stamps. * - * @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 stamp The stamp. (required) + * @param startPageNumber The start page number. (optional) + * @param endPageNumber The end page number. (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 postDocumentPageNumberStampsWithHttpInfo(String name, PageNumberStamp stamp, Integer startPageNumber, Integer endPageNumber, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = postDocumentPageNumberStampsValidateBeforeCall(name, stamp, startPageNumber, endPageNumber, storage, folder, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Append document to existing one. (asynchronously) + * Add document page number stamps. (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 stamp The stamp. (required) + * @param startPageNumber The start page number. (optional) + * @param endPageNumber The end page number. (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 postDocumentPageNumberStampsAsync(String name, PageNumberStamp stamp, Integer startPageNumber, Integer endPageNumber, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -24228,17 +27723,17 @@ 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 = postDocumentPageNumberStampsValidateBeforeCall(name, stamp, startPageNumber, endPageNumber, storage, folder, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for postChangePasswordDocumentInStorage - * @param name Document name. (required) - * @param ownerPassword Owner password (encrypted Base64). (required) - * @param newUserPassword New user password (encrypted Base64). (required) - * @param newOwnerPassword New owner password (encrypted Base64). (required) + * Build call for postDocumentTextFooter + * @param name The document name. (required) + * @param textFooter The text footer. (required) + * @param startPageNumber The start page number. (optional) + * @param endPageNumber The end page number. (optional) * @param storage The document storage. (optional) * @param folder The document folder. (optional) * @param progressListener Progress listener @@ -24246,21 +27741,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 postChangePasswordDocumentInStorageCall(String name, String ownerPassword, String newUserPassword, String newOwnerPassword, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = null; + public com.squareup.okhttp.Call postDocumentTextFooterCall(String name, TextFooter textFooter, Integer startPageNumber, Integer endPageNumber, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = textFooter; // create path and map variables - String localVarPath = "/pdf/{name}/changepassword" + String localVarPath = "/pdf/{name}/footer/text" .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (ownerPassword != null) - localVarQueryParams.addAll(apiClient.parameterToPair("ownerPassword", ownerPassword)); - if (newUserPassword != null) - localVarQueryParams.addAll(apiClient.parameterToPair("newUserPassword", newUserPassword)); - if (newOwnerPassword != null) - localVarQueryParams.addAll(apiClient.parameterToPair("newOwnerPassword", newOwnerPassword)); + if (startPageNumber != null) + localVarQueryParams.addAll(apiClient.parameterToPair("startPageNumber", startPageNumber)); + if (endPageNumber != null) + localVarQueryParams.addAll(apiClient.parameterToPair("endPageNumber", endPageNumber)); if (storage != null) localVarQueryParams.addAll(apiClient.parameterToPair("storage", storage)); if (folder != null) @@ -24294,63 +27787,53 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call postChangePasswordDocumentInStorageValidateBeforeCall(String name, String ownerPassword, String newUserPassword, String newOwnerPassword, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call postDocumentTextFooterValidateBeforeCall(String name, TextFooter textFooter, Integer startPageNumber, Integer endPageNumber, 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 postChangePasswordDocumentInStorage(Async)"); - } - - // verify the required parameter 'ownerPassword' is set - if (ownerPassword == null) { - throw new ApiException("Missing the required parameter 'ownerPassword' when calling postChangePasswordDocumentInStorage(Async)"); - } - - // verify the required parameter 'newUserPassword' is set - if (newUserPassword == null) { - throw new ApiException("Missing the required parameter 'newUserPassword' when calling postChangePasswordDocumentInStorage(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling postDocumentTextFooter(Async)"); } - // verify the required parameter 'newOwnerPassword' is set - if (newOwnerPassword == null) { - throw new ApiException("Missing the required parameter 'newOwnerPassword' when calling postChangePasswordDocumentInStorage(Async)"); + // verify the required parameter 'textFooter' is set + if (textFooter == null) { + throw new ApiException("Missing the required parameter 'textFooter' when calling postDocumentTextFooter(Async)"); } - com.squareup.okhttp.Call call = postChangePasswordDocumentInStorageCall(name, ownerPassword, newUserPassword, newOwnerPassword, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = postDocumentTextFooterCall(name, textFooter, startPageNumber, endPageNumber, storage, folder, progressListener, progressRequestListener); return call; } /** - * Change document password in storage. + * Add document text footer. * - * @param name Document name. (required) - * @param ownerPassword Owner password (encrypted Base64). (required) - * @param newUserPassword New user password (encrypted Base64). (required) - * @param newOwnerPassword New owner password (encrypted Base64). (required) + * @param name The document name. (required) + * @param textFooter The text footer. (required) + * @param startPageNumber The start page number. (optional) + * @param endPageNumber The end page number. (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 AsposeResponse postChangePasswordDocumentInStorage(String name, String ownerPassword, String newUserPassword, String newOwnerPassword, String storage, String folder) throws ApiException { + public AsposeResponse postDocumentTextFooter(String name, TextFooter textFooter, Integer startPageNumber, Integer endPageNumber, String storage, String folder) throws ApiException { try { - ApiResponse resp = postChangePasswordDocumentInStorageWithHttpInfo(name, ownerPassword, newUserPassword, newOwnerPassword, storage, folder); + ApiResponse resp = postDocumentTextFooterWithHttpInfo(name, textFooter, startPageNumber, endPageNumber, storage, folder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = postChangePasswordDocumentInStorageWithHttpInfo(name, ownerPassword, newUserPassword, newOwnerPassword, storage, folder); + apiClient.requestToken(); + ApiResponse resp = postDocumentTextFooterWithHttpInfo(name, textFooter, startPageNumber, endPageNumber, storage, folder); return resp.getData(); } throw ex; @@ -24358,37 +27841,37 @@ public AsposeResponse postChangePasswordDocumentInStorage(String name, String ow } /** - * Change document password in storage. + * Add document text footer. * - * @param name Document name. (required) - * @param ownerPassword Owner password (encrypted Base64). (required) - * @param newUserPassword New user password (encrypted Base64). (required) - * @param newOwnerPassword New owner password (encrypted Base64). (required) + * @param name The document name. (required) + * @param textFooter The text footer. (required) + * @param startPageNumber The start page number. (optional) + * @param endPageNumber The end page number. (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 postChangePasswordDocumentInStorageWithHttpInfo(String name, String ownerPassword, String newUserPassword, String newOwnerPassword, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = postChangePasswordDocumentInStorageValidateBeforeCall(name, ownerPassword, newUserPassword, newOwnerPassword, storage, folder, null, null); + public ApiResponse postDocumentTextFooterWithHttpInfo(String name, TextFooter textFooter, Integer startPageNumber, Integer endPageNumber, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = postDocumentTextFooterValidateBeforeCall(name, textFooter, startPageNumber, endPageNumber, storage, folder, null, null); Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Change document password in storage. (asynchronously) + * Add document text footer. (asynchronously) * - * @param name Document name. (required) - * @param ownerPassword Owner password (encrypted Base64). (required) - * @param newUserPassword New user password (encrypted Base64). (required) - * @param newOwnerPassword New owner password (encrypted Base64). (required) + * @param name The document name. (required) + * @param textFooter The text footer. (required) + * @param startPageNumber The start page number. (optional) + * @param endPageNumber The end page number. (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 postChangePasswordDocumentInStorageAsync(String name, String ownerPassword, String newUserPassword, String newOwnerPassword, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call postDocumentTextFooterAsync(String name, TextFooter textFooter, Integer startPageNumber, Integer endPageNumber, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -24409,16 +27892,17 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = postChangePasswordDocumentInStorageValidateBeforeCall(name, ownerPassword, newUserPassword, newOwnerPassword, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = postDocumentTextFooterValidateBeforeCall(name, textFooter, startPageNumber, endPageNumber, storage, folder, progressListener, progressRequestListener); Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for postCreateField + * Build call for postDocumentTextHeader * @param name The document name. (required) - * @param page Document page number. (required) - * @param field with the field data. (optional) + * @param textHeader The text header. (required) + * @param startPageNumber The start page number. (optional) + * @param endPageNumber The end page number. (optional) * @param storage The document storage. (optional) * @param folder The document folder. (optional) * @param progressListener Progress listener @@ -24426,17 +27910,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 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 postDocumentTextHeaderCall(String name, TextHeader textHeader, Integer startPageNumber, Integer endPageNumber, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = textHeader; // create path and map variables - String localVarPath = "/pdf/{name}/fields" + String localVarPath = "/pdf/{name}/header/text" .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (page != null) - localVarQueryParams.addAll(apiClient.parameterToPair("page", page)); + if (startPageNumber != null) + localVarQueryParams.addAll(apiClient.parameterToPair("startPageNumber", startPageNumber)); + if (endPageNumber != null) + localVarQueryParams.addAll(apiClient.parameterToPair("endPageNumber", endPageNumber)); if (storage != null) localVarQueryParams.addAll(apiClient.parameterToPair("storage", storage)); if (folder != null) @@ -24470,52 +27956,53 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @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 postDocumentTextHeaderValidateBeforeCall(String name, TextHeader textHeader, Integer startPageNumber, Integer endPageNumber, 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 postCreateField(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling postDocumentTextHeader(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 'textHeader' is set + if (textHeader == null) { + throw new ApiException("Missing the required parameter 'textHeader' when calling postDocumentTextHeader(Async)"); } - com.squareup.okhttp.Call call = postCreateFieldCall(name, page, field, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = postDocumentTextHeaderCall(name, textHeader, startPageNumber, endPageNumber, storage, folder, progressListener, progressRequestListener); return call; } /** - * Create field. + * Add document text header. * * @param name The document name. (required) - * @param page Document page number. (required) - * @param field with the field data. (optional) + * @param textHeader The text header. (required) + * @param startPageNumber The start page number. (optional) + * @param endPageNumber The end page number. (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 AsposeResponse postCreateField(String name, Integer page, Field field, String storage, String folder) throws ApiException { + public AsposeResponse postDocumentTextHeader(String name, TextHeader textHeader, Integer startPageNumber, Integer endPageNumber, String storage, String folder) throws ApiException { try { - ApiResponse resp = postCreateFieldWithHttpInfo(name, page, field, storage, folder); + ApiResponse resp = postDocumentTextHeaderWithHttpInfo(name, textHeader, startPageNumber, endPageNumber, storage, folder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = postCreateFieldWithHttpInfo(name, page, field, storage, folder); + apiClient.requestToken(); + ApiResponse resp = postDocumentTextHeaderWithHttpInfo(name, textHeader, startPageNumber, endPageNumber, storage, folder); return resp.getData(); } throw ex; @@ -24523,35 +28010,37 @@ public AsposeResponse postCreateField(String name, Integer page, Field field, St } /** - * Create field. + * Add document text header. * * @param name The document name. (required) - * @param page Document page number. (required) - * @param field with the field data. (optional) + * @param textHeader The text header. (required) + * @param startPageNumber The start page number. (optional) + * @param endPageNumber The end page number. (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 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 postDocumentTextHeaderWithHttpInfo(String name, TextHeader textHeader, Integer startPageNumber, Integer endPageNumber, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = postDocumentTextHeaderValidateBeforeCall(name, textHeader, startPageNumber, endPageNumber, storage, folder, null, null); Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Create field. (asynchronously) + * Add document text header. (asynchronously) * * @param name The document name. (required) - * @param page Document page number. (required) - * @param field with the field data. (optional) + * @param textHeader The text header. (required) + * @param startPageNumber The start page number. (optional) + * @param endPageNumber The end page number. (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 postCreateFieldAsync(String name, Integer page, Field field, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call postDocumentTextHeaderAsync(String name, TextHeader textHeader, Integer startPageNumber, Integer endPageNumber, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -24572,33 +28061,31 @@ 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 = postDocumentTextHeaderValidateBeforeCall(name, textHeader, startPageNumber, endPageNumber, storage, folder, progressListener, progressRequestListener); Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for postDecryptDocumentInStorage - * @param name Document name. (required) - * @param password The password (encrypted Base64). (required) - * @param storage The document storage. (optional) - * @param folder The document folder. (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 postDecryptDocumentInStorageCall(String name, String password, String storage, String folder, 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/{name}/decrypt" + String localVarPath = "/pdf/{name}/text/replace" .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (password != null) - localVarQueryParams.addAll(apiClient.parameterToPair("password", password)); if (storage != null) localVarQueryParams.addAll(apiClient.parameterToPair("storage", storage)); if (folder != null) @@ -24632,51 +28119,51 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call postDecryptDocumentInStorageValidateBeforeCall(String name, String password, String storage, String folder, 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 postDecryptDocumentInStorage(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling postDocumentTextReplace(Async)"); } - // verify the required parameter 'password' is set - if (password == null) { - throw new ApiException("Missing the required parameter 'password' when calling postDecryptDocumentInStorage(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 = postDecryptDocumentInStorageCall(name, password, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = postDocumentTextReplaceCall(name, textReplace, storage, folder, progressListener, progressRequestListener); return call; } /** - * Decrypt document in storage. + * Document's replace text method. * - * @param name Document name. (required) - * @param password The password (encrypted Base64). (required) - * @param storage The document storage. (optional) - * @param folder The document folder. (optional) - * @return AsposeResponse + * @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 AsposeResponse postDecryptDocumentInStorage(String name, String password, String storage, String folder) throws ApiException { + public TextReplaceResponse postDocumentTextReplace(String name, TextReplaceListRequest textReplace, String storage, String folder) throws ApiException { try { - ApiResponse resp = postDecryptDocumentInStorageWithHttpInfo(name, password, storage, folder); + ApiResponse resp = postDocumentTextReplaceWithHttpInfo(name, textReplace, storage, folder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = postDecryptDocumentInStorageWithHttpInfo(name, password, storage, folder); + apiClient.requestToken(); + ApiResponse resp = postDocumentTextReplaceWithHttpInfo(name, textReplace, storage, folder); return resp.getData(); } throw ex; @@ -24684,33 +28171,33 @@ public AsposeResponse postDecryptDocumentInStorage(String name, String password, } /** - * Decrypt document in storage. + * Document's replace text method. * - * @param name Document name. (required) - * @param password The password (encrypted Base64). (required) - * @param storage The document storage. (optional) - * @param folder The document folder. (optional) - * @return ApiResponse<AsposeResponse> + * @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 postDecryptDocumentInStorageWithHttpInfo(String name, String password, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = postDecryptDocumentInStorageValidateBeforeCall(name, password, storage, folder, 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); } /** - * Decrypt document in storage. (asynchronously) + * Document's replace text method. (asynchronously) * - * @param name Document name. (required) - * @param password The password (encrypted Base64). (required) - * @param storage The document storage. (optional) - * @param folder The document folder. (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 postDecryptDocumentInStorageAsync(String name, String password, String storage, String folder, 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; @@ -24731,17 +28218,19 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = postDecryptDocumentInStorageValidateBeforeCall(name, password, storage, folder, 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 postDocumentImageFooter - * @param name The document name. (required) - * @param imageFooter The image footer. (required) - * @param startPageNumber The start page number. (optional) - * @param endPageNumber The end page number. (optional) + * Build call for postEncryptDocumentInStorage + * @param name Document name. (required) + * @param userPassword User password (encrypted Base64). (required) + * @param ownerPassword Owner password (encrypted Base64). (required) + * @param cryptoAlgorithm Cryptographic algorithm, see CryptoAlgorithm for details. (required) + * @param permissionsFlags Array of document permissions, see PermissionsFlags for details. (optional) + * @param usePdf20 Support for revision 6 (Extension 8). (optional) * @param storage The document storage. (optional) * @param folder The document folder. (optional) * @param progressListener Progress listener @@ -24749,19 +28238,25 @@ 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 postDocumentImageFooterCall(String name, ImageFooter imageFooter, Integer startPageNumber, Integer endPageNumber, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = imageFooter; + public com.squareup.okhttp.Call postEncryptDocumentInStorageCall(String name, String userPassword, String ownerPassword, String cryptoAlgorithm, List permissionsFlags, Boolean usePdf20, 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}/footer/image" + String localVarPath = "/pdf/{name}/encrypt" .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (startPageNumber != null) - localVarQueryParams.addAll(apiClient.parameterToPair("startPageNumber", startPageNumber)); - if (endPageNumber != null) - localVarQueryParams.addAll(apiClient.parameterToPair("endPageNumber", endPageNumber)); + if (userPassword != null) + localVarQueryParams.addAll(apiClient.parameterToPair("userPassword", userPassword)); + if (ownerPassword != null) + localVarQueryParams.addAll(apiClient.parameterToPair("ownerPassword", ownerPassword)); + if (cryptoAlgorithm != null) + localVarQueryParams.addAll(apiClient.parameterToPair("cryptoAlgorithm", cryptoAlgorithm)); + if (permissionsFlags != null) + localVarCollectionQueryParams.addAll(apiClient.parameterToPairs("csv", "permissionsFlags", permissionsFlags)); + if (usePdf20 != null) + localVarQueryParams.addAll(apiClient.parameterToPair("usePdf20", usePdf20)); if (storage != null) localVarQueryParams.addAll(apiClient.parameterToPair("storage", storage)); if (folder != null) @@ -24795,53 +28290,65 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call postDocumentImageFooterValidateBeforeCall(String name, ImageFooter imageFooter, Integer startPageNumber, Integer endPageNumber, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call postEncryptDocumentInStorageValidateBeforeCall(String name, String userPassword, String ownerPassword, String cryptoAlgorithm, List permissionsFlags, Boolean usePdf20, 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 postDocumentImageFooter(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling postEncryptDocumentInStorage(Async)"); } - // verify the required parameter 'imageFooter' is set - if (imageFooter == null) { - throw new ApiException("Missing the required parameter 'imageFooter' when calling postDocumentImageFooter(Async)"); + // verify the required parameter 'userPassword' is set + if (userPassword == null) { + throw new ApiException("Missing the required parameter 'userPassword' when calling postEncryptDocumentInStorage(Async)"); + } + + // verify the required parameter 'ownerPassword' is set + if (ownerPassword == null) { + throw new ApiException("Missing the required parameter 'ownerPassword' when calling postEncryptDocumentInStorage(Async)"); + } + + // verify the required parameter 'cryptoAlgorithm' is set + if (cryptoAlgorithm == null) { + throw new ApiException("Missing the required parameter 'cryptoAlgorithm' when calling postEncryptDocumentInStorage(Async)"); } - com.squareup.okhttp.Call call = postDocumentImageFooterCall(name, imageFooter, startPageNumber, endPageNumber, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = postEncryptDocumentInStorageCall(name, userPassword, ownerPassword, cryptoAlgorithm, permissionsFlags, usePdf20, storage, folder, progressListener, progressRequestListener); return call; } /** - * Add document image footer. + * Encrypt document in storage. * - * @param name The document name. (required) - * @param imageFooter The image footer. (required) - * @param startPageNumber The start page number. (optional) - * @param endPageNumber The end page number. (optional) + * @param name Document name. (required) + * @param userPassword User password (encrypted Base64). (required) + * @param ownerPassword Owner password (encrypted Base64). (required) + * @param cryptoAlgorithm Cryptographic algorithm, see CryptoAlgorithm for details. (required) + * @param permissionsFlags Array of document permissions, see PermissionsFlags for details. (optional) + * @param usePdf20 Support for revision 6 (Extension 8). (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 AsposeResponse postDocumentImageFooter(String name, ImageFooter imageFooter, Integer startPageNumber, Integer endPageNumber, String storage, String folder) throws ApiException { + public AsposeResponse postEncryptDocumentInStorage(String name, String userPassword, String ownerPassword, String cryptoAlgorithm, List permissionsFlags, Boolean usePdf20, String storage, String folder) throws ApiException { try { - ApiResponse resp = postDocumentImageFooterWithHttpInfo(name, imageFooter, startPageNumber, endPageNumber, storage, folder); + ApiResponse resp = postEncryptDocumentInStorageWithHttpInfo(name, userPassword, ownerPassword, cryptoAlgorithm, permissionsFlags, usePdf20, storage, folder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = postDocumentImageFooterWithHttpInfo(name, imageFooter, startPageNumber, endPageNumber, storage, folder); + apiClient.requestToken(); + ApiResponse resp = postEncryptDocumentInStorageWithHttpInfo(name, userPassword, ownerPassword, cryptoAlgorithm, permissionsFlags, usePdf20, storage, folder); return resp.getData(); } throw ex; @@ -24849,37 +28356,41 @@ public AsposeResponse postDocumentImageFooter(String name, ImageFooter imageFoot } /** - * Add document image footer. + * Encrypt document in storage. * - * @param name The document name. (required) - * @param imageFooter The image footer. (required) - * @param startPageNumber The start page number. (optional) - * @param endPageNumber The end page number. (optional) + * @param name Document name. (required) + * @param userPassword User password (encrypted Base64). (required) + * @param ownerPassword Owner password (encrypted Base64). (required) + * @param cryptoAlgorithm Cryptographic algorithm, see CryptoAlgorithm for details. (required) + * @param permissionsFlags Array of document permissions, see PermissionsFlags for details. (optional) + * @param usePdf20 Support for revision 6 (Extension 8). (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 postDocumentImageFooterWithHttpInfo(String name, ImageFooter imageFooter, Integer startPageNumber, Integer endPageNumber, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = postDocumentImageFooterValidateBeforeCall(name, imageFooter, startPageNumber, endPageNumber, storage, folder, null, null); + public ApiResponse postEncryptDocumentInStorageWithHttpInfo(String name, String userPassword, String ownerPassword, String cryptoAlgorithm, List permissionsFlags, Boolean usePdf20, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = postEncryptDocumentInStorageValidateBeforeCall(name, userPassword, ownerPassword, cryptoAlgorithm, permissionsFlags, usePdf20, storage, folder, null, null); Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Add document image footer. (asynchronously) + * Encrypt document in storage. (asynchronously) * - * @param name The document name. (required) - * @param imageFooter The image footer. (required) - * @param startPageNumber The start page number. (optional) - * @param endPageNumber The end page number. (optional) + * @param name Document name. (required) + * @param userPassword User password (encrypted Base64). (required) + * @param ownerPassword Owner password (encrypted Base64). (required) + * @param cryptoAlgorithm Cryptographic algorithm, see CryptoAlgorithm for details. (required) + * @param permissionsFlags Array of document permissions, see PermissionsFlags for details. (optional) + * @param usePdf20 Support for revision 6 (Extension 8). (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 postDocumentImageFooterAsync(String name, ImageFooter imageFooter, Integer startPageNumber, Integer endPageNumber, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call postEncryptDocumentInStorageAsync(String name, String userPassword, String ownerPassword, String cryptoAlgorithm, List permissionsFlags, Boolean usePdf20, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -24900,17 +28411,17 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = postDocumentImageFooterValidateBeforeCall(name, imageFooter, startPageNumber, endPageNumber, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = postEncryptDocumentInStorageValidateBeforeCall(name, userPassword, ownerPassword, cryptoAlgorithm, permissionsFlags, usePdf20, storage, folder, progressListener, progressRequestListener); Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for postDocumentImageHeader + * Build call for postFlattenDocument * @param name The document name. (required) - * @param imageHeader The image header. (required) - * @param startPageNumber The start page number. (optional) - * @param endPageNumber The end page number. (optional) + * @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 @@ -24918,19 +28429,21 @@ 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 postDocumentImageHeaderCall(String name, ImageHeader imageHeader, Integer startPageNumber, Integer endPageNumber, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = imageHeader; + 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}/header/image" + String localVarPath = "/pdf/{name}/flatten" .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (startPageNumber != null) - localVarQueryParams.addAll(apiClient.parameterToPair("startPageNumber", startPageNumber)); - if (endPageNumber != null) - localVarQueryParams.addAll(apiClient.parameterToPair("endPageNumber", endPageNumber)); + 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) @@ -24964,53 +28477,48 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call postDocumentImageHeaderValidateBeforeCall(String name, ImageHeader imageHeader, Integer startPageNumber, Integer endPageNumber, 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 postDocumentImageHeader(Async)"); - } - - // verify the required parameter 'imageHeader' is set - if (imageHeader == null) { - throw new ApiException("Missing the required parameter 'imageHeader' when calling postDocumentImageHeader(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling postFlattenDocument(Async)"); } - com.squareup.okhttp.Call call = postDocumentImageHeaderCall(name, imageHeader, startPageNumber, endPageNumber, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = postFlattenDocumentCall(name, updateAppearances, callEvents, hideButtons, storage, folder, progressListener, progressRequestListener); return call; } /** - * Add document image header. + * Flatten the document. * * @param name The document name. (required) - * @param imageHeader The image header. (required) - * @param startPageNumber The start page number. (optional) - * @param endPageNumber The end page number. (optional) + * @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 AsposeResponse postDocumentImageHeader(String name, ImageHeader imageHeader, Integer startPageNumber, Integer endPageNumber, 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 = postDocumentImageHeaderWithHttpInfo(name, imageHeader, startPageNumber, endPageNumber, storage, folder); + ApiResponse resp = postFlattenDocumentWithHttpInfo(name, updateAppearances, callEvents, hideButtons, storage, folder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = postDocumentImageHeaderWithHttpInfo(name, imageHeader, startPageNumber, endPageNumber, storage, folder); + apiClient.requestToken(); + ApiResponse resp = postFlattenDocumentWithHttpInfo(name, updateAppearances, callEvents, hideButtons, storage, folder); return resp.getData(); } throw ex; @@ -25018,37 +28526,37 @@ public AsposeResponse postDocumentImageHeader(String name, ImageHeader imageHead } /** - * Add document image header. + * Flatten the document. * * @param name The document name. (required) - * @param imageHeader The image header. (required) - * @param startPageNumber The start page number. (optional) - * @param endPageNumber The end page number. (optional) + * @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 postDocumentImageHeaderWithHttpInfo(String name, ImageHeader imageHeader, Integer startPageNumber, Integer endPageNumber, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = postDocumentImageHeaderValidateBeforeCall(name, imageHeader, startPageNumber, endPageNumber, storage, folder, null, null); + 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); } /** - * Add document image header. (asynchronously) + * Flatten the document. (asynchronously) * * @param name The document name. (required) - * @param imageHeader The image header. (required) - * @param startPageNumber The start page number. (optional) - * @param endPageNumber The end page number. (optional) + * @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 postDocumentImageHeaderAsync(String name, ImageHeader imageHeader, Integer startPageNumber, Integer endPageNumber, 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; @@ -25069,37 +28577,31 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = postDocumentImageHeaderValidateBeforeCall(name, imageHeader, startPageNumber, endPageNumber, storage, folder, progressListener, progressRequestListener); + 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 postDocumentPageNumberStamps + * Build call for postImportFieldsFromFdf * @param name The document name. (required) - * @param stamp The stamp. (required) - * @param startPageNumber The start page number. (optional) - * @param endPageNumber The end page number. (optional) * @param storage The document storage. (optional) * @param folder The document folder. (optional) + * @param fdfData Fdf 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 postDocumentPageNumberStampsCall(String name, PageNumberStamp stamp, Integer startPageNumber, Integer endPageNumber, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = stamp; + public com.squareup.okhttp.Call postImportFieldsFromFdfCall(String name, String storage, String folder, File fdfData, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = fdfData; // create path and map variables - String localVarPath = "/pdf/{name}/stamps/pagenumber" + String localVarPath = "/pdf/{name}/import/fdf" .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (startPageNumber != null) - localVarQueryParams.addAll(apiClient.parameterToPair("startPageNumber", startPageNumber)); - if (endPageNumber != null) - localVarQueryParams.addAll(apiClient.parameterToPair("endPageNumber", endPageNumber)); if (storage != null) localVarQueryParams.addAll(apiClient.parameterToPair("storage", storage)); if (folder != null) @@ -25133,53 +28635,46 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call postDocumentPageNumberStampsValidateBeforeCall(String name, PageNumberStamp stamp, Integer startPageNumber, Integer endPageNumber, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call postImportFieldsFromFdfValidateBeforeCall(String name, String storage, String folder, File fdfData, 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 postDocumentPageNumberStamps(Async)"); - } - - // verify the required parameter 'stamp' is set - if (stamp == null) { - throw new ApiException("Missing the required parameter 'stamp' when calling postDocumentPageNumberStamps(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling postImportFieldsFromFdf(Async)"); } - com.squareup.okhttp.Call call = postDocumentPageNumberStampsCall(name, stamp, startPageNumber, endPageNumber, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = postImportFieldsFromFdfCall(name, storage, folder, fdfData, progressListener, progressRequestListener); return call; } /** - * Add document page number stamps. + * Update fields from FDF file in request. * * @param name The document name. (required) - * @param stamp The stamp. (required) - * @param startPageNumber The start page number. (optional) - * @param endPageNumber The end page number. (optional) * @param storage The document storage. (optional) * @param folder The document folder. (optional) + * @param fdfData Fdf file. (optional) * @return AsposeResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public AsposeResponse postDocumentPageNumberStamps(String name, PageNumberStamp stamp, Integer startPageNumber, Integer endPageNumber, String storage, String folder) throws ApiException { + public AsposeResponse postImportFieldsFromFdf(String name, String storage, String folder, File fdfData) throws ApiException { try { - ApiResponse resp = postDocumentPageNumberStampsWithHttpInfo(name, stamp, startPageNumber, endPageNumber, storage, folder); + ApiResponse resp = postImportFieldsFromFdfWithHttpInfo(name, storage, folder, fdfData); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = postDocumentPageNumberStampsWithHttpInfo(name, stamp, startPageNumber, endPageNumber, storage, folder); + apiClient.requestToken(); + ApiResponse resp = postImportFieldsFromFdfWithHttpInfo(name, storage, folder, fdfData); return resp.getData(); } throw ex; @@ -25187,37 +28682,33 @@ public AsposeResponse postDocumentPageNumberStamps(String name, PageNumberStamp } /** - * Add document page number stamps. + * Update fields from FDF file in request. * * @param name The document name. (required) - * @param stamp The stamp. (required) - * @param startPageNumber The start page number. (optional) - * @param endPageNumber The end page number. (optional) * @param storage The document storage. (optional) * @param folder The document folder. (optional) + * @param fdfData Fdf 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 postDocumentPageNumberStampsWithHttpInfo(String name, PageNumberStamp stamp, Integer startPageNumber, Integer endPageNumber, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = postDocumentPageNumberStampsValidateBeforeCall(name, stamp, startPageNumber, endPageNumber, storage, folder, null, null); + public ApiResponse postImportFieldsFromFdfWithHttpInfo(String name, String storage, String folder, File fdfData) throws ApiException { + com.squareup.okhttp.Call call = postImportFieldsFromFdfValidateBeforeCall(name, storage, folder, fdfData, null, null); Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Add document page number stamps. (asynchronously) + * Update fields from FDF file in request. (asynchronously) * * @param name The document name. (required) - * @param stamp The stamp. (required) - * @param startPageNumber The start page number. (optional) - * @param endPageNumber The end page number. (optional) * @param storage The document storage. (optional) * @param folder The document folder. (optional) + * @param fdfData Fdf 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 postDocumentPageNumberStampsAsync(String name, PageNumberStamp stamp, Integer startPageNumber, Integer endPageNumber, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call postImportFieldsFromFdfAsync(String name, String storage, String folder, File fdfData, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -25238,37 +28729,31 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = postDocumentPageNumberStampsValidateBeforeCall(name, stamp, startPageNumber, endPageNumber, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = postImportFieldsFromFdfValidateBeforeCall(name, storage, folder, fdfData, progressListener, progressRequestListener); Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for postDocumentTextFooter + * Build call for postImportFieldsFromXfdf * @param name The document name. (required) - * @param textFooter The text footer. (required) - * @param startPageNumber The start page number. (optional) - * @param endPageNumber The end page number. (optional) * @param storage The document storage. (optional) * @param folder The document folder. (optional) + * @param xfdfData Xfdf 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 postDocumentTextFooterCall(String name, TextFooter textFooter, Integer startPageNumber, Integer endPageNumber, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = textFooter; + public com.squareup.okhttp.Call postImportFieldsFromXfdfCall(String name, String storage, String folder, File xfdfData, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = xfdfData; // create path and map variables - String localVarPath = "/pdf/{name}/footer/text" + String localVarPath = "/pdf/{name}/import/xfdf" .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (startPageNumber != null) - localVarQueryParams.addAll(apiClient.parameterToPair("startPageNumber", startPageNumber)); - if (endPageNumber != null) - localVarQueryParams.addAll(apiClient.parameterToPair("endPageNumber", endPageNumber)); if (storage != null) localVarQueryParams.addAll(apiClient.parameterToPair("storage", storage)); if (folder != null) @@ -25302,53 +28787,46 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call postDocumentTextFooterValidateBeforeCall(String name, TextFooter textFooter, Integer startPageNumber, Integer endPageNumber, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call postImportFieldsFromXfdfValidateBeforeCall(String name, String storage, String folder, File xfdfData, 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 postDocumentTextFooter(Async)"); - } - - // verify the required parameter 'textFooter' is set - if (textFooter == null) { - throw new ApiException("Missing the required parameter 'textFooter' when calling postDocumentTextFooter(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling postImportFieldsFromXfdf(Async)"); } - com.squareup.okhttp.Call call = postDocumentTextFooterCall(name, textFooter, startPageNumber, endPageNumber, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = postImportFieldsFromXfdfCall(name, storage, folder, xfdfData, progressListener, progressRequestListener); return call; } /** - * Add document text footer. + * Update fields from XFDF file in request. * * @param name The document name. (required) - * @param textFooter The text footer. (required) - * @param startPageNumber The start page number. (optional) - * @param endPageNumber The end page number. (optional) * @param storage The document storage. (optional) * @param folder The document folder. (optional) + * @param xfdfData Xfdf file. (optional) * @return AsposeResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public AsposeResponse postDocumentTextFooter(String name, TextFooter textFooter, Integer startPageNumber, Integer endPageNumber, String storage, String folder) throws ApiException { + public AsposeResponse postImportFieldsFromXfdf(String name, String storage, String folder, File xfdfData) throws ApiException { try { - ApiResponse resp = postDocumentTextFooterWithHttpInfo(name, textFooter, startPageNumber, endPageNumber, storage, folder); + ApiResponse resp = postImportFieldsFromXfdfWithHttpInfo(name, storage, folder, xfdfData); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = postDocumentTextFooterWithHttpInfo(name, textFooter, startPageNumber, endPageNumber, storage, folder); + apiClient.requestToken(); + ApiResponse resp = postImportFieldsFromXfdfWithHttpInfo(name, storage, folder, xfdfData); return resp.getData(); } throw ex; @@ -25356,37 +28834,33 @@ public AsposeResponse postDocumentTextFooter(String name, TextFooter textFooter, } /** - * Add document text footer. + * Update fields from XFDF file in request. * * @param name The document name. (required) - * @param textFooter The text footer. (required) - * @param startPageNumber The start page number. (optional) - * @param endPageNumber The end page number. (optional) * @param storage The document storage. (optional) * @param folder The document folder. (optional) + * @param xfdfData Xfdf 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 postDocumentTextFooterWithHttpInfo(String name, TextFooter textFooter, Integer startPageNumber, Integer endPageNumber, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = postDocumentTextFooterValidateBeforeCall(name, textFooter, startPageNumber, endPageNumber, storage, folder, null, null); + public ApiResponse postImportFieldsFromXfdfWithHttpInfo(String name, String storage, String folder, File xfdfData) throws ApiException { + com.squareup.okhttp.Call call = postImportFieldsFromXfdfValidateBeforeCall(name, storage, folder, xfdfData, null, null); Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Add document text footer. (asynchronously) + * Update fields from XFDF file in request. (asynchronously) * * @param name The document name. (required) - * @param textFooter The text footer. (required) - * @param startPageNumber The start page number. (optional) - * @param endPageNumber The end page number. (optional) * @param storage The document storage. (optional) * @param folder The document folder. (optional) + * @param xfdfData Xfdf 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 postDocumentTextFooterAsync(String name, TextFooter textFooter, Integer startPageNumber, Integer endPageNumber, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call postImportFieldsFromXfdfAsync(String name, String storage, String folder, File xfdfData, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -25407,37 +28881,31 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = postDocumentTextFooterValidateBeforeCall(name, textFooter, startPageNumber, endPageNumber, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = postImportFieldsFromXfdfValidateBeforeCall(name, storage, folder, xfdfData, progressListener, progressRequestListener); Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for postDocumentTextHeader + * Build call for postImportFieldsFromXml * @param name The document name. (required) - * @param textHeader The text header. (required) - * @param startPageNumber The start page number. (optional) - * @param endPageNumber The end page number. (optional) * @param storage The document storage. (optional) * @param folder The document folder. (optional) + * @param xmlData Xml 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 postDocumentTextHeaderCall(String name, TextHeader textHeader, Integer startPageNumber, Integer endPageNumber, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = textHeader; + public com.squareup.okhttp.Call postImportFieldsFromXmlCall(String name, String storage, String folder, File xmlData, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = xmlData; // create path and map variables - String localVarPath = "/pdf/{name}/header/text" + String localVarPath = "/pdf/{name}/import/xml" .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (startPageNumber != null) - localVarQueryParams.addAll(apiClient.parameterToPair("startPageNumber", startPageNumber)); - if (endPageNumber != null) - localVarQueryParams.addAll(apiClient.parameterToPair("endPageNumber", endPageNumber)); if (storage != null) localVarQueryParams.addAll(apiClient.parameterToPair("storage", storage)); if (folder != null) @@ -25471,53 +28939,46 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call postDocumentTextHeaderValidateBeforeCall(String name, TextHeader textHeader, Integer startPageNumber, Integer endPageNumber, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call postImportFieldsFromXmlValidateBeforeCall(String name, String storage, String folder, File xmlData, 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 postDocumentTextHeader(Async)"); - } - - // verify the required parameter 'textHeader' is set - if (textHeader == null) { - throw new ApiException("Missing the required parameter 'textHeader' when calling postDocumentTextHeader(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling postImportFieldsFromXml(Async)"); } - com.squareup.okhttp.Call call = postDocumentTextHeaderCall(name, textHeader, startPageNumber, endPageNumber, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = postImportFieldsFromXmlCall(name, storage, folder, xmlData, progressListener, progressRequestListener); return call; } /** - * Add document text header. + * Update fields from XML file in request. * * @param name The document name. (required) - * @param textHeader The text header. (required) - * @param startPageNumber The start page number. (optional) - * @param endPageNumber The end page number. (optional) * @param storage The document storage. (optional) * @param folder The document folder. (optional) + * @param xmlData Xml file. (optional) * @return AsposeResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public AsposeResponse postDocumentTextHeader(String name, TextHeader textHeader, Integer startPageNumber, Integer endPageNumber, String storage, String folder) throws ApiException { + public AsposeResponse postImportFieldsFromXml(String name, String storage, String folder, File xmlData) throws ApiException { try { - ApiResponse resp = postDocumentTextHeaderWithHttpInfo(name, textHeader, startPageNumber, endPageNumber, storage, folder); + ApiResponse resp = postImportFieldsFromXmlWithHttpInfo(name, storage, folder, xmlData); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = postDocumentTextHeaderWithHttpInfo(name, textHeader, startPageNumber, endPageNumber, storage, folder); + apiClient.requestToken(); + ApiResponse resp = postImportFieldsFromXmlWithHttpInfo(name, storage, folder, xmlData); return resp.getData(); } throw ex; @@ -25525,37 +28986,33 @@ public AsposeResponse postDocumentTextHeader(String name, TextHeader textHeader, } /** - * Add document text header. + * Update fields from XML file in request. * * @param name The document name. (required) - * @param textHeader The text header. (required) - * @param startPageNumber The start page number. (optional) - * @param endPageNumber The end page number. (optional) * @param storage The document storage. (optional) * @param folder The document folder. (optional) + * @param xmlData Xml 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 postDocumentTextHeaderWithHttpInfo(String name, TextHeader textHeader, Integer startPageNumber, Integer endPageNumber, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = postDocumentTextHeaderValidateBeforeCall(name, textHeader, startPageNumber, endPageNumber, storage, folder, null, null); + public ApiResponse postImportFieldsFromXmlWithHttpInfo(String name, String storage, String folder, File xmlData) throws ApiException { + com.squareup.okhttp.Call call = postImportFieldsFromXmlValidateBeforeCall(name, storage, folder, xmlData, null, null); Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Add document text header. (asynchronously) + * Update fields from XML file in request. (asynchronously) * * @param name The document name. (required) - * @param textHeader The text header. (required) - * @param startPageNumber The start page number. (optional) - * @param endPageNumber The end page number. (optional) * @param storage The document storage. (optional) * @param folder The document folder. (optional) + * @param xmlData Xml 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 postDocumentTextHeaderAsync(String name, TextHeader textHeader, Integer startPageNumber, Integer endPageNumber, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call postImportFieldsFromXmlAsync(String name, String storage, String folder, File xmlData, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -25576,31 +29033,48 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = postDocumentTextHeaderValidateBeforeCall(name, textHeader, startPageNumber, endPageNumber, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = postImportFieldsFromXmlValidateBeforeCall(name, storage, folder, xmlData, 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 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) * @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 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}/text/replace" - .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 (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) @@ -25634,51 +29108,77 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @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 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 postDocumentTextReplace(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling postInsertImage(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 '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 = postDocumentTextReplaceCall(name, textReplace, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = postInsertImageCall(name, pageNumber, llx, lly, urx, ury, imageFilePath, storage, folder, image, progressListener, progressRequestListener); return call; } /** - * Document's replace text method. + * Insert image to document page. * - * @param name (required) - * @param textReplace (required) - * @param storage (optional) - * @param folder (optional) - * @return TextReplaceResponse + * @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) + * @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 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 = postDocumentTextReplaceWithHttpInfo(name, textReplace, storage, folder); + ApiResponse resp = postInsertImageWithHttpInfo(name, pageNumber, llx, lly, urx, ury, imageFilePath, storage, folder, image); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = postDocumentTextReplaceWithHttpInfo(name, textReplace, storage, folder); + apiClient.requestToken(); + ApiResponse resp = postInsertImageWithHttpInfo(name, pageNumber, llx, lly, urx, ury, imageFilePath, storage, folder, image); return resp.getData(); } throw ex; @@ -25686,33 +29186,45 @@ public TextReplaceResponse postDocumentTextReplace(String name, TextReplaceListR } /** - * Document's replace text method. + * Insert image to document page. * - * @param name (required) - * @param textReplace (required) - * @param storage (optional) - * @param folder (optional) - * @return ApiResponse<TextReplaceResponse> + * @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) + * @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 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); } /** - * Document's replace text method. (asynchronously) + * Insert image to document page. (asynchronously) * - * @param name (required) - * @param textReplace (required) - * @param storage (optional) - * @param folder (optional) + * @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 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 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; @@ -25733,19 +29245,16 @@ 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 = 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 postEncryptDocumentInStorage - * @param name Document name. (required) - * @param userPassword User password (encrypted Base64). (required) - * @param ownerPassword Owner password (encrypted Base64). (required) - * @param cryptoAlgorithm Cryptographic algorithm, see for details. (required) - * @param permissionsFlags Array of document permissions, see for details. (optional) - * @param usePdf20 Support for revision 6 (Extension 8). (optional) + * Build call for postMovePage + * @param name The document name. (required) + * @param pageNumber The page number. (required) + * @param newIndex The new page position/index. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) * @param progressListener Progress listener @@ -25753,25 +29262,18 @@ 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 postEncryptDocumentInStorageCall(String name, String userPassword, String ownerPassword, String cryptoAlgorithm, List permissionsFlags, Boolean usePdf20, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call postMovePageCall(String name, Integer pageNumber, Integer newIndex, 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}/encrypt" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + String localVarPath = "/pdf/{name}/pages/{pageNumber}/movePage" + .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) + .replaceAll("\\{" + "pageNumber" + "\\}", apiClient.escapeString(pageNumber.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (userPassword != null) - localVarQueryParams.addAll(apiClient.parameterToPair("userPassword", userPassword)); - if (ownerPassword != null) - localVarQueryParams.addAll(apiClient.parameterToPair("ownerPassword", ownerPassword)); - if (cryptoAlgorithm != null) - localVarQueryParams.addAll(apiClient.parameterToPair("cryptoAlgorithm", cryptoAlgorithm)); - if (permissionsFlags != null) - localVarCollectionQueryParams.addAll(apiClient.parameterToPairs("multi", "permissionsFlags", permissionsFlags)); - if (usePdf20 != null) - localVarQueryParams.addAll(apiClient.parameterToPair("usePdf20", usePdf20)); + if (newIndex != null) + localVarQueryParams.addAll(apiClient.parameterToPair("newIndex", newIndex)); if (storage != null) localVarQueryParams.addAll(apiClient.parameterToPair("storage", storage)); if (folder != null) @@ -25805,65 +29307,57 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call postEncryptDocumentInStorageValidateBeforeCall(String name, String userPassword, String ownerPassword, String cryptoAlgorithm, List permissionsFlags, Boolean usePdf20, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call postMovePageValidateBeforeCall(String name, Integer pageNumber, Integer newIndex, 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 postEncryptDocumentInStorage(Async)"); - } - - // verify the required parameter 'userPassword' is set - if (userPassword == null) { - throw new ApiException("Missing the required parameter 'userPassword' when calling postEncryptDocumentInStorage(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling postMovePage(Async)"); } - // verify the required parameter 'ownerPassword' is set - if (ownerPassword == null) { - throw new ApiException("Missing the required parameter 'ownerPassword' when calling postEncryptDocumentInStorage(Async)"); + // verify the required parameter 'pageNumber' is set + if (pageNumber == null) { + throw new ApiException("Missing the required parameter 'pageNumber' when calling postMovePage(Async)"); } - // verify the required parameter 'cryptoAlgorithm' is set - if (cryptoAlgorithm == null) { - throw new ApiException("Missing the required parameter 'cryptoAlgorithm' when calling postEncryptDocumentInStorage(Async)"); + // verify the required parameter 'newIndex' is set + if (newIndex == null) { + throw new ApiException("Missing the required parameter 'newIndex' when calling postMovePage(Async)"); } - com.squareup.okhttp.Call call = postEncryptDocumentInStorageCall(name, userPassword, ownerPassword, cryptoAlgorithm, permissionsFlags, usePdf20, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = postMovePageCall(name, pageNumber, newIndex, storage, folder, progressListener, progressRequestListener); return call; } /** - * Encrypt document in storage. + * Move page to new position. * - * @param name Document name. (required) - * @param userPassword User password (encrypted Base64). (required) - * @param ownerPassword Owner password (encrypted Base64). (required) - * @param cryptoAlgorithm Cryptographic algorithm, see for details. (required) - * @param permissionsFlags Array of document permissions, see for details. (optional) - * @param usePdf20 Support for revision 6 (Extension 8). (optional) + * @param name The document name. (required) + * @param pageNumber The page number. (required) + * @param newIndex The new page position/index. (required) * @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 AsposeResponse postEncryptDocumentInStorage(String name, String userPassword, String ownerPassword, String cryptoAlgorithm, List permissionsFlags, Boolean usePdf20, String storage, String folder) throws ApiException { + public AsposeResponse postMovePage(String name, Integer pageNumber, Integer newIndex, String storage, String folder) throws ApiException { try { - ApiResponse resp = postEncryptDocumentInStorageWithHttpInfo(name, userPassword, ownerPassword, cryptoAlgorithm, permissionsFlags, usePdf20, storage, folder); + ApiResponse resp = postMovePageWithHttpInfo(name, pageNumber, newIndex, storage, folder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = postEncryptDocumentInStorageWithHttpInfo(name, userPassword, ownerPassword, cryptoAlgorithm, permissionsFlags, usePdf20, storage, folder); + apiClient.requestToken(); + ApiResponse resp = postMovePageWithHttpInfo(name, pageNumber, newIndex, storage, folder); return resp.getData(); } throw ex; @@ -25871,41 +29365,35 @@ public AsposeResponse postEncryptDocumentInStorage(String name, String userPassw } /** - * Encrypt document in storage. + * Move page to new position. * - * @param name Document name. (required) - * @param userPassword User password (encrypted Base64). (required) - * @param ownerPassword Owner password (encrypted Base64). (required) - * @param cryptoAlgorithm Cryptographic algorithm, see for details. (required) - * @param permissionsFlags Array of document permissions, see for details. (optional) - * @param usePdf20 Support for revision 6 (Extension 8). (optional) + * @param name The document name. (required) + * @param pageNumber The page number. (required) + * @param newIndex The new page position/index. (required) * @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 postEncryptDocumentInStorageWithHttpInfo(String name, String userPassword, String ownerPassword, String cryptoAlgorithm, List permissionsFlags, Boolean usePdf20, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = postEncryptDocumentInStorageValidateBeforeCall(name, userPassword, ownerPassword, cryptoAlgorithm, permissionsFlags, usePdf20, storage, folder, null, null); + public ApiResponse postMovePageWithHttpInfo(String name, Integer pageNumber, Integer newIndex, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = postMovePageValidateBeforeCall(name, pageNumber, newIndex, storage, folder, null, null); Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Encrypt document in storage. (asynchronously) + * Move page to new position. (asynchronously) * - * @param name Document name. (required) - * @param userPassword User password (encrypted Base64). (required) - * @param ownerPassword Owner password (encrypted Base64). (required) - * @param cryptoAlgorithm Cryptographic algorithm, see for details. (required) - * @param permissionsFlags Array of document permissions, see for details. (optional) - * @param usePdf20 Support for revision 6 (Extension 8). (optional) + * @param name The document name. (required) + * @param pageNumber The page number. (required) + * @param newIndex The new page position/index. (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 postEncryptDocumentInStorageAsync(String name, String userPassword, String ownerPassword, String cryptoAlgorithm, List permissionsFlags, Boolean usePdf20, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call postMovePageAsync(String name, Integer pageNumber, Integer newIndex, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -25926,17 +29414,15 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = postEncryptDocumentInStorageValidateBeforeCall(name, userPassword, ownerPassword, cryptoAlgorithm, permissionsFlags, usePdf20, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = postMovePageValidateBeforeCall(name, pageNumber, newIndex, storage, folder, progressListener, progressRequestListener); Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for postFlattenDocument + * Build call for postOptimizeDocument * @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 options The optimization options. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) * @param progressListener Progress listener @@ -25944,21 +29430,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 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; + public com.squareup.okhttp.Call postOptimizeDocumentCall(String name, OptimizeOptions options, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = options; // create path and map variables - String localVarPath = "/pdf/{name}/flatten" + String localVarPath = "/pdf/{name}/optimize" .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - 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) @@ -25992,48 +29472,51 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - 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 { + private com.squareup.okhttp.Call postOptimizeDocumentValidateBeforeCall(String name, OptimizeOptions options, 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 postFlattenDocument(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling postOptimizeDocument(Async)"); + } + + // verify the required parameter 'options' is set + if (options == null) { + throw new ApiException("Missing the required parameter 'options' when calling postOptimizeDocument(Async)"); } - com.squareup.okhttp.Call call = postFlattenDocumentCall(name, updateAppearances, callEvents, hideButtons, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = postOptimizeDocumentCall(name, options, storage, folder, progressListener, progressRequestListener); return call; } /** - * Flatten the document. + * Optimize document. * * @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 options The optimization options. (required) * @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 AsposeResponse postFlattenDocument(String name, Boolean updateAppearances, Boolean callEvents, Boolean hideButtons, String storage, String folder) throws ApiException { + public AsposeResponse postOptimizeDocument(String name, OptimizeOptions options, String storage, String folder) throws ApiException { try { - ApiResponse resp = postFlattenDocumentWithHttpInfo(name, updateAppearances, callEvents, hideButtons, storage, folder); + ApiResponse resp = postOptimizeDocumentWithHttpInfo(name, options, storage, folder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = postFlattenDocumentWithHttpInfo(name, updateAppearances, callEvents, hideButtons, storage, folder); + apiClient.requestToken(); + ApiResponse resp = postOptimizeDocumentWithHttpInfo(name, options, storage, folder); return resp.getData(); } throw ex; @@ -26041,37 +29524,33 @@ public AsposeResponse postFlattenDocument(String name, Boolean updateAppearances } /** - * Flatten the document. + * Optimize document. * * @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 options The optimization options. (required) * @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 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); + public ApiResponse postOptimizeDocumentWithHttpInfo(String name, OptimizeOptions options, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = postOptimizeDocumentValidateBeforeCall(name, options, storage, folder, null, null); Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Flatten the document. (asynchronously) + * Optimize document. (asynchronously) * * @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 options The optimization options. (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 postFlattenDocumentAsync(String name, Boolean updateAppearances, Boolean callEvents, Boolean hideButtons, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call postOptimizeDocumentAsync(String name, OptimizeOptions options, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -26092,48 +29571,33 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = postFlattenDocumentValidateBeforeCall(name, updateAppearances, callEvents, hideButtons, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = postOptimizeDocumentValidateBeforeCall(name, options, storage, folder, progressListener, progressRequestListener); Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for postInsertImage + * Build call for postPageCaretAnnotations * @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 annotations The array of annotation. (required) * @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 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 postPageCaretAnnotationsCall(String name, Integer pageNumber, List annotations, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = annotations; // create path and map variables - String localVarPath = "/pdf/{name}/pages/{pageNumber}/images" + 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 (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) @@ -26167,77 +29631,57 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @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 { + private com.squareup.okhttp.Call postPageCaretAnnotationsValidateBeforeCall(String name, Integer pageNumber, List annotations, 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 postInsertImage(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling postPageCaretAnnotations(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)"); + throw new ApiException("Missing the required parameter 'pageNumber' when calling postPageCaretAnnotations(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 'annotations' is set + if (annotations == null) { + throw new ApiException("Missing the required parameter 'annotations' when calling postPageCaretAnnotations(Async)"); } - com.squareup.okhttp.Call call = postInsertImageCall(name, pageNumber, llx, lly, urx, ury, imageFilePath, storage, folder, image, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = postPageCaretAnnotationsCall(name, pageNumber, annotations, storage, folder, progressListener, progressRequestListener); return call; } /** - * Insert image to document page. + * Add document page caret annotations. * * @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 annotations The array of annotation. (required) * @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 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 postPageCaretAnnotations(String name, Integer pageNumber, List annotations, String storage, String folder) throws ApiException { try { - ApiResponse resp = postInsertImageWithHttpInfo(name, pageNumber, llx, lly, urx, ury, imageFilePath, storage, folder, image); + ApiResponse resp = postPageCaretAnnotationsWithHttpInfo(name, pageNumber, annotations, storage, folder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = postInsertImageWithHttpInfo(name, pageNumber, llx, lly, urx, ury, imageFilePath, storage, folder, image); + apiClient.requestToken(); + ApiResponse resp = postPageCaretAnnotationsWithHttpInfo(name, pageNumber, annotations, storage, folder); return resp.getData(); } throw ex; @@ -26245,45 +29689,35 @@ public AsposeResponse postInsertImage(String name, Integer pageNumber, Double ll } /** - * Insert image to document page. + * Add document page caret annotations. * * @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 annotations The array of annotation. (required) * @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 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 postPageCaretAnnotationsWithHttpInfo(String name, Integer pageNumber, List annotations, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = postPageCaretAnnotationsValidateBeforeCall(name, pageNumber, annotations, storage, folder, null, null); Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Insert image to document page. (asynchronously) + * Add document page caret annotations. (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 annotations The array of annotation. (required) * @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 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 postPageCaretAnnotationsAsync(String name, Integer pageNumber, List annotations, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -26304,41 +29738,37 @@ 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 = postPageCaretAnnotationsValidateBeforeCall(name, pageNumber, annotations, storage, folder, progressListener, progressRequestListener); Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * 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) + * Build call for postPageCircleAnnotations + * @param name The document name. (required) + * @param pageNumber The page number. (required) + * @param annotations The array of annotation. (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 postMoveFileCall(String src, String dest, String versionId, String storage, String destStorage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = null; + public com.squareup.okhttp.Call postPageCircleAnnotationsCall(String name, Integer pageNumber, List annotations, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = annotations; // create path and map variables - String localVarPath = "/storage/file"; + 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 (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 (destStorage != null) - localVarQueryParams.addAll(apiClient.parameterToPair("destStorage", destStorage)); + if (folder != null) + localVarQueryParams.addAll(apiClient.parameterToPair("folder", folder)); Map localVarHeaderParams = new HashMap(); @@ -26368,52 +29798,57 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - 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 { + private com.squareup.okhttp.Call postPageCircleAnnotationsValidateBeforeCall(String name, Integer pageNumber, List annotations, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - // 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 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling postPageCircleAnnotations(Async)"); } - // verify the required parameter 'dest' is set - if (dest == null) { - throw new ApiException("Missing the required parameter 'dest' when calling postMoveFile(Async)"); + // verify the required parameter 'pageNumber' is set + if (pageNumber == null) { + throw new ApiException("Missing the required parameter 'pageNumber' when calling postPageCircleAnnotations(Async)"); + } + + // verify the required parameter 'annotations' is set + if (annotations == null) { + throw new ApiException("Missing the required parameter 'annotations' when calling postPageCircleAnnotations(Async)"); } - com.squareup.okhttp.Call call = postMoveFileCall(src, dest, versionId, storage, destStorage, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = postPageCircleAnnotationsCall(name, pageNumber, annotations, storage, folder, progressListener, progressRequestListener); return call; } /** - * Move a specific file + * Add document page circle annotations. * - * @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 name The document name. (required) + * @param pageNumber The page number. (required) + * @param annotations The array of annotation. (required) + * @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 AsposeResponse postMoveFile(String src, String dest, String versionId, String storage, String destStorage) throws ApiException { + public AsposeResponse postPageCircleAnnotations(String name, Integer pageNumber, List annotations, String storage, String folder) throws ApiException { try { - ApiResponse resp = postMoveFileWithHttpInfo(src, dest, versionId, storage, destStorage); + ApiResponse resp = postPageCircleAnnotationsWithHttpInfo(name, pageNumber, annotations, storage, folder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = postMoveFileWithHttpInfo(src, dest, versionId, storage, destStorage); + apiClient.requestToken(); + ApiResponse resp = postPageCircleAnnotationsWithHttpInfo(name, pageNumber, annotations, storage, folder); return resp.getData(); } throw ex; @@ -26421,35 +29856,35 @@ public AsposeResponse postMoveFile(String src, String dest, String versionId, St } /** - * Move a specific file + * Add document page circle annotations. * - * @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 name The document name. (required) + * @param pageNumber The page number. (required) + * @param annotations The array of annotation. (required) + * @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 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); + public ApiResponse postPageCircleAnnotationsWithHttpInfo(String name, Integer pageNumber, List annotations, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = postPageCircleAnnotationsValidateBeforeCall(name, pageNumber, annotations, storage, folder, null, null); Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Move a specific file (asynchronously) + * Add document page circle annotations. (asynchronously) * - * @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 name The document name. (required) + * @param pageNumber The page number. (required) + * @param annotations The array of annotation. (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 postMoveFileAsync(String src, String dest, String versionId, String storage, String destStorage, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call postPageCircleAnnotationsAsync(String name, Integer pageNumber, List annotations, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -26470,38 +29905,37 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = postMoveFileValidateBeforeCall(src, dest, versionId, storage, destStorage, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = postPageCircleAnnotationsValidateBeforeCall(name, pageNumber, annotations, storage, folder, progressListener, progressRequestListener); Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * 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) + * Build call for postPageFileAttachmentAnnotations + * @param name The document name. (required) + * @param pageNumber The page number. (required) + * @param annotations Annotation. (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 postMoveFolderCall(String src, String dest, String storage, String destStorage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = null; + public com.squareup.okhttp.Call postPageFileAttachmentAnnotationsCall(String name, Integer pageNumber, List annotations, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = annotations; // create path and map variables - String localVarPath = "/storage/folder"; + String localVarPath = "/pdf/{name}/pages/{pageNumber}/annotations/fileattachment" + .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) + .replaceAll("\\{" + "pageNumber" + "\\}", apiClient.escapeString(pageNumber.toString())); 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 (storage != null) localVarQueryParams.addAll(apiClient.parameterToPair("storage", storage)); - if (destStorage != null) - localVarQueryParams.addAll(apiClient.parameterToPair("destStorage", destStorage)); + if (folder != null) + localVarQueryParams.addAll(apiClient.parameterToPair("folder", folder)); Map localVarHeaderParams = new HashMap(); @@ -26531,51 +29965,57 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call postMoveFolderValidateBeforeCall(String src, String dest, String storage, String destStorage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call postPageFileAttachmentAnnotationsValidateBeforeCall(String name, Integer pageNumber, List annotations, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - // 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 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling postPageFileAttachmentAnnotations(Async)"); + } + + // verify the required parameter 'pageNumber' is set + if (pageNumber == null) { + throw new ApiException("Missing the required parameter 'pageNumber' when calling postPageFileAttachmentAnnotations(Async)"); } - // verify the required parameter 'dest' is set - if (dest == null) { - throw new ApiException("Missing the required parameter 'dest' when calling postMoveFolder(Async)"); + // verify the required parameter 'annotations' is set + if (annotations == null) { + throw new ApiException("Missing the required parameter 'annotations' when calling postPageFileAttachmentAnnotations(Async)"); } - com.squareup.okhttp.Call call = postMoveFolderCall(src, dest, storage, destStorage, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = postPageFileAttachmentAnnotationsCall(name, pageNumber, annotations, storage, folder, progressListener, progressRequestListener); return call; } /** - * Move a specific folder + * Add document page FileAttachment annotations. * - * @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 name The document name. (required) + * @param pageNumber The page number. (required) + * @param annotations Annotation. (required) + * @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 AsposeResponse postMoveFolder(String src, String dest, String storage, String destStorage) throws ApiException { + public AsposeResponse postPageFileAttachmentAnnotations(String name, Integer pageNumber, List annotations, String storage, String folder) throws ApiException { try { - ApiResponse resp = postMoveFolderWithHttpInfo(src, dest, storage, destStorage); + ApiResponse resp = postPageFileAttachmentAnnotationsWithHttpInfo(name, pageNumber, annotations, storage, folder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = postMoveFolderWithHttpInfo(src, dest, storage, destStorage); + apiClient.requestToken(); + ApiResponse resp = postPageFileAttachmentAnnotationsWithHttpInfo(name, pageNumber, annotations, storage, folder); return resp.getData(); } throw ex; @@ -26583,33 +30023,35 @@ public AsposeResponse postMoveFolder(String src, String dest, String storage, St } /** - * Move a specific folder + * Add document page FileAttachment annotations. * - * @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 name The document name. (required) + * @param pageNumber The page number. (required) + * @param annotations Annotation. (required) + * @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 postMoveFolderWithHttpInfo(String src, String dest, String storage, String destStorage) throws ApiException { - com.squareup.okhttp.Call call = postMoveFolderValidateBeforeCall(src, dest, storage, destStorage, null, null); + public ApiResponse postPageFileAttachmentAnnotationsWithHttpInfo(String name, Integer pageNumber, List annotations, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = postPageFileAttachmentAnnotationsValidateBeforeCall(name, pageNumber, annotations, storage, folder, null, null); Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Move a specific folder (asynchronously) + * Add document page FileAttachment annotations. (asynchronously) * - * @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 name The document name. (required) + * @param pageNumber The page number. (required) + * @param annotations Annotation. (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 postMoveFolderAsync(String src, String dest, String storage, String destStorage, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call postPageFileAttachmentAnnotationsAsync(String name, Integer pageNumber, List annotations, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -26630,16 +30072,16 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = postMoveFolderValidateBeforeCall(src, dest, storage, destStorage, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = postPageFileAttachmentAnnotationsValidateBeforeCall(name, pageNumber, annotations, storage, folder, progressListener, progressRequestListener); Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for postMovePage + * Build call for postPageFreeTextAnnotations * @param name The document name. (required) * @param pageNumber The page number. (required) - * @param newIndex The new page position/index. (required) + * @param annotations The array of annotation. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) * @param progressListener Progress listener @@ -26647,18 +30089,16 @@ 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 postMovePageCall(String name, Integer pageNumber, Integer newIndex, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = null; + public com.squareup.okhttp.Call postPageFreeTextAnnotationsCall(String name, Integer pageNumber, List annotations, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = annotations; // create path and map variables - String localVarPath = "/pdf/{name}/pages/{pageNumber}/movePage" + String localVarPath = "/pdf/{name}/pages/{pageNumber}/annotations/freetext" .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) .replaceAll("\\{" + "pageNumber" + "\\}", apiClient.escapeString(pageNumber.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (newIndex != null) - localVarQueryParams.addAll(apiClient.parameterToPair("newIndex", newIndex)); if (storage != null) localVarQueryParams.addAll(apiClient.parameterToPair("storage", storage)); if (folder != null) @@ -26692,57 +30132,57 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call postMovePageValidateBeforeCall(String name, Integer pageNumber, Integer newIndex, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call postPageFreeTextAnnotationsValidateBeforeCall(String name, Integer pageNumber, List annotations, 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 postMovePage(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling postPageFreeTextAnnotations(Async)"); } // verify the required parameter 'pageNumber' is set if (pageNumber == null) { - throw new ApiException("Missing the required parameter 'pageNumber' when calling postMovePage(Async)"); + throw new ApiException("Missing the required parameter 'pageNumber' when calling postPageFreeTextAnnotations(Async)"); } - // verify the required parameter 'newIndex' is set - if (newIndex == null) { - throw new ApiException("Missing the required parameter 'newIndex' when calling postMovePage(Async)"); + // verify the required parameter 'annotations' is set + if (annotations == null) { + throw new ApiException("Missing the required parameter 'annotations' when calling postPageFreeTextAnnotations(Async)"); } - com.squareup.okhttp.Call call = postMovePageCall(name, pageNumber, newIndex, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = postPageFreeTextAnnotationsCall(name, pageNumber, annotations, storage, folder, progressListener, progressRequestListener); return call; } /** - * Move page to new position. + * Add document page free text annotations. * * @param name The document name. (required) * @param pageNumber The page number. (required) - * @param newIndex The new page position/index. (required) + * @param annotations The array of annotation. (required) * @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 AsposeResponse postMovePage(String name, Integer pageNumber, Integer newIndex, String storage, String folder) throws ApiException { + public AsposeResponse postPageFreeTextAnnotations(String name, Integer pageNumber, List annotations, String storage, String folder) throws ApiException { try { - ApiResponse resp = postMovePageWithHttpInfo(name, pageNumber, newIndex, storage, folder); + ApiResponse resp = postPageFreeTextAnnotationsWithHttpInfo(name, pageNumber, annotations, storage, folder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = postMovePageWithHttpInfo(name, pageNumber, newIndex, storage, folder); + apiClient.requestToken(); + ApiResponse resp = postPageFreeTextAnnotationsWithHttpInfo(name, pageNumber, annotations, storage, folder); return resp.getData(); } throw ex; @@ -26750,35 +30190,35 @@ public AsposeResponse postMovePage(String name, Integer pageNumber, Integer newI } /** - * Move page to new position. + * Add document page free text annotations. * * @param name The document name. (required) * @param pageNumber The page number. (required) - * @param newIndex The new page position/index. (required) + * @param annotations The array of annotation. (required) * @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 postMovePageWithHttpInfo(String name, Integer pageNumber, Integer newIndex, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = postMovePageValidateBeforeCall(name, pageNumber, newIndex, storage, folder, null, null); + public ApiResponse postPageFreeTextAnnotationsWithHttpInfo(String name, Integer pageNumber, List annotations, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = postPageFreeTextAnnotationsValidateBeforeCall(name, pageNumber, annotations, storage, folder, null, null); Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Move page to new position. (asynchronously) + * Add document page free text annotations. (asynchronously) * * @param name The document name. (required) * @param pageNumber The page number. (required) - * @param newIndex The new page position/index. (required) + * @param annotations The array of annotation. (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 postMovePageAsync(String name, Integer pageNumber, Integer newIndex, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call postPageFreeTextAnnotationsAsync(String name, Integer pageNumber, List annotations, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -26799,15 +30239,16 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = postMovePageValidateBeforeCall(name, pageNumber, newIndex, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = postPageFreeTextAnnotationsValidateBeforeCall(name, pageNumber, annotations, storage, folder, progressListener, progressRequestListener); Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for postOptimizeDocument + * Build call for postPageHighlightAnnotations * @param name The document name. (required) - * @param options The optimization options. (optional) + * @param pageNumber The page number. (required) + * @param annotations The array of annotation. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) * @param progressListener Progress listener @@ -26815,12 +30256,13 @@ 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 postOptimizeDocumentCall(String name, OptimizeOptions options, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = options; + public com.squareup.okhttp.Call postPageHighlightAnnotationsCall(String name, Integer pageNumber, List annotations, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = annotations; // create path and map variables - String localVarPath = "/pdf/{name}/optimize" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + String localVarPath = "/pdf/{name}/pages/{pageNumber}/annotations/highlight" + .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) + .replaceAll("\\{" + "pageNumber" + "\\}", apiClient.escapeString(pageNumber.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -26857,46 +30299,57 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call postOptimizeDocumentValidateBeforeCall(String name, OptimizeOptions options, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call postPageHighlightAnnotationsValidateBeforeCall(String name, Integer pageNumber, List annotations, 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 postOptimizeDocument(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling postPageHighlightAnnotations(Async)"); + } + + // verify the required parameter 'pageNumber' is set + if (pageNumber == null) { + throw new ApiException("Missing the required parameter 'pageNumber' when calling postPageHighlightAnnotations(Async)"); + } + + // verify the required parameter 'annotations' is set + if (annotations == null) { + throw new ApiException("Missing the required parameter 'annotations' when calling postPageHighlightAnnotations(Async)"); } - com.squareup.okhttp.Call call = postOptimizeDocumentCall(name, options, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = postPageHighlightAnnotationsCall(name, pageNumber, annotations, storage, folder, progressListener, progressRequestListener); return call; } /** - * Optimize document. + * Add document page highlight annotations. * * @param name The document name. (required) - * @param options The optimization options. (optional) + * @param pageNumber The page number. (required) + * @param annotations The array of annotation. (required) * @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 AsposeResponse postOptimizeDocument(String name, OptimizeOptions options, String storage, String folder) throws ApiException { + public AsposeResponse postPageHighlightAnnotations(String name, Integer pageNumber, List annotations, String storage, String folder) throws ApiException { try { - ApiResponse resp = postOptimizeDocumentWithHttpInfo(name, options, storage, folder); + ApiResponse resp = postPageHighlightAnnotationsWithHttpInfo(name, pageNumber, annotations, storage, folder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = postOptimizeDocumentWithHttpInfo(name, options, storage, folder); + apiClient.requestToken(); + ApiResponse resp = postPageHighlightAnnotationsWithHttpInfo(name, pageNumber, annotations, storage, folder); return resp.getData(); } throw ex; @@ -26904,33 +30357,35 @@ public AsposeResponse postOptimizeDocument(String name, OptimizeOptions options, } /** - * Optimize document. + * Add document page highlight annotations. * * @param name The document name. (required) - * @param options The optimization options. (optional) + * @param pageNumber The page number. (required) + * @param annotations The array of annotation. (required) * @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 postOptimizeDocumentWithHttpInfo(String name, OptimizeOptions options, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = postOptimizeDocumentValidateBeforeCall(name, options, storage, folder, null, null); + public ApiResponse postPageHighlightAnnotationsWithHttpInfo(String name, Integer pageNumber, List annotations, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = postPageHighlightAnnotationsValidateBeforeCall(name, pageNumber, annotations, storage, folder, null, null); Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Optimize document. (asynchronously) + * Add document page highlight annotations. (asynchronously) * * @param name The document name. (required) - * @param options The optimization options. (optional) + * @param pageNumber The page number. (required) + * @param annotations The array of annotation. (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 postOptimizeDocumentAsync(String name, OptimizeOptions options, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call postPageHighlightAnnotationsAsync(String name, Integer pageNumber, List annotations, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -26951,16 +30406,16 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = postOptimizeDocumentValidateBeforeCall(name, options, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = postPageHighlightAnnotationsValidateBeforeCall(name, pageNumber, annotations, storage, folder, progressListener, progressRequestListener); Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for postPageCaretAnnotations + * Build call for postPageImageStamps * @param name The document name. (required) * @param pageNumber The page number. (required) - * @param annotations The array of annotation. (required) + * @param stamps The array of stamp. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) * @param progressListener Progress listener @@ -26968,11 +30423,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 postPageCaretAnnotationsCall(String name, Integer pageNumber, List annotations, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = annotations; + public com.squareup.okhttp.Call postPageImageStampsCall(String name, Integer pageNumber, List stamps, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = stamps; // create path and map variables - String localVarPath = "/pdf/{name}/pages/{pageNumber}/annotations/caret" + String localVarPath = "/pdf/{name}/pages/{pageNumber}/stamps/image" .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) .replaceAll("\\{" + "pageNumber" + "\\}", apiClient.escapeString(pageNumber.toString())); @@ -27011,57 +30466,57 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call postPageCaretAnnotationsValidateBeforeCall(String name, Integer pageNumber, List annotations, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call postPageImageStampsValidateBeforeCall(String name, Integer pageNumber, List stamps, 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 postPageCaretAnnotations(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling postPageImageStamps(Async)"); } // verify the required parameter 'pageNumber' is set if (pageNumber == null) { - throw new ApiException("Missing the required parameter 'pageNumber' when calling postPageCaretAnnotations(Async)"); + throw new ApiException("Missing the required parameter 'pageNumber' when calling postPageImageStamps(Async)"); } - // verify the required parameter 'annotations' is set - if (annotations == null) { - throw new ApiException("Missing the required parameter 'annotations' when calling postPageCaretAnnotations(Async)"); + // verify the required parameter 'stamps' is set + if (stamps == null) { + throw new ApiException("Missing the required parameter 'stamps' when calling postPageImageStamps(Async)"); } - com.squareup.okhttp.Call call = postPageCaretAnnotationsCall(name, pageNumber, annotations, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = postPageImageStampsCall(name, pageNumber, stamps, storage, folder, progressListener, progressRequestListener); return call; } /** - * Add document page caret annotations. + * Add document page image stamps. * * @param name The document name. (required) * @param pageNumber The page number. (required) - * @param annotations The array of annotation. (required) + * @param stamps The array of stamp. (required) * @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 AsposeResponse postPageCaretAnnotations(String name, Integer pageNumber, List annotations, String storage, String folder) throws ApiException { + public AsposeResponse postPageImageStamps(String name, Integer pageNumber, List stamps, String storage, String folder) throws ApiException { try { - ApiResponse resp = postPageCaretAnnotationsWithHttpInfo(name, pageNumber, annotations, storage, folder); + ApiResponse resp = postPageImageStampsWithHttpInfo(name, pageNumber, stamps, storage, folder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = postPageCaretAnnotationsWithHttpInfo(name, pageNumber, annotations, storage, folder); + apiClient.requestToken(); + ApiResponse resp = postPageImageStampsWithHttpInfo(name, pageNumber, stamps, storage, folder); return resp.getData(); } throw ex; @@ -27069,35 +30524,35 @@ public AsposeResponse postPageCaretAnnotations(String name, Integer pageNumber, } /** - * Add document page caret annotations. + * Add document page image stamps. * * @param name The document name. (required) * @param pageNumber The page number. (required) - * @param annotations The array of annotation. (required) + * @param stamps The array of stamp. (required) * @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 postPageCaretAnnotationsWithHttpInfo(String name, Integer pageNumber, List annotations, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = postPageCaretAnnotationsValidateBeforeCall(name, pageNumber, annotations, storage, folder, null, null); + public ApiResponse postPageImageStampsWithHttpInfo(String name, Integer pageNumber, List stamps, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = postPageImageStampsValidateBeforeCall(name, pageNumber, stamps, storage, folder, null, null); Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Add document page caret annotations. (asynchronously) + * Add document page image stamps. (asynchronously) * * @param name The document name. (required) * @param pageNumber The page number. (required) - * @param annotations The array of annotation. (required) + * @param stamps The array of stamp. (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 postPageCaretAnnotationsAsync(String name, Integer pageNumber, List annotations, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call postPageImageStampsAsync(String name, Integer pageNumber, List stamps, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -27118,13 +30573,13 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = postPageCaretAnnotationsValidateBeforeCall(name, pageNumber, annotations, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = postPageImageStampsValidateBeforeCall(name, pageNumber, stamps, storage, folder, progressListener, progressRequestListener); Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for postPageCircleAnnotations + * Build call for postPageInkAnnotations * @param name The document name. (required) * @param pageNumber The page number. (required) * @param annotations The array of annotation. (required) @@ -27135,11 +30590,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 postPageCircleAnnotationsCall(String name, Integer pageNumber, List annotations, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call postPageInkAnnotationsCall(String name, Integer pageNumber, List annotations, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = annotations; // create path and map variables - String localVarPath = "/pdf/{name}/pages/{pageNumber}/annotations/circle" + String localVarPath = "/pdf/{name}/pages/{pageNumber}/annotations/ink" .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) .replaceAll("\\{" + "pageNumber" + "\\}", apiClient.escapeString(pageNumber.toString())); @@ -27178,36 +30633,36 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call postPageCircleAnnotationsValidateBeforeCall(String name, Integer pageNumber, List annotations, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call postPageInkAnnotationsValidateBeforeCall(String name, Integer pageNumber, List annotations, 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 postPageCircleAnnotations(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling postPageInkAnnotations(Async)"); } // verify the required parameter 'pageNumber' is set if (pageNumber == null) { - throw new ApiException("Missing the required parameter 'pageNumber' when calling postPageCircleAnnotations(Async)"); + throw new ApiException("Missing the required parameter 'pageNumber' when calling postPageInkAnnotations(Async)"); } // verify the required parameter 'annotations' is set if (annotations == null) { - throw new ApiException("Missing the required parameter 'annotations' when calling postPageCircleAnnotations(Async)"); + throw new ApiException("Missing the required parameter 'annotations' when calling postPageInkAnnotations(Async)"); } - com.squareup.okhttp.Call call = postPageCircleAnnotationsCall(name, pageNumber, annotations, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = postPageInkAnnotationsCall(name, pageNumber, annotations, storage, folder, progressListener, progressRequestListener); return call; } /** - * Add document page circle annotations. + * Add document page ink annotations. * * @param name The document name. (required) * @param pageNumber The page number. (required) @@ -27217,18 +30672,18 @@ private com.squareup.okhttp.Call postPageCircleAnnotationsValidateBeforeCall(Str * @return AsposeResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public AsposeResponse postPageCircleAnnotations(String name, Integer pageNumber, List annotations, String storage, String folder) throws ApiException { + public AsposeResponse postPageInkAnnotations(String name, Integer pageNumber, List annotations, String storage, String folder) throws ApiException { try { - ApiResponse resp = postPageCircleAnnotationsWithHttpInfo(name, pageNumber, annotations, storage, folder); + ApiResponse resp = postPageInkAnnotationsWithHttpInfo(name, pageNumber, annotations, storage, folder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = postPageCircleAnnotationsWithHttpInfo(name, pageNumber, annotations, storage, folder); + apiClient.requestToken(); + ApiResponse resp = postPageInkAnnotationsWithHttpInfo(name, pageNumber, annotations, storage, folder); return resp.getData(); } throw ex; @@ -27236,7 +30691,7 @@ public AsposeResponse postPageCircleAnnotations(String name, Integer pageNumber, } /** - * Add document page circle annotations. + * Add document page ink annotations. * * @param name The document name. (required) * @param pageNumber The page number. (required) @@ -27246,14 +30701,14 @@ public AsposeResponse postPageCircleAnnotations(String name, Integer pageNumber, * @return ApiResponse<AsposeResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse postPageCircleAnnotationsWithHttpInfo(String name, Integer pageNumber, List annotations, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = postPageCircleAnnotationsValidateBeforeCall(name, pageNumber, annotations, storage, folder, null, null); + public ApiResponse postPageInkAnnotationsWithHttpInfo(String name, Integer pageNumber, List annotations, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = postPageInkAnnotationsValidateBeforeCall(name, pageNumber, annotations, storage, folder, null, null); Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Add document page circle annotations. (asynchronously) + * Add document page ink annotations. (asynchronously) * * @param name The document name. (required) * @param pageNumber The page number. (required) @@ -27264,7 +30719,7 @@ public ApiResponse postPageCircleAnnotationsWithHttpInfo(String * @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 postPageCircleAnnotationsAsync(String name, Integer pageNumber, List annotations, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call postPageInkAnnotationsAsync(String name, Integer pageNumber, List annotations, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -27285,16 +30740,16 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = postPageCircleAnnotationsValidateBeforeCall(name, pageNumber, annotations, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = postPageInkAnnotationsValidateBeforeCall(name, pageNumber, annotations, storage, folder, progressListener, progressRequestListener); Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for postPageFileAttachmentAnnotations + * Build call for postPageLineAnnotations * @param name The document name. (required) * @param pageNumber The page number. (required) - * @param annotations Annotation. (required) + * @param annotations The array of annotation. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) * @param progressListener Progress listener @@ -27302,11 +30757,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 postPageFileAttachmentAnnotationsCall(String name, Integer pageNumber, List annotations, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call postPageLineAnnotationsCall(String name, Integer pageNumber, List annotations, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = annotations; // create path and map variables - String localVarPath = "/pdf/{name}/pages/{pageNumber}/annotations/fileattachment" + String localVarPath = "/pdf/{name}/pages/{pageNumber}/annotations/line" .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) .replaceAll("\\{" + "pageNumber" + "\\}", apiClient.escapeString(pageNumber.toString())); @@ -27345,57 +30800,57 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call postPageFileAttachmentAnnotationsValidateBeforeCall(String name, Integer pageNumber, List annotations, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call postPageLineAnnotationsValidateBeforeCall(String name, Integer pageNumber, List annotations, 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 postPageFileAttachmentAnnotations(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling postPageLineAnnotations(Async)"); } // verify the required parameter 'pageNumber' is set if (pageNumber == null) { - throw new ApiException("Missing the required parameter 'pageNumber' when calling postPageFileAttachmentAnnotations(Async)"); + throw new ApiException("Missing the required parameter 'pageNumber' when calling postPageLineAnnotations(Async)"); } // verify the required parameter 'annotations' is set if (annotations == null) { - throw new ApiException("Missing the required parameter 'annotations' when calling postPageFileAttachmentAnnotations(Async)"); + throw new ApiException("Missing the required parameter 'annotations' when calling postPageLineAnnotations(Async)"); } - com.squareup.okhttp.Call call = postPageFileAttachmentAnnotationsCall(name, pageNumber, annotations, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = postPageLineAnnotationsCall(name, pageNumber, annotations, storage, folder, progressListener, progressRequestListener); return call; } /** - * Add document page FileAttachment annotations. + * Add document page line annotations. * * @param name The document name. (required) * @param pageNumber The page number. (required) - * @param annotations Annotation. (required) + * @param annotations The array of annotation. (required) * @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 AsposeResponse postPageFileAttachmentAnnotations(String name, Integer pageNumber, List annotations, String storage, String folder) throws ApiException { + public AsposeResponse postPageLineAnnotations(String name, Integer pageNumber, List annotations, String storage, String folder) throws ApiException { try { - ApiResponse resp = postPageFileAttachmentAnnotationsWithHttpInfo(name, pageNumber, annotations, storage, folder); + ApiResponse resp = postPageLineAnnotationsWithHttpInfo(name, pageNumber, annotations, storage, folder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = postPageFileAttachmentAnnotationsWithHttpInfo(name, pageNumber, annotations, storage, folder); + apiClient.requestToken(); + ApiResponse resp = postPageLineAnnotationsWithHttpInfo(name, pageNumber, annotations, storage, folder); return resp.getData(); } throw ex; @@ -27403,35 +30858,35 @@ public AsposeResponse postPageFileAttachmentAnnotations(String name, Integer pag } /** - * Add document page FileAttachment annotations. + * Add document page line annotations. * * @param name The document name. (required) * @param pageNumber The page number. (required) - * @param annotations Annotation. (required) + * @param annotations The array of annotation. (required) * @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 postPageFileAttachmentAnnotationsWithHttpInfo(String name, Integer pageNumber, List annotations, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = postPageFileAttachmentAnnotationsValidateBeforeCall(name, pageNumber, annotations, storage, folder, null, null); + public ApiResponse postPageLineAnnotationsWithHttpInfo(String name, Integer pageNumber, List annotations, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = postPageLineAnnotationsValidateBeforeCall(name, pageNumber, annotations, storage, folder, null, null); Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Add document page FileAttachment annotations. (asynchronously) + * Add document page line annotations. (asynchronously) * * @param name The document name. (required) * @param pageNumber The page number. (required) - * @param annotations Annotation. (required) + * @param annotations The array of annotation. (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 postPageFileAttachmentAnnotationsAsync(String name, Integer pageNumber, List annotations, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call postPageLineAnnotationsAsync(String name, Integer pageNumber, List annotations, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -27452,16 +30907,16 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = postPageFileAttachmentAnnotationsValidateBeforeCall(name, pageNumber, annotations, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = postPageLineAnnotationsValidateBeforeCall(name, pageNumber, annotations, storage, folder, progressListener, progressRequestListener); Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for postPageFreeTextAnnotations + * Build call for postPageLinkAnnotations * @param name The document name. (required) * @param pageNumber The page number. (required) - * @param annotations The array of annotation. (required) + * @param links Array of link anotation. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) * @param progressListener Progress listener @@ -27469,11 +30924,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 postPageFreeTextAnnotationsCall(String name, Integer pageNumber, List annotations, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = annotations; + public com.squareup.okhttp.Call postPageLinkAnnotationsCall(String name, Integer pageNumber, List links, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = links; // create path and map variables - String localVarPath = "/pdf/{name}/pages/{pageNumber}/annotations/freetext" + String localVarPath = "/pdf/{name}/pages/{pageNumber}/links" .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) .replaceAll("\\{" + "pageNumber" + "\\}", apiClient.escapeString(pageNumber.toString())); @@ -27512,57 +30967,57 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call postPageFreeTextAnnotationsValidateBeforeCall(String name, Integer pageNumber, List annotations, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call postPageLinkAnnotationsValidateBeforeCall(String name, Integer pageNumber, List links, 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 postPageFreeTextAnnotations(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling postPageLinkAnnotations(Async)"); } // verify the required parameter 'pageNumber' is set if (pageNumber == null) { - throw new ApiException("Missing the required parameter 'pageNumber' when calling postPageFreeTextAnnotations(Async)"); + throw new ApiException("Missing the required parameter 'pageNumber' when calling postPageLinkAnnotations(Async)"); } - // verify the required parameter 'annotations' is set - if (annotations == null) { - throw new ApiException("Missing the required parameter 'annotations' when calling postPageFreeTextAnnotations(Async)"); + // verify the required parameter 'links' is set + if (links == null) { + throw new ApiException("Missing the required parameter 'links' when calling postPageLinkAnnotations(Async)"); } - com.squareup.okhttp.Call call = postPageFreeTextAnnotationsCall(name, pageNumber, annotations, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = postPageLinkAnnotationsCall(name, pageNumber, links, storage, folder, progressListener, progressRequestListener); return call; } /** - * Add document page free text annotations. + * Add document page link annotations. * * @param name The document name. (required) * @param pageNumber The page number. (required) - * @param annotations The array of annotation. (required) + * @param links Array of link anotation. (required) * @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 AsposeResponse postPageFreeTextAnnotations(String name, Integer pageNumber, List annotations, String storage, String folder) throws ApiException { + public AsposeResponse postPageLinkAnnotations(String name, Integer pageNumber, List links, String storage, String folder) throws ApiException { try { - ApiResponse resp = postPageFreeTextAnnotationsWithHttpInfo(name, pageNumber, annotations, storage, folder); + ApiResponse resp = postPageLinkAnnotationsWithHttpInfo(name, pageNumber, links, storage, folder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = postPageFreeTextAnnotationsWithHttpInfo(name, pageNumber, annotations, storage, folder); + apiClient.requestToken(); + ApiResponse resp = postPageLinkAnnotationsWithHttpInfo(name, pageNumber, links, storage, folder); return resp.getData(); } throw ex; @@ -27570,35 +31025,35 @@ public AsposeResponse postPageFreeTextAnnotations(String name, Integer pageNumbe } /** - * Add document page free text annotations. + * Add document page link annotations. * * @param name The document name. (required) * @param pageNumber The page number. (required) - * @param annotations The array of annotation. (required) + * @param links Array of link anotation. (required) * @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 postPageFreeTextAnnotationsWithHttpInfo(String name, Integer pageNumber, List annotations, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = postPageFreeTextAnnotationsValidateBeforeCall(name, pageNumber, annotations, storage, folder, null, null); + public ApiResponse postPageLinkAnnotationsWithHttpInfo(String name, Integer pageNumber, List links, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = postPageLinkAnnotationsValidateBeforeCall(name, pageNumber, links, storage, folder, null, null); Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Add document page free text annotations. (asynchronously) + * Add document page link annotations. (asynchronously) * * @param name The document name. (required) * @param pageNumber The page number. (required) - * @param annotations The array of annotation. (required) + * @param links Array of link anotation. (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 postPageFreeTextAnnotationsAsync(String name, Integer pageNumber, List annotations, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call postPageLinkAnnotationsAsync(String name, Integer pageNumber, List links, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -27619,13 +31074,13 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = postPageFreeTextAnnotationsValidateBeforeCall(name, pageNumber, annotations, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = postPageLinkAnnotationsValidateBeforeCall(name, pageNumber, links, storage, folder, progressListener, progressRequestListener); Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for postPageHighlightAnnotations + * Build call for postPageMovieAnnotations * @param name The document name. (required) * @param pageNumber The page number. (required) * @param annotations The array of annotation. (required) @@ -27636,11 +31091,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 postPageHighlightAnnotationsCall(String name, Integer pageNumber, List annotations, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call postPageMovieAnnotationsCall(String name, Integer pageNumber, List annotations, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = annotations; // create path and map variables - String localVarPath = "/pdf/{name}/pages/{pageNumber}/annotations/highlight" + String localVarPath = "/pdf/{name}/pages/{pageNumber}/annotations/movie" .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) .replaceAll("\\{" + "pageNumber" + "\\}", apiClient.escapeString(pageNumber.toString())); @@ -27679,36 +31134,36 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call postPageHighlightAnnotationsValidateBeforeCall(String name, Integer pageNumber, List annotations, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call postPageMovieAnnotationsValidateBeforeCall(String name, Integer pageNumber, List annotations, 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 postPageHighlightAnnotations(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling postPageMovieAnnotations(Async)"); } // verify the required parameter 'pageNumber' is set if (pageNumber == null) { - throw new ApiException("Missing the required parameter 'pageNumber' when calling postPageHighlightAnnotations(Async)"); + throw new ApiException("Missing the required parameter 'pageNumber' when calling postPageMovieAnnotations(Async)"); } // verify the required parameter 'annotations' is set if (annotations == null) { - throw new ApiException("Missing the required parameter 'annotations' when calling postPageHighlightAnnotations(Async)"); + throw new ApiException("Missing the required parameter 'annotations' when calling postPageMovieAnnotations(Async)"); } - com.squareup.okhttp.Call call = postPageHighlightAnnotationsCall(name, pageNumber, annotations, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = postPageMovieAnnotationsCall(name, pageNumber, annotations, storage, folder, progressListener, progressRequestListener); return call; } /** - * Add document page highlight annotations. + * Add document page movie annotations. * * @param name The document name. (required) * @param pageNumber The page number. (required) @@ -27718,18 +31173,18 @@ private com.squareup.okhttp.Call postPageHighlightAnnotationsValidateBeforeCall( * @return AsposeResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public AsposeResponse postPageHighlightAnnotations(String name, Integer pageNumber, List annotations, String storage, String folder) throws ApiException { + public AsposeResponse postPageMovieAnnotations(String name, Integer pageNumber, List annotations, String storage, String folder) throws ApiException { try { - ApiResponse resp = postPageHighlightAnnotationsWithHttpInfo(name, pageNumber, annotations, storage, folder); + ApiResponse resp = postPageMovieAnnotationsWithHttpInfo(name, pageNumber, annotations, storage, folder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = postPageHighlightAnnotationsWithHttpInfo(name, pageNumber, annotations, storage, folder); + apiClient.requestToken(); + ApiResponse resp = postPageMovieAnnotationsWithHttpInfo(name, pageNumber, annotations, storage, folder); return resp.getData(); } throw ex; @@ -27737,7 +31192,7 @@ public AsposeResponse postPageHighlightAnnotations(String name, Integer pageNumb } /** - * Add document page highlight annotations. + * Add document page movie annotations. * * @param name The document name. (required) * @param pageNumber The page number. (required) @@ -27747,14 +31202,14 @@ public AsposeResponse postPageHighlightAnnotations(String name, Integer pageNumb * @return ApiResponse<AsposeResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse postPageHighlightAnnotationsWithHttpInfo(String name, Integer pageNumber, List annotations, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = postPageHighlightAnnotationsValidateBeforeCall(name, pageNumber, annotations, storage, folder, null, null); + public ApiResponse postPageMovieAnnotationsWithHttpInfo(String name, Integer pageNumber, List annotations, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = postPageMovieAnnotationsValidateBeforeCall(name, pageNumber, annotations, storage, folder, null, null); Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Add document page highlight annotations. (asynchronously) + * Add document page movie annotations. (asynchronously) * * @param name The document name. (required) * @param pageNumber The page number. (required) @@ -27765,7 +31220,7 @@ public ApiResponse postPageHighlightAnnotationsWithHttpInfo(Stri * @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 postPageHighlightAnnotationsAsync(String name, Integer pageNumber, List annotations, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call postPageMovieAnnotationsAsync(String name, Integer pageNumber, List annotations, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -27786,13 +31241,13 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = postPageHighlightAnnotationsValidateBeforeCall(name, pageNumber, annotations, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = postPageMovieAnnotationsValidateBeforeCall(name, pageNumber, annotations, storage, folder, progressListener, progressRequestListener); Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for postPageImageStamps + * Build call for postPagePdfPageStamps * @param name The document name. (required) * @param pageNumber The page number. (required) * @param stamps The array of stamp. (required) @@ -27803,11 +31258,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 postPageImageStampsCall(String name, Integer pageNumber, List stamps, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call postPagePdfPageStampsCall(String name, Integer pageNumber, List stamps, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = stamps; // create path and map variables - String localVarPath = "/pdf/{name}/pages/{pageNumber}/stamps/image" + String localVarPath = "/pdf/{name}/pages/{pageNumber}/stamps/pdfpage" .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) .replaceAll("\\{" + "pageNumber" + "\\}", apiClient.escapeString(pageNumber.toString())); @@ -27846,36 +31301,36 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call postPageImageStampsValidateBeforeCall(String name, Integer pageNumber, List stamps, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call postPagePdfPageStampsValidateBeforeCall(String name, Integer pageNumber, List stamps, 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 postPageImageStamps(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling postPagePdfPageStamps(Async)"); } // verify the required parameter 'pageNumber' is set if (pageNumber == null) { - throw new ApiException("Missing the required parameter 'pageNumber' when calling postPageImageStamps(Async)"); + throw new ApiException("Missing the required parameter 'pageNumber' when calling postPagePdfPageStamps(Async)"); } // verify the required parameter 'stamps' is set if (stamps == null) { - throw new ApiException("Missing the required parameter 'stamps' when calling postPageImageStamps(Async)"); + throw new ApiException("Missing the required parameter 'stamps' when calling postPagePdfPageStamps(Async)"); } - com.squareup.okhttp.Call call = postPageImageStampsCall(name, pageNumber, stamps, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = postPagePdfPageStampsCall(name, pageNumber, stamps, storage, folder, progressListener, progressRequestListener); return call; } /** - * Add document page image stamps. + * Add document pdf page stamps. * * @param name The document name. (required) * @param pageNumber The page number. (required) @@ -27885,18 +31340,18 @@ private com.squareup.okhttp.Call postPageImageStampsValidateBeforeCall(String na * @return AsposeResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public AsposeResponse postPageImageStamps(String name, Integer pageNumber, List stamps, String storage, String folder) throws ApiException { + public AsposeResponse postPagePdfPageStamps(String name, Integer pageNumber, List stamps, String storage, String folder) throws ApiException { try { - ApiResponse resp = postPageImageStampsWithHttpInfo(name, pageNumber, stamps, storage, folder); + ApiResponse resp = postPagePdfPageStampsWithHttpInfo(name, pageNumber, stamps, storage, folder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = postPageImageStampsWithHttpInfo(name, pageNumber, stamps, storage, folder); + apiClient.requestToken(); + ApiResponse resp = postPagePdfPageStampsWithHttpInfo(name, pageNumber, stamps, storage, folder); return resp.getData(); } throw ex; @@ -27904,7 +31359,7 @@ public AsposeResponse postPageImageStamps(String name, Integer pageNumber, List< } /** - * Add document page image stamps. + * Add document pdf page stamps. * * @param name The document name. (required) * @param pageNumber The page number. (required) @@ -27914,14 +31369,14 @@ public AsposeResponse postPageImageStamps(String name, Integer pageNumber, List< * @return ApiResponse<AsposeResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse postPageImageStampsWithHttpInfo(String name, Integer pageNumber, List stamps, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = postPageImageStampsValidateBeforeCall(name, pageNumber, stamps, storage, folder, null, null); + public ApiResponse postPagePdfPageStampsWithHttpInfo(String name, Integer pageNumber, List stamps, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = postPagePdfPageStampsValidateBeforeCall(name, pageNumber, stamps, storage, folder, null, null); Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Add document page image stamps. (asynchronously) + * Add document pdf page stamps. (asynchronously) * * @param name The document name. (required) * @param pageNumber The page number. (required) @@ -27932,7 +31387,7 @@ public ApiResponse postPageImageStampsWithHttpInfo(String name, * @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 postPageImageStampsAsync(String name, Integer pageNumber, List stamps, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call postPagePdfPageStampsAsync(String name, Integer pageNumber, List stamps, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -27953,13 +31408,13 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = postPageImageStampsValidateBeforeCall(name, pageNumber, stamps, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = postPagePdfPageStampsValidateBeforeCall(name, pageNumber, stamps, storage, folder, progressListener, progressRequestListener); Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for postPageInkAnnotations + * Build call for postPagePolyLineAnnotations * @param name The document name. (required) * @param pageNumber The page number. (required) * @param annotations The array of annotation. (required) @@ -27970,11 +31425,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 postPageInkAnnotationsCall(String name, Integer pageNumber, List annotations, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call postPagePolyLineAnnotationsCall(String name, Integer pageNumber, List annotations, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = annotations; // create path and map variables - String localVarPath = "/pdf/{name}/pages/{pageNumber}/annotations/ink" + String localVarPath = "/pdf/{name}/pages/{pageNumber}/annotations/polyline" .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) .replaceAll("\\{" + "pageNumber" + "\\}", apiClient.escapeString(pageNumber.toString())); @@ -28013,36 +31468,36 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call postPageInkAnnotationsValidateBeforeCall(String name, Integer pageNumber, List annotations, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call postPagePolyLineAnnotationsValidateBeforeCall(String name, Integer pageNumber, List annotations, 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 postPageInkAnnotations(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling postPagePolyLineAnnotations(Async)"); } // verify the required parameter 'pageNumber' is set if (pageNumber == null) { - throw new ApiException("Missing the required parameter 'pageNumber' when calling postPageInkAnnotations(Async)"); + throw new ApiException("Missing the required parameter 'pageNumber' when calling postPagePolyLineAnnotations(Async)"); } // verify the required parameter 'annotations' is set if (annotations == null) { - throw new ApiException("Missing the required parameter 'annotations' when calling postPageInkAnnotations(Async)"); + throw new ApiException("Missing the required parameter 'annotations' when calling postPagePolyLineAnnotations(Async)"); } - com.squareup.okhttp.Call call = postPageInkAnnotationsCall(name, pageNumber, annotations, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = postPagePolyLineAnnotationsCall(name, pageNumber, annotations, storage, folder, progressListener, progressRequestListener); return call; } /** - * Add document page ink annotations. + * Add document page polyline annotations. * * @param name The document name. (required) * @param pageNumber The page number. (required) @@ -28052,18 +31507,18 @@ private com.squareup.okhttp.Call postPageInkAnnotationsValidateBeforeCall(String * @return AsposeResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public AsposeResponse postPageInkAnnotations(String name, Integer pageNumber, List annotations, String storage, String folder) throws ApiException { + public AsposeResponse postPagePolyLineAnnotations(String name, Integer pageNumber, List annotations, String storage, String folder) throws ApiException { try { - ApiResponse resp = postPageInkAnnotationsWithHttpInfo(name, pageNumber, annotations, storage, folder); + ApiResponse resp = postPagePolyLineAnnotationsWithHttpInfo(name, pageNumber, annotations, storage, folder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = postPageInkAnnotationsWithHttpInfo(name, pageNumber, annotations, storage, folder); + apiClient.requestToken(); + ApiResponse resp = postPagePolyLineAnnotationsWithHttpInfo(name, pageNumber, annotations, storage, folder); return resp.getData(); } throw ex; @@ -28071,7 +31526,7 @@ public AsposeResponse postPageInkAnnotations(String name, Integer pageNumber, Li } /** - * Add document page ink annotations. + * Add document page polyline annotations. * * @param name The document name. (required) * @param pageNumber The page number. (required) @@ -28081,14 +31536,14 @@ public AsposeResponse postPageInkAnnotations(String name, Integer pageNumber, Li * @return ApiResponse<AsposeResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse postPageInkAnnotationsWithHttpInfo(String name, Integer pageNumber, List annotations, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = postPageInkAnnotationsValidateBeforeCall(name, pageNumber, annotations, storage, folder, null, null); + public ApiResponse postPagePolyLineAnnotationsWithHttpInfo(String name, Integer pageNumber, List annotations, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = postPagePolyLineAnnotationsValidateBeforeCall(name, pageNumber, annotations, storage, folder, null, null); Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Add document page ink annotations. (asynchronously) + * Add document page polyline annotations. (asynchronously) * * @param name The document name. (required) * @param pageNumber The page number. (required) @@ -28099,7 +31554,7 @@ public ApiResponse postPageInkAnnotationsWithHttpInfo(String nam * @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 postPageInkAnnotationsAsync(String name, Integer pageNumber, List annotations, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call postPagePolyLineAnnotationsAsync(String name, Integer pageNumber, List annotations, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -28120,13 +31575,13 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = postPageInkAnnotationsValidateBeforeCall(name, pageNumber, annotations, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = postPagePolyLineAnnotationsValidateBeforeCall(name, pageNumber, annotations, storage, folder, progressListener, progressRequestListener); Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for postPageLineAnnotations + * Build call for postPagePolygonAnnotations * @param name The document name. (required) * @param pageNumber The page number. (required) * @param annotations The array of annotation. (required) @@ -28137,11 +31592,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 postPageLineAnnotationsCall(String name, Integer pageNumber, List annotations, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call postPagePolygonAnnotationsCall(String name, Integer pageNumber, List annotations, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = annotations; // create path and map variables - String localVarPath = "/pdf/{name}/pages/{pageNumber}/annotations/line" + String localVarPath = "/pdf/{name}/pages/{pageNumber}/annotations/polygon" .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) .replaceAll("\\{" + "pageNumber" + "\\}", apiClient.escapeString(pageNumber.toString())); @@ -28180,36 +31635,36 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call postPageLineAnnotationsValidateBeforeCall(String name, Integer pageNumber, List annotations, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call postPagePolygonAnnotationsValidateBeforeCall(String name, Integer pageNumber, List annotations, 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 postPageLineAnnotations(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling postPagePolygonAnnotations(Async)"); } // verify the required parameter 'pageNumber' is set if (pageNumber == null) { - throw new ApiException("Missing the required parameter 'pageNumber' when calling postPageLineAnnotations(Async)"); + throw new ApiException("Missing the required parameter 'pageNumber' when calling postPagePolygonAnnotations(Async)"); } // verify the required parameter 'annotations' is set if (annotations == null) { - throw new ApiException("Missing the required parameter 'annotations' when calling postPageLineAnnotations(Async)"); + throw new ApiException("Missing the required parameter 'annotations' when calling postPagePolygonAnnotations(Async)"); } - com.squareup.okhttp.Call call = postPageLineAnnotationsCall(name, pageNumber, annotations, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = postPagePolygonAnnotationsCall(name, pageNumber, annotations, storage, folder, progressListener, progressRequestListener); return call; } /** - * Add document page line annotations. + * Add document page polygon annotations. * * @param name The document name. (required) * @param pageNumber The page number. (required) @@ -28219,18 +31674,18 @@ private com.squareup.okhttp.Call postPageLineAnnotationsValidateBeforeCall(Strin * @return AsposeResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public AsposeResponse postPageLineAnnotations(String name, Integer pageNumber, List annotations, String storage, String folder) throws ApiException { + public AsposeResponse postPagePolygonAnnotations(String name, Integer pageNumber, List annotations, String storage, String folder) throws ApiException { try { - ApiResponse resp = postPageLineAnnotationsWithHttpInfo(name, pageNumber, annotations, storage, folder); + ApiResponse resp = postPagePolygonAnnotationsWithHttpInfo(name, pageNumber, annotations, storage, folder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = postPageLineAnnotationsWithHttpInfo(name, pageNumber, annotations, storage, folder); + apiClient.requestToken(); + ApiResponse resp = postPagePolygonAnnotationsWithHttpInfo(name, pageNumber, annotations, storage, folder); return resp.getData(); } throw ex; @@ -28238,7 +31693,7 @@ public AsposeResponse postPageLineAnnotations(String name, Integer pageNumber, L } /** - * Add document page line annotations. + * Add document page polygon annotations. * * @param name The document name. (required) * @param pageNumber The page number. (required) @@ -28248,14 +31703,14 @@ public AsposeResponse postPageLineAnnotations(String name, Integer pageNumber, L * @return ApiResponse<AsposeResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse postPageLineAnnotationsWithHttpInfo(String name, Integer pageNumber, List annotations, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = postPageLineAnnotationsValidateBeforeCall(name, pageNumber, annotations, storage, folder, null, null); + public ApiResponse postPagePolygonAnnotationsWithHttpInfo(String name, Integer pageNumber, List annotations, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = postPagePolygonAnnotationsValidateBeforeCall(name, pageNumber, annotations, storage, folder, null, null); Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Add document page line annotations. (asynchronously) + * Add document page polygon annotations. (asynchronously) * * @param name The document name. (required) * @param pageNumber The page number. (required) @@ -28266,7 +31721,7 @@ public ApiResponse postPageLineAnnotationsWithHttpInfo(String na * @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 postPageLineAnnotationsAsync(String name, Integer pageNumber, List annotations, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call postPagePolygonAnnotationsAsync(String name, Integer pageNumber, List annotations, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -28287,16 +31742,16 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = postPageLineAnnotationsValidateBeforeCall(name, pageNumber, annotations, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = postPagePolygonAnnotationsValidateBeforeCall(name, pageNumber, annotations, storage, folder, progressListener, progressRequestListener); Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for postPageLinkAnnotations + * Build call for postPageRedactionAnnotations * @param name The document name. (required) * @param pageNumber The page number. (required) - * @param links Array of link anotation. (required) + * @param annotations The array of annotation. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) * @param progressListener Progress listener @@ -28304,11 +31759,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 postPageLinkAnnotationsCall(String name, Integer pageNumber, List links, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = links; + public com.squareup.okhttp.Call postPageRedactionAnnotationsCall(String name, Integer pageNumber, List annotations, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = annotations; // create path and map variables - String localVarPath = "/pdf/{name}/pages/{pageNumber}/links" + String localVarPath = "/pdf/{name}/pages/{pageNumber}/annotations/redaction" .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) .replaceAll("\\{" + "pageNumber" + "\\}", apiClient.escapeString(pageNumber.toString())); @@ -28347,57 +31802,57 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call postPageLinkAnnotationsValidateBeforeCall(String name, Integer pageNumber, List links, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call postPageRedactionAnnotationsValidateBeforeCall(String name, Integer pageNumber, List annotations, 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 postPageLinkAnnotations(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling postPageRedactionAnnotations(Async)"); } // verify the required parameter 'pageNumber' is set if (pageNumber == null) { - throw new ApiException("Missing the required parameter 'pageNumber' when calling postPageLinkAnnotations(Async)"); + throw new ApiException("Missing the required parameter 'pageNumber' when calling postPageRedactionAnnotations(Async)"); } - // verify the required parameter 'links' is set - if (links == null) { - throw new ApiException("Missing the required parameter 'links' when calling postPageLinkAnnotations(Async)"); + // verify the required parameter 'annotations' is set + if (annotations == null) { + throw new ApiException("Missing the required parameter 'annotations' when calling postPageRedactionAnnotations(Async)"); } - com.squareup.okhttp.Call call = postPageLinkAnnotationsCall(name, pageNumber, links, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = postPageRedactionAnnotationsCall(name, pageNumber, annotations, storage, folder, progressListener, progressRequestListener); return call; } /** - * Add document page link annotations. + * Add document page redaction annotations. * * @param name The document name. (required) * @param pageNumber The page number. (required) - * @param links Array of link anotation. (required) + * @param annotations The array of annotation. (required) * @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 AsposeResponse postPageLinkAnnotations(String name, Integer pageNumber, List links, String storage, String folder) throws ApiException { + public AsposeResponse postPageRedactionAnnotations(String name, Integer pageNumber, List annotations, String storage, String folder) throws ApiException { try { - ApiResponse resp = postPageLinkAnnotationsWithHttpInfo(name, pageNumber, links, storage, folder); + ApiResponse resp = postPageRedactionAnnotationsWithHttpInfo(name, pageNumber, annotations, storage, folder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = postPageLinkAnnotationsWithHttpInfo(name, pageNumber, links, storage, folder); + apiClient.requestToken(); + ApiResponse resp = postPageRedactionAnnotationsWithHttpInfo(name, pageNumber, annotations, storage, folder); return resp.getData(); } throw ex; @@ -28405,35 +31860,35 @@ public AsposeResponse postPageLinkAnnotations(String name, Integer pageNumber, L } /** - * Add document page link annotations. + * Add document page redaction annotations. * * @param name The document name. (required) * @param pageNumber The page number. (required) - * @param links Array of link anotation. (required) + * @param annotations The array of annotation. (required) * @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 postPageLinkAnnotationsWithHttpInfo(String name, Integer pageNumber, List links, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = postPageLinkAnnotationsValidateBeforeCall(name, pageNumber, links, storage, folder, null, null); + public ApiResponse postPageRedactionAnnotationsWithHttpInfo(String name, Integer pageNumber, List annotations, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = postPageRedactionAnnotationsValidateBeforeCall(name, pageNumber, annotations, storage, folder, null, null); Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Add document page link annotations. (asynchronously) + * Add document page redaction annotations. (asynchronously) * * @param name The document name. (required) * @param pageNumber The page number. (required) - * @param links Array of link anotation. (required) + * @param annotations The array of annotation. (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 postPageLinkAnnotationsAsync(String name, Integer pageNumber, List links, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call postPageRedactionAnnotationsAsync(String name, Integer pageNumber, List annotations, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -28454,13 +31909,13 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = postPageLinkAnnotationsValidateBeforeCall(name, pageNumber, links, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = postPageRedactionAnnotationsValidateBeforeCall(name, pageNumber, annotations, storage, folder, progressListener, progressRequestListener); Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for postPageMovieAnnotations + * Build call for postPageScreenAnnotations * @param name The document name. (required) * @param pageNumber The page number. (required) * @param annotations The array of annotation. (required) @@ -28471,11 +31926,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 postPageMovieAnnotationsCall(String name, Integer pageNumber, List annotations, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call postPageScreenAnnotationsCall(String name, Integer pageNumber, List annotations, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = annotations; // create path and map variables - String localVarPath = "/pdf/{name}/pages/{pageNumber}/annotations/movie" + String localVarPath = "/pdf/{name}/pages/{pageNumber}/annotations/screen" .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) .replaceAll("\\{" + "pageNumber" + "\\}", apiClient.escapeString(pageNumber.toString())); @@ -28514,36 +31969,36 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call postPageMovieAnnotationsValidateBeforeCall(String name, Integer pageNumber, List annotations, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call postPageScreenAnnotationsValidateBeforeCall(String name, Integer pageNumber, List annotations, 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 postPageMovieAnnotations(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling postPageScreenAnnotations(Async)"); } // verify the required parameter 'pageNumber' is set if (pageNumber == null) { - throw new ApiException("Missing the required parameter 'pageNumber' when calling postPageMovieAnnotations(Async)"); + throw new ApiException("Missing the required parameter 'pageNumber' when calling postPageScreenAnnotations(Async)"); } // verify the required parameter 'annotations' is set if (annotations == null) { - throw new ApiException("Missing the required parameter 'annotations' when calling postPageMovieAnnotations(Async)"); + throw new ApiException("Missing the required parameter 'annotations' when calling postPageScreenAnnotations(Async)"); } - com.squareup.okhttp.Call call = postPageMovieAnnotationsCall(name, pageNumber, annotations, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = postPageScreenAnnotationsCall(name, pageNumber, annotations, storage, folder, progressListener, progressRequestListener); return call; } /** - * Add document page movie annotations. + * Add document page screen annotations. * * @param name The document name. (required) * @param pageNumber The page number. (required) @@ -28553,18 +32008,18 @@ private com.squareup.okhttp.Call postPageMovieAnnotationsValidateBeforeCall(Stri * @return AsposeResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public AsposeResponse postPageMovieAnnotations(String name, Integer pageNumber, List annotations, String storage, String folder) throws ApiException { + public AsposeResponse postPageScreenAnnotations(String name, Integer pageNumber, List annotations, String storage, String folder) throws ApiException { try { - ApiResponse resp = postPageMovieAnnotationsWithHttpInfo(name, pageNumber, annotations, storage, folder); + ApiResponse resp = postPageScreenAnnotationsWithHttpInfo(name, pageNumber, annotations, storage, folder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = postPageMovieAnnotationsWithHttpInfo(name, pageNumber, annotations, storage, folder); + apiClient.requestToken(); + ApiResponse resp = postPageScreenAnnotationsWithHttpInfo(name, pageNumber, annotations, storage, folder); return resp.getData(); } throw ex; @@ -28572,7 +32027,7 @@ public AsposeResponse postPageMovieAnnotations(String name, Integer pageNumber, } /** - * Add document page movie annotations. + * Add document page screen annotations. * * @param name The document name. (required) * @param pageNumber The page number. (required) @@ -28582,14 +32037,14 @@ public AsposeResponse postPageMovieAnnotations(String name, Integer pageNumber, * @return ApiResponse<AsposeResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse postPageMovieAnnotationsWithHttpInfo(String name, Integer pageNumber, List annotations, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = postPageMovieAnnotationsValidateBeforeCall(name, pageNumber, annotations, storage, folder, null, null); + public ApiResponse postPageScreenAnnotationsWithHttpInfo(String name, Integer pageNumber, List annotations, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = postPageScreenAnnotationsValidateBeforeCall(name, pageNumber, annotations, storage, folder, null, null); Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Add document page movie annotations. (asynchronously) + * Add document page screen annotations. (asynchronously) * * @param name The document name. (required) * @param pageNumber The page number. (required) @@ -28600,7 +32055,7 @@ public ApiResponse postPageMovieAnnotationsWithHttpInfo(String n * @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 postPageMovieAnnotationsAsync(String name, Integer pageNumber, List annotations, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call postPageScreenAnnotationsAsync(String name, Integer pageNumber, List annotations, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -28621,16 +32076,16 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = postPageMovieAnnotationsValidateBeforeCall(name, pageNumber, annotations, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = postPageScreenAnnotationsValidateBeforeCall(name, pageNumber, annotations, storage, folder, progressListener, progressRequestListener); Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for postPagePdfPageStamps + * Build call for postPageSoundAnnotations * @param name The document name. (required) * @param pageNumber The page number. (required) - * @param stamps The array of stamp. (required) + * @param annotations The array of annotation. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) * @param progressListener Progress listener @@ -28638,11 +32093,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 postPagePdfPageStampsCall(String name, Integer pageNumber, List stamps, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = stamps; + public com.squareup.okhttp.Call postPageSoundAnnotationsCall(String name, Integer pageNumber, List annotations, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = annotations; // create path and map variables - String localVarPath = "/pdf/{name}/pages/{pageNumber}/stamps/pdfpage" + String localVarPath = "/pdf/{name}/pages/{pageNumber}/annotations/sound" .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) .replaceAll("\\{" + "pageNumber" + "\\}", apiClient.escapeString(pageNumber.toString())); @@ -28681,57 +32136,57 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call postPagePdfPageStampsValidateBeforeCall(String name, Integer pageNumber, List stamps, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call postPageSoundAnnotationsValidateBeforeCall(String name, Integer pageNumber, List annotations, 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 postPagePdfPageStamps(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling postPageSoundAnnotations(Async)"); } // verify the required parameter 'pageNumber' is set if (pageNumber == null) { - throw new ApiException("Missing the required parameter 'pageNumber' when calling postPagePdfPageStamps(Async)"); + throw new ApiException("Missing the required parameter 'pageNumber' when calling postPageSoundAnnotations(Async)"); } - // verify the required parameter 'stamps' is set - if (stamps == null) { - throw new ApiException("Missing the required parameter 'stamps' when calling postPagePdfPageStamps(Async)"); + // verify the required parameter 'annotations' is set + if (annotations == null) { + throw new ApiException("Missing the required parameter 'annotations' when calling postPageSoundAnnotations(Async)"); } - com.squareup.okhttp.Call call = postPagePdfPageStampsCall(name, pageNumber, stamps, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = postPageSoundAnnotationsCall(name, pageNumber, annotations, storage, folder, progressListener, progressRequestListener); return call; } /** - * Add document pdf page stamps. + * Add document page sound annotations. * * @param name The document name. (required) * @param pageNumber The page number. (required) - * @param stamps The array of stamp. (required) + * @param annotations The array of annotation. (required) * @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 AsposeResponse postPagePdfPageStamps(String name, Integer pageNumber, List stamps, String storage, String folder) throws ApiException { + public AsposeResponse postPageSoundAnnotations(String name, Integer pageNumber, List annotations, String storage, String folder) throws ApiException { try { - ApiResponse resp = postPagePdfPageStampsWithHttpInfo(name, pageNumber, stamps, storage, folder); + ApiResponse resp = postPageSoundAnnotationsWithHttpInfo(name, pageNumber, annotations, storage, folder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = postPagePdfPageStampsWithHttpInfo(name, pageNumber, stamps, storage, folder); + apiClient.requestToken(); + ApiResponse resp = postPageSoundAnnotationsWithHttpInfo(name, pageNumber, annotations, storage, folder); return resp.getData(); } throw ex; @@ -28739,35 +32194,35 @@ public AsposeResponse postPagePdfPageStamps(String name, Integer pageNumber, Lis } /** - * Add document pdf page stamps. + * Add document page sound annotations. * * @param name The document name. (required) * @param pageNumber The page number. (required) - * @param stamps The array of stamp. (required) + * @param annotations The array of annotation. (required) * @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 postPagePdfPageStampsWithHttpInfo(String name, Integer pageNumber, List stamps, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = postPagePdfPageStampsValidateBeforeCall(name, pageNumber, stamps, storage, folder, null, null); + public ApiResponse postPageSoundAnnotationsWithHttpInfo(String name, Integer pageNumber, List annotations, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = postPageSoundAnnotationsValidateBeforeCall(name, pageNumber, annotations, storage, folder, null, null); Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Add document pdf page stamps. (asynchronously) + * Add document page sound annotations. (asynchronously) * * @param name The document name. (required) * @param pageNumber The page number. (required) - * @param stamps The array of stamp. (required) + * @param annotations The array of annotation. (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 postPagePdfPageStampsAsync(String name, Integer pageNumber, List stamps, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call postPageSoundAnnotationsAsync(String name, Integer pageNumber, List annotations, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -28788,13 +32243,13 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = postPagePdfPageStampsValidateBeforeCall(name, pageNumber, stamps, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = postPageSoundAnnotationsValidateBeforeCall(name, pageNumber, annotations, storage, folder, progressListener, progressRequestListener); Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for postPagePolyLineAnnotations + * Build call for postPageSquareAnnotations * @param name The document name. (required) * @param pageNumber The page number. (required) * @param annotations The array of annotation. (required) @@ -28805,11 +32260,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 postPagePolyLineAnnotationsCall(String name, Integer pageNumber, List annotations, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call postPageSquareAnnotationsCall(String name, Integer pageNumber, List annotations, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = annotations; // create path and map variables - String localVarPath = "/pdf/{name}/pages/{pageNumber}/annotations/polyline" + String localVarPath = "/pdf/{name}/pages/{pageNumber}/annotations/square" .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) .replaceAll("\\{" + "pageNumber" + "\\}", apiClient.escapeString(pageNumber.toString())); @@ -28848,36 +32303,36 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call postPagePolyLineAnnotationsValidateBeforeCall(String name, Integer pageNumber, List annotations, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call postPageSquareAnnotationsValidateBeforeCall(String name, Integer pageNumber, List annotations, 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 postPagePolyLineAnnotations(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling postPageSquareAnnotations(Async)"); } // verify the required parameter 'pageNumber' is set if (pageNumber == null) { - throw new ApiException("Missing the required parameter 'pageNumber' when calling postPagePolyLineAnnotations(Async)"); + throw new ApiException("Missing the required parameter 'pageNumber' when calling postPageSquareAnnotations(Async)"); } // verify the required parameter 'annotations' is set if (annotations == null) { - throw new ApiException("Missing the required parameter 'annotations' when calling postPagePolyLineAnnotations(Async)"); + throw new ApiException("Missing the required parameter 'annotations' when calling postPageSquareAnnotations(Async)"); } - com.squareup.okhttp.Call call = postPagePolyLineAnnotationsCall(name, pageNumber, annotations, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = postPageSquareAnnotationsCall(name, pageNumber, annotations, storage, folder, progressListener, progressRequestListener); return call; } /** - * Add document page polyline annotations. + * Add document page square annotations. * * @param name The document name. (required) * @param pageNumber The page number. (required) @@ -28887,18 +32342,18 @@ private com.squareup.okhttp.Call postPagePolyLineAnnotationsValidateBeforeCall(S * @return AsposeResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public AsposeResponse postPagePolyLineAnnotations(String name, Integer pageNumber, List annotations, String storage, String folder) throws ApiException { + public AsposeResponse postPageSquareAnnotations(String name, Integer pageNumber, List annotations, String storage, String folder) throws ApiException { try { - ApiResponse resp = postPagePolyLineAnnotationsWithHttpInfo(name, pageNumber, annotations, storage, folder); + ApiResponse resp = postPageSquareAnnotationsWithHttpInfo(name, pageNumber, annotations, storage, folder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = postPagePolyLineAnnotationsWithHttpInfo(name, pageNumber, annotations, storage, folder); + apiClient.requestToken(); + ApiResponse resp = postPageSquareAnnotationsWithHttpInfo(name, pageNumber, annotations, storage, folder); return resp.getData(); } throw ex; @@ -28906,7 +32361,7 @@ public AsposeResponse postPagePolyLineAnnotations(String name, Integer pageNumbe } /** - * Add document page polyline annotations. + * Add document page square annotations. * * @param name The document name. (required) * @param pageNumber The page number. (required) @@ -28916,14 +32371,14 @@ public AsposeResponse postPagePolyLineAnnotations(String name, Integer pageNumbe * @return ApiResponse<AsposeResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse postPagePolyLineAnnotationsWithHttpInfo(String name, Integer pageNumber, List annotations, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = postPagePolyLineAnnotationsValidateBeforeCall(name, pageNumber, annotations, storage, folder, null, null); + public ApiResponse postPageSquareAnnotationsWithHttpInfo(String name, Integer pageNumber, List annotations, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = postPageSquareAnnotationsValidateBeforeCall(name, pageNumber, annotations, storage, folder, null, null); Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Add document page polyline annotations. (asynchronously) + * Add document page square annotations. (asynchronously) * * @param name The document name. (required) * @param pageNumber The page number. (required) @@ -28934,7 +32389,7 @@ public ApiResponse postPagePolyLineAnnotationsWithHttpInfo(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 postPagePolyLineAnnotationsAsync(String name, Integer pageNumber, List annotations, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call postPageSquareAnnotationsAsync(String name, Integer pageNumber, List annotations, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -28955,13 +32410,13 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = postPagePolyLineAnnotationsValidateBeforeCall(name, pageNumber, annotations, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = postPageSquareAnnotationsValidateBeforeCall(name, pageNumber, annotations, storage, folder, progressListener, progressRequestListener); Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for postPagePolygonAnnotations + * Build call for postPageSquigglyAnnotations * @param name The document name. (required) * @param pageNumber The page number. (required) * @param annotations The array of annotation. (required) @@ -28972,11 +32427,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 postPagePolygonAnnotationsCall(String name, Integer pageNumber, List annotations, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call postPageSquigglyAnnotationsCall(String name, Integer pageNumber, List annotations, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = annotations; // create path and map variables - String localVarPath = "/pdf/{name}/pages/{pageNumber}/annotations/polygon" + String localVarPath = "/pdf/{name}/pages/{pageNumber}/annotations/squiggly" .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) .replaceAll("\\{" + "pageNumber" + "\\}", apiClient.escapeString(pageNumber.toString())); @@ -29015,36 +32470,36 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call postPagePolygonAnnotationsValidateBeforeCall(String name, Integer pageNumber, List annotations, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call postPageSquigglyAnnotationsValidateBeforeCall(String name, Integer pageNumber, List annotations, 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 postPagePolygonAnnotations(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling postPageSquigglyAnnotations(Async)"); } // verify the required parameter 'pageNumber' is set if (pageNumber == null) { - throw new ApiException("Missing the required parameter 'pageNumber' when calling postPagePolygonAnnotations(Async)"); + throw new ApiException("Missing the required parameter 'pageNumber' when calling postPageSquigglyAnnotations(Async)"); } // verify the required parameter 'annotations' is set if (annotations == null) { - throw new ApiException("Missing the required parameter 'annotations' when calling postPagePolygonAnnotations(Async)"); + throw new ApiException("Missing the required parameter 'annotations' when calling postPageSquigglyAnnotations(Async)"); } - com.squareup.okhttp.Call call = postPagePolygonAnnotationsCall(name, pageNumber, annotations, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = postPageSquigglyAnnotationsCall(name, pageNumber, annotations, storage, folder, progressListener, progressRequestListener); return call; } /** - * Add document page polygon annotations. + * Add document page squiggly annotations. * * @param name The document name. (required) * @param pageNumber The page number. (required) @@ -29054,18 +32509,18 @@ private com.squareup.okhttp.Call postPagePolygonAnnotationsValidateBeforeCall(St * @return AsposeResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public AsposeResponse postPagePolygonAnnotations(String name, Integer pageNumber, List annotations, String storage, String folder) throws ApiException { + public AsposeResponse postPageSquigglyAnnotations(String name, Integer pageNumber, List annotations, String storage, String folder) throws ApiException { try { - ApiResponse resp = postPagePolygonAnnotationsWithHttpInfo(name, pageNumber, annotations, storage, folder); + ApiResponse resp = postPageSquigglyAnnotationsWithHttpInfo(name, pageNumber, annotations, storage, folder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = postPagePolygonAnnotationsWithHttpInfo(name, pageNumber, annotations, storage, folder); + apiClient.requestToken(); + ApiResponse resp = postPageSquigglyAnnotationsWithHttpInfo(name, pageNumber, annotations, storage, folder); return resp.getData(); } throw ex; @@ -29073,7 +32528,7 @@ public AsposeResponse postPagePolygonAnnotations(String name, Integer pageNumber } /** - * Add document page polygon annotations. + * Add document page squiggly annotations. * * @param name The document name. (required) * @param pageNumber The page number. (required) @@ -29083,14 +32538,14 @@ public AsposeResponse postPagePolygonAnnotations(String name, Integer pageNumber * @return ApiResponse<AsposeResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse postPagePolygonAnnotationsWithHttpInfo(String name, Integer pageNumber, List annotations, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = postPagePolygonAnnotationsValidateBeforeCall(name, pageNumber, annotations, storage, folder, null, null); + public ApiResponse postPageSquigglyAnnotationsWithHttpInfo(String name, Integer pageNumber, List annotations, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = postPageSquigglyAnnotationsValidateBeforeCall(name, pageNumber, annotations, storage, folder, null, null); Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Add document page polygon annotations. (asynchronously) + * Add document page squiggly annotations. (asynchronously) * * @param name The document name. (required) * @param pageNumber The page number. (required) @@ -29101,7 +32556,7 @@ public ApiResponse postPagePolygonAnnotationsWithHttpInfo(String * @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 postPagePolygonAnnotationsAsync(String name, Integer pageNumber, List annotations, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call postPageSquigglyAnnotationsAsync(String name, Integer pageNumber, List annotations, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -29122,13 +32577,13 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = postPagePolygonAnnotationsValidateBeforeCall(name, pageNumber, annotations, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = postPageSquigglyAnnotationsValidateBeforeCall(name, pageNumber, annotations, storage, folder, progressListener, progressRequestListener); Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for postPageRedactionAnnotations + * Build call for postPageStampAnnotations * @param name The document name. (required) * @param pageNumber The page number. (required) * @param annotations The array of annotation. (required) @@ -29139,11 +32594,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 postPageRedactionAnnotationsCall(String name, Integer pageNumber, List annotations, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call postPageStampAnnotationsCall(String name, Integer pageNumber, List annotations, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = annotations; // create path and map variables - String localVarPath = "/pdf/{name}/pages/{pageNumber}/annotations/redaction" + String localVarPath = "/pdf/{name}/pages/{pageNumber}/annotations/stamp" .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) .replaceAll("\\{" + "pageNumber" + "\\}", apiClient.escapeString(pageNumber.toString())); @@ -29182,36 +32637,36 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call postPageRedactionAnnotationsValidateBeforeCall(String name, Integer pageNumber, List annotations, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call postPageStampAnnotationsValidateBeforeCall(String name, Integer pageNumber, List annotations, 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 postPageRedactionAnnotations(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling postPageStampAnnotations(Async)"); } // verify the required parameter 'pageNumber' is set if (pageNumber == null) { - throw new ApiException("Missing the required parameter 'pageNumber' when calling postPageRedactionAnnotations(Async)"); + throw new ApiException("Missing the required parameter 'pageNumber' when calling postPageStampAnnotations(Async)"); } // verify the required parameter 'annotations' is set if (annotations == null) { - throw new ApiException("Missing the required parameter 'annotations' when calling postPageRedactionAnnotations(Async)"); + throw new ApiException("Missing the required parameter 'annotations' when calling postPageStampAnnotations(Async)"); } - com.squareup.okhttp.Call call = postPageRedactionAnnotationsCall(name, pageNumber, annotations, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = postPageStampAnnotationsCall(name, pageNumber, annotations, storage, folder, progressListener, progressRequestListener); return call; } /** - * Add document page redaction annotations. + * Add document page stamp annotations. * * @param name The document name. (required) * @param pageNumber The page number. (required) @@ -29221,18 +32676,18 @@ private com.squareup.okhttp.Call postPageRedactionAnnotationsValidateBeforeCall( * @return AsposeResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public AsposeResponse postPageRedactionAnnotations(String name, Integer pageNumber, List annotations, String storage, String folder) throws ApiException { + public AsposeResponse postPageStampAnnotations(String name, Integer pageNumber, List annotations, String storage, String folder) throws ApiException { try { - ApiResponse resp = postPageRedactionAnnotationsWithHttpInfo(name, pageNumber, annotations, storage, folder); + ApiResponse resp = postPageStampAnnotationsWithHttpInfo(name, pageNumber, annotations, storage, folder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = postPageRedactionAnnotationsWithHttpInfo(name, pageNumber, annotations, storage, folder); + apiClient.requestToken(); + ApiResponse resp = postPageStampAnnotationsWithHttpInfo(name, pageNumber, annotations, storage, folder); return resp.getData(); } throw ex; @@ -29240,7 +32695,7 @@ public AsposeResponse postPageRedactionAnnotations(String name, Integer pageNumb } /** - * Add document page redaction annotations. + * Add document page stamp annotations. * * @param name The document name. (required) * @param pageNumber The page number. (required) @@ -29250,14 +32705,14 @@ public AsposeResponse postPageRedactionAnnotations(String name, Integer pageNumb * @return ApiResponse<AsposeResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse postPageRedactionAnnotationsWithHttpInfo(String name, Integer pageNumber, List annotations, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = postPageRedactionAnnotationsValidateBeforeCall(name, pageNumber, annotations, storage, folder, null, null); + public ApiResponse postPageStampAnnotationsWithHttpInfo(String name, Integer pageNumber, List annotations, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = postPageStampAnnotationsValidateBeforeCall(name, pageNumber, annotations, storage, folder, null, null); Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Add document page redaction annotations. (asynchronously) + * Add document page stamp annotations. (asynchronously) * * @param name The document name. (required) * @param pageNumber The page number. (required) @@ -29268,7 +32723,7 @@ public ApiResponse postPageRedactionAnnotationsWithHttpInfo(Stri * @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 postPageRedactionAnnotationsAsync(String name, Integer pageNumber, List annotations, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call postPageStampAnnotationsAsync(String name, Integer pageNumber, List annotations, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -29289,13 +32744,13 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = postPageRedactionAnnotationsValidateBeforeCall(name, pageNumber, annotations, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = postPageStampAnnotationsValidateBeforeCall(name, pageNumber, annotations, storage, folder, progressListener, progressRequestListener); Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for postPageScreenAnnotations + * Build call for postPageStrikeOutAnnotations * @param name The document name. (required) * @param pageNumber The page number. (required) * @param annotations The array of annotation. (required) @@ -29306,11 +32761,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 postPageScreenAnnotationsCall(String name, Integer pageNumber, List annotations, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call postPageStrikeOutAnnotationsCall(String name, Integer pageNumber, List annotations, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = annotations; // create path and map variables - String localVarPath = "/pdf/{name}/pages/{pageNumber}/annotations/screen" + String localVarPath = "/pdf/{name}/pages/{pageNumber}/annotations/strikeout" .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) .replaceAll("\\{" + "pageNumber" + "\\}", apiClient.escapeString(pageNumber.toString())); @@ -29349,36 +32804,36 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call postPageScreenAnnotationsValidateBeforeCall(String name, Integer pageNumber, List annotations, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call postPageStrikeOutAnnotationsValidateBeforeCall(String name, Integer pageNumber, List annotations, 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 postPageScreenAnnotations(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling postPageStrikeOutAnnotations(Async)"); } // verify the required parameter 'pageNumber' is set if (pageNumber == null) { - throw new ApiException("Missing the required parameter 'pageNumber' when calling postPageScreenAnnotations(Async)"); + throw new ApiException("Missing the required parameter 'pageNumber' when calling postPageStrikeOutAnnotations(Async)"); } // verify the required parameter 'annotations' is set if (annotations == null) { - throw new ApiException("Missing the required parameter 'annotations' when calling postPageScreenAnnotations(Async)"); + throw new ApiException("Missing the required parameter 'annotations' when calling postPageStrikeOutAnnotations(Async)"); } - com.squareup.okhttp.Call call = postPageScreenAnnotationsCall(name, pageNumber, annotations, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = postPageStrikeOutAnnotationsCall(name, pageNumber, annotations, storage, folder, progressListener, progressRequestListener); return call; } /** - * Add document page screen annotations. + * Add document page StrikeOut annotations. * * @param name The document name. (required) * @param pageNumber The page number. (required) @@ -29388,18 +32843,18 @@ private com.squareup.okhttp.Call postPageScreenAnnotationsValidateBeforeCall(Str * @return AsposeResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public AsposeResponse postPageScreenAnnotations(String name, Integer pageNumber, List annotations, String storage, String folder) throws ApiException { + public AsposeResponse postPageStrikeOutAnnotations(String name, Integer pageNumber, List annotations, String storage, String folder) throws ApiException { try { - ApiResponse resp = postPageScreenAnnotationsWithHttpInfo(name, pageNumber, annotations, storage, folder); + ApiResponse resp = postPageStrikeOutAnnotationsWithHttpInfo(name, pageNumber, annotations, storage, folder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = postPageScreenAnnotationsWithHttpInfo(name, pageNumber, annotations, storage, folder); + apiClient.requestToken(); + ApiResponse resp = postPageStrikeOutAnnotationsWithHttpInfo(name, pageNumber, annotations, storage, folder); return resp.getData(); } throw ex; @@ -29407,7 +32862,7 @@ public AsposeResponse postPageScreenAnnotations(String name, Integer pageNumber, } /** - * Add document page screen annotations. + * Add document page StrikeOut annotations. * * @param name The document name. (required) * @param pageNumber The page number. (required) @@ -29417,14 +32872,14 @@ public AsposeResponse postPageScreenAnnotations(String name, Integer pageNumber, * @return ApiResponse<AsposeResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse postPageScreenAnnotationsWithHttpInfo(String name, Integer pageNumber, List annotations, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = postPageScreenAnnotationsValidateBeforeCall(name, pageNumber, annotations, storage, folder, null, null); + public ApiResponse postPageStrikeOutAnnotationsWithHttpInfo(String name, Integer pageNumber, List annotations, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = postPageStrikeOutAnnotationsValidateBeforeCall(name, pageNumber, annotations, storage, folder, null, null); Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Add document page screen annotations. (asynchronously) + * Add document page StrikeOut annotations. (asynchronously) * * @param name The document name. (required) * @param pageNumber The page number. (required) @@ -29435,7 +32890,7 @@ public ApiResponse postPageScreenAnnotationsWithHttpInfo(String * @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 postPageScreenAnnotationsAsync(String name, Integer pageNumber, List annotations, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call postPageStrikeOutAnnotationsAsync(String name, Integer pageNumber, List annotations, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -29456,16 +32911,16 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = postPageScreenAnnotationsValidateBeforeCall(name, pageNumber, annotations, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = postPageStrikeOutAnnotationsValidateBeforeCall(name, pageNumber, annotations, storage, folder, progressListener, progressRequestListener); Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for postPageSoundAnnotations + * Build call for postPageTables * @param name The document name. (required) * @param pageNumber The page number. (required) - * @param annotations The array of annotation. (required) + * @param tables The array of table. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) * @param progressListener Progress listener @@ -29473,11 +32928,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 postPageSoundAnnotationsCall(String name, Integer pageNumber, List annotations, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = annotations; + public com.squareup.okhttp.Call postPageTablesCall(String name, Integer pageNumber, List tables, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = tables; // create path and map variables - String localVarPath = "/pdf/{name}/pages/{pageNumber}/annotations/sound" + String localVarPath = "/pdf/{name}/pages/{pageNumber}/tables" .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) .replaceAll("\\{" + "pageNumber" + "\\}", apiClient.escapeString(pageNumber.toString())); @@ -29516,57 +32971,57 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call postPageSoundAnnotationsValidateBeforeCall(String name, Integer pageNumber, List annotations, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call postPageTablesValidateBeforeCall(String name, Integer pageNumber, List
tables, 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 postPageSoundAnnotations(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling postPageTables(Async)"); } // verify the required parameter 'pageNumber' is set if (pageNumber == null) { - throw new ApiException("Missing the required parameter 'pageNumber' when calling postPageSoundAnnotations(Async)"); + throw new ApiException("Missing the required parameter 'pageNumber' when calling postPageTables(Async)"); } - // verify the required parameter 'annotations' is set - if (annotations == null) { - throw new ApiException("Missing the required parameter 'annotations' when calling postPageSoundAnnotations(Async)"); + // verify the required parameter 'tables' is set + if (tables == null) { + throw new ApiException("Missing the required parameter 'tables' when calling postPageTables(Async)"); } - com.squareup.okhttp.Call call = postPageSoundAnnotationsCall(name, pageNumber, annotations, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = postPageTablesCall(name, pageNumber, tables, storage, folder, progressListener, progressRequestListener); return call; } /** - * Add document page sound annotations. + * Add document page tables. * * @param name The document name. (required) * @param pageNumber The page number. (required) - * @param annotations The array of annotation. (required) + * @param tables The array of table. (required) * @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 AsposeResponse postPageSoundAnnotations(String name, Integer pageNumber, List annotations, String storage, String folder) throws ApiException { + public AsposeResponse postPageTables(String name, Integer pageNumber, List
tables, String storage, String folder) throws ApiException { try { - ApiResponse resp = postPageSoundAnnotationsWithHttpInfo(name, pageNumber, annotations, storage, folder); + ApiResponse resp = postPageTablesWithHttpInfo(name, pageNumber, tables, storage, folder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = postPageSoundAnnotationsWithHttpInfo(name, pageNumber, annotations, storage, folder); + apiClient.requestToken(); + ApiResponse resp = postPageTablesWithHttpInfo(name, pageNumber, tables, storage, folder); return resp.getData(); } throw ex; @@ -29574,35 +33029,35 @@ public AsposeResponse postPageSoundAnnotations(String name, Integer pageNumber, } /** - * Add document page sound annotations. + * Add document page tables. * * @param name The document name. (required) * @param pageNumber The page number. (required) - * @param annotations The array of annotation. (required) + * @param tables The array of table. (required) * @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 postPageSoundAnnotationsWithHttpInfo(String name, Integer pageNumber, List annotations, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = postPageSoundAnnotationsValidateBeforeCall(name, pageNumber, annotations, storage, folder, null, null); + public ApiResponse postPageTablesWithHttpInfo(String name, Integer pageNumber, List
tables, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = postPageTablesValidateBeforeCall(name, pageNumber, tables, storage, folder, null, null); Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Add document page sound annotations. (asynchronously) + * Add document page tables. (asynchronously) * * @param name The document name. (required) * @param pageNumber The page number. (required) - * @param annotations The array of annotation. (required) + * @param tables The array of table. (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 postPageSoundAnnotationsAsync(String name, Integer pageNumber, List annotations, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call postPageTablesAsync(String name, Integer pageNumber, List
tables, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -29623,13 +33078,13 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = postPageSoundAnnotationsValidateBeforeCall(name, pageNumber, annotations, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = postPageTablesValidateBeforeCall(name, pageNumber, tables, storage, folder, progressListener, progressRequestListener); Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for postPageSquareAnnotations + * Build call for postPageTextAnnotations * @param name The document name. (required) * @param pageNumber The page number. (required) * @param annotations The array of annotation. (required) @@ -29640,11 +33095,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 postPageSquareAnnotationsCall(String name, Integer pageNumber, List annotations, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call postPageTextAnnotationsCall(String name, Integer pageNumber, List annotations, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = annotations; // create path and map variables - String localVarPath = "/pdf/{name}/pages/{pageNumber}/annotations/square" + String localVarPath = "/pdf/{name}/pages/{pageNumber}/annotations/text" .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) .replaceAll("\\{" + "pageNumber" + "\\}", apiClient.escapeString(pageNumber.toString())); @@ -29683,36 +33138,36 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call postPageSquareAnnotationsValidateBeforeCall(String name, Integer pageNumber, List annotations, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call postPageTextAnnotationsValidateBeforeCall(String name, Integer pageNumber, List annotations, 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 postPageSquareAnnotations(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling postPageTextAnnotations(Async)"); } // verify the required parameter 'pageNumber' is set if (pageNumber == null) { - throw new ApiException("Missing the required parameter 'pageNumber' when calling postPageSquareAnnotations(Async)"); + throw new ApiException("Missing the required parameter 'pageNumber' when calling postPageTextAnnotations(Async)"); } // verify the required parameter 'annotations' is set if (annotations == null) { - throw new ApiException("Missing the required parameter 'annotations' when calling postPageSquareAnnotations(Async)"); + throw new ApiException("Missing the required parameter 'annotations' when calling postPageTextAnnotations(Async)"); } - com.squareup.okhttp.Call call = postPageSquareAnnotationsCall(name, pageNumber, annotations, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = postPageTextAnnotationsCall(name, pageNumber, annotations, storage, folder, progressListener, progressRequestListener); return call; } /** - * Add document page square annotations. + * Add document page text annotations. * * @param name The document name. (required) * @param pageNumber The page number. (required) @@ -29722,18 +33177,18 @@ private com.squareup.okhttp.Call postPageSquareAnnotationsValidateBeforeCall(Str * @return AsposeResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public AsposeResponse postPageSquareAnnotations(String name, Integer pageNumber, List annotations, String storage, String folder) throws ApiException { + public AsposeResponse postPageTextAnnotations(String name, Integer pageNumber, List annotations, String storage, String folder) throws ApiException { try { - ApiResponse resp = postPageSquareAnnotationsWithHttpInfo(name, pageNumber, annotations, storage, folder); + ApiResponse resp = postPageTextAnnotationsWithHttpInfo(name, pageNumber, annotations, storage, folder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = postPageSquareAnnotationsWithHttpInfo(name, pageNumber, annotations, storage, folder); + apiClient.requestToken(); + ApiResponse resp = postPageTextAnnotationsWithHttpInfo(name, pageNumber, annotations, storage, folder); return resp.getData(); } throw ex; @@ -29741,7 +33196,7 @@ public AsposeResponse postPageSquareAnnotations(String name, Integer pageNumber, } /** - * Add document page square annotations. + * Add document page text annotations. * * @param name The document name. (required) * @param pageNumber The page number. (required) @@ -29751,14 +33206,14 @@ public AsposeResponse postPageSquareAnnotations(String name, Integer pageNumber, * @return ApiResponse<AsposeResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse postPageSquareAnnotationsWithHttpInfo(String name, Integer pageNumber, List annotations, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = postPageSquareAnnotationsValidateBeforeCall(name, pageNumber, annotations, storage, folder, null, null); + public ApiResponse postPageTextAnnotationsWithHttpInfo(String name, Integer pageNumber, List annotations, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = postPageTextAnnotationsValidateBeforeCall(name, pageNumber, annotations, storage, folder, null, null); Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Add document page square annotations. (asynchronously) + * Add document page text annotations. (asynchronously) * * @param name The document name. (required) * @param pageNumber The page number. (required) @@ -29769,7 +33224,7 @@ public ApiResponse postPageSquareAnnotationsWithHttpInfo(String * @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 postPageSquareAnnotationsAsync(String name, Integer pageNumber, List annotations, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call postPageTextAnnotationsAsync(String name, Integer pageNumber, List annotations, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -29790,28 +33245,28 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = postPageSquareAnnotationsValidateBeforeCall(name, pageNumber, annotations, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = postPageTextAnnotationsValidateBeforeCall(name, pageNumber, annotations, storage, folder, progressListener, progressRequestListener); Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for postPageSquigglyAnnotations - * @param name The document name. (required) - * @param pageNumber The page number. (required) - * @param annotations The array of annotation. (required) - * @param storage The document storage. (optional) - * @param folder The document folder. (optional) + * Build call for postPageTextReplace + * @param name (required) + * @param pageNumber (required) + * @param textReplaceListRequest (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 postPageSquigglyAnnotationsCall(String name, Integer pageNumber, List annotations, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = annotations; + public com.squareup.okhttp.Call postPageTextReplaceCall(String name, Integer pageNumber, TextReplaceListRequest textReplaceListRequest, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = textReplaceListRequest; // create path and map variables - String localVarPath = "/pdf/{name}/pages/{pageNumber}/annotations/squiggly" + String localVarPath = "/pdf/{name}/pages/{pageNumber}/text/replace" .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) .replaceAll("\\{" + "pageNumber" + "\\}", apiClient.escapeString(pageNumber.toString())); @@ -29850,57 +33305,57 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call postPageSquigglyAnnotationsValidateBeforeCall(String name, Integer pageNumber, List annotations, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call postPageTextReplaceValidateBeforeCall(String name, Integer pageNumber, TextReplaceListRequest textReplaceListRequest, 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 postPageSquigglyAnnotations(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling postPageTextReplace(Async)"); } // verify the required parameter 'pageNumber' is set if (pageNumber == null) { - throw new ApiException("Missing the required parameter 'pageNumber' when calling postPageSquigglyAnnotations(Async)"); + throw new ApiException("Missing the required parameter 'pageNumber' when calling postPageTextReplace(Async)"); } - // verify the required parameter 'annotations' is set - if (annotations == null) { - throw new ApiException("Missing the required parameter 'annotations' when calling postPageSquigglyAnnotations(Async)"); + // verify the required parameter 'textReplaceListRequest' is set + if (textReplaceListRequest == null) { + throw new ApiException("Missing the required parameter 'textReplaceListRequest' when calling postPageTextReplace(Async)"); } - com.squareup.okhttp.Call call = postPageSquigglyAnnotationsCall(name, pageNumber, annotations, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = postPageTextReplaceCall(name, pageNumber, textReplaceListRequest, storage, folder, progressListener, progressRequestListener); return call; } /** - * Add document page squiggly annotations. + * Page's replace text method. * - * @param name The document name. (required) - * @param pageNumber The page number. (required) - * @param annotations The array of annotation. (required) - * @param storage The document storage. (optional) - * @param folder The document folder. (optional) - * @return AsposeResponse + * @param name (required) + * @param pageNumber (required) + * @param textReplaceListRequest (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 AsposeResponse postPageSquigglyAnnotations(String name, Integer pageNumber, List annotations, String storage, String folder) throws ApiException { + public TextReplaceResponse postPageTextReplace(String name, Integer pageNumber, TextReplaceListRequest textReplaceListRequest, String storage, String folder) throws ApiException { try { - ApiResponse resp = postPageSquigglyAnnotationsWithHttpInfo(name, pageNumber, annotations, storage, folder); + ApiResponse resp = postPageTextReplaceWithHttpInfo(name, pageNumber, textReplaceListRequest, storage, folder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = postPageSquigglyAnnotationsWithHttpInfo(name, pageNumber, annotations, storage, folder); + apiClient.requestToken(); + ApiResponse resp = postPageTextReplaceWithHttpInfo(name, pageNumber, textReplaceListRequest, storage, folder); return resp.getData(); } throw ex; @@ -29908,35 +33363,35 @@ public AsposeResponse postPageSquigglyAnnotations(String name, Integer pageNumbe } /** - * Add document page squiggly annotations. + * Page's replace text method. * - * @param name The document name. (required) - * @param pageNumber The page number. (required) - * @param annotations The array of annotation. (required) - * @param storage The document storage. (optional) - * @param folder The document folder. (optional) - * @return ApiResponse<AsposeResponse> + * @param name (required) + * @param pageNumber (required) + * @param textReplaceListRequest (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 postPageSquigglyAnnotationsWithHttpInfo(String name, Integer pageNumber, List annotations, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = postPageSquigglyAnnotationsValidateBeforeCall(name, pageNumber, annotations, storage, folder, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse postPageTextReplaceWithHttpInfo(String name, Integer pageNumber, TextReplaceListRequest textReplaceListRequest, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = postPageTextReplaceValidateBeforeCall(name, pageNumber, textReplaceListRequest, storage, folder, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Add document page squiggly annotations. (asynchronously) + * Page's replace text method. (asynchronously) * - * @param name The document name. (required) - * @param pageNumber The page number. (required) - * @param annotations The array of annotation. (required) - * @param storage The document storage. (optional) - * @param folder The document folder. (optional) + * @param name (required) + * @param pageNumber (required) + * @param textReplaceListRequest (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 postPageSquigglyAnnotationsAsync(String name, Integer pageNumber, List annotations, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call postPageTextReplaceAsync(String name, Integer pageNumber, TextReplaceListRequest textReplaceListRequest, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -29957,16 +33412,16 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = postPageSquigglyAnnotationsValidateBeforeCall(name, pageNumber, annotations, storage, folder, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = postPageTextReplaceValidateBeforeCall(name, pageNumber, textReplaceListRequest, storage, folder, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for postPageStampAnnotations + * Build call for postPageTextStamps * @param name The document name. (required) * @param pageNumber The page number. (required) - * @param annotations The array of annotation. (required) + * @param stamps The array of stamp. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) * @param progressListener Progress listener @@ -29974,11 +33429,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 postPageStampAnnotationsCall(String name, Integer pageNumber, List annotations, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = annotations; + public com.squareup.okhttp.Call postPageTextStampsCall(String name, Integer pageNumber, List stamps, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = stamps; // create path and map variables - String localVarPath = "/pdf/{name}/pages/{pageNumber}/annotations/stamp" + String localVarPath = "/pdf/{name}/pages/{pageNumber}/stamps/text" .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) .replaceAll("\\{" + "pageNumber" + "\\}", apiClient.escapeString(pageNumber.toString())); @@ -30017,57 +33472,57 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call postPageStampAnnotationsValidateBeforeCall(String name, Integer pageNumber, List annotations, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call postPageTextStampsValidateBeforeCall(String name, Integer pageNumber, List stamps, 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 postPageStampAnnotations(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling postPageTextStamps(Async)"); } // verify the required parameter 'pageNumber' is set if (pageNumber == null) { - throw new ApiException("Missing the required parameter 'pageNumber' when calling postPageStampAnnotations(Async)"); + throw new ApiException("Missing the required parameter 'pageNumber' when calling postPageTextStamps(Async)"); } - // verify the required parameter 'annotations' is set - if (annotations == null) { - throw new ApiException("Missing the required parameter 'annotations' when calling postPageStampAnnotations(Async)"); + // verify the required parameter 'stamps' is set + if (stamps == null) { + throw new ApiException("Missing the required parameter 'stamps' when calling postPageTextStamps(Async)"); } - com.squareup.okhttp.Call call = postPageStampAnnotationsCall(name, pageNumber, annotations, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = postPageTextStampsCall(name, pageNumber, stamps, storage, folder, progressListener, progressRequestListener); return call; } /** - * Add document page stamp annotations. + * Add document page text stamps. * * @param name The document name. (required) * @param pageNumber The page number. (required) - * @param annotations The array of annotation. (required) + * @param stamps The array of stamp. (required) * @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 AsposeResponse postPageStampAnnotations(String name, Integer pageNumber, List annotations, String storage, String folder) throws ApiException { + public AsposeResponse postPageTextStamps(String name, Integer pageNumber, List stamps, String storage, String folder) throws ApiException { try { - ApiResponse resp = postPageStampAnnotationsWithHttpInfo(name, pageNumber, annotations, storage, folder); + ApiResponse resp = postPageTextStampsWithHttpInfo(name, pageNumber, stamps, storage, folder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = postPageStampAnnotationsWithHttpInfo(name, pageNumber, annotations, storage, folder); + apiClient.requestToken(); + ApiResponse resp = postPageTextStampsWithHttpInfo(name, pageNumber, stamps, storage, folder); return resp.getData(); } throw ex; @@ -30075,35 +33530,35 @@ public AsposeResponse postPageStampAnnotations(String name, Integer pageNumber, } /** - * Add document page stamp annotations. + * Add document page text stamps. * * @param name The document name. (required) * @param pageNumber The page number. (required) - * @param annotations The array of annotation. (required) + * @param stamps The array of stamp. (required) * @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 postPageStampAnnotationsWithHttpInfo(String name, Integer pageNumber, List annotations, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = postPageStampAnnotationsValidateBeforeCall(name, pageNumber, annotations, storage, folder, null, null); + public ApiResponse postPageTextStampsWithHttpInfo(String name, Integer pageNumber, List stamps, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = postPageTextStampsValidateBeforeCall(name, pageNumber, stamps, storage, folder, null, null); Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Add document page stamp annotations. (asynchronously) + * Add document page text stamps. (asynchronously) * * @param name The document name. (required) * @param pageNumber The page number. (required) - * @param annotations The array of annotation. (required) + * @param stamps The array of stamp. (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 postPageStampAnnotationsAsync(String name, Integer pageNumber, List annotations, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call postPageTextStampsAsync(String name, Integer pageNumber, List stamps, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -30124,13 +33579,13 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = postPageStampAnnotationsValidateBeforeCall(name, pageNumber, annotations, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = postPageTextStampsValidateBeforeCall(name, pageNumber, stamps, storage, folder, progressListener, progressRequestListener); Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for postPageStrikeOutAnnotations + * Build call for postPageUnderlineAnnotations * @param name The document name. (required) * @param pageNumber The page number. (required) * @param annotations The array of annotation. (required) @@ -30141,11 +33596,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 postPageStrikeOutAnnotationsCall(String name, Integer pageNumber, List annotations, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call postPageUnderlineAnnotationsCall(String name, Integer pageNumber, List annotations, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = annotations; // create path and map variables - String localVarPath = "/pdf/{name}/pages/{pageNumber}/annotations/strikeout" + String localVarPath = "/pdf/{name}/pages/{pageNumber}/annotations/underline" .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) .replaceAll("\\{" + "pageNumber" + "\\}", apiClient.escapeString(pageNumber.toString())); @@ -30184,36 +33639,36 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call postPageStrikeOutAnnotationsValidateBeforeCall(String name, Integer pageNumber, List annotations, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call postPageUnderlineAnnotationsValidateBeforeCall(String name, Integer pageNumber, List annotations, 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 postPageStrikeOutAnnotations(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling postPageUnderlineAnnotations(Async)"); } // verify the required parameter 'pageNumber' is set if (pageNumber == null) { - throw new ApiException("Missing the required parameter 'pageNumber' when calling postPageStrikeOutAnnotations(Async)"); + throw new ApiException("Missing the required parameter 'pageNumber' when calling postPageUnderlineAnnotations(Async)"); } // verify the required parameter 'annotations' is set if (annotations == null) { - throw new ApiException("Missing the required parameter 'annotations' when calling postPageStrikeOutAnnotations(Async)"); + throw new ApiException("Missing the required parameter 'annotations' when calling postPageUnderlineAnnotations(Async)"); } - com.squareup.okhttp.Call call = postPageStrikeOutAnnotationsCall(name, pageNumber, annotations, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = postPageUnderlineAnnotationsCall(name, pageNumber, annotations, storage, folder, progressListener, progressRequestListener); return call; } /** - * Add document page StrikeOut annotations. + * Add document page underline annotations. * * @param name The document name. (required) * @param pageNumber The page number. (required) @@ -30223,18 +33678,18 @@ private com.squareup.okhttp.Call postPageStrikeOutAnnotationsValidateBeforeCall( * @return AsposeResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public AsposeResponse postPageStrikeOutAnnotations(String name, Integer pageNumber, List annotations, String storage, String folder) throws ApiException { + public AsposeResponse postPageUnderlineAnnotations(String name, Integer pageNumber, List annotations, String storage, String folder) throws ApiException { try { - ApiResponse resp = postPageStrikeOutAnnotationsWithHttpInfo(name, pageNumber, annotations, storage, folder); + ApiResponse resp = postPageUnderlineAnnotationsWithHttpInfo(name, pageNumber, annotations, storage, folder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = postPageStrikeOutAnnotationsWithHttpInfo(name, pageNumber, annotations, storage, folder); + apiClient.requestToken(); + ApiResponse resp = postPageUnderlineAnnotationsWithHttpInfo(name, pageNumber, annotations, storage, folder); return resp.getData(); } throw ex; @@ -30242,7 +33697,7 @@ public AsposeResponse postPageStrikeOutAnnotations(String name, Integer pageNumb } /** - * Add document page StrikeOut annotations. + * Add document page underline annotations. * * @param name The document name. (required) * @param pageNumber The page number. (required) @@ -30252,14 +33707,14 @@ public AsposeResponse postPageStrikeOutAnnotations(String name, Integer pageNumb * @return ApiResponse<AsposeResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse postPageStrikeOutAnnotationsWithHttpInfo(String name, Integer pageNumber, List annotations, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = postPageStrikeOutAnnotationsValidateBeforeCall(name, pageNumber, annotations, storage, folder, null, null); + public ApiResponse postPageUnderlineAnnotationsWithHttpInfo(String name, Integer pageNumber, List annotations, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = postPageUnderlineAnnotationsValidateBeforeCall(name, pageNumber, annotations, storage, folder, null, null); Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Add document page StrikeOut annotations. (asynchronously) + * Add document page underline annotations. (asynchronously) * * @param name The document name. (required) * @param pageNumber The page number. (required) @@ -30270,7 +33725,7 @@ public ApiResponse postPageStrikeOutAnnotationsWithHttpInfo(Stri * @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 postPageStrikeOutAnnotationsAsync(String name, Integer pageNumber, List annotations, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call postPageUnderlineAnnotationsAsync(String name, Integer pageNumber, List annotations, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -30291,16 +33746,16 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = postPageStrikeOutAnnotationsValidateBeforeCall(name, pageNumber, annotations, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = postPageUnderlineAnnotationsValidateBeforeCall(name, pageNumber, annotations, storage, folder, progressListener, progressRequestListener); Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for postPageTables + * Build call for postPopupAnnotation * @param name The document name. (required) - * @param pageNumber The page number. (required) - * @param tables The array of table. (required) + * @param annotationId The parent annotation ID. (required) + * @param annotation The annotation. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) * @param progressListener Progress listener @@ -30308,13 +33763,13 @@ 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 postPageTablesCall(String name, Integer pageNumber, List
tables, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = tables; + public com.squareup.okhttp.Call postPopupAnnotationCall(String name, String annotationId, PopupAnnotation annotation, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = annotation; // create path and map variables - String localVarPath = "/pdf/{name}/pages/{pageNumber}/tables" + String localVarPath = "/pdf/{name}/annotations/{annotationId}/popup" .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "pageNumber" + "\\}", apiClient.escapeString(pageNumber.toString())); + .replaceAll("\\{" + "annotationId" + "\\}", apiClient.escapeString(annotationId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -30351,57 +33806,57 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call postPageTablesValidateBeforeCall(String name, Integer pageNumber, List
tables, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call postPopupAnnotationValidateBeforeCall(String name, String annotationId, PopupAnnotation annotation, 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 postPageTables(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling postPopupAnnotation(Async)"); } - // verify the required parameter 'pageNumber' is set - if (pageNumber == null) { - throw new ApiException("Missing the required parameter 'pageNumber' when calling postPageTables(Async)"); + // verify the required parameter 'annotationId' is set + if (annotationId == null) { + throw new ApiException("Missing the required parameter 'annotationId' when calling postPopupAnnotation(Async)"); } - // verify the required parameter 'tables' is set - if (tables == null) { - throw new ApiException("Missing the required parameter 'tables' when calling postPageTables(Async)"); + // verify the required parameter 'annotation' is set + if (annotation == null) { + throw new ApiException("Missing the required parameter 'annotation' when calling postPopupAnnotation(Async)"); } - com.squareup.okhttp.Call call = postPageTablesCall(name, pageNumber, tables, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = postPopupAnnotationCall(name, annotationId, annotation, storage, folder, progressListener, progressRequestListener); return call; } /** - * Add document page tables. + * Add document popup annotations. * * @param name The document name. (required) - * @param pageNumber The page number. (required) - * @param tables The array of table. (required) + * @param annotationId The parent annotation ID. (required) + * @param annotation The annotation. (required) * @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 AsposeResponse postPageTables(String name, Integer pageNumber, List
tables, String storage, String folder) throws ApiException { + public AsposeResponse postPopupAnnotation(String name, String annotationId, PopupAnnotation annotation, String storage, String folder) throws ApiException { try { - ApiResponse resp = postPageTablesWithHttpInfo(name, pageNumber, tables, storage, folder); + ApiResponse resp = postPopupAnnotationWithHttpInfo(name, annotationId, annotation, storage, folder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = postPageTablesWithHttpInfo(name, pageNumber, tables, storage, folder); + apiClient.requestToken(); + ApiResponse resp = postPopupAnnotationWithHttpInfo(name, annotationId, annotation, storage, folder); return resp.getData(); } throw ex; @@ -30409,35 +33864,35 @@ public AsposeResponse postPageTables(String name, Integer pageNumber, List
postPageTablesWithHttpInfo(String name, Integer pageNumber, List
tables, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = postPageTablesValidateBeforeCall(name, pageNumber, tables, storage, folder, null, null); + public ApiResponse postPopupAnnotationWithHttpInfo(String name, String annotationId, PopupAnnotation annotation, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = postPopupAnnotationValidateBeforeCall(name, annotationId, annotation, storage, folder, null, null); Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Add document page tables. (asynchronously) + * Add document popup annotations. (asynchronously) * * @param name The document name. (required) - * @param pageNumber The page number. (required) - * @param tables The array of table. (required) + * @param annotationId The parent annotation ID. (required) + * @param annotation The annotation. (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 postPageTablesAsync(String name, Integer pageNumber, List
tables, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call postPopupAnnotationAsync(String name, String annotationId, PopupAnnotation annotation, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -30458,16 +33913,15 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = postPageTablesValidateBeforeCall(name, pageNumber, tables, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = postPopupAnnotationValidateBeforeCall(name, annotationId, annotation, storage, folder, progressListener, progressRequestListener); Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for postPageTextAnnotations + * Build call for postSignDocument * @param name The document name. (required) - * @param pageNumber The page number. (required) - * @param annotations The array of annotation. (required) + * @param sign Signature object containing signature data. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) * @param progressListener Progress listener @@ -30475,13 +33929,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 postPageTextAnnotationsCall(String name, Integer pageNumber, List annotations, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = annotations; + public com.squareup.okhttp.Call postSignDocumentCall(String name, Signature sign, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = sign; // create path and map variables - String localVarPath = "/pdf/{name}/pages/{pageNumber}/annotations/text" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "pageNumber" + "\\}", apiClient.escapeString(pageNumber.toString())); + String localVarPath = "/pdf/{name}/sign" + .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -30518,57 +33971,51 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call postPageTextAnnotationsValidateBeforeCall(String name, Integer pageNumber, List annotations, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call postSignDocumentValidateBeforeCall(String name, Signature sign, 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 postPageTextAnnotations(Async)"); - } - - // verify the required parameter 'pageNumber' is set - if (pageNumber == null) { - throw new ApiException("Missing the required parameter 'pageNumber' when calling postPageTextAnnotations(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling postSignDocument(Async)"); } - // verify the required parameter 'annotations' is set - if (annotations == null) { - throw new ApiException("Missing the required parameter 'annotations' when calling postPageTextAnnotations(Async)"); + // verify the required parameter 'sign' is set + if (sign == null) { + throw new ApiException("Missing the required parameter 'sign' when calling postSignDocument(Async)"); } - com.squareup.okhttp.Call call = postPageTextAnnotationsCall(name, pageNumber, annotations, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = postSignDocumentCall(name, sign, storage, folder, progressListener, progressRequestListener); return call; } /** - * Add document page text annotations. + * Sign document. * * @param name The document name. (required) - * @param pageNumber The page number. (required) - * @param annotations The array of annotation. (required) + * @param sign Signature object containing signature data. (required) * @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 AsposeResponse postPageTextAnnotations(String name, Integer pageNumber, List annotations, String storage, String folder) throws ApiException { + public AsposeResponse postSignDocument(String name, Signature sign, String storage, String folder) throws ApiException { try { - ApiResponse resp = postPageTextAnnotationsWithHttpInfo(name, pageNumber, annotations, storage, folder); + ApiResponse resp = postSignDocumentWithHttpInfo(name, sign, storage, folder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = postPageTextAnnotationsWithHttpInfo(name, pageNumber, annotations, storage, folder); + apiClient.requestToken(); + ApiResponse resp = postSignDocumentWithHttpInfo(name, sign, storage, folder); return resp.getData(); } throw ex; @@ -30576,35 +34023,33 @@ public AsposeResponse postPageTextAnnotations(String name, Integer pageNumber, L } /** - * Add document page text annotations. + * Sign document. * * @param name The document name. (required) - * @param pageNumber The page number. (required) - * @param annotations The array of annotation. (required) + * @param sign Signature object containing signature data. (required) * @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 postPageTextAnnotationsWithHttpInfo(String name, Integer pageNumber, List annotations, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = postPageTextAnnotationsValidateBeforeCall(name, pageNumber, annotations, storage, folder, null, null); + public ApiResponse postSignDocumentWithHttpInfo(String name, Signature sign, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = postSignDocumentValidateBeforeCall(name, sign, storage, folder, null, null); Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Add document page text annotations. (asynchronously) + * Sign document. (asynchronously) * * @param name The document name. (required) - * @param pageNumber The page number. (required) - * @param annotations The array of annotation. (required) + * @param sign Signature object containing signature data. (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 postPageTextAnnotationsAsync(String name, Integer pageNumber, List annotations, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call postSignDocumentAsync(String name, Signature sign, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -30625,28 +34070,28 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = postPageTextAnnotationsValidateBeforeCall(name, pageNumber, annotations, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = postSignDocumentValidateBeforeCall(name, sign, storage, folder, progressListener, progressRequestListener); Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for postPageTextReplace - * @param name (required) - * @param pageNumber (required) - * @param textReplaceListRequest (required) - * @param storage (optional) - * @param folder (optional) + * Build call for postSignPage + * @param name The document name. (required) + * @param pageNumber The page number. (required) + * @param sign Signature object containing signature data. (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 postPageTextReplaceCall(String name, Integer pageNumber, TextReplaceListRequest textReplaceListRequest, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = textReplaceListRequest; + public com.squareup.okhttp.Call postSignPageCall(String name, Integer pageNumber, Signature sign, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = sign; // create path and map variables - String localVarPath = "/pdf/{name}/pages/{pageNumber}/text/replace" + String localVarPath = "/pdf/{name}/pages/{pageNumber}/sign" .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) .replaceAll("\\{" + "pageNumber" + "\\}", apiClient.escapeString(pageNumber.toString())); @@ -30685,57 +34130,57 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call postPageTextReplaceValidateBeforeCall(String name, Integer pageNumber, TextReplaceListRequest textReplaceListRequest, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call postSignPageValidateBeforeCall(String name, Integer pageNumber, Signature sign, 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 postPageTextReplace(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling postSignPage(Async)"); } // verify the required parameter 'pageNumber' is set if (pageNumber == null) { - throw new ApiException("Missing the required parameter 'pageNumber' when calling postPageTextReplace(Async)"); + throw new ApiException("Missing the required parameter 'pageNumber' when calling postSignPage(Async)"); } - // verify the required parameter 'textReplaceListRequest' is set - if (textReplaceListRequest == null) { - throw new ApiException("Missing the required parameter 'textReplaceListRequest' when calling postPageTextReplace(Async)"); + // verify the required parameter 'sign' is set + if (sign == null) { + throw new ApiException("Missing the required parameter 'sign' when calling postSignPage(Async)"); } - com.squareup.okhttp.Call call = postPageTextReplaceCall(name, pageNumber, textReplaceListRequest, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = postSignPageCall(name, pageNumber, sign, storage, folder, progressListener, progressRequestListener); return call; } /** - * Page's replace text method. + * Sign page. * - * @param name (required) - * @param pageNumber (required) - * @param textReplaceListRequest (required) - * @param storage (optional) - * @param folder (optional) - * @return TextReplaceResponse + * @param name The document name. (required) + * @param pageNumber The page number. (required) + * @param sign Signature object containing signature data. (required) + * @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 TextReplaceResponse postPageTextReplace(String name, Integer pageNumber, TextReplaceListRequest textReplaceListRequest, String storage, String folder) throws ApiException { + public AsposeResponse postSignPage(String name, Integer pageNumber, Signature sign, String storage, String folder) throws ApiException { try { - ApiResponse resp = postPageTextReplaceWithHttpInfo(name, pageNumber, textReplaceListRequest, storage, folder); + ApiResponse resp = postSignPageWithHttpInfo(name, pageNumber, sign, storage, folder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = postPageTextReplaceWithHttpInfo(name, pageNumber, textReplaceListRequest, storage, folder); + apiClient.requestToken(); + ApiResponse resp = postSignPageWithHttpInfo(name, pageNumber, sign, storage, folder); return resp.getData(); } throw ex; @@ -30743,35 +34188,35 @@ public TextReplaceResponse postPageTextReplace(String name, Integer pageNumber, } /** - * Page's replace text method. + * Sign page. * - * @param name (required) - * @param pageNumber (required) - * @param textReplaceListRequest (required) - * @param storage (optional) - * @param folder (optional) - * @return ApiResponse<TextReplaceResponse> + * @param name The document name. (required) + * @param pageNumber The page number. (required) + * @param sign Signature object containing signature data. (required) + * @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 postPageTextReplaceWithHttpInfo(String name, Integer pageNumber, TextReplaceListRequest textReplaceListRequest, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = postPageTextReplaceValidateBeforeCall(name, pageNumber, textReplaceListRequest, storage, folder, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse postSignPageWithHttpInfo(String name, Integer pageNumber, Signature sign, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = postSignPageValidateBeforeCall(name, pageNumber, sign, storage, folder, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Page's replace text method. (asynchronously) + * Sign page. (asynchronously) * - * @param name (required) - * @param pageNumber (required) - * @param textReplaceListRequest (required) - * @param storage (optional) - * @param folder (optional) + * @param name The document name. (required) + * @param pageNumber The page number. (required) + * @param sign Signature object containing signature data. (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 postPageTextReplaceAsync(String name, Integer pageNumber, TextReplaceListRequest textReplaceListRequest, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call postSignPageAsync(String name, Integer pageNumber, Signature sign, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -30792,16 +34237,17 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = postPageTextReplaceValidateBeforeCall(name, pageNumber, textReplaceListRequest, storage, folder, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = postSignPageValidateBeforeCall(name, pageNumber, sign, storage, folder, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for postPageTextStamps - * @param name The document name. (required) - * @param pageNumber The page number. (required) - * @param stamps The array of stamp. (required) + * Build call for postSplitDocument + * @param name Document name. (required) + * @param format Resulting documents format. (optional) + * @param from Start page if defined. (optional) + * @param to End page if defined. (optional) * @param storage The document storage. (optional) * @param folder The document folder. (optional) * @param progressListener Progress listener @@ -30809,16 +34255,21 @@ 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 postPageTextStampsCall(String name, Integer pageNumber, List stamps, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = stamps; + public com.squareup.okhttp.Call postSplitDocumentCall(String name, String format, Integer from, Integer to, 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}/stamps/text" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "pageNumber" + "\\}", apiClient.escapeString(pageNumber.toString())); + String localVarPath = "/pdf/{name}/split" + .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + if (format != null) + localVarQueryParams.addAll(apiClient.parameterToPair("format", format)); + if (from != null) + localVarQueryParams.addAll(apiClient.parameterToPair("from", from)); + if (to != null) + localVarQueryParams.addAll(apiClient.parameterToPair("to", to)); if (storage != null) localVarQueryParams.addAll(apiClient.parameterToPair("storage", storage)); if (folder != null) @@ -30852,57 +34303,48 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call postPageTextStampsValidateBeforeCall(String name, Integer pageNumber, List stamps, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call postSplitDocumentValidateBeforeCall(String name, String format, Integer from, Integer to, 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 postPageTextStamps(Async)"); - } - - // verify the required parameter 'pageNumber' is set - if (pageNumber == null) { - throw new ApiException("Missing the required parameter 'pageNumber' when calling postPageTextStamps(Async)"); - } - - // verify the required parameter 'stamps' is set - if (stamps == null) { - throw new ApiException("Missing the required parameter 'stamps' when calling postPageTextStamps(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling postSplitDocument(Async)"); } - com.squareup.okhttp.Call call = postPageTextStampsCall(name, pageNumber, stamps, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = postSplitDocumentCall(name, format, from, to, storage, folder, progressListener, progressRequestListener); return call; } /** - * Add document page text stamps. + * Split document to parts. * - * @param name The document name. (required) - * @param pageNumber The page number. (required) - * @param stamps The array of stamp. (required) + * @param name Document name. (required) + * @param format Resulting documents format. (optional) + * @param from Start page if defined. (optional) + * @param to End page if defined. (optional) * @param storage The document storage. (optional) * @param folder The document folder. (optional) - * @return AsposeResponse + * @return SplitResultResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public AsposeResponse postPageTextStamps(String name, Integer pageNumber, List stamps, String storage, String folder) throws ApiException { + public SplitResultResponse postSplitDocument(String name, String format, Integer from, Integer to, String storage, String folder) throws ApiException { try { - ApiResponse resp = postPageTextStampsWithHttpInfo(name, pageNumber, stamps, storage, folder); + ApiResponse resp = postSplitDocumentWithHttpInfo(name, format, from, to, storage, folder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = postPageTextStampsWithHttpInfo(name, pageNumber, stamps, storage, folder); + apiClient.requestToken(); + ApiResponse resp = postSplitDocumentWithHttpInfo(name, format, from, to, storage, folder); return resp.getData(); } throw ex; @@ -30910,35 +34352,37 @@ public AsposeResponse postPageTextStamps(String name, Integer pageNumber, List postPageTextStampsWithHttpInfo(String name, Integer pageNumber, List stamps, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = postPageTextStampsValidateBeforeCall(name, pageNumber, stamps, storage, folder, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse postSplitDocumentWithHttpInfo(String name, String format, Integer from, Integer to, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = postSplitDocumentValidateBeforeCall(name, format, from, to, storage, folder, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Add document page text stamps. (asynchronously) + * Split document to parts. (asynchronously) * - * @param name The document name. (required) - * @param pageNumber The page number. (required) - * @param stamps The array of stamp. (required) + * @param name Document name. (required) + * @param format Resulting documents format. (optional) + * @param from Start page if defined. (optional) + * @param to End page if defined. (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 postPageTextStampsAsync(String name, Integer pageNumber, List stamps, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call postSplitDocumentAsync(String name, String format, Integer from, Integer to, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -30959,16 +34403,14 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = postPageTextStampsValidateBeforeCall(name, pageNumber, stamps, storage, folder, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = postSplitDocumentValidateBeforeCall(name, format, from, to, storage, folder, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for postPageUnderlineAnnotations + * Build call for putAddNewPage * @param name The document name. (required) - * @param pageNumber The page number. (required) - * @param annotations The array of annotation. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) * @param progressListener Progress listener @@ -30976,13 +34418,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 postPageUnderlineAnnotationsCall(String name, Integer pageNumber, List annotations, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = annotations; + public com.squareup.okhttp.Call putAddNewPageCall(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/{pageNumber}/annotations/underline" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "pageNumber" + "\\}", apiClient.escapeString(pageNumber.toString())); + String localVarPath = "/pdf/{name}/pages" + .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -31019,57 +34460,45 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + String[] localVarAuthNames = new String[] { "JWT" }; + return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call postPageUnderlineAnnotationsValidateBeforeCall(String name, Integer pageNumber, List annotations, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call putAddNewPageValidateBeforeCall(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 postPageUnderlineAnnotations(Async)"); - } - - // verify the required parameter 'pageNumber' is set - if (pageNumber == null) { - throw new ApiException("Missing the required parameter 'pageNumber' when calling postPageUnderlineAnnotations(Async)"); - } - - // verify the required parameter 'annotations' is set - if (annotations == null) { - throw new ApiException("Missing the required parameter 'annotations' when calling postPageUnderlineAnnotations(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling putAddNewPage(Async)"); } - com.squareup.okhttp.Call call = postPageUnderlineAnnotationsCall(name, pageNumber, annotations, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = putAddNewPageCall(name, storage, folder, progressListener, progressRequestListener); return call; } /** - * Add document page underline annotations. + * Add new page to end of the document. * * @param name The document name. (required) - * @param pageNumber The page number. (required) - * @param annotations The array of annotation. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) - * @return AsposeResponse + * @return DocumentPagesResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public AsposeResponse postPageUnderlineAnnotations(String name, Integer pageNumber, List annotations, String storage, String folder) throws ApiException { + public DocumentPagesResponse putAddNewPage(String name, String storage, String folder) throws ApiException { try { - ApiResponse resp = postPageUnderlineAnnotationsWithHttpInfo(name, pageNumber, annotations, storage, folder); + ApiResponse resp = putAddNewPageWithHttpInfo(name, storage, folder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = postPageUnderlineAnnotationsWithHttpInfo(name, pageNumber, annotations, storage, folder); + apiClient.requestToken(); + ApiResponse resp = putAddNewPageWithHttpInfo(name, storage, folder); return resp.getData(); } throw ex; @@ -31077,35 +34506,31 @@ public AsposeResponse postPageUnderlineAnnotations(String name, Integer pageNumb } /** - * Add document page underline annotations. + * Add new page to end of the document. * * @param name The document name. (required) - * @param pageNumber The page number. (required) - * @param annotations The array of annotation. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) - * @return ApiResponse<AsposeResponse> + * @return ApiResponse<DocumentPagesResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse postPageUnderlineAnnotationsWithHttpInfo(String name, Integer pageNumber, List annotations, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = postPageUnderlineAnnotationsValidateBeforeCall(name, pageNumber, annotations, storage, folder, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse putAddNewPageWithHttpInfo(String name, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = putAddNewPageValidateBeforeCall(name, storage, folder, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Add document page underline annotations. (asynchronously) + * Add new page to end of the document. (asynchronously) * * @param name The document name. (required) - * @param pageNumber The page number. (required) - * @param annotations The array of annotation. (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 postPageUnderlineAnnotationsAsync(String name, Integer pageNumber, List annotations, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call putAddNewPageAsync(String name, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -31126,37 +34551,37 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = postPageUnderlineAnnotationsValidateBeforeCall(name, pageNumber, annotations, storage, folder, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = putAddNewPageValidateBeforeCall(name, storage, folder, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for postPopupAnnotation + * Build call for putAddText * @param name The document name. (required) - * @param annotationId The parent annotation ID. (required) - * @param annotation The annotation. (required) + * @param pageNumber Number of page (starting from 1). (required) + * @param paragraph Paragraph data. (required) + * @param folder 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 postPopupAnnotationCall(String name, String annotationId, PopupAnnotation annotation, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = annotation; + public com.squareup.okhttp.Call putAddTextCall(String name, Integer pageNumber, Paragraph paragraph, String folder, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = paragraph; // create path and map variables - String localVarPath = "/pdf/{name}/annotations/{annotationId}/popup" + String localVarPath = "/pdf/{name}/pages/{pageNumber}/text" .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "annotationId" + "\\}", apiClient.escapeString(annotationId.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 (folder != null) localVarQueryParams.addAll(apiClient.parameterToPair("folder", folder)); + if (storage != null) + localVarQueryParams.addAll(apiClient.parameterToPair("storage", storage)); Map localVarHeaderParams = new HashMap(); @@ -31186,57 +34611,57 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + String[] localVarAuthNames = new String[] { "JWT" }; + return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call postPopupAnnotationValidateBeforeCall(String name, String annotationId, PopupAnnotation annotation, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call putAddTextValidateBeforeCall(String name, Integer pageNumber, Paragraph paragraph, 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 postPopupAnnotation(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling putAddText(Async)"); } - // verify the required parameter 'annotationId' is set - if (annotationId == null) { - throw new ApiException("Missing the required parameter 'annotationId' when calling postPopupAnnotation(Async)"); + // verify the required parameter 'pageNumber' is set + if (pageNumber == null) { + throw new ApiException("Missing the required parameter 'pageNumber' when calling putAddText(Async)"); } - // verify the required parameter 'annotation' is set - if (annotation == null) { - throw new ApiException("Missing the required parameter 'annotation' when calling postPopupAnnotation(Async)"); + // verify the required parameter 'paragraph' is set + if (paragraph == null) { + throw new ApiException("Missing the required parameter 'paragraph' when calling putAddText(Async)"); } - com.squareup.okhttp.Call call = postPopupAnnotationCall(name, annotationId, annotation, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = putAddTextCall(name, pageNumber, paragraph, folder, storage, progressListener, progressRequestListener); return call; } /** - * Add document popup annotations. + * Add text to PDF document page. * * @param name The document name. (required) - * @param annotationId The parent annotation ID. (required) - * @param annotation The annotation. (required) + * @param pageNumber Number of page (starting from 1). (required) + * @param paragraph Paragraph data. (required) + * @param folder Document folder. (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 AsposeResponse postPopupAnnotation(String name, String annotationId, PopupAnnotation annotation, String storage, String folder) throws ApiException { + public AsposeResponse putAddText(String name, Integer pageNumber, Paragraph paragraph, String folder, String storage) throws ApiException { try { - ApiResponse resp = postPopupAnnotationWithHttpInfo(name, annotationId, annotation, storage, folder); + ApiResponse resp = putAddTextWithHttpInfo(name, pageNumber, paragraph, folder, storage); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = postPopupAnnotationWithHttpInfo(name, annotationId, annotation, storage, folder); + apiClient.requestToken(); + ApiResponse resp = putAddTextWithHttpInfo(name, pageNumber, paragraph, folder, storage); return resp.getData(); } throw ex; @@ -31244,35 +34669,35 @@ public AsposeResponse postPopupAnnotation(String name, String annotationId, Popu } /** - * Add document popup annotations. + * Add text to PDF document page. * * @param name The document name. (required) - * @param annotationId The parent annotation ID. (required) - * @param annotation The annotation. (required) + * @param pageNumber Number of page (starting from 1). (required) + * @param paragraph Paragraph data. (required) + * @param folder Document folder. (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 postPopupAnnotationWithHttpInfo(String name, String annotationId, PopupAnnotation annotation, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = postPopupAnnotationValidateBeforeCall(name, annotationId, annotation, storage, folder, null, null); + public ApiResponse putAddTextWithHttpInfo(String name, Integer pageNumber, Paragraph paragraph, String folder, String storage) throws ApiException { + com.squareup.okhttp.Call call = putAddTextValidateBeforeCall(name, pageNumber, paragraph, folder, storage, null, null); Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Add document popup annotations. (asynchronously) + * Add text to PDF document page. (asynchronously) * * @param name The document name. (required) - * @param annotationId The parent annotation ID. (required) - * @param annotation The annotation. (required) + * @param pageNumber Number of page (starting from 1). (required) + * @param paragraph Paragraph data. (required) + * @param folder 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 postPopupAnnotationAsync(String name, String annotationId, PopupAnnotation annotation, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call putAddTextAsync(String name, Integer pageNumber, Paragraph paragraph, String folder, String storage, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -31293,15 +34718,17 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = postPopupAnnotationValidateBeforeCall(name, annotationId, annotation, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = putAddTextValidateBeforeCall(name, pageNumber, paragraph, folder, storage, progressListener, progressRequestListener); Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for postSignDocument + * Build call for putAnnotationsFlatten * @param name The document name. (required) - * @param signature Signature object containing signature data. (optional) + * @param startPage The start page number. (optional) + * @param endPage The end page number. (optional) + * @param annotationTypes Array of annotation types. (optional) * @param storage The document storage. (optional) * @param folder The document folder. (optional) * @param progressListener Progress listener @@ -31309,15 +34736,21 @@ 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 postSignDocumentCall(String name, Signature signature, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = signature; + public com.squareup.okhttp.Call putAnnotationsFlattenCall(String name, Integer startPage, Integer endPage, List annotationTypes, 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}/sign" + String localVarPath = "/pdf/{name}/annotations/flatten" .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + if (startPage != null) + localVarQueryParams.addAll(apiClient.parameterToPair("startPage", startPage)); + if (endPage != null) + localVarQueryParams.addAll(apiClient.parameterToPair("endPage", endPage)); + if (annotationTypes != null) + localVarCollectionQueryParams.addAll(apiClient.parameterToPairs("csv", "annotationTypes", annotationTypes)); if (storage != null) localVarQueryParams.addAll(apiClient.parameterToPair("storage", storage)); if (folder != null) @@ -31351,46 +34784,48 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + String[] localVarAuthNames = new String[] { "JWT" }; + return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call postSignDocumentValidateBeforeCall(String name, Signature signature, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call putAnnotationsFlattenValidateBeforeCall(String name, Integer startPage, Integer endPage, List annotationTypes, 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 postSignDocument(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling putAnnotationsFlatten(Async)"); } - com.squareup.okhttp.Call call = postSignDocumentCall(name, signature, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = putAnnotationsFlattenCall(name, startPage, endPage, annotationTypes, storage, folder, progressListener, progressRequestListener); return call; } /** - * Sign document. + * Flattens the annotations of the specified types * * @param name The document name. (required) - * @param signature Signature object containing signature data. (optional) + * @param startPage The start page number. (optional) + * @param endPage The end page number. (optional) + * @param annotationTypes Array of annotation types. (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 AsposeResponse postSignDocument(String name, Signature signature, String storage, String folder) throws ApiException { + public AsposeResponse putAnnotationsFlatten(String name, Integer startPage, Integer endPage, List annotationTypes, String storage, String folder) throws ApiException { try { - ApiResponse resp = postSignDocumentWithHttpInfo(name, signature, storage, folder); + ApiResponse resp = putAnnotationsFlattenWithHttpInfo(name, startPage, endPage, annotationTypes, storage, folder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = postSignDocumentWithHttpInfo(name, signature, storage, folder); + apiClient.requestToken(); + ApiResponse resp = putAnnotationsFlattenWithHttpInfo(name, startPage, endPage, annotationTypes, storage, folder); return resp.getData(); } throw ex; @@ -31398,33 +34833,37 @@ public AsposeResponse postSignDocument(String name, Signature signature, String } /** - * Sign document. + * Flattens the annotations of the specified types * * @param name The document name. (required) - * @param signature Signature object containing signature data. (optional) + * @param startPage The start page number. (optional) + * @param endPage The end page number. (optional) + * @param annotationTypes Array of annotation types. (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 postSignDocumentWithHttpInfo(String name, Signature signature, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = postSignDocumentValidateBeforeCall(name, signature, storage, folder, null, null); + public ApiResponse putAnnotationsFlattenWithHttpInfo(String name, Integer startPage, Integer endPage, List annotationTypes, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = putAnnotationsFlattenValidateBeforeCall(name, startPage, endPage, annotationTypes, storage, folder, null, null); Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Sign document. (asynchronously) + * Flattens the annotations of the specified types (asynchronously) * * @param name The document name. (required) - * @param signature Signature object containing signature data. (optional) + * @param startPage The start page number. (optional) + * @param endPage The end page number. (optional) + * @param annotationTypes Array of annotation types. (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 postSignDocumentAsync(String name, Signature signature, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call putAnnotationsFlattenAsync(String name, Integer startPage, Integer endPage, List annotationTypes, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -31445,37 +34884,37 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = postSignDocumentValidateBeforeCall(name, signature, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = putAnnotationsFlattenValidateBeforeCall(name, startPage, endPage, annotationTypes, storage, folder, progressListener, progressRequestListener); Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for postSignPage + * Build call for putBookmark * @param name The document name. (required) - * @param pageNumber The page number. (required) - * @param signature Signature object containing signature data. (optional) - * @param storage The document storage. (optional) + * @param bookmarkPath The bookmark path. (required) + * @param bookmark The bookmark. (required) * @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 postSignPageCall(String name, Integer pageNumber, Signature signature, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = signature; + public com.squareup.okhttp.Call putBookmarkCall(String name, String bookmarkPath, Bookmark bookmark, String folder, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = bookmark; // create path and map variables - String localVarPath = "/pdf/{name}/pages/{pageNumber}/sign" + String localVarPath = "/pdf/{name}/bookmarks/bookmark/{bookmarkPath}" .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "pageNumber" + "\\}", apiClient.escapeString(pageNumber.toString())); + .replaceAll("\\{" + "bookmarkPath" + "\\}", apiClient.escapeString(bookmarkPath.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)); + if (storage != null) + localVarQueryParams.addAll(apiClient.parameterToPair("storage", storage)); Map localVarHeaderParams = new HashMap(); @@ -31505,52 +34944,57 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + String[] localVarAuthNames = new String[] { "JWT" }; + return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call postSignPageValidateBeforeCall(String name, Integer pageNumber, Signature signature, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call putBookmarkValidateBeforeCall(String name, String bookmarkPath, Bookmark bookmark, 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 postSignPage(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling putBookmark(Async)"); } - // verify the required parameter 'pageNumber' is set - if (pageNumber == null) { - throw new ApiException("Missing the required parameter 'pageNumber' when calling postSignPage(Async)"); + // verify the required parameter 'bookmarkPath' is set + if (bookmarkPath == null) { + throw new ApiException("Missing the required parameter 'bookmarkPath' when calling putBookmark(Async)"); + } + + // verify the required parameter 'bookmark' is set + if (bookmark == null) { + throw new ApiException("Missing the required parameter 'bookmark' when calling putBookmark(Async)"); } - com.squareup.okhttp.Call call = postSignPageCall(name, pageNumber, signature, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = putBookmarkCall(name, bookmarkPath, bookmark, folder, storage, progressListener, progressRequestListener); return call; } /** - * Sign page. + * Update document bookmark. * * @param name The document name. (required) - * @param pageNumber The page number. (required) - * @param signature Signature object containing signature data. (optional) - * @param storage The document storage. (optional) + * @param bookmarkPath The bookmark path. (required) + * @param bookmark The bookmark. (required) * @param folder The document folder. (optional) - * @return AsposeResponse + * @param storage The document storage. (optional) + * @return BookmarkResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public AsposeResponse postSignPage(String name, Integer pageNumber, Signature signature, String storage, String folder) throws ApiException { + public BookmarkResponse putBookmark(String name, String bookmarkPath, Bookmark bookmark, String folder, String storage) throws ApiException { try { - ApiResponse resp = postSignPageWithHttpInfo(name, pageNumber, signature, storage, folder); + ApiResponse resp = putBookmarkWithHttpInfo(name, bookmarkPath, bookmark, folder, storage); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = postSignPageWithHttpInfo(name, pageNumber, signature, storage, folder); + apiClient.requestToken(); + ApiResponse resp = putBookmarkWithHttpInfo(name, bookmarkPath, bookmark, folder, storage); return resp.getData(); } throw ex; @@ -31558,35 +35002,35 @@ public AsposeResponse postSignPage(String name, Integer pageNumber, Signature si } /** - * Sign page. + * Update document bookmark. * * @param name The document name. (required) - * @param pageNumber The page number. (required) - * @param signature Signature object containing signature data. (optional) - * @param storage The document storage. (optional) + * @param bookmarkPath The bookmark path. (required) + * @param bookmark The bookmark. (required) * @param folder The document folder. (optional) - * @return ApiResponse<AsposeResponse> + * @param storage The document storage. (optional) + * @return ApiResponse<BookmarkResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse postSignPageWithHttpInfo(String name, Integer pageNumber, Signature signature, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = postSignPageValidateBeforeCall(name, pageNumber, signature, storage, folder, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse putBookmarkWithHttpInfo(String name, String bookmarkPath, Bookmark bookmark, String folder, String storage) throws ApiException { + com.squareup.okhttp.Call call = putBookmarkValidateBeforeCall(name, bookmarkPath, bookmark, folder, storage, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Sign page. (asynchronously) + * Update document bookmark. (asynchronously) * * @param name The document name. (required) - * @param pageNumber The page number. (required) - * @param signature Signature object containing signature data. (optional) - * @param storage The document storage. (optional) + * @param bookmarkPath The bookmark path. (required) + * @param bookmark The bookmark. (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 postSignPageAsync(String name, Integer pageNumber, Signature signature, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call putBookmarkAsync(String name, String bookmarkPath, Bookmark bookmark, String folder, String storage, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -31607,17 +35051,16 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = postSignPageValidateBeforeCall(name, pageNumber, signature, storage, folder, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = putBookmarkValidateBeforeCall(name, bookmarkPath, bookmark, folder, storage, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for postSplitDocument - * @param name Document name. (required) - * @param format Resulting documents format. (optional) - * @param from Start page if defined. (optional) - * @param to End page if defined. (optional) + * Build call for putCaretAnnotation + * @param name The document name. (required) + * @param annotationId The annotation ID. (required) + * @param annotation Annotation. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) * @param progressListener Progress listener @@ -31625,21 +35068,16 @@ 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 postSplitDocumentCall(String name, String format, Integer from, Integer to, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = null; + public com.squareup.okhttp.Call putCaretAnnotationCall(String name, String annotationId, CaretAnnotation annotation, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = annotation; // create path and map variables - String localVarPath = "/pdf/{name}/split" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + String localVarPath = "/pdf/{name}/annotations/caret/{annotationId}" + .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) + .replaceAll("\\{" + "annotationId" + "\\}", apiClient.escapeString(annotationId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (format != null) - localVarQueryParams.addAll(apiClient.parameterToPair("format", format)); - if (from != null) - localVarQueryParams.addAll(apiClient.parameterToPair("from", from)); - if (to != null) - localVarQueryParams.addAll(apiClient.parameterToPair("to", to)); if (storage != null) localVarQueryParams.addAll(apiClient.parameterToPair("storage", storage)); if (folder != null) @@ -31673,48 +35111,57 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + String[] localVarAuthNames = new String[] { "JWT" }; + return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call postSplitDocumentValidateBeforeCall(String name, String format, Integer from, Integer to, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call putCaretAnnotationValidateBeforeCall(String name, String annotationId, CaretAnnotation annotation, 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 postSplitDocument(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling putCaretAnnotation(Async)"); + } + + // verify the required parameter 'annotationId' is set + if (annotationId == null) { + throw new ApiException("Missing the required parameter 'annotationId' when calling putCaretAnnotation(Async)"); + } + + // verify the required parameter 'annotation' is set + if (annotation == null) { + throw new ApiException("Missing the required parameter 'annotation' when calling putCaretAnnotation(Async)"); } - com.squareup.okhttp.Call call = postSplitDocumentCall(name, format, from, to, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = putCaretAnnotationCall(name, annotationId, annotation, storage, folder, progressListener, progressRequestListener); return call; } /** - * Split document to parts. + * Replace document caret annotation * - * @param name Document name. (required) - * @param format Resulting documents format. (optional) - * @param from Start page if defined. (optional) - * @param to End page if defined. (optional) + * @param name The document name. (required) + * @param annotationId The annotation ID. (required) + * @param annotation Annotation. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) - * @return SplitResultResponse + * @return CaretAnnotationResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public SplitResultResponse postSplitDocument(String name, String format, Integer from, Integer to, String storage, String folder) throws ApiException { + public CaretAnnotationResponse putCaretAnnotation(String name, String annotationId, CaretAnnotation annotation, String storage, String folder) throws ApiException { try { - ApiResponse resp = postSplitDocumentWithHttpInfo(name, format, from, to, storage, folder); + ApiResponse resp = putCaretAnnotationWithHttpInfo(name, annotationId, annotation, storage, folder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = postSplitDocumentWithHttpInfo(name, format, from, to, storage, folder); + apiClient.requestToken(); + ApiResponse resp = putCaretAnnotationWithHttpInfo(name, annotationId, annotation, storage, folder); return resp.getData(); } throw ex; @@ -31722,37 +35169,35 @@ public SplitResultResponse postSplitDocument(String name, String format, Integer } /** - * Split document to parts. + * Replace document caret annotation * - * @param name Document name. (required) - * @param format Resulting documents format. (optional) - * @param from Start page if defined. (optional) - * @param to End page if defined. (optional) + * @param name The document name. (required) + * @param annotationId The annotation ID. (required) + * @param annotation Annotation. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) - * @return ApiResponse<SplitResultResponse> + * @return ApiResponse<CaretAnnotationResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse postSplitDocumentWithHttpInfo(String name, String format, Integer from, Integer to, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = postSplitDocumentValidateBeforeCall(name, format, from, to, storage, folder, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse putCaretAnnotationWithHttpInfo(String name, String annotationId, CaretAnnotation annotation, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = putCaretAnnotationValidateBeforeCall(name, annotationId, annotation, storage, folder, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Split document to parts. (asynchronously) + * Replace document caret annotation (asynchronously) * - * @param name Document name. (required) - * @param format Resulting documents format. (optional) - * @param from Start page if defined. (optional) - * @param to End page if defined. (optional) + * @param name The document name. (required) + * @param annotationId The annotation ID. (required) + * @param annotation Annotation. (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 postSplitDocumentAsync(String name, String format, Integer from, Integer to, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call putCaretAnnotationAsync(String name, String annotationId, CaretAnnotation annotation, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -31773,34 +35218,42 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = postSplitDocumentValidateBeforeCall(name, format, from, to, storage, folder, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = putCaretAnnotationValidateBeforeCall(name, annotationId, annotation, storage, folder, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for putAddNewPage - * @param name The document name. (required) + * Build call for putChangePasswordDocument + * @param outPath Full resulting filename (ex. /folder1/folder2/result.doc) (required) + * @param ownerPassword Owner password (encrypted Base64). (required) + * @param newUserPassword New user password (encrypted Base64). (required) + * @param newOwnerPassword New owner password (encrypted Base64). (required) * @param storage The document storage. (optional) - * @param folder The document folder. (optional) + * @param file A file to be changed password. (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 putAddNewPageCall(String name, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = null; + public com.squareup.okhttp.Call putChangePasswordDocumentCall(String outPath, String ownerPassword, String newUserPassword, String newOwnerPassword, String storage, File file, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = file; // create path and map variables - String localVarPath = "/pdf/{name}/pages" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + String localVarPath = "/pdf/changepassword"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + if (outPath != null) + localVarQueryParams.addAll(apiClient.parameterToPair("outPath", outPath)); + if (ownerPassword != null) + localVarQueryParams.addAll(apiClient.parameterToPair("ownerPassword", ownerPassword)); + if (newUserPassword != null) + localVarQueryParams.addAll(apiClient.parameterToPair("newUserPassword", newUserPassword)); + if (newOwnerPassword != null) + localVarQueryParams.addAll(apiClient.parameterToPair("newOwnerPassword", newOwnerPassword)); if (storage != null) localVarQueryParams.addAll(apiClient.parameterToPair("storage", storage)); - if (folder != null) - localVarQueryParams.addAll(apiClient.parameterToPair("folder", folder)); Map localVarHeaderParams = new HashMap(); @@ -31830,45 +35283,63 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call putAddNewPageValidateBeforeCall(String name, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call putChangePasswordDocumentValidateBeforeCall(String outPath, String ownerPassword, String newUserPassword, String newOwnerPassword, String storage, File file, 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 putAddNewPage(Async)"); + // verify the required parameter 'outPath' is set + if (outPath == null) { + throw new ApiException("Missing the required parameter 'outPath' when calling putChangePasswordDocument(Async)"); + } + + // verify the required parameter 'ownerPassword' is set + if (ownerPassword == null) { + throw new ApiException("Missing the required parameter 'ownerPassword' when calling putChangePasswordDocument(Async)"); + } + + // verify the required parameter 'newUserPassword' is set + if (newUserPassword == null) { + throw new ApiException("Missing the required parameter 'newUserPassword' when calling putChangePasswordDocument(Async)"); + } + + // verify the required parameter 'newOwnerPassword' is set + if (newOwnerPassword == null) { + throw new ApiException("Missing the required parameter 'newOwnerPassword' when calling putChangePasswordDocument(Async)"); } - com.squareup.okhttp.Call call = putAddNewPageCall(name, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = putChangePasswordDocumentCall(outPath, ownerPassword, newUserPassword, newOwnerPassword, storage, file, progressListener, progressRequestListener); return call; } /** - * Add new page to end of the document. + * Change document password from content. * - * @param name The document name. (required) + * @param outPath Full resulting filename (ex. /folder1/folder2/result.doc) (required) + * @param ownerPassword Owner password (encrypted Base64). (required) + * @param newUserPassword New user password (encrypted Base64). (required) + * @param newOwnerPassword New owner password (encrypted Base64). (required) * @param storage The document storage. (optional) - * @param folder The document folder. (optional) - * @return DocumentPagesResponse + * @param file A file to be changed password. (optional) + * @return AsposeResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public DocumentPagesResponse putAddNewPage(String name, String storage, String folder) throws ApiException { + public AsposeResponse putChangePasswordDocument(String outPath, String ownerPassword, String newUserPassword, String newOwnerPassword, String storage, File file) throws ApiException { try { - ApiResponse resp = putAddNewPageWithHttpInfo(name, storage, folder); + ApiResponse resp = putChangePasswordDocumentWithHttpInfo(outPath, ownerPassword, newUserPassword, newOwnerPassword, storage, file); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = putAddNewPageWithHttpInfo(name, storage, folder); + apiClient.requestToken(); + ApiResponse resp = putChangePasswordDocumentWithHttpInfo(outPath, ownerPassword, newUserPassword, newOwnerPassword, storage, file); return resp.getData(); } throw ex; @@ -31876,31 +35347,37 @@ public DocumentPagesResponse putAddNewPage(String name, String storage, String f } /** - * Add new page to end of the document. + * Change document password from content. * - * @param name The document name. (required) + * @param outPath Full resulting filename (ex. /folder1/folder2/result.doc) (required) + * @param ownerPassword Owner password (encrypted Base64). (required) + * @param newUserPassword New user password (encrypted Base64). (required) + * @param newOwnerPassword New owner password (encrypted Base64). (required) * @param storage The document storage. (optional) - * @param folder The document folder. (optional) - * @return ApiResponse<DocumentPagesResponse> + * @param file A file to be changed password. (optional) + * @return ApiResponse<AsposeResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse putAddNewPageWithHttpInfo(String name, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = putAddNewPageValidateBeforeCall(name, storage, folder, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse putChangePasswordDocumentWithHttpInfo(String outPath, String ownerPassword, String newUserPassword, String newOwnerPassword, String storage, File file) throws ApiException { + com.squareup.okhttp.Call call = putChangePasswordDocumentValidateBeforeCall(outPath, ownerPassword, newUserPassword, newOwnerPassword, storage, file, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Add new page to end of the document. (asynchronously) + * Change document password from content. (asynchronously) * - * @param name The document name. (required) + * @param outPath Full resulting filename (ex. /folder1/folder2/result.doc) (required) + * @param ownerPassword Owner password (encrypted Base64). (required) + * @param newUserPassword New user password (encrypted Base64). (required) + * @param newOwnerPassword New owner password (encrypted Base64). (required) * @param storage The document storage. (optional) - * @param folder The document folder. (optional) + * @param file A file to be changed password. (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 putAddNewPageAsync(String name, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call putChangePasswordDocumentAsync(String outPath, String ownerPassword, String newUserPassword, String newOwnerPassword, String storage, File file, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -31921,37 +35398,37 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = putAddNewPageValidateBeforeCall(name, storage, folder, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = putChangePasswordDocumentValidateBeforeCall(outPath, ownerPassword, newUserPassword, newOwnerPassword, storage, file, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for putAddText + * Build call for putCircleAnnotation * @param name The document name. (required) - * @param pageNumber Number of page (starting from 1). (required) - * @param paragraph Paragraph data. (optional) - * @param folder Document folder. (optional) + * @param annotationId The annotation ID. (required) + * @param annotation Annotation. (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 putAddTextCall(String name, Integer pageNumber, Paragraph paragraph, String folder, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = paragraph; + public com.squareup.okhttp.Call putCircleAnnotationCall(String name, String annotationId, CircleAnnotation annotation, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = annotation; // create path and map variables - String localVarPath = "/pdf/{name}/pages/{pageNumber}/text" + String localVarPath = "/pdf/{name}/annotations/circle/{annotationId}" .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "pageNumber" + "\\}", apiClient.escapeString(pageNumber.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(); @@ -31981,52 +35458,57 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call putAddTextValidateBeforeCall(String name, Integer pageNumber, Paragraph paragraph, String folder, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call putCircleAnnotationValidateBeforeCall(String name, String annotationId, CircleAnnotation annotation, 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 putAddText(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling putCircleAnnotation(Async)"); } - // verify the required parameter 'pageNumber' is set - if (pageNumber == null) { - throw new ApiException("Missing the required parameter 'pageNumber' when calling putAddText(Async)"); + // verify the required parameter 'annotationId' is set + if (annotationId == null) { + throw new ApiException("Missing the required parameter 'annotationId' when calling putCircleAnnotation(Async)"); + } + + // verify the required parameter 'annotation' is set + if (annotation == null) { + throw new ApiException("Missing the required parameter 'annotation' when calling putCircleAnnotation(Async)"); } - com.squareup.okhttp.Call call = putAddTextCall(name, pageNumber, paragraph, folder, storage, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = putCircleAnnotationCall(name, annotationId, annotation, storage, folder, progressListener, progressRequestListener); return call; } /** - * Add text to PDF document page. + * Replace document circle annotation * * @param name The document name. (required) - * @param pageNumber Number of page (starting from 1). (required) - * @param paragraph Paragraph data. (optional) - * @param folder Document folder. (optional) + * @param annotationId The annotation ID. (required) + * @param annotation Annotation. (required) * @param storage The document storage. (optional) - * @return AsposeResponse + * @param folder The document folder. (optional) + * @return CircleAnnotationResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public AsposeResponse putAddText(String name, Integer pageNumber, Paragraph paragraph, String folder, String storage) throws ApiException { + public CircleAnnotationResponse putCircleAnnotation(String name, String annotationId, CircleAnnotation annotation, String storage, String folder) throws ApiException { try { - ApiResponse resp = putAddTextWithHttpInfo(name, pageNumber, paragraph, folder, storage); + ApiResponse resp = putCircleAnnotationWithHttpInfo(name, annotationId, annotation, storage, folder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = putAddTextWithHttpInfo(name, pageNumber, paragraph, folder, storage); + apiClient.requestToken(); + ApiResponse resp = putCircleAnnotationWithHttpInfo(name, annotationId, annotation, storage, folder); return resp.getData(); } throw ex; @@ -32034,35 +35516,35 @@ public AsposeResponse putAddText(String name, Integer pageNumber, Paragraph para } /** - * Add text to PDF document page. + * Replace document circle annotation * * @param name The document name. (required) - * @param pageNumber Number of page (starting from 1). (required) - * @param paragraph Paragraph data. (optional) - * @param folder Document folder. (optional) + * @param annotationId The annotation ID. (required) + * @param annotation Annotation. (required) * @param storage The document storage. (optional) - * @return ApiResponse<AsposeResponse> + * @param folder The document folder. (optional) + * @return ApiResponse<CircleAnnotationResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse putAddTextWithHttpInfo(String name, Integer pageNumber, Paragraph paragraph, String folder, String storage) throws ApiException { - com.squareup.okhttp.Call call = putAddTextValidateBeforeCall(name, pageNumber, paragraph, folder, storage, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse putCircleAnnotationWithHttpInfo(String name, String annotationId, CircleAnnotation annotation, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = putCircleAnnotationValidateBeforeCall(name, annotationId, annotation, storage, folder, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Add text to PDF document page. (asynchronously) + * Replace document circle annotation (asynchronously) * * @param name The document name. (required) - * @param pageNumber Number of page (starting from 1). (required) - * @param paragraph Paragraph data. (optional) - * @param folder Document folder. (optional) + * @param annotationId The annotation ID. (required) + * @param annotation Annotation. (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 putAddTextAsync(String name, Integer pageNumber, Paragraph paragraph, String folder, String storage, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call putCircleAnnotationAsync(String name, String annotationId, CircleAnnotation annotation, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -32083,39 +35565,30 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = putAddTextValidateBeforeCall(name, pageNumber, paragraph, folder, storage, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = putCircleAnnotationValidateBeforeCall(name, annotationId, annotation, storage, folder, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for putAnnotationsFlatten - * @param name The document name. (required) - * @param startPage The start page number. (optional) - * @param endPage The end page number. (optional) - * @param annotationTypes Array of annotation types. (optional) + * Build call for putCreateDocument + * @param name The new document name. (required) * @param storage The document storage. (optional) - * @param folder The document folder. (optional) + * @param folder The new 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 putAnnotationsFlattenCall(String name, Integer startPage, Integer endPage, List annotationTypes, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call putCreateDocumentCall(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/flatten" + String localVarPath = "/pdf/{name}" .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (startPage != null) - localVarQueryParams.addAll(apiClient.parameterToPair("startPage", startPage)); - if (endPage != null) - localVarQueryParams.addAll(apiClient.parameterToPair("endPage", endPage)); - if (annotationTypes != null) - localVarCollectionQueryParams.addAll(apiClient.parameterToPairs("multi", "annotationTypes", annotationTypes)); if (storage != null) localVarQueryParams.addAll(apiClient.parameterToPair("storage", storage)); if (folder != null) @@ -32149,48 +35622,45 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call putAnnotationsFlattenValidateBeforeCall(String name, Integer startPage, Integer endPage, List annotationTypes, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call putCreateDocumentValidateBeforeCall(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 putAnnotationsFlatten(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling putCreateDocument(Async)"); } - com.squareup.okhttp.Call call = putAnnotationsFlattenCall(name, startPage, endPage, annotationTypes, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = putCreateDocumentCall(name, storage, folder, progressListener, progressRequestListener); return call; } /** - * Flattens the annotations of the specified types + * Create empty document. * - * @param name The document name. (required) - * @param startPage The start page number. (optional) - * @param endPage The end page number. (optional) - * @param annotationTypes Array of annotation types. (optional) + * @param name The new document name. (required) * @param storage The document storage. (optional) - * @param folder The document folder. (optional) - * @return AsposeResponse + * @param folder The new document folder. (optional) + * @return DocumentResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public AsposeResponse putAnnotationsFlatten(String name, Integer startPage, Integer endPage, List annotationTypes, String storage, String folder) throws ApiException { + public DocumentResponse putCreateDocument(String name, String storage, String folder) throws ApiException { try { - ApiResponse resp = putAnnotationsFlattenWithHttpInfo(name, startPage, endPage, annotationTypes, storage, folder); + ApiResponse resp = putCreateDocumentWithHttpInfo(name, storage, folder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = putAnnotationsFlattenWithHttpInfo(name, startPage, endPage, annotationTypes, storage, folder); + apiClient.requestToken(); + ApiResponse resp = putCreateDocumentWithHttpInfo(name, storage, folder); return resp.getData(); } throw ex; @@ -32198,37 +35668,31 @@ public AsposeResponse putAnnotationsFlatten(String name, Integer startPage, Inte } /** - * Flattens the annotations of the specified types + * Create empty document. * - * @param name The document name. (required) - * @param startPage The start page number. (optional) - * @param endPage The end page number. (optional) - * @param annotationTypes Array of annotation types. (optional) + * @param name The new document name. (required) * @param storage The document storage. (optional) - * @param folder The document folder. (optional) - * @return ApiResponse<AsposeResponse> + * @param folder The new 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 putAnnotationsFlattenWithHttpInfo(String name, Integer startPage, Integer endPage, List annotationTypes, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = putAnnotationsFlattenValidateBeforeCall(name, startPage, endPage, annotationTypes, storage, folder, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse putCreateDocumentWithHttpInfo(String name, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = putCreateDocumentValidateBeforeCall(name, storage, folder, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Flattens the annotations of the specified types (asynchronously) + * Create empty document. (asynchronously) * - * @param name The document name. (required) - * @param startPage The start page number. (optional) - * @param endPage The end page number. (optional) - * @param annotationTypes Array of annotation types. (optional) + * @param name The new document name. (required) * @param storage The document storage. (optional) - * @param folder The document folder. (optional) + * @param folder The new 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 putAnnotationsFlattenAsync(String name, Integer startPage, Integer endPage, List annotationTypes, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call putCreateDocumentAsync(String name, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -32249,37 +35713,36 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = putAnnotationsFlattenValidateBeforeCall(name, startPage, endPage, annotationTypes, storage, folder, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = putCreateDocumentValidateBeforeCall(name, storage, folder, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for putCaretAnnotation - * @param name The document name. (required) - * @param annotationId The annotation ID. (required) - * @param annotation Annotation. (required) + * Build call for putDecryptDocument + * @param outPath Full resulting filename (ex. /folder1/folder2/result.doc) (required) + * @param password The password (encrypted Base64). (required) * @param storage The document storage. (optional) - * @param folder The document folder. (optional) + * @param file A file to be derypted. (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 putCaretAnnotationCall(String name, String annotationId, CaretAnnotation annotation, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = annotation; + public com.squareup.okhttp.Call putDecryptDocumentCall(String outPath, String password, String storage, File file, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = file; // create path and map variables - String localVarPath = "/pdf/{name}/annotations/caret/{annotationId}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "annotationId" + "\\}", apiClient.escapeString(annotationId.toString())); + String localVarPath = "/pdf/decrypt"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + if (outPath != null) + localVarQueryParams.addAll(apiClient.parameterToPair("outPath", outPath)); + if (password != null) + localVarQueryParams.addAll(apiClient.parameterToPair("password", password)); if (storage != null) localVarQueryParams.addAll(apiClient.parameterToPair("storage", storage)); - if (folder != null) - localVarQueryParams.addAll(apiClient.parameterToPair("folder", folder)); Map localVarHeaderParams = new HashMap(); @@ -32309,57 +35772,51 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call putCaretAnnotationValidateBeforeCall(String name, String annotationId, CaretAnnotation annotation, 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 putCaretAnnotation(Async)"); - } + private com.squareup.okhttp.Call putDecryptDocumentValidateBeforeCall(String outPath, String password, String storage, File file, 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 putCaretAnnotation(Async)"); + // verify the required parameter 'outPath' is set + if (outPath == null) { + throw new ApiException("Missing the required parameter 'outPath' when calling putDecryptDocument(Async)"); } - // verify the required parameter 'annotation' is set - if (annotation == null) { - throw new ApiException("Missing the required parameter 'annotation' when calling putCaretAnnotation(Async)"); + // verify the required parameter 'password' is set + if (password == null) { + throw new ApiException("Missing the required parameter 'password' when calling putDecryptDocument(Async)"); } - com.squareup.okhttp.Call call = putCaretAnnotationCall(name, annotationId, annotation, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = putDecryptDocumentCall(outPath, password, storage, file, progressListener, progressRequestListener); return call; } /** - * Replace document caret annotation + * Decrypt document from content. * - * @param name The document name. (required) - * @param annotationId The annotation ID. (required) - * @param annotation Annotation. (required) + * @param outPath Full resulting filename (ex. /folder1/folder2/result.doc) (required) + * @param password The password (encrypted Base64). (required) * @param storage The document storage. (optional) - * @param folder The document folder. (optional) - * @return CaretAnnotationResponse + * @param file A file to be derypted. (optional) + * @return AsposeResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public CaretAnnotationResponse putCaretAnnotation(String name, String annotationId, CaretAnnotation annotation, String storage, String folder) throws ApiException { + public AsposeResponse putDecryptDocument(String outPath, String password, String storage, File file) throws ApiException { try { - ApiResponse resp = putCaretAnnotationWithHttpInfo(name, annotationId, annotation, storage, folder); + ApiResponse resp = putDecryptDocumentWithHttpInfo(outPath, password, storage, file); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = putCaretAnnotationWithHttpInfo(name, annotationId, annotation, storage, folder); + apiClient.requestToken(); + ApiResponse resp = putDecryptDocumentWithHttpInfo(outPath, password, storage, file); return resp.getData(); } throw ex; @@ -32367,35 +35824,33 @@ public CaretAnnotationResponse putCaretAnnotation(String name, String annotation } /** - * Replace document caret annotation + * Decrypt document from content. * - * @param name The document name. (required) - * @param annotationId The annotation ID. (required) - * @param annotation Annotation. (required) + * @param outPath Full resulting filename (ex. /folder1/folder2/result.doc) (required) + * @param password The password (encrypted Base64). (required) * @param storage The document storage. (optional) - * @param folder The document folder. (optional) - * @return ApiResponse<CaretAnnotationResponse> + * @param file A file to be derypted. (optional) + * @return ApiResponse<AsposeResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse putCaretAnnotationWithHttpInfo(String name, String annotationId, CaretAnnotation annotation, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = putCaretAnnotationValidateBeforeCall(name, annotationId, annotation, storage, folder, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse putDecryptDocumentWithHttpInfo(String outPath, String password, String storage, File file) throws ApiException { + com.squareup.okhttp.Call call = putDecryptDocumentValidateBeforeCall(outPath, password, storage, file, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Replace document caret annotation (asynchronously) + * Decrypt document from content. (asynchronously) * - * @param name The document name. (required) - * @param annotationId The annotation ID. (required) - * @param annotation Annotation. (required) + * @param outPath Full resulting filename (ex. /folder1/folder2/result.doc) (required) + * @param password The password (encrypted Base64). (required) * @param storage The document storage. (optional) - * @param folder The document folder. (optional) + * @param file A file to be derypted. (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 putCaretAnnotationAsync(String name, String annotationId, CaretAnnotation annotation, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call putDecryptDocumentAsync(String outPath, String password, String storage, File file, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -32416,40 +35871,46 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = putCaretAnnotationValidateBeforeCall(name, annotationId, annotation, storage, folder, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = putDecryptDocumentValidateBeforeCall(outPath, password, storage, file, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for putChangePasswordDocument + * Build call for putEncryptDocument * @param outPath Full resulting filename (ex. /folder1/folder2/result.doc) (required) + * @param userPassword User password (encrypted Base64). (required) * @param ownerPassword Owner password (encrypted Base64). (required) - * @param newUserPassword New user password (encrypted Base64). (required) - * @param newOwnerPassword New owner password (encrypted Base64). (required) + * @param cryptoAlgorithm Cryptographic algorithm, see CryptoAlgorithm for details. (required) + * @param permissionsFlags Array of document permissions, see PermissionsFlags for details. (optional) + * @param usePdf20 Support for revision 6 (Extension 8). (optional) * @param storage The document storage. (optional) - * @param file A file to be changed password. (optional) + * @param file A file to be encrypted. (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 putChangePasswordDocumentCall(String outPath, String ownerPassword, String newUserPassword, String newOwnerPassword, String storage, File file, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call putEncryptDocumentCall(String outPath, String userPassword, String ownerPassword, String cryptoAlgorithm, List permissionsFlags, Boolean usePdf20, String storage, File file, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = file; // create path and map variables - String localVarPath = "/pdf/changepassword"; + String localVarPath = "/pdf/encrypt"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); if (outPath != null) localVarQueryParams.addAll(apiClient.parameterToPair("outPath", outPath)); + if (userPassword != null) + localVarQueryParams.addAll(apiClient.parameterToPair("userPassword", userPassword)); if (ownerPassword != null) localVarQueryParams.addAll(apiClient.parameterToPair("ownerPassword", ownerPassword)); - if (newUserPassword != null) - localVarQueryParams.addAll(apiClient.parameterToPair("newUserPassword", newUserPassword)); - if (newOwnerPassword != null) - localVarQueryParams.addAll(apiClient.parameterToPair("newOwnerPassword", newOwnerPassword)); + if (cryptoAlgorithm != null) + localVarQueryParams.addAll(apiClient.parameterToPair("cryptoAlgorithm", cryptoAlgorithm)); + if (permissionsFlags != null) + localVarCollectionQueryParams.addAll(apiClient.parameterToPairs("csv", "permissionsFlags", permissionsFlags)); + if (usePdf20 != null) + localVarQueryParams.addAll(apiClient.parameterToPair("usePdf20", usePdf20)); if (storage != null) localVarQueryParams.addAll(apiClient.parameterToPair("storage", storage)); @@ -32481,63 +35942,65 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call putChangePasswordDocumentValidateBeforeCall(String outPath, String ownerPassword, String newUserPassword, String newOwnerPassword, String storage, File file, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call putEncryptDocumentValidateBeforeCall(String outPath, String userPassword, String ownerPassword, String cryptoAlgorithm, List permissionsFlags, Boolean usePdf20, String storage, File file, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { // verify the required parameter 'outPath' is set if (outPath == null) { - throw new ApiException("Missing the required parameter 'outPath' when calling putChangePasswordDocument(Async)"); + throw new ApiException("Missing the required parameter 'outPath' when calling putEncryptDocument(Async)"); } - // verify the required parameter 'ownerPassword' is set - if (ownerPassword == null) { - throw new ApiException("Missing the required parameter 'ownerPassword' when calling putChangePasswordDocument(Async)"); + // verify the required parameter 'userPassword' is set + if (userPassword == null) { + throw new ApiException("Missing the required parameter 'userPassword' when calling putEncryptDocument(Async)"); } - // verify the required parameter 'newUserPassword' is set - if (newUserPassword == null) { - throw new ApiException("Missing the required parameter 'newUserPassword' when calling putChangePasswordDocument(Async)"); + // verify the required parameter 'ownerPassword' is set + if (ownerPassword == null) { + throw new ApiException("Missing the required parameter 'ownerPassword' when calling putEncryptDocument(Async)"); } - // verify the required parameter 'newOwnerPassword' is set - if (newOwnerPassword == null) { - throw new ApiException("Missing the required parameter 'newOwnerPassword' when calling putChangePasswordDocument(Async)"); + // verify the required parameter 'cryptoAlgorithm' is set + if (cryptoAlgorithm == null) { + throw new ApiException("Missing the required parameter 'cryptoAlgorithm' when calling putEncryptDocument(Async)"); } - com.squareup.okhttp.Call call = putChangePasswordDocumentCall(outPath, ownerPassword, newUserPassword, newOwnerPassword, storage, file, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = putEncryptDocumentCall(outPath, userPassword, ownerPassword, cryptoAlgorithm, permissionsFlags, usePdf20, storage, file, progressListener, progressRequestListener); return call; } /** - * Change document password from content. + * Encrypt document from content. * * @param outPath Full resulting filename (ex. /folder1/folder2/result.doc) (required) + * @param userPassword User password (encrypted Base64). (required) * @param ownerPassword Owner password (encrypted Base64). (required) - * @param newUserPassword New user password (encrypted Base64). (required) - * @param newOwnerPassword New owner password (encrypted Base64). (required) + * @param cryptoAlgorithm Cryptographic algorithm, see CryptoAlgorithm for details. (required) + * @param permissionsFlags Array of document permissions, see PermissionsFlags for details. (optional) + * @param usePdf20 Support for revision 6 (Extension 8). (optional) * @param storage The document storage. (optional) - * @param file A file to be changed password. (optional) + * @param file A file to be encrypted. (optional) * @return AsposeResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public AsposeResponse putChangePasswordDocument(String outPath, String ownerPassword, String newUserPassword, String newOwnerPassword, String storage, File file) throws ApiException { + public AsposeResponse putEncryptDocument(String outPath, String userPassword, String ownerPassword, String cryptoAlgorithm, List permissionsFlags, Boolean usePdf20, String storage, File file) throws ApiException { try { - ApiResponse resp = putChangePasswordDocumentWithHttpInfo(outPath, ownerPassword, newUserPassword, newOwnerPassword, storage, file); + ApiResponse resp = putEncryptDocumentWithHttpInfo(outPath, userPassword, ownerPassword, cryptoAlgorithm, permissionsFlags, usePdf20, storage, file); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = putChangePasswordDocumentWithHttpInfo(outPath, ownerPassword, newUserPassword, newOwnerPassword, storage, file); + apiClient.requestToken(); + ApiResponse resp = putEncryptDocumentWithHttpInfo(outPath, userPassword, ownerPassword, cryptoAlgorithm, permissionsFlags, usePdf20, storage, file); return resp.getData(); } throw ex; @@ -32545,37 +36008,41 @@ public AsposeResponse putChangePasswordDocument(String outPath, String ownerPass } /** - * Change document password from content. + * Encrypt document from content. * * @param outPath Full resulting filename (ex. /folder1/folder2/result.doc) (required) + * @param userPassword User password (encrypted Base64). (required) * @param ownerPassword Owner password (encrypted Base64). (required) - * @param newUserPassword New user password (encrypted Base64). (required) - * @param newOwnerPassword New owner password (encrypted Base64). (required) + * @param cryptoAlgorithm Cryptographic algorithm, see CryptoAlgorithm for details. (required) + * @param permissionsFlags Array of document permissions, see PermissionsFlags for details. (optional) + * @param usePdf20 Support for revision 6 (Extension 8). (optional) * @param storage The document storage. (optional) - * @param file A file to be changed password. (optional) + * @param file A file to be encrypted. (optional) * @return ApiResponse<AsposeResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse putChangePasswordDocumentWithHttpInfo(String outPath, String ownerPassword, String newUserPassword, String newOwnerPassword, String storage, File file) throws ApiException { - com.squareup.okhttp.Call call = putChangePasswordDocumentValidateBeforeCall(outPath, ownerPassword, newUserPassword, newOwnerPassword, storage, file, null, null); + public ApiResponse putEncryptDocumentWithHttpInfo(String outPath, String userPassword, String ownerPassword, String cryptoAlgorithm, List permissionsFlags, Boolean usePdf20, String storage, File file) throws ApiException { + com.squareup.okhttp.Call call = putEncryptDocumentValidateBeforeCall(outPath, userPassword, ownerPassword, cryptoAlgorithm, permissionsFlags, usePdf20, storage, file, null, null); Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Change document password from content. (asynchronously) + * Encrypt document from content. (asynchronously) * * @param outPath Full resulting filename (ex. /folder1/folder2/result.doc) (required) + * @param userPassword User password (encrypted Base64). (required) * @param ownerPassword Owner password (encrypted Base64). (required) - * @param newUserPassword New user password (encrypted Base64). (required) - * @param newOwnerPassword New owner password (encrypted Base64). (required) + * @param cryptoAlgorithm Cryptographic algorithm, see CryptoAlgorithm for details. (required) + * @param permissionsFlags Array of document permissions, see PermissionsFlags for details. (optional) + * @param usePdf20 Support for revision 6 (Extension 8). (optional) * @param storage The document storage. (optional) - * @param file A file to be changed password. (optional) + * @param file A file to be encrypted. (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 putChangePasswordDocumentAsync(String outPath, String ownerPassword, String newUserPassword, String newOwnerPassword, String storage, File file, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call putEncryptDocumentAsync(String outPath, String userPassword, String ownerPassword, String cryptoAlgorithm, List permissionsFlags, Boolean usePdf20, String storage, File file, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -32596,37 +36063,37 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = putChangePasswordDocumentValidateBeforeCall(outPath, ownerPassword, newUserPassword, newOwnerPassword, storage, file, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = putEncryptDocumentValidateBeforeCall(outPath, userPassword, ownerPassword, cryptoAlgorithm, permissionsFlags, usePdf20, storage, file, progressListener, progressRequestListener); Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for putCircleAnnotation + * Build call for putEpubInStorageToPdf * @param name The document name. (required) - * @param annotationId The annotation ID. (required) - * @param annotation Annotation. (required) + * @param srcPath Full source filename (ex. /folder1/folder2/template.epub) (required) * @param storage The document storage. (optional) - * @param folder The document folder. (optional) + * @param dstFolder The destination 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 putCircleAnnotationCall(String name, String annotationId, CircleAnnotation annotation, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = annotation; + public com.squareup.okhttp.Call putEpubInStorageToPdfCall(String name, String srcPath, String storage, String dstFolder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; // create path and map variables - String localVarPath = "/pdf/{name}/annotations/circle/{annotationId}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "annotationId" + "\\}", apiClient.escapeString(annotationId.toString())); + String localVarPath = "/pdf/{name}/create/epub" + .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)); + if (dstFolder != null) + localVarQueryParams.addAll(apiClient.parameterToPair("dstFolder", dstFolder)); Map localVarHeaderParams = new HashMap(); @@ -32656,57 +36123,51 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call putCircleAnnotationValidateBeforeCall(String name, String annotationId, CircleAnnotation annotation, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call putEpubInStorageToPdfValidateBeforeCall(String name, String srcPath, String storage, String dstFolder, 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 putCircleAnnotation(Async)"); - } - - // verify the required parameter 'annotationId' is set - if (annotationId == null) { - throw new ApiException("Missing the required parameter 'annotationId' when calling putCircleAnnotation(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling putEpubInStorageToPdf(Async)"); } - // verify the required parameter 'annotation' is set - if (annotation == null) { - throw new ApiException("Missing the required parameter 'annotation' when calling putCircleAnnotation(Async)"); + // verify the required parameter 'srcPath' is set + if (srcPath == null) { + throw new ApiException("Missing the required parameter 'srcPath' when calling putEpubInStorageToPdf(Async)"); } - com.squareup.okhttp.Call call = putCircleAnnotationCall(name, annotationId, annotation, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = putEpubInStorageToPdfCall(name, srcPath, storage, dstFolder, progressListener, progressRequestListener); return call; } /** - * Replace document circle annotation + * Convert EPUB file (located on storage) to PDF format and upload resulting file to storage. * * @param name The document name. (required) - * @param annotationId The annotation ID. (required) - * @param annotation Annotation. (required) + * @param srcPath Full source filename (ex. /folder1/folder2/template.epub) (required) * @param storage The document storage. (optional) - * @param folder The document folder. (optional) - * @return CircleAnnotationResponse + * @param dstFolder The destination document folder. (optional) + * @return AsposeResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public CircleAnnotationResponse putCircleAnnotation(String name, String annotationId, CircleAnnotation annotation, String storage, String folder) throws ApiException { + public AsposeResponse putEpubInStorageToPdf(String name, String srcPath, String storage, String dstFolder) throws ApiException { try { - ApiResponse resp = putCircleAnnotationWithHttpInfo(name, annotationId, annotation, storage, folder); + ApiResponse resp = putEpubInStorageToPdfWithHttpInfo(name, srcPath, storage, dstFolder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = putCircleAnnotationWithHttpInfo(name, annotationId, annotation, storage, folder); + apiClient.requestToken(); + ApiResponse resp = putEpubInStorageToPdfWithHttpInfo(name, srcPath, storage, dstFolder); return resp.getData(); } throw ex; @@ -32714,35 +36175,33 @@ public CircleAnnotationResponse putCircleAnnotation(String name, String annotati } /** - * Replace document circle annotation + * Convert EPUB file (located on storage) to PDF format and upload resulting file to storage. * * @param name The document name. (required) - * @param annotationId The annotation ID. (required) - * @param annotation Annotation. (required) + * @param srcPath Full source filename (ex. /folder1/folder2/template.epub) (required) * @param storage The document storage. (optional) - * @param folder The document folder. (optional) - * @return ApiResponse<CircleAnnotationResponse> + * @param dstFolder The destination 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 putCircleAnnotationWithHttpInfo(String name, String annotationId, CircleAnnotation annotation, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = putCircleAnnotationValidateBeforeCall(name, annotationId, annotation, storage, folder, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse putEpubInStorageToPdfWithHttpInfo(String name, String srcPath, String storage, String dstFolder) throws ApiException { + com.squareup.okhttp.Call call = putEpubInStorageToPdfValidateBeforeCall(name, srcPath, storage, dstFolder, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Replace document circle annotation (asynchronously) + * Convert EPUB file (located on storage) to PDF format and upload resulting file to storage. (asynchronously) * * @param name The document name. (required) - * @param annotationId The annotation ID. (required) - * @param annotation Annotation. (required) + * @param srcPath Full source filename (ex. /folder1/folder2/template.epub) (required) * @param storage The document storage. (optional) - * @param folder The document folder. (optional) + * @param dstFolder The destination 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 putCircleAnnotationAsync(String name, String annotationId, CircleAnnotation annotation, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call putEpubInStorageToPdfAsync(String name, String srcPath, String storage, String dstFolder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -32763,36 +36222,37 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = putCircleAnnotationValidateBeforeCall(name, annotationId, annotation, storage, folder, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = putEpubInStorageToPdfValidateBeforeCall(name, srcPath, storage, dstFolder, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for putCreate - * @param path Path where to upload including filename and extension e.g. /file.ext or /Folder 1/file.ext (required) - * @param file File to upload (required) - * @param versionId Source file's version (optional) - * @param storage User's storage name (optional) + * Build call for putExportFieldsFromPdfToFdfInStorage + * @param name The document name. (required) + * @param fdfOutputFilePath The output Fdf file path. (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 putCreateCall(String path, File file, String versionId, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = file; + public com.squareup.okhttp.Call putExportFieldsFromPdfToFdfInStorageCall(String name, String fdfOutputFilePath, 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/file"; + String localVarPath = "/pdf/{name}/export/fdf" + .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); 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 (fdfOutputFilePath != null) + localVarQueryParams.addAll(apiClient.parameterToPair("fdfOutputFilePath", fdfOutputFilePath)); if (storage != null) localVarQueryParams.addAll(apiClient.parameterToPair("storage", storage)); + if (folder != null) + localVarQueryParams.addAll(apiClient.parameterToPair("folder", folder)); Map localVarHeaderParams = new HashMap(); @@ -32822,51 +36282,51 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call putCreateValidateBeforeCall(String path, File file, String versionId, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call putExportFieldsFromPdfToFdfInStorageValidateBeforeCall(String name, String fdfOutputFilePath, String storage, String folder, 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 putCreate(Async)"); + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling putExportFieldsFromPdfToFdfInStorage(Async)"); } - // verify the required parameter 'file' is set - if (file == null) { - throw new ApiException("Missing the required parameter 'file' when calling putCreate(Async)"); + // verify the required parameter 'fdfOutputFilePath' is set + if (fdfOutputFilePath == null) { + throw new ApiException("Missing the required parameter 'fdfOutputFilePath' when calling putExportFieldsFromPdfToFdfInStorage(Async)"); } - com.squareup.okhttp.Call call = putCreateCall(path, file, versionId, storage, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = putExportFieldsFromPdfToFdfInStorageCall(name, fdfOutputFilePath, storage, folder, progressListener, progressRequestListener); return call; } /** - * Upload a specific file + * Export fields from from PDF in storage to FDF file in storage. * - * @param path Path where to upload including filename and extension e.g. /file.ext or /Folder 1/file.ext (required) - * @param file File to upload (required) - * @param versionId Source file's version (optional) - * @param storage User's storage name (optional) + * @param name The document name. (required) + * @param fdfOutputFilePath The output Fdf file path. (required) + * @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 AsposeResponse putCreate(String path, File file, String versionId, String storage) throws ApiException { + public AsposeResponse putExportFieldsFromPdfToFdfInStorage(String name, String fdfOutputFilePath, String storage, String folder) throws ApiException { try { - ApiResponse resp = putCreateWithHttpInfo(path, file, versionId, storage); + ApiResponse resp = putExportFieldsFromPdfToFdfInStorageWithHttpInfo(name, fdfOutputFilePath, storage, folder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = putCreateWithHttpInfo(path, file, versionId, storage); + apiClient.requestToken(); + ApiResponse resp = putExportFieldsFromPdfToFdfInStorageWithHttpInfo(name, fdfOutputFilePath, storage, folder); return resp.getData(); } throw ex; @@ -32874,33 +36334,33 @@ public AsposeResponse putCreate(String path, File file, String versionId, String } /** - * Upload a specific file + * Export fields from from PDF in storage to FDF file in storage. * - * @param path Path where to upload including filename and extension e.g. /file.ext or /Folder 1/file.ext (required) - * @param file File to upload (required) - * @param versionId Source file's version (optional) - * @param storage User's storage name (optional) + * @param name The document name. (required) + * @param fdfOutputFilePath The output Fdf file path. (required) + * @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 putCreateWithHttpInfo(String path, File file, String versionId, String storage) throws ApiException { - com.squareup.okhttp.Call call = putCreateValidateBeforeCall(path, file, versionId, storage, null, null); + public ApiResponse putExportFieldsFromPdfToFdfInStorageWithHttpInfo(String name, String fdfOutputFilePath, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = putExportFieldsFromPdfToFdfInStorageValidateBeforeCall(name, fdfOutputFilePath, storage, folder, null, null); Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Upload a specific file (asynchronously) + * Export fields from from PDF in storage to FDF file in storage. (asynchronously) * - * @param path Path where to upload including filename and extension e.g. /file.ext or /Folder 1/file.ext (required) - * @param file File to upload (required) - * @param versionId Source file's version (optional) - * @param storage User's storage name (optional) + * @param name The document name. (required) + * @param fdfOutputFilePath The output Fdf file path. (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 putCreateAsync(String path, File file, String versionId, String storage, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call putExportFieldsFromPdfToFdfInStorageAsync(String name, String fdfOutputFilePath, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -32921,30 +36381,33 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = putCreateValidateBeforeCall(path, file, versionId, storage, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = putExportFieldsFromPdfToFdfInStorageValidateBeforeCall(name, fdfOutputFilePath, storage, folder, progressListener, progressRequestListener); Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for putCreateDocument - * @param name The new document name. (required) + * Build call for putExportFieldsFromPdfToXfdfInStorage + * @param name The document name. (required) + * @param xfdfOutputFilePath The output xfdf file path. (required) * @param storage The document storage. (optional) - * @param folder The new document folder. (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 putCreateDocumentCall(String name, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call putExportFieldsFromPdfToXfdfInStorageCall(String name, String xfdfOutputFilePath, 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}" + String localVarPath = "/pdf/{name}/export/xfdf" .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + if (xfdfOutputFilePath != null) + localVarQueryParams.addAll(apiClient.parameterToPair("xfdfOutputFilePath", xfdfOutputFilePath)); if (storage != null) localVarQueryParams.addAll(apiClient.parameterToPair("storage", storage)); if (folder != null) @@ -32978,45 +36441,51 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call putCreateDocumentValidateBeforeCall(String name, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call putExportFieldsFromPdfToXfdfInStorageValidateBeforeCall(String name, String xfdfOutputFilePath, 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 putCreateDocument(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling putExportFieldsFromPdfToXfdfInStorage(Async)"); + } + + // verify the required parameter 'xfdfOutputFilePath' is set + if (xfdfOutputFilePath == null) { + throw new ApiException("Missing the required parameter 'xfdfOutputFilePath' when calling putExportFieldsFromPdfToXfdfInStorage(Async)"); } - com.squareup.okhttp.Call call = putCreateDocumentCall(name, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = putExportFieldsFromPdfToXfdfInStorageCall(name, xfdfOutputFilePath, storage, folder, progressListener, progressRequestListener); return call; } /** - * Create empty document. + * Export fields from from PDF in storage to XFDF file in storage. * - * @param name The new document name. (required) + * @param name The document name. (required) + * @param xfdfOutputFilePath The output xfdf file path. (required) * @param storage The document storage. (optional) - * @param folder The new document folder. (optional) - * @return DocumentResponse + * @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 putCreateDocument(String name, String storage, String folder) throws ApiException { + public AsposeResponse putExportFieldsFromPdfToXfdfInStorage(String name, String xfdfOutputFilePath, String storage, String folder) throws ApiException { try { - ApiResponse resp = putCreateDocumentWithHttpInfo(name, storage, folder); + ApiResponse resp = putExportFieldsFromPdfToXfdfInStorageWithHttpInfo(name, xfdfOutputFilePath, storage, folder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = putCreateDocumentWithHttpInfo(name, storage, folder); + apiClient.requestToken(); + ApiResponse resp = putExportFieldsFromPdfToXfdfInStorageWithHttpInfo(name, xfdfOutputFilePath, storage, folder); return resp.getData(); } throw ex; @@ -33024,31 +36493,33 @@ public DocumentResponse putCreateDocument(String name, String storage, String fo } /** - * Create empty document. + * Export fields from from PDF in storage to XFDF file in storage. * - * @param name The new document name. (required) + * @param name The document name. (required) + * @param xfdfOutputFilePath The output xfdf file path. (required) * @param storage The document storage. (optional) - * @param folder The new document folder. (optional) - * @return ApiResponse<DocumentResponse> + * @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 putCreateDocumentWithHttpInfo(String name, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = putCreateDocumentValidateBeforeCall(name, storage, folder, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse putExportFieldsFromPdfToXfdfInStorageWithHttpInfo(String name, String xfdfOutputFilePath, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = putExportFieldsFromPdfToXfdfInStorageValidateBeforeCall(name, xfdfOutputFilePath, storage, folder, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Create empty document. (asynchronously) + * Export fields from from PDF in storage to XFDF file in storage. (asynchronously) * - * @param name The new document name. (required) + * @param name The document name. (required) + * @param xfdfOutputFilePath The output xfdf file path. (required) * @param storage The document storage. (optional) - * @param folder The new document folder. (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 putCreateDocumentAsync(String name, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call putExportFieldsFromPdfToXfdfInStorageAsync(String name, String xfdfOutputFilePath, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -33069,35 +36540,37 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = putCreateDocumentValidateBeforeCall(name, storage, folder, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = putExportFieldsFromPdfToXfdfInStorageValidateBeforeCall(name, xfdfOutputFilePath, storage, folder, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); 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) + * Build call for putExportFieldsFromPdfToXmlInStorage + * @param name The document name. (required) + * @param xmlOutputFilePath The output xml file path. (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 putCreateFolderCall(String path, String storage, String destStorage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call putExportFieldsFromPdfToXmlInStorageCall(String name, String xmlOutputFilePath, 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}/export/xml" + .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (path != null) - localVarQueryParams.addAll(apiClient.parameterToPair("path", path)); + if (xmlOutputFilePath != null) + localVarQueryParams.addAll(apiClient.parameterToPair("xmlOutputFilePath", xmlOutputFilePath)); if (storage != null) localVarQueryParams.addAll(apiClient.parameterToPair("storage", storage)); - if (destStorage != null) - localVarQueryParams.addAll(apiClient.parameterToPair("destStorage", destStorage)); + if (folder != null) + localVarQueryParams.addAll(apiClient.parameterToPair("folder", folder)); Map localVarHeaderParams = new HashMap(); @@ -33127,45 +36600,51 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; 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 { + private com.squareup.okhttp.Call putExportFieldsFromPdfToXmlInStorageValidateBeforeCall(String name, String xmlOutputFilePath, String storage, String folder, 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)"); + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling putExportFieldsFromPdfToXmlInStorage(Async)"); + } + + // verify the required parameter 'xmlOutputFilePath' is set + if (xmlOutputFilePath == null) { + throw new ApiException("Missing the required parameter 'xmlOutputFilePath' when calling putExportFieldsFromPdfToXmlInStorage(Async)"); } - com.squareup.okhttp.Call call = putCreateFolderCall(path, storage, destStorage, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = putExportFieldsFromPdfToXmlInStorageCall(name, xmlOutputFilePath, storage, folder, progressListener, progressRequestListener); return call; } /** - * Create the folder + * Export fields from from PDF in storage to XML file in storage. * - * @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 name The document name. (required) + * @param xmlOutputFilePath The output xml file path. (required) + * @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 AsposeResponse putCreateFolder(String path, String storage, String destStorage) throws ApiException { + public AsposeResponse putExportFieldsFromPdfToXmlInStorage(String name, String xmlOutputFilePath, String storage, String folder) throws ApiException { try { - ApiResponse resp = putCreateFolderWithHttpInfo(path, storage, destStorage); + ApiResponse resp = putExportFieldsFromPdfToXmlInStorageWithHttpInfo(name, xmlOutputFilePath, storage, folder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = putCreateFolderWithHttpInfo(path, storage, destStorage); + apiClient.requestToken(); + ApiResponse resp = putExportFieldsFromPdfToXmlInStorageWithHttpInfo(name, xmlOutputFilePath, storage, folder); return resp.getData(); } throw ex; @@ -33173,31 +36652,33 @@ public AsposeResponse putCreateFolder(String path, String storage, String destSt } /** - * Create the folder + * Export fields from from PDF in storage to XML file in storage. * - * @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 name The document name. (required) + * @param xmlOutputFilePath The output xml file path. (required) + * @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 putCreateFolderWithHttpInfo(String path, String storage, String destStorage) throws ApiException { - com.squareup.okhttp.Call call = putCreateFolderValidateBeforeCall(path, storage, destStorage, null, null); + public ApiResponse putExportFieldsFromPdfToXmlInStorageWithHttpInfo(String name, String xmlOutputFilePath, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = putExportFieldsFromPdfToXmlInStorageValidateBeforeCall(name, xmlOutputFilePath, storage, folder, null, null); Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Create the folder (asynchronously) + * Export fields from from PDF in storage to XML file in storage. (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 name The document name. (required) + * @param xmlOutputFilePath The output xml file path. (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 putCreateFolderAsync(String path, String storage, String destStorage, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call putExportFieldsFromPdfToXmlInStorageAsync(String name, String xmlOutputFilePath, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -33218,36 +36699,34 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = putCreateFolderValidateBeforeCall(path, storage, destStorage, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = putExportFieldsFromPdfToXmlInStorageValidateBeforeCall(name, xmlOutputFilePath, storage, folder, progressListener, progressRequestListener); Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for putDecryptDocument - * @param outPath Full resulting filename (ex. /folder1/folder2/result.doc) (required) - * @param password The password (encrypted Base64). (required) + * Build call for putFieldsFlatten + * @param name The document name. (required) * @param storage The document storage. (optional) - * @param file A file to be derypted. (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 putDecryptDocumentCall(String outPath, String password, String storage, File file, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = file; + public com.squareup.okhttp.Call putFieldsFlattenCall(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/decrypt"; + String localVarPath = "/pdf/{name}/fields/flatten" + .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (outPath != null) - localVarQueryParams.addAll(apiClient.parameterToPair("outPath", outPath)); - if (password != null) - localVarQueryParams.addAll(apiClient.parameterToPair("password", password)); if (storage != null) localVarQueryParams.addAll(apiClient.parameterToPair("storage", storage)); + if (folder != null) + localVarQueryParams.addAll(apiClient.parameterToPair("folder", folder)); Map localVarHeaderParams = new HashMap(); @@ -33277,51 +36756,45 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call putDecryptDocumentValidateBeforeCall(String outPath, String password, String storage, File file, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - - // verify the required parameter 'outPath' is set - if (outPath == null) { - throw new ApiException("Missing the required parameter 'outPath' when calling putDecryptDocument(Async)"); - } + private com.squareup.okhttp.Call putFieldsFlattenValidateBeforeCall(String name, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - // verify the required parameter 'password' is set - if (password == null) { - throw new ApiException("Missing the required parameter 'password' when calling putDecryptDocument(Async)"); + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling putFieldsFlatten(Async)"); } - com.squareup.okhttp.Call call = putDecryptDocumentCall(outPath, password, storage, file, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = putFieldsFlattenCall(name, storage, folder, progressListener, progressRequestListener); return call; } /** - * Decrypt document from content. + * Flatten form fields in document. * - * @param outPath Full resulting filename (ex. /folder1/folder2/result.doc) (required) - * @param password The password (encrypted Base64). (required) + * @param name The document name. (required) * @param storage The document storage. (optional) - * @param file A file to be derypted. (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 AsposeResponse putDecryptDocument(String outPath, String password, String storage, File file) throws ApiException { + public AsposeResponse putFieldsFlatten(String name, String storage, String folder) throws ApiException { try { - ApiResponse resp = putDecryptDocumentWithHttpInfo(outPath, password, storage, file); + ApiResponse resp = putFieldsFlattenWithHttpInfo(name, storage, folder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = putDecryptDocumentWithHttpInfo(outPath, password, storage, file); + apiClient.requestToken(); + ApiResponse resp = putFieldsFlattenWithHttpInfo(name, storage, folder); return resp.getData(); } throw ex; @@ -33329,33 +36802,31 @@ public AsposeResponse putDecryptDocument(String outPath, String password, String } /** - * Decrypt document from content. + * Flatten form fields in document. * - * @param outPath Full resulting filename (ex. /folder1/folder2/result.doc) (required) - * @param password The password (encrypted Base64). (required) + * @param name The document name. (required) * @param storage The document storage. (optional) - * @param file A file to be derypted. (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 putDecryptDocumentWithHttpInfo(String outPath, String password, String storage, File file) throws ApiException { - com.squareup.okhttp.Call call = putDecryptDocumentValidateBeforeCall(outPath, password, storage, file, null, null); + public ApiResponse putFieldsFlattenWithHttpInfo(String name, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = putFieldsFlattenValidateBeforeCall(name, storage, folder, null, null); Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Decrypt document from content. (asynchronously) + * Flatten form fields in document. (asynchronously) * - * @param outPath Full resulting filename (ex. /folder1/folder2/result.doc) (required) - * @param password The password (encrypted Base64). (required) + * @param name The document name. (required) * @param storage The document storage. (optional) - * @param file A file to be derypted. (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 putDecryptDocumentAsync(String outPath, String password, String storage, File file, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call putFieldsFlattenAsync(String name, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -33376,48 +36847,37 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = putDecryptDocumentValidateBeforeCall(outPath, password, storage, file, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = putFieldsFlattenValidateBeforeCall(name, storage, folder, progressListener, progressRequestListener); Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for putEncryptDocument - * @param outPath Full resulting filename (ex. /folder1/folder2/result.doc) (required) - * @param userPassword User password (encrypted Base64). (required) - * @param ownerPassword Owner password (encrypted Base64). (required) - * @param cryptoAlgorithm Cryptographic algorithm, see for details. (required) - * @param permissionsFlags Array of document permissions, see for details. (optional) - * @param usePdf20 Support for revision 6 (Extension 8). (optional) + * Build call for putFileAttachmentAnnotation + * @param name The document name. (required) + * @param annotationId The annotation ID. (required) + * @param annotation Annotation. (required) * @param storage The document storage. (optional) - * @param file A file to be encrypted. (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 putEncryptDocumentCall(String outPath, String userPassword, String ownerPassword, String cryptoAlgorithm, List permissionsFlags, Boolean usePdf20, String storage, File file, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = file; + public com.squareup.okhttp.Call putFileAttachmentAnnotationCall(String name, String annotationId, FileAttachmentAnnotation annotation, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = annotation; // create path and map variables - String localVarPath = "/pdf/encrypt"; + String localVarPath = "/pdf/{name}/annotations/fileattachment/{annotationId}" + .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) + .replaceAll("\\{" + "annotationId" + "\\}", apiClient.escapeString(annotationId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (outPath != null) - localVarQueryParams.addAll(apiClient.parameterToPair("outPath", outPath)); - if (userPassword != null) - localVarQueryParams.addAll(apiClient.parameterToPair("userPassword", userPassword)); - if (ownerPassword != null) - localVarQueryParams.addAll(apiClient.parameterToPair("ownerPassword", ownerPassword)); - if (cryptoAlgorithm != null) - localVarQueryParams.addAll(apiClient.parameterToPair("cryptoAlgorithm", cryptoAlgorithm)); - if (permissionsFlags != null) - localVarCollectionQueryParams.addAll(apiClient.parameterToPairs("multi", "permissionsFlags", permissionsFlags)); - if (usePdf20 != null) - localVarQueryParams.addAll(apiClient.parameterToPair("usePdf20", usePdf20)); if (storage != null) localVarQueryParams.addAll(apiClient.parameterToPair("storage", storage)); + if (folder != null) + localVarQueryParams.addAll(apiClient.parameterToPair("folder", folder)); Map localVarHeaderParams = new HashMap(); @@ -33447,65 +36907,57 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call putEncryptDocumentValidateBeforeCall(String outPath, String userPassword, String ownerPassword, String cryptoAlgorithm, List permissionsFlags, Boolean usePdf20, String storage, File file, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - - // verify the required parameter 'outPath' is set - if (outPath == null) { - throw new ApiException("Missing the required parameter 'outPath' when calling putEncryptDocument(Async)"); - } + private com.squareup.okhttp.Call putFileAttachmentAnnotationValidateBeforeCall(String name, String annotationId, FileAttachmentAnnotation annotation, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - // verify the required parameter 'userPassword' is set - if (userPassword == null) { - throw new ApiException("Missing the required parameter 'userPassword' when calling putEncryptDocument(Async)"); + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling putFileAttachmentAnnotation(Async)"); } - // verify the required parameter 'ownerPassword' is set - if (ownerPassword == null) { - throw new ApiException("Missing the required parameter 'ownerPassword' when calling putEncryptDocument(Async)"); + // verify the required parameter 'annotationId' is set + if (annotationId == null) { + throw new ApiException("Missing the required parameter 'annotationId' when calling putFileAttachmentAnnotation(Async)"); } - // verify the required parameter 'cryptoAlgorithm' is set - if (cryptoAlgorithm == null) { - throw new ApiException("Missing the required parameter 'cryptoAlgorithm' when calling putEncryptDocument(Async)"); + // verify the required parameter 'annotation' is set + if (annotation == null) { + throw new ApiException("Missing the required parameter 'annotation' when calling putFileAttachmentAnnotation(Async)"); } - com.squareup.okhttp.Call call = putEncryptDocumentCall(outPath, userPassword, ownerPassword, cryptoAlgorithm, permissionsFlags, usePdf20, storage, file, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = putFileAttachmentAnnotationCall(name, annotationId, annotation, storage, folder, progressListener, progressRequestListener); return call; } /** - * Encrypt document from content. + * Replace document FileAttachment annotation * - * @param outPath Full resulting filename (ex. /folder1/folder2/result.doc) (required) - * @param userPassword User password (encrypted Base64). (required) - * @param ownerPassword Owner password (encrypted Base64). (required) - * @param cryptoAlgorithm Cryptographic algorithm, see for details. (required) - * @param permissionsFlags Array of document permissions, see for details. (optional) - * @param usePdf20 Support for revision 6 (Extension 8). (optional) + * @param name The document name. (required) + * @param annotationId The annotation ID. (required) + * @param annotation Annotation. (required) * @param storage The document storage. (optional) - * @param file A file to be encrypted. (optional) - * @return AsposeResponse + * @param folder The document folder. (optional) + * @return FileAttachmentAnnotationResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public AsposeResponse putEncryptDocument(String outPath, String userPassword, String ownerPassword, String cryptoAlgorithm, List permissionsFlags, Boolean usePdf20, String storage, File file) throws ApiException { + public FileAttachmentAnnotationResponse putFileAttachmentAnnotation(String name, String annotationId, FileAttachmentAnnotation annotation, String storage, String folder) throws ApiException { try { - ApiResponse resp = putEncryptDocumentWithHttpInfo(outPath, userPassword, ownerPassword, cryptoAlgorithm, permissionsFlags, usePdf20, storage, file); + ApiResponse resp = putFileAttachmentAnnotationWithHttpInfo(name, annotationId, annotation, storage, folder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = putEncryptDocumentWithHttpInfo(outPath, userPassword, ownerPassword, cryptoAlgorithm, permissionsFlags, usePdf20, storage, file); + apiClient.requestToken(); + ApiResponse resp = putFileAttachmentAnnotationWithHttpInfo(name, annotationId, annotation, storage, folder); return resp.getData(); } throw ex; @@ -33513,41 +36965,35 @@ public AsposeResponse putEncryptDocument(String outPath, String userPassword, St } /** - * Encrypt document from content. + * Replace document FileAttachment annotation * - * @param outPath Full resulting filename (ex. /folder1/folder2/result.doc) (required) - * @param userPassword User password (encrypted Base64). (required) - * @param ownerPassword Owner password (encrypted Base64). (required) - * @param cryptoAlgorithm Cryptographic algorithm, see for details. (required) - * @param permissionsFlags Array of document permissions, see for details. (optional) - * @param usePdf20 Support for revision 6 (Extension 8). (optional) + * @param name The document name. (required) + * @param annotationId The annotation ID. (required) + * @param annotation Annotation. (required) * @param storage The document storage. (optional) - * @param file A file to be encrypted. (optional) - * @return ApiResponse<AsposeResponse> + * @param folder The document folder. (optional) + * @return ApiResponse<FileAttachmentAnnotationResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse putEncryptDocumentWithHttpInfo(String outPath, String userPassword, String ownerPassword, String cryptoAlgorithm, List permissionsFlags, Boolean usePdf20, String storage, File file) throws ApiException { - com.squareup.okhttp.Call call = putEncryptDocumentValidateBeforeCall(outPath, userPassword, ownerPassword, cryptoAlgorithm, permissionsFlags, usePdf20, storage, file, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse putFileAttachmentAnnotationWithHttpInfo(String name, String annotationId, FileAttachmentAnnotation annotation, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = putFileAttachmentAnnotationValidateBeforeCall(name, annotationId, annotation, storage, folder, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Encrypt document from content. (asynchronously) + * Replace document FileAttachment annotation (asynchronously) * - * @param outPath Full resulting filename (ex. /folder1/folder2/result.doc) (required) - * @param userPassword User password (encrypted Base64). (required) - * @param ownerPassword Owner password (encrypted Base64). (required) - * @param cryptoAlgorithm Cryptographic algorithm, see for details. (required) - * @param permissionsFlags Array of document permissions, see for details. (optional) - * @param usePdf20 Support for revision 6 (Extension 8). (optional) + * @param name The document name. (required) + * @param annotationId The annotation ID. (required) + * @param annotation Annotation. (required) * @param storage The document storage. (optional) - * @param file A file to be encrypted. (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 putEncryptDocumentAsync(String outPath, String userPassword, String ownerPassword, String cryptoAlgorithm, List permissionsFlags, Boolean usePdf20, String storage, File file, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call putFileAttachmentAnnotationAsync(String name, String annotationId, FileAttachmentAnnotation annotation, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -33568,37 +37014,39 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = putEncryptDocumentValidateBeforeCall(outPath, userPassword, ownerPassword, cryptoAlgorithm, permissionsFlags, usePdf20, storage, file, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = putFileAttachmentAnnotationValidateBeforeCall(name, annotationId, annotation, storage, folder, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for putEpubInStorageToPdf + * Build call for putFileAttachmentAnnotationDataExtract * @param name The document name. (required) - * @param srcPath Full source filename (ex. /folder1/folder2/template.epub) (required) + * @param annotationId The annotation ID. (required) + * @param outFolder The output folder. (optional) * @param storage The document storage. (optional) - * @param dstFolder The destination document folder. (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 putEpubInStorageToPdfCall(String name, String srcPath, String storage, String dstFolder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call putFileAttachmentAnnotationDataExtractCall(String name, String annotationId, String outFolder, 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}/create/epub" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + String localVarPath = "/pdf/{name}/annotations/fileattachment/{annotationId}/data/extract" + .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 (outFolder != null) + localVarQueryParams.addAll(apiClient.parameterToPair("outFolder", outFolder)); if (storage != null) localVarQueryParams.addAll(apiClient.parameterToPair("storage", storage)); - if (dstFolder != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dstFolder", dstFolder)); + if (folder != null) + localVarQueryParams.addAll(apiClient.parameterToPair("folder", folder)); Map localVarHeaderParams = new HashMap(); @@ -33628,51 +37076,52 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call putEpubInStorageToPdfValidateBeforeCall(String name, String srcPath, String storage, String dstFolder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call putFileAttachmentAnnotationDataExtractValidateBeforeCall(String name, String annotationId, String outFolder, 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 putEpubInStorageToPdf(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling putFileAttachmentAnnotationDataExtract(Async)"); } - // verify the required parameter 'srcPath' is set - if (srcPath == null) { - throw new ApiException("Missing the required parameter 'srcPath' when calling putEpubInStorageToPdf(Async)"); + // verify the required parameter 'annotationId' is set + if (annotationId == null) { + throw new ApiException("Missing the required parameter 'annotationId' when calling putFileAttachmentAnnotationDataExtract(Async)"); } - com.squareup.okhttp.Call call = putEpubInStorageToPdfCall(name, srcPath, storage, dstFolder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = putFileAttachmentAnnotationDataExtractCall(name, annotationId, outFolder, storage, folder, progressListener, progressRequestListener); return call; } /** - * Convert EPUB file (located on storage) to PDF format and upload resulting file to storage. + * Extract document FileAttachment annotation content to storage * * @param name The document name. (required) - * @param srcPath Full source filename (ex. /folder1/folder2/template.epub) (required) + * @param annotationId The annotation ID. (required) + * @param outFolder The output folder. (optional) * @param storage The document storage. (optional) - * @param dstFolder The destination document folder. (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 AsposeResponse putEpubInStorageToPdf(String name, String srcPath, String storage, String dstFolder) throws ApiException { + public AsposeResponse putFileAttachmentAnnotationDataExtract(String name, String annotationId, String outFolder, String storage, String folder) throws ApiException { try { - ApiResponse resp = putEpubInStorageToPdfWithHttpInfo(name, srcPath, storage, dstFolder); + ApiResponse resp = putFileAttachmentAnnotationDataExtractWithHttpInfo(name, annotationId, outFolder, storage, folder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = putEpubInStorageToPdfWithHttpInfo(name, srcPath, storage, dstFolder); + apiClient.requestToken(); + ApiResponse resp = putFileAttachmentAnnotationDataExtractWithHttpInfo(name, annotationId, outFolder, storage, folder); return resp.getData(); } throw ex; @@ -33680,33 +37129,35 @@ public AsposeResponse putEpubInStorageToPdf(String name, String srcPath, String } /** - * Convert EPUB file (located on storage) to PDF format and upload resulting file to storage. + * Extract document FileAttachment annotation content to storage * * @param name The document name. (required) - * @param srcPath Full source filename (ex. /folder1/folder2/template.epub) (required) + * @param annotationId The annotation ID. (required) + * @param outFolder The output folder. (optional) * @param storage The document storage. (optional) - * @param dstFolder The destination document folder. (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 putEpubInStorageToPdfWithHttpInfo(String name, String srcPath, String storage, String dstFolder) throws ApiException { - com.squareup.okhttp.Call call = putEpubInStorageToPdfValidateBeforeCall(name, srcPath, storage, dstFolder, null, null); + public ApiResponse putFileAttachmentAnnotationDataExtractWithHttpInfo(String name, String annotationId, String outFolder, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = putFileAttachmentAnnotationDataExtractValidateBeforeCall(name, annotationId, outFolder, storage, folder, null, null); Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Convert EPUB file (located on storage) to PDF format and upload resulting file to storage. (asynchronously) + * Extract document FileAttachment annotation content to storage (asynchronously) * * @param name The document name. (required) - * @param srcPath Full source filename (ex. /folder1/folder2/template.epub) (required) + * @param annotationId The annotation ID. (required) + * @param outFolder The output folder. (optional) * @param storage The document storage. (optional) - * @param dstFolder The destination document folder. (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 putEpubInStorageToPdfAsync(String name, String srcPath, String storage, String dstFolder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call putFileAttachmentAnnotationDataExtractAsync(String name, String annotationId, String outFolder, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -33727,14 +37178,16 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = putEpubInStorageToPdfValidateBeforeCall(name, srcPath, storage, dstFolder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = putFileAttachmentAnnotationDataExtractValidateBeforeCall(name, annotationId, outFolder, storage, folder, progressListener, progressRequestListener); Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for putFieldsFlatten + * Build call for putFreeTextAnnotation * @param name The document name. (required) + * @param annotationId The annotation ID. (required) + * @param annotation Annotation. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) * @param progressListener Progress listener @@ -33742,12 +37195,13 @@ 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 putFieldsFlattenCall(String name, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = null; + public com.squareup.okhttp.Call putFreeTextAnnotationCall(String name, String annotationId, FreeTextAnnotation annotation, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = annotation; // create path and map variables - String localVarPath = "/pdf/{name}/fields/flatten" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + String localVarPath = "/pdf/{name}/annotations/freetext/{annotationId}" + .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) + .replaceAll("\\{" + "annotationId" + "\\}", apiClient.escapeString(annotationId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -33784,45 +37238,57 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call putFieldsFlattenValidateBeforeCall(String name, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call putFreeTextAnnotationValidateBeforeCall(String name, String annotationId, FreeTextAnnotation annotation, 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 putFieldsFlatten(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling putFreeTextAnnotation(Async)"); + } + + // verify the required parameter 'annotationId' is set + if (annotationId == null) { + throw new ApiException("Missing the required parameter 'annotationId' when calling putFreeTextAnnotation(Async)"); + } + + // verify the required parameter 'annotation' is set + if (annotation == null) { + throw new ApiException("Missing the required parameter 'annotation' when calling putFreeTextAnnotation(Async)"); } - com.squareup.okhttp.Call call = putFieldsFlattenCall(name, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = putFreeTextAnnotationCall(name, annotationId, annotation, storage, folder, progressListener, progressRequestListener); return call; } /** - * Flatten form fields in document. + * Replace document free text annotation * * @param name The document name. (required) + * @param annotationId The annotation ID. (required) + * @param annotation Annotation. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) - * @return AsposeResponse + * @return FreeTextAnnotationResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public AsposeResponse putFieldsFlatten(String name, String storage, String folder) throws ApiException { + public FreeTextAnnotationResponse putFreeTextAnnotation(String name, String annotationId, FreeTextAnnotation annotation, String storage, String folder) throws ApiException { try { - ApiResponse resp = putFieldsFlattenWithHttpInfo(name, storage, folder); + ApiResponse resp = putFreeTextAnnotationWithHttpInfo(name, annotationId, annotation, storage, folder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = putFieldsFlattenWithHttpInfo(name, storage, folder); + apiClient.requestToken(); + ApiResponse resp = putFreeTextAnnotationWithHttpInfo(name, annotationId, annotation, storage, folder); return resp.getData(); } throw ex; @@ -33830,31 +37296,35 @@ public AsposeResponse putFieldsFlatten(String name, String storage, String folde } /** - * Flatten form fields in document. + * Replace document free text annotation * * @param name The document name. (required) + * @param annotationId The annotation ID. (required) + * @param annotation Annotation. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) - * @return ApiResponse<AsposeResponse> + * @return ApiResponse<FreeTextAnnotationResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse putFieldsFlattenWithHttpInfo(String name, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = putFieldsFlattenValidateBeforeCall(name, storage, folder, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse putFreeTextAnnotationWithHttpInfo(String name, String annotationId, FreeTextAnnotation annotation, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = putFreeTextAnnotationValidateBeforeCall(name, annotationId, annotation, storage, folder, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Flatten form fields in document. (asynchronously) + * Replace document free text annotation (asynchronously) * * @param name The document name. (required) + * @param annotationId The annotation ID. (required) + * @param annotation Annotation. (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 putFieldsFlattenAsync(String name, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call putFreeTextAnnotationAsync(String name, String annotationId, FreeTextAnnotation annotation, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -33875,13 +37345,13 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = putFieldsFlattenValidateBeforeCall(name, storage, folder, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = putFreeTextAnnotationValidateBeforeCall(name, annotationId, annotation, storage, folder, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for putFileAttachmentAnnotation + * Build call for putHighlightAnnotation * @param name The document name. (required) * @param annotationId The annotation ID. (required) * @param annotation Annotation. (required) @@ -33892,11 +37362,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 putFileAttachmentAnnotationCall(String name, String annotationId, FileAttachmentAnnotation annotation, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call putHighlightAnnotationCall(String name, String annotationId, HighlightAnnotation annotation, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = annotation; // create path and map variables - String localVarPath = "/pdf/{name}/annotations/fileattachment/{annotationId}" + String localVarPath = "/pdf/{name}/annotations/highlight/{annotationId}" .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) .replaceAll("\\{" + "annotationId" + "\\}", apiClient.escapeString(annotationId.toString())); @@ -33935,57 +37405,57 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call putFileAttachmentAnnotationValidateBeforeCall(String name, String annotationId, FileAttachmentAnnotation annotation, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call putHighlightAnnotationValidateBeforeCall(String name, String annotationId, HighlightAnnotation annotation, 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 putFileAttachmentAnnotation(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling putHighlightAnnotation(Async)"); } // verify the required parameter 'annotationId' is set if (annotationId == null) { - throw new ApiException("Missing the required parameter 'annotationId' when calling putFileAttachmentAnnotation(Async)"); + throw new ApiException("Missing the required parameter 'annotationId' when calling putHighlightAnnotation(Async)"); } // verify the required parameter 'annotation' is set if (annotation == null) { - throw new ApiException("Missing the required parameter 'annotation' when calling putFileAttachmentAnnotation(Async)"); + throw new ApiException("Missing the required parameter 'annotation' when calling putHighlightAnnotation(Async)"); } - com.squareup.okhttp.Call call = putFileAttachmentAnnotationCall(name, annotationId, annotation, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = putHighlightAnnotationCall(name, annotationId, annotation, storage, folder, progressListener, progressRequestListener); return call; } /** - * Replace document FileAttachment annotation + * Replace document highlight annotation * * @param name The document name. (required) * @param annotationId The annotation ID. (required) * @param annotation Annotation. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) - * @return FileAttachmentAnnotationResponse + * @return HighlightAnnotationResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public FileAttachmentAnnotationResponse putFileAttachmentAnnotation(String name, String annotationId, FileAttachmentAnnotation annotation, String storage, String folder) throws ApiException { + public HighlightAnnotationResponse putHighlightAnnotation(String name, String annotationId, HighlightAnnotation annotation, String storage, String folder) throws ApiException { try { - ApiResponse resp = putFileAttachmentAnnotationWithHttpInfo(name, annotationId, annotation, storage, folder); + ApiResponse resp = putHighlightAnnotationWithHttpInfo(name, annotationId, annotation, storage, folder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = putFileAttachmentAnnotationWithHttpInfo(name, annotationId, annotation, storage, folder); + apiClient.requestToken(); + ApiResponse resp = putHighlightAnnotationWithHttpInfo(name, annotationId, annotation, storage, folder); return resp.getData(); } throw ex; @@ -33993,24 +37463,24 @@ public FileAttachmentAnnotationResponse putFileAttachmentAnnotation(String name, } /** - * Replace document FileAttachment annotation + * Replace document highlight annotation * * @param name The document name. (required) * @param annotationId The annotation ID. (required) * @param annotation Annotation. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) - * @return ApiResponse<FileAttachmentAnnotationResponse> + * @return ApiResponse<HighlightAnnotationResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse putFileAttachmentAnnotationWithHttpInfo(String name, String annotationId, FileAttachmentAnnotation annotation, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = putFileAttachmentAnnotationValidateBeforeCall(name, annotationId, annotation, storage, folder, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse putHighlightAnnotationWithHttpInfo(String name, String annotationId, HighlightAnnotation annotation, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = putHighlightAnnotationValidateBeforeCall(name, annotationId, annotation, storage, folder, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Replace document FileAttachment annotation (asynchronously) + * Replace document highlight annotation (asynchronously) * * @param name The document name. (required) * @param annotationId The annotation ID. (required) @@ -34021,7 +37491,7 @@ public ApiResponse putFileAttachmentAnnotation * @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 putFileAttachmentAnnotationAsync(String name, String annotationId, FileAttachmentAnnotation annotation, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call putHighlightAnnotationAsync(String name, String annotationId, HighlightAnnotation annotation, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -34042,39 +37512,61 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = putFileAttachmentAnnotationValidateBeforeCall(name, annotationId, annotation, storage, folder, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = putHighlightAnnotationValidateBeforeCall(name, annotationId, annotation, storage, folder, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for putFileAttachmentAnnotationDataExtract + * Build call for putHtmlInStorageToPdf * @param name The document name. (required) - * @param annotationId The annotation ID. (required) - * @param outFolder The output folder. (optional) + * @param srcPath Full source filename (ex. /folder1/folder2/template.zip) (required) + * @param htmlFileName Name of HTML file in ZIP. (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 dstFolder The destination 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 putFileAttachmentAnnotationDataExtractCall(String name, String annotationId, String outFolder, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call putHtmlInStorageToPdfCall(String name, String srcPath, String htmlFileName, Double height, Double width, Boolean isLandscape, Double marginLeft, Double marginBottom, Double marginRight, Double marginTop, String dstFolder, 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/fileattachment/{annotationId}/data/extract" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "annotationId" + "\\}", apiClient.escapeString(annotationId.toString())); + String localVarPath = "/pdf/{name}/create/html" + .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (outFolder != null) - localVarQueryParams.addAll(apiClient.parameterToPair("outFolder", outFolder)); + if (srcPath != null) + localVarQueryParams.addAll(apiClient.parameterToPair("srcPath", srcPath)); + if (htmlFileName != null) + localVarQueryParams.addAll(apiClient.parameterToPair("htmlFileName", htmlFileName)); + 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 (dstFolder != null) + localVarQueryParams.addAll(apiClient.parameterToPair("dstFolder", dstFolder)); if (storage != null) localVarQueryParams.addAll(apiClient.parameterToPair("storage", storage)); - if (folder != null) - localVarQueryParams.addAll(apiClient.parameterToPair("folder", folder)); Map localVarHeaderParams = new HashMap(); @@ -34104,52 +37596,59 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call putFileAttachmentAnnotationDataExtractValidateBeforeCall(String name, String annotationId, String outFolder, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call putHtmlInStorageToPdfValidateBeforeCall(String name, String srcPath, String htmlFileName, Double height, Double width, Boolean isLandscape, Double marginLeft, Double marginBottom, Double marginRight, Double marginTop, String dstFolder, 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 putFileAttachmentAnnotationDataExtract(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling putHtmlInStorageToPdf(Async)"); } - // verify the required parameter 'annotationId' is set - if (annotationId == null) { - throw new ApiException("Missing the required parameter 'annotationId' when calling putFileAttachmentAnnotationDataExtract(Async)"); + // verify the required parameter 'srcPath' is set + if (srcPath == null) { + throw new ApiException("Missing the required parameter 'srcPath' when calling putHtmlInStorageToPdf(Async)"); } - com.squareup.okhttp.Call call = putFileAttachmentAnnotationDataExtractCall(name, annotationId, outFolder, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = putHtmlInStorageToPdfCall(name, srcPath, htmlFileName, height, width, isLandscape, marginLeft, marginBottom, marginRight, marginTop, dstFolder, storage, progressListener, progressRequestListener); return call; } /** - * Extract document FileAttachment annotation content to storage + * Convert HTML file (located on storage) to PDF format and upload resulting file to storage. * * @param name The document name. (required) - * @param annotationId The annotation ID. (required) - * @param outFolder The output folder. (optional) + * @param srcPath Full source filename (ex. /folder1/folder2/template.zip) (required) + * @param htmlFileName Name of HTML file in ZIP. (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 dstFolder The destination document folder. (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 AsposeResponse putFileAttachmentAnnotationDataExtract(String name, String annotationId, String outFolder, String storage, String folder) throws ApiException { + public AsposeResponse putHtmlInStorageToPdf(String name, String srcPath, String htmlFileName, Double height, Double width, Boolean isLandscape, Double marginLeft, Double marginBottom, Double marginRight, Double marginTop, String dstFolder, String storage) throws ApiException { try { - ApiResponse resp = putFileAttachmentAnnotationDataExtractWithHttpInfo(name, annotationId, outFolder, storage, folder); + ApiResponse resp = putHtmlInStorageToPdfWithHttpInfo(name, srcPath, htmlFileName, height, width, isLandscape, marginLeft, marginBottom, marginRight, marginTop, dstFolder, storage); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = putFileAttachmentAnnotationDataExtractWithHttpInfo(name, annotationId, outFolder, storage, folder); + apiClient.requestToken(); + ApiResponse resp = putHtmlInStorageToPdfWithHttpInfo(name, srcPath, htmlFileName, height, width, isLandscape, marginLeft, marginBottom, marginRight, marginTop, dstFolder, storage); return resp.getData(); } throw ex; @@ -34157,35 +37656,49 @@ public AsposeResponse putFileAttachmentAnnotationDataExtract(String name, String } /** - * Extract document FileAttachment annotation content to storage + * Convert HTML file (located on storage) to PDF format and upload resulting file to storage. * * @param name The document name. (required) - * @param annotationId The annotation ID. (required) - * @param outFolder The output folder. (optional) + * @param srcPath Full source filename (ex. /folder1/folder2/template.zip) (required) + * @param htmlFileName Name of HTML file in ZIP. (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 dstFolder The destination document folder. (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 putFileAttachmentAnnotationDataExtractWithHttpInfo(String name, String annotationId, String outFolder, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = putFileAttachmentAnnotationDataExtractValidateBeforeCall(name, annotationId, outFolder, storage, folder, null, null); + public ApiResponse putHtmlInStorageToPdfWithHttpInfo(String name, String srcPath, String htmlFileName, Double height, Double width, Boolean isLandscape, Double marginLeft, Double marginBottom, Double marginRight, Double marginTop, String dstFolder, String storage) throws ApiException { + com.squareup.okhttp.Call call = putHtmlInStorageToPdfValidateBeforeCall(name, srcPath, htmlFileName, height, width, isLandscape, marginLeft, marginBottom, marginRight, marginTop, dstFolder, storage, null, null); Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Extract document FileAttachment annotation content to storage (asynchronously) + * Convert HTML file (located on storage) to PDF format and upload resulting file to storage. (asynchronously) * * @param name The document name. (required) - * @param annotationId The annotation ID. (required) - * @param outFolder The output folder. (optional) + * @param srcPath Full source filename (ex. /folder1/folder2/template.zip) (required) + * @param htmlFileName Name of HTML file in ZIP. (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 dstFolder The destination 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 putFileAttachmentAnnotationDataExtractAsync(String name, String annotationId, String outFolder, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call putHtmlInStorageToPdfAsync(String name, String srcPath, String htmlFileName, Double height, Double width, Boolean isLandscape, Double marginLeft, Double marginBottom, Double marginRight, Double marginTop, String dstFolder, String storage, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -34206,37 +37719,45 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = putFileAttachmentAnnotationDataExtractValidateBeforeCall(name, annotationId, outFolder, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = putHtmlInStorageToPdfValidateBeforeCall(name, srcPath, htmlFileName, height, width, isLandscape, marginLeft, marginBottom, marginRight, marginTop, dstFolder, storage, progressListener, progressRequestListener); Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for putFreeTextAnnotation + * Build call for putImageExtractAsGif * @param name The document name. (required) - * @param annotationId The annotation ID. (required) - * @param annotation Annotation. (required) + * @param imageId Image ID. (required) + * @param width The converted image width. (optional, default to 0) + * @param height The converted image height. (optional, default to 0) * @param storage The document storage. (optional) * @param folder The document folder. (optional) + * @param destFolder 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 putFreeTextAnnotationCall(String name, String annotationId, FreeTextAnnotation annotation, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = annotation; + public com.squareup.okhttp.Call putImageExtractAsGifCall(String name, String imageId, Integer width, Integer height, String storage, String folder, String destFolder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; // create path and map variables - String localVarPath = "/pdf/{name}/annotations/freetext/{annotationId}" + String localVarPath = "/pdf/{name}/images/{imageId}/extract/gif" .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "annotationId" + "\\}", apiClient.escapeString(annotationId.toString())); + .replaceAll("\\{" + "imageId" + "\\}", apiClient.escapeString(imageId.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 (storage != null) localVarQueryParams.addAll(apiClient.parameterToPair("storage", storage)); if (folder != null) localVarQueryParams.addAll(apiClient.parameterToPair("folder", folder)); + if (destFolder != null) + localVarQueryParams.addAll(apiClient.parameterToPair("destFolder", destFolder)); Map localVarHeaderParams = new HashMap(); @@ -34266,57 +37787,54 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call putFreeTextAnnotationValidateBeforeCall(String name, String annotationId, FreeTextAnnotation annotation, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call putImageExtractAsGifValidateBeforeCall(String name, String imageId, Integer width, Integer height, String storage, String folder, String destFolder, 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 putFreeTextAnnotation(Async)"); - } - - // verify the required parameter 'annotationId' is set - if (annotationId == null) { - throw new ApiException("Missing the required parameter 'annotationId' when calling putFreeTextAnnotation(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling putImageExtractAsGif(Async)"); } - // verify the required parameter 'annotation' is set - if (annotation == null) { - throw new ApiException("Missing the required parameter 'annotation' when calling putFreeTextAnnotation(Async)"); + // verify the required parameter 'imageId' is set + if (imageId == null) { + throw new ApiException("Missing the required parameter 'imageId' when calling putImageExtractAsGif(Async)"); } - com.squareup.okhttp.Call call = putFreeTextAnnotationCall(name, annotationId, annotation, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = putImageExtractAsGifCall(name, imageId, width, height, storage, folder, destFolder, progressListener, progressRequestListener); return call; } /** - * Replace document free text annotation + * Extract document image in GIF format to folder * * @param name The document name. (required) - * @param annotationId The annotation ID. (required) - * @param annotation Annotation. (required) + * @param imageId Image ID. (required) + * @param width The converted image width. (optional, default to 0) + * @param height The converted image height. (optional, default to 0) * @param storage The document storage. (optional) * @param folder The document folder. (optional) - * @return FreeTextAnnotationResponse + * @param destFolder 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 FreeTextAnnotationResponse putFreeTextAnnotation(String name, String annotationId, FreeTextAnnotation annotation, String storage, String folder) throws ApiException { + public AsposeResponse putImageExtractAsGif(String name, String imageId, Integer width, Integer height, String storage, String folder, String destFolder) throws ApiException { try { - ApiResponse resp = putFreeTextAnnotationWithHttpInfo(name, annotationId, annotation, storage, folder); + ApiResponse resp = putImageExtractAsGifWithHttpInfo(name, imageId, width, height, storage, folder, destFolder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = putFreeTextAnnotationWithHttpInfo(name, annotationId, annotation, storage, folder); + apiClient.requestToken(); + ApiResponse resp = putImageExtractAsGifWithHttpInfo(name, imageId, width, height, storage, folder, destFolder); return resp.getData(); } throw ex; @@ -34324,35 +37842,39 @@ public FreeTextAnnotationResponse putFreeTextAnnotation(String name, String anno } /** - * Replace document free text annotation + * Extract document image in GIF format to folder * * @param name The document name. (required) - * @param annotationId The annotation ID. (required) - * @param annotation Annotation. (required) + * @param imageId Image ID. (required) + * @param width The converted image width. (optional, default to 0) + * @param height The converted image height. (optional, default to 0) * @param storage The document storage. (optional) * @param folder The document folder. (optional) - * @return ApiResponse<FreeTextAnnotationResponse> + * @param destFolder 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 putFreeTextAnnotationWithHttpInfo(String name, String annotationId, FreeTextAnnotation annotation, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = putFreeTextAnnotationValidateBeforeCall(name, annotationId, annotation, storage, folder, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse putImageExtractAsGifWithHttpInfo(String name, String imageId, Integer width, Integer height, String storage, String folder, String destFolder) throws ApiException { + com.squareup.okhttp.Call call = putImageExtractAsGifValidateBeforeCall(name, imageId, width, height, storage, folder, destFolder, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Replace document free text annotation (asynchronously) + * Extract document image in GIF format to folder (asynchronously) * * @param name The document name. (required) - * @param annotationId The annotation ID. (required) - * @param annotation Annotation. (required) + * @param imageId Image ID. (required) + * @param width The converted image width. (optional, default to 0) + * @param height The converted image height. (optional, default to 0) * @param storage The document storage. (optional) * @param folder The document folder. (optional) + * @param destFolder 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 putFreeTextAnnotationAsync(String name, String annotationId, FreeTextAnnotation annotation, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call putImageExtractAsGifAsync(String name, String imageId, Integer width, Integer height, String storage, String folder, String destFolder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -34373,37 +37895,45 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = putFreeTextAnnotationValidateBeforeCall(name, annotationId, annotation, storage, folder, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = putImageExtractAsGifValidateBeforeCall(name, imageId, width, height, storage, folder, destFolder, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for putHighlightAnnotation + * Build call for putImageExtractAsJpeg * @param name The document name. (required) - * @param annotationId The annotation ID. (required) - * @param annotation Annotation. (required) + * @param imageId Image ID. (required) + * @param width The converted image width. (optional, default to 0) + * @param height The converted image height. (optional, default to 0) * @param storage The document storage. (optional) * @param folder The document folder. (optional) + * @param destFolder 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 putHighlightAnnotationCall(String name, String annotationId, HighlightAnnotation annotation, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = annotation; + public com.squareup.okhttp.Call putImageExtractAsJpegCall(String name, String imageId, Integer width, Integer height, String storage, String folder, String destFolder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; // create path and map variables - String localVarPath = "/pdf/{name}/annotations/highlight/{annotationId}" + String localVarPath = "/pdf/{name}/images/{imageId}/extract/jpeg" .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "annotationId" + "\\}", apiClient.escapeString(annotationId.toString())); + .replaceAll("\\{" + "imageId" + "\\}", apiClient.escapeString(imageId.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 (storage != null) localVarQueryParams.addAll(apiClient.parameterToPair("storage", storage)); if (folder != null) localVarQueryParams.addAll(apiClient.parameterToPair("folder", folder)); + if (destFolder != null) + localVarQueryParams.addAll(apiClient.parameterToPair("destFolder", destFolder)); Map localVarHeaderParams = new HashMap(); @@ -34433,57 +37963,54 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call putHighlightAnnotationValidateBeforeCall(String name, String annotationId, HighlightAnnotation annotation, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call putImageExtractAsJpegValidateBeforeCall(String name, String imageId, Integer width, Integer height, String storage, String folder, String destFolder, 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 putHighlightAnnotation(Async)"); - } - - // verify the required parameter 'annotationId' is set - if (annotationId == null) { - throw new ApiException("Missing the required parameter 'annotationId' when calling putHighlightAnnotation(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling putImageExtractAsJpeg(Async)"); } - // verify the required parameter 'annotation' is set - if (annotation == null) { - throw new ApiException("Missing the required parameter 'annotation' when calling putHighlightAnnotation(Async)"); + // verify the required parameter 'imageId' is set + if (imageId == null) { + throw new ApiException("Missing the required parameter 'imageId' when calling putImageExtractAsJpeg(Async)"); } - com.squareup.okhttp.Call call = putHighlightAnnotationCall(name, annotationId, annotation, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = putImageExtractAsJpegCall(name, imageId, width, height, storage, folder, destFolder, progressListener, progressRequestListener); return call; } /** - * Replace document highlight annotation + * Extract document image in JPEG format to folder * * @param name The document name. (required) - * @param annotationId The annotation ID. (required) - * @param annotation Annotation. (required) + * @param imageId Image ID. (required) + * @param width The converted image width. (optional, default to 0) + * @param height The converted image height. (optional, default to 0) * @param storage The document storage. (optional) * @param folder The document folder. (optional) - * @return HighlightAnnotationResponse + * @param destFolder 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 HighlightAnnotationResponse putHighlightAnnotation(String name, String annotationId, HighlightAnnotation annotation, String storage, String folder) throws ApiException { + public AsposeResponse putImageExtractAsJpeg(String name, String imageId, Integer width, Integer height, String storage, String folder, String destFolder) throws ApiException { try { - ApiResponse resp = putHighlightAnnotationWithHttpInfo(name, annotationId, annotation, storage, folder); + ApiResponse resp = putImageExtractAsJpegWithHttpInfo(name, imageId, width, height, storage, folder, destFolder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = putHighlightAnnotationWithHttpInfo(name, annotationId, annotation, storage, folder); + apiClient.requestToken(); + ApiResponse resp = putImageExtractAsJpegWithHttpInfo(name, imageId, width, height, storage, folder, destFolder); return resp.getData(); } throw ex; @@ -34491,35 +38018,39 @@ public HighlightAnnotationResponse putHighlightAnnotation(String name, String an } /** - * Replace document highlight annotation + * Extract document image in JPEG format to folder * * @param name The document name. (required) - * @param annotationId The annotation ID. (required) - * @param annotation Annotation. (required) + * @param imageId Image ID. (required) + * @param width The converted image width. (optional, default to 0) + * @param height The converted image height. (optional, default to 0) * @param storage The document storage. (optional) * @param folder The document folder. (optional) - * @return ApiResponse<HighlightAnnotationResponse> + * @param destFolder 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 putHighlightAnnotationWithHttpInfo(String name, String annotationId, HighlightAnnotation annotation, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = putHighlightAnnotationValidateBeforeCall(name, annotationId, annotation, storage, folder, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse putImageExtractAsJpegWithHttpInfo(String name, String imageId, Integer width, Integer height, String storage, String folder, String destFolder) throws ApiException { + com.squareup.okhttp.Call call = putImageExtractAsJpegValidateBeforeCall(name, imageId, width, height, storage, folder, destFolder, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Replace document highlight annotation (asynchronously) + * Extract document image in JPEG format to folder (asynchronously) * * @param name The document name. (required) - * @param annotationId The annotation ID. (required) - * @param annotation Annotation. (required) + * @param imageId Image ID. (required) + * @param width The converted image width. (optional, default to 0) + * @param height The converted image height. (optional, default to 0) * @param storage The document storage. (optional) * @param folder The document folder. (optional) + * @param destFolder 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 putHighlightAnnotationAsync(String name, String annotationId, HighlightAnnotation annotation, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call putImageExtractAsJpegAsync(String name, String imageId, Integer width, Integer height, String storage, String folder, String destFolder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -34540,61 +38071,45 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = putHighlightAnnotationValidateBeforeCall(name, annotationId, annotation, storage, folder, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = putImageExtractAsJpegValidateBeforeCall(name, imageId, width, height, storage, folder, destFolder, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for putHtmlInStorageToPdf + * Build call for putImageExtractAsPng * @param name The document name. (required) - * @param srcPath Full source filename (ex. /folder1/folder2/template.zip) (required) - * @param htmlFileName Name of HTML file in ZIP. (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 dstFolder The destination document folder. (optional) + * @param imageId Image ID. (required) + * @param width The converted image width. (optional, default to 0) + * @param height The converted image height. (optional, default to 0) * @param storage The document storage. (optional) + * @param folder The document folder. (optional) + * @param destFolder 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 putHtmlInStorageToPdfCall(String name, String srcPath, String htmlFileName, Double height, Double width, Boolean isLandscape, Double marginLeft, Double marginBottom, Double marginRight, Double marginTop, String dstFolder, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call putImageExtractAsPngCall(String name, String imageId, Integer width, Integer height, String storage, String folder, String destFolder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; // create path and map variables - String localVarPath = "/pdf/{name}/create/html" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + String localVarPath = "/pdf/{name}/images/{imageId}/extract/png" + .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) + .replaceAll("\\{" + "imageId" + "\\}", apiClient.escapeString(imageId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (srcPath != null) - localVarQueryParams.addAll(apiClient.parameterToPair("srcPath", srcPath)); - if (htmlFileName != null) - localVarQueryParams.addAll(apiClient.parameterToPair("htmlFileName", htmlFileName)); - 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 (dstFolder != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dstFolder", dstFolder)); + if (height != null) + localVarQueryParams.addAll(apiClient.parameterToPair("height", height)); if (storage != null) localVarQueryParams.addAll(apiClient.parameterToPair("storage", storage)); + if (folder != null) + localVarQueryParams.addAll(apiClient.parameterToPair("folder", folder)); + if (destFolder != null) + localVarQueryParams.addAll(apiClient.parameterToPair("destFolder", destFolder)); Map localVarHeaderParams = new HashMap(); @@ -34624,59 +38139,54 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call putHtmlInStorageToPdfValidateBeforeCall(String name, String srcPath, String htmlFileName, Double height, Double width, Boolean isLandscape, Double marginLeft, Double marginBottom, Double marginRight, Double marginTop, String dstFolder, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call putImageExtractAsPngValidateBeforeCall(String name, String imageId, Integer width, Integer height, String storage, String folder, String destFolder, 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 putHtmlInStorageToPdf(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling putImageExtractAsPng(Async)"); } - // verify the required parameter 'srcPath' is set - if (srcPath == null) { - throw new ApiException("Missing the required parameter 'srcPath' when calling putHtmlInStorageToPdf(Async)"); + // verify the required parameter 'imageId' is set + if (imageId == null) { + throw new ApiException("Missing the required parameter 'imageId' when calling putImageExtractAsPng(Async)"); } - com.squareup.okhttp.Call call = putHtmlInStorageToPdfCall(name, srcPath, htmlFileName, height, width, isLandscape, marginLeft, marginBottom, marginRight, marginTop, dstFolder, storage, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = putImageExtractAsPngCall(name, imageId, width, height, storage, folder, destFolder, progressListener, progressRequestListener); return call; } /** - * Convert HTML file (located on storage) to PDF format and upload resulting file to storage. + * Extract document image in PNG format to folder * * @param name The document name. (required) - * @param srcPath Full source filename (ex. /folder1/folder2/template.zip) (required) - * @param htmlFileName Name of HTML file in ZIP. (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 dstFolder The destination document folder. (optional) + * @param imageId Image ID. (required) + * @param width The converted image width. (optional, default to 0) + * @param height The converted image height. (optional, default to 0) * @param storage The document storage. (optional) + * @param folder The document folder. (optional) + * @param destFolder 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 AsposeResponse putHtmlInStorageToPdf(String name, String srcPath, String htmlFileName, Double height, Double width, Boolean isLandscape, Double marginLeft, Double marginBottom, Double marginRight, Double marginTop, String dstFolder, String storage) throws ApiException { + public AsposeResponse putImageExtractAsPng(String name, String imageId, Integer width, Integer height, String storage, String folder, String destFolder) throws ApiException { try { - ApiResponse resp = putHtmlInStorageToPdfWithHttpInfo(name, srcPath, htmlFileName, height, width, isLandscape, marginLeft, marginBottom, marginRight, marginTop, dstFolder, storage); + ApiResponse resp = putImageExtractAsPngWithHttpInfo(name, imageId, width, height, storage, folder, destFolder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = putHtmlInStorageToPdfWithHttpInfo(name, srcPath, htmlFileName, height, width, isLandscape, marginLeft, marginBottom, marginRight, marginTop, dstFolder, storage); + apiClient.requestToken(); + ApiResponse resp = putImageExtractAsPngWithHttpInfo(name, imageId, width, height, storage, folder, destFolder); return resp.getData(); } throw ex; @@ -34684,49 +38194,39 @@ public AsposeResponse putHtmlInStorageToPdf(String name, String srcPath, String } /** - * Convert HTML file (located on storage) to PDF format and upload resulting file to storage. + * Extract document image in PNG format to folder * * @param name The document name. (required) - * @param srcPath Full source filename (ex. /folder1/folder2/template.zip) (required) - * @param htmlFileName Name of HTML file in ZIP. (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 dstFolder The destination document folder. (optional) + * @param imageId Image ID. (required) + * @param width The converted image width. (optional, default to 0) + * @param height The converted image height. (optional, default to 0) * @param storage The document storage. (optional) + * @param folder The document folder. (optional) + * @param destFolder 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 putHtmlInStorageToPdfWithHttpInfo(String name, String srcPath, String htmlFileName, Double height, Double width, Boolean isLandscape, Double marginLeft, Double marginBottom, Double marginRight, Double marginTop, String dstFolder, String storage) throws ApiException { - com.squareup.okhttp.Call call = putHtmlInStorageToPdfValidateBeforeCall(name, srcPath, htmlFileName, height, width, isLandscape, marginLeft, marginBottom, marginRight, marginTop, dstFolder, storage, null, null); + public ApiResponse putImageExtractAsPngWithHttpInfo(String name, String imageId, Integer width, Integer height, String storage, String folder, String destFolder) throws ApiException { + com.squareup.okhttp.Call call = putImageExtractAsPngValidateBeforeCall(name, imageId, width, height, storage, folder, destFolder, null, null); Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Convert HTML file (located on storage) to PDF format and upload resulting file to storage. (asynchronously) + * Extract document image in PNG format to folder (asynchronously) * * @param name The document name. (required) - * @param srcPath Full source filename (ex. /folder1/folder2/template.zip) (required) - * @param htmlFileName Name of HTML file in ZIP. (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 dstFolder The destination document folder. (optional) + * @param imageId Image ID. (required) + * @param width The converted image width. (optional, default to 0) + * @param height The converted image height. (optional, default to 0) * @param storage The document storage. (optional) + * @param folder The document folder. (optional) + * @param destFolder 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 putHtmlInStorageToPdfAsync(String name, String srcPath, String htmlFileName, Double height, Double width, Boolean isLandscape, Double marginLeft, Double marginBottom, Double marginRight, Double marginTop, String dstFolder, String storage, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call putImageExtractAsPngAsync(String name, String imageId, Integer width, Integer height, String storage, String folder, String destFolder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -34747,17 +38247,17 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = putHtmlInStorageToPdfValidateBeforeCall(name, srcPath, htmlFileName, height, width, isLandscape, marginLeft, marginBottom, marginRight, marginTop, dstFolder, storage, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = putImageExtractAsPngValidateBeforeCall(name, imageId, width, height, storage, folder, destFolder, progressListener, progressRequestListener); Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for putImageExtractAsGif + * Build call for putImageExtractAsTiff * @param name The document name. (required) * @param imageId Image ID. (required) - * @param width The converted image width. (optional) - * @param height The converted image height. (optional) + * @param width The converted image width. (optional, default to 0) + * @param height The converted image height. (optional, default to 0) * @param storage The document storage. (optional) * @param folder The document folder. (optional) * @param destFolder The document folder. (optional) @@ -34766,11 +38266,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 putImageExtractAsGifCall(String name, String imageId, Integer width, Integer height, String storage, String folder, String destFolder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call putImageExtractAsTiffCall(String name, String imageId, Integer width, Integer height, String storage, String folder, String destFolder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; // create path and map variables - String localVarPath = "/pdf/{name}/images/{imageId}/extract/gif" + String localVarPath = "/pdf/{name}/images/{imageId}/extract/tiff" .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) .replaceAll("\\{" + "imageId" + "\\}", apiClient.escapeString(imageId.toString())); @@ -34815,54 +38315,54 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call putImageExtractAsGifValidateBeforeCall(String name, String imageId, Integer width, Integer height, String storage, String folder, String destFolder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call putImageExtractAsTiffValidateBeforeCall(String name, String imageId, Integer width, Integer height, String storage, String folder, String destFolder, 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 putImageExtractAsGif(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling putImageExtractAsTiff(Async)"); } // verify the required parameter 'imageId' is set if (imageId == null) { - throw new ApiException("Missing the required parameter 'imageId' when calling putImageExtractAsGif(Async)"); + throw new ApiException("Missing the required parameter 'imageId' when calling putImageExtractAsTiff(Async)"); } - com.squareup.okhttp.Call call = putImageExtractAsGifCall(name, imageId, width, height, storage, folder, destFolder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = putImageExtractAsTiffCall(name, imageId, width, height, storage, folder, destFolder, progressListener, progressRequestListener); return call; } /** - * Extract document image in GIF format to folder + * Extract document image in TIFF format to folder * * @param name The document name. (required) * @param imageId Image ID. (required) - * @param width The converted image width. (optional) - * @param height The converted image height. (optional) + * @param width The converted image width. (optional, default to 0) + * @param height The converted image height. (optional, default to 0) * @param storage The document storage. (optional) * @param folder The document folder. (optional) * @param destFolder 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 AsposeResponse putImageExtractAsGif(String name, String imageId, Integer width, Integer height, String storage, String folder, String destFolder) throws ApiException { + public AsposeResponse putImageExtractAsTiff(String name, String imageId, Integer width, Integer height, String storage, String folder, String destFolder) throws ApiException { try { - ApiResponse resp = putImageExtractAsGifWithHttpInfo(name, imageId, width, height, storage, folder, destFolder); + ApiResponse resp = putImageExtractAsTiffWithHttpInfo(name, imageId, width, height, storage, folder, destFolder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = putImageExtractAsGifWithHttpInfo(name, imageId, width, height, storage, folder, destFolder); + apiClient.requestToken(); + ApiResponse resp = putImageExtractAsTiffWithHttpInfo(name, imageId, width, height, storage, folder, destFolder); return resp.getData(); } throw ex; @@ -34870,31 +38370,31 @@ public AsposeResponse putImageExtractAsGif(String name, String imageId, Integer } /** - * Extract document image in GIF format to folder + * Extract document image in TIFF format to folder * * @param name The document name. (required) * @param imageId Image ID. (required) - * @param width The converted image width. (optional) - * @param height The converted image height. (optional) + * @param width The converted image width. (optional, default to 0) + * @param height The converted image height. (optional, default to 0) * @param storage The document storage. (optional) * @param folder The document folder. (optional) * @param destFolder 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 putImageExtractAsGifWithHttpInfo(String name, String imageId, Integer width, Integer height, String storage, String folder, String destFolder) throws ApiException { - com.squareup.okhttp.Call call = putImageExtractAsGifValidateBeforeCall(name, imageId, width, height, storage, folder, destFolder, null, null); + public ApiResponse putImageExtractAsTiffWithHttpInfo(String name, String imageId, Integer width, Integer height, String storage, String folder, String destFolder) throws ApiException { + com.squareup.okhttp.Call call = putImageExtractAsTiffValidateBeforeCall(name, imageId, width, height, storage, folder, destFolder, null, null); Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Extract document image in GIF format to folder (asynchronously) + * Extract document image in TIFF format to folder (asynchronously) * * @param name The document name. (required) * @param imageId Image ID. (required) - * @param width The converted image width. (optional) - * @param height The converted image height. (optional) + * @param width The converted image width. (optional, default to 0) + * @param height The converted image height. (optional, default to 0) * @param storage The document storage. (optional) * @param folder The document folder. (optional) * @param destFolder The document folder. (optional) @@ -34902,7 +38402,7 @@ public ApiResponse putImageExtractAsGifWithHttpInfo(String name, * @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 putImageExtractAsGifAsync(String name, String imageId, Integer width, Integer height, String storage, String folder, String destFolder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call putImageExtractAsTiffAsync(String name, String imageId, Integer width, Integer height, String storage, String folder, String destFolder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -34923,45 +38423,35 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = putImageExtractAsGifValidateBeforeCall(name, imageId, width, height, storage, folder, destFolder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = putImageExtractAsTiffValidateBeforeCall(name, imageId, width, height, storage, folder, destFolder, progressListener, progressRequestListener); Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for putImageExtractAsJpeg + * Build call for putImageInStorageToPdf * @param name The document name. (required) - * @param imageId Image ID. (required) - * @param width The converted image width. (optional) - * @param height The converted image height. (optional) + * @param imageTemplates ImageTemplatesRequestImage templates (required) + * @param dstFolder The destination document folder. (optional) * @param storage The document storage. (optional) - * @param folder The document folder. (optional) - * @param destFolder 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 putImageExtractAsJpegCall(String name, String imageId, Integer width, Integer height, String storage, String folder, String destFolder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = null; + public com.squareup.okhttp.Call putImageInStorageToPdfCall(String name, ImageTemplatesRequest imageTemplates, String dstFolder, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = imageTemplates; // create path and map variables - String localVarPath = "/pdf/{name}/images/{imageId}/extract/jpeg" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "imageId" + "\\}", apiClient.escapeString(imageId.toString())); + String localVarPath = "/pdf/{name}/create/images" + .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.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 (dstFolder != null) + localVarQueryParams.addAll(apiClient.parameterToPair("dstFolder", dstFolder)); if (storage != null) localVarQueryParams.addAll(apiClient.parameterToPair("storage", storage)); - if (folder != null) - localVarQueryParams.addAll(apiClient.parameterToPair("folder", folder)); - if (destFolder != null) - localVarQueryParams.addAll(apiClient.parameterToPair("destFolder", destFolder)); Map localVarHeaderParams = new HashMap(); @@ -34991,54 +38481,51 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call putImageExtractAsJpegValidateBeforeCall(String name, String imageId, Integer width, Integer height, String storage, String folder, String destFolder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call putImageInStorageToPdfValidateBeforeCall(String name, ImageTemplatesRequest imageTemplates, String dstFolder, 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 putImageExtractAsJpeg(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling putImageInStorageToPdf(Async)"); } - // verify the required parameter 'imageId' is set - if (imageId == null) { - throw new ApiException("Missing the required parameter 'imageId' when calling putImageExtractAsJpeg(Async)"); + // verify the required parameter 'imageTemplates' is set + if (imageTemplates == null) { + throw new ApiException("Missing the required parameter 'imageTemplates' when calling putImageInStorageToPdf(Async)"); } - com.squareup.okhttp.Call call = putImageExtractAsJpegCall(name, imageId, width, height, storage, folder, destFolder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = putImageInStorageToPdfCall(name, imageTemplates, dstFolder, storage, progressListener, progressRequestListener); return call; } /** - * Extract document image in JPEG format to folder + * Convert image file (located on storage) to PDF format and upload resulting file to storage. * * @param name The document name. (required) - * @param imageId Image ID. (required) - * @param width The converted image width. (optional) - * @param height The converted image height. (optional) + * @param imageTemplates ImageTemplatesRequestImage templates (required) + * @param dstFolder The destination document folder. (optional) * @param storage The document storage. (optional) - * @param folder The document folder. (optional) - * @param destFolder 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 AsposeResponse putImageExtractAsJpeg(String name, String imageId, Integer width, Integer height, String storage, String folder, String destFolder) throws ApiException { + public AsposeResponse putImageInStorageToPdf(String name, ImageTemplatesRequest imageTemplates, String dstFolder, String storage) throws ApiException { try { - ApiResponse resp = putImageExtractAsJpegWithHttpInfo(name, imageId, width, height, storage, folder, destFolder); + ApiResponse resp = putImageInStorageToPdfWithHttpInfo(name, imageTemplates, dstFolder, storage); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = putImageExtractAsJpegWithHttpInfo(name, imageId, width, height, storage, folder, destFolder); + apiClient.requestToken(); + ApiResponse resp = putImageInStorageToPdfWithHttpInfo(name, imageTemplates, dstFolder, storage); return resp.getData(); } throw ex; @@ -35046,39 +38533,33 @@ public AsposeResponse putImageExtractAsJpeg(String name, String imageId, Integer } /** - * Extract document image in JPEG format to folder + * Convert image file (located on storage) to PDF format and upload resulting file to storage. * * @param name The document name. (required) - * @param imageId Image ID. (required) - * @param width The converted image width. (optional) - * @param height The converted image height. (optional) + * @param imageTemplates ImageTemplatesRequestImage templates (required) + * @param dstFolder The destination document folder. (optional) * @param storage The document storage. (optional) - * @param folder The document folder. (optional) - * @param destFolder 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 putImageExtractAsJpegWithHttpInfo(String name, String imageId, Integer width, Integer height, String storage, String folder, String destFolder) throws ApiException { - com.squareup.okhttp.Call call = putImageExtractAsJpegValidateBeforeCall(name, imageId, width, height, storage, folder, destFolder, null, null); + public ApiResponse putImageInStorageToPdfWithHttpInfo(String name, ImageTemplatesRequest imageTemplates, String dstFolder, String storage) throws ApiException { + com.squareup.okhttp.Call call = putImageInStorageToPdfValidateBeforeCall(name, imageTemplates, dstFolder, storage, null, null); Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Extract document image in JPEG format to folder (asynchronously) + * Convert image file (located on storage) to PDF format and upload resulting file to storage. (asynchronously) * * @param name The document name. (required) - * @param imageId Image ID. (required) - * @param width The converted image width. (optional) - * @param height The converted image height. (optional) + * @param imageTemplates ImageTemplatesRequestImage templates (required) + * @param dstFolder The destination document folder. (optional) * @param storage The document storage. (optional) - * @param folder The document folder. (optional) - * @param destFolder 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 putImageExtractAsJpegAsync(String name, String imageId, Integer width, Integer height, String storage, String folder, String destFolder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call putImageInStorageToPdfAsync(String name, ImageTemplatesRequest imageTemplates, String dstFolder, String storage, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -35099,17 +38580,17 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = putImageExtractAsJpegValidateBeforeCall(name, imageId, width, height, storage, folder, destFolder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = putImageInStorageToPdfValidateBeforeCall(name, imageTemplates, dstFolder, storage, progressListener, progressRequestListener); Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for putImageExtractAsPng + * Build call for putImagesExtractAsGif * @param name The document name. (required) - * @param imageId Image ID. (required) - * @param width The converted image width. (optional) - * @param height The converted image height. (optional) + * @param pageNumber The page number. (required) + * @param width The converted image width. (optional, default to 0) + * @param height The converted image height. (optional, default to 0) * @param storage The document storage. (optional) * @param folder The document folder. (optional) * @param destFolder The document folder. (optional) @@ -35118,13 +38599,13 @@ 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 putImageExtractAsPngCall(String name, String imageId, Integer width, Integer height, String storage, String folder, String destFolder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call putImagesExtractAsGifCall(String name, Integer pageNumber, Integer width, Integer height, String storage, String folder, String destFolder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; // create path and map variables - String localVarPath = "/pdf/{name}/images/{imageId}/extract/png" + String localVarPath = "/pdf/{name}/pages/{pageNumber}/images/extract/gif" .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "imageId" + "\\}", apiClient.escapeString(imageId.toString())); + .replaceAll("\\{" + "pageNumber" + "\\}", apiClient.escapeString(pageNumber.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -35167,54 +38648,54 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call putImageExtractAsPngValidateBeforeCall(String name, String imageId, Integer width, Integer height, String storage, String folder, String destFolder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call putImagesExtractAsGifValidateBeforeCall(String name, Integer pageNumber, Integer width, Integer height, String storage, String folder, String destFolder, 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 putImageExtractAsPng(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling putImagesExtractAsGif(Async)"); } - // verify the required parameter 'imageId' is set - if (imageId == null) { - throw new ApiException("Missing the required parameter 'imageId' when calling putImageExtractAsPng(Async)"); + // verify the required parameter 'pageNumber' is set + if (pageNumber == null) { + throw new ApiException("Missing the required parameter 'pageNumber' when calling putImagesExtractAsGif(Async)"); } - com.squareup.okhttp.Call call = putImageExtractAsPngCall(name, imageId, width, height, storage, folder, destFolder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = putImagesExtractAsGifCall(name, pageNumber, width, height, storage, folder, destFolder, progressListener, progressRequestListener); return call; } /** - * Extract document image in PNG format to folder + * Extract document images in GIF format to folder. * * @param name The document name. (required) - * @param imageId Image ID. (required) - * @param width The converted image width. (optional) - * @param height The converted image height. (optional) + * @param pageNumber The page number. (required) + * @param width The converted image width. (optional, default to 0) + * @param height The converted image height. (optional, default to 0) * @param storage The document storage. (optional) * @param folder The document folder. (optional) * @param destFolder 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 AsposeResponse putImageExtractAsPng(String name, String imageId, Integer width, Integer height, String storage, String folder, String destFolder) throws ApiException { + public AsposeResponse putImagesExtractAsGif(String name, Integer pageNumber, Integer width, Integer height, String storage, String folder, String destFolder) throws ApiException { try { - ApiResponse resp = putImageExtractAsPngWithHttpInfo(name, imageId, width, height, storage, folder, destFolder); + ApiResponse resp = putImagesExtractAsGifWithHttpInfo(name, pageNumber, width, height, storage, folder, destFolder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = putImageExtractAsPngWithHttpInfo(name, imageId, width, height, storage, folder, destFolder); + apiClient.requestToken(); + ApiResponse resp = putImagesExtractAsGifWithHttpInfo(name, pageNumber, width, height, storage, folder, destFolder); return resp.getData(); } throw ex; @@ -35222,31 +38703,31 @@ public AsposeResponse putImageExtractAsPng(String name, String imageId, Integer } /** - * Extract document image in PNG format to folder + * Extract document images in GIF format to folder. * * @param name The document name. (required) - * @param imageId Image ID. (required) - * @param width The converted image width. (optional) - * @param height The converted image height. (optional) + * @param pageNumber The page number. (required) + * @param width The converted image width. (optional, default to 0) + * @param height The converted image height. (optional, default to 0) * @param storage The document storage. (optional) * @param folder The document folder. (optional) * @param destFolder 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 putImageExtractAsPngWithHttpInfo(String name, String imageId, Integer width, Integer height, String storage, String folder, String destFolder) throws ApiException { - com.squareup.okhttp.Call call = putImageExtractAsPngValidateBeforeCall(name, imageId, width, height, storage, folder, destFolder, null, null); + public ApiResponse putImagesExtractAsGifWithHttpInfo(String name, Integer pageNumber, Integer width, Integer height, String storage, String folder, String destFolder) throws ApiException { + com.squareup.okhttp.Call call = putImagesExtractAsGifValidateBeforeCall(name, pageNumber, width, height, storage, folder, destFolder, null, null); Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Extract document image in PNG format to folder (asynchronously) + * Extract document images in GIF format to folder. (asynchronously) * * @param name The document name. (required) - * @param imageId Image ID. (required) - * @param width The converted image width. (optional) - * @param height The converted image height. (optional) + * @param pageNumber The page number. (required) + * @param width The converted image width. (optional, default to 0) + * @param height The converted image height. (optional, default to 0) * @param storage The document storage. (optional) * @param folder The document folder. (optional) * @param destFolder The document folder. (optional) @@ -35254,7 +38735,7 @@ public ApiResponse putImageExtractAsPngWithHttpInfo(String name, * @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 putImageExtractAsPngAsync(String name, String imageId, Integer width, Integer height, String storage, String folder, String destFolder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call putImagesExtractAsGifAsync(String name, Integer pageNumber, Integer width, Integer height, String storage, String folder, String destFolder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -35275,17 +38756,17 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = putImageExtractAsPngValidateBeforeCall(name, imageId, width, height, storage, folder, destFolder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = putImagesExtractAsGifValidateBeforeCall(name, pageNumber, width, height, storage, folder, destFolder, progressListener, progressRequestListener); Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for putImageExtractAsTiff + * Build call for putImagesExtractAsJpeg * @param name The document name. (required) - * @param imageId Image ID. (required) - * @param width The converted image width. (optional) - * @param height The converted image height. (optional) + * @param pageNumber The page number. (required) + * @param width The converted image width. (optional, default to 0) + * @param height The converted image height. (optional, default to 0) * @param storage The document storage. (optional) * @param folder The document folder. (optional) * @param destFolder The document folder. (optional) @@ -35294,13 +38775,13 @@ 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 putImageExtractAsTiffCall(String name, String imageId, Integer width, Integer height, String storage, String folder, String destFolder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call putImagesExtractAsJpegCall(String name, Integer pageNumber, Integer width, Integer height, String storage, String folder, String destFolder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; // create path and map variables - String localVarPath = "/pdf/{name}/images/{imageId}/extract/tiff" + String localVarPath = "/pdf/{name}/pages/{pageNumber}/images/extract/jpeg" .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "imageId" + "\\}", apiClient.escapeString(imageId.toString())); + .replaceAll("\\{" + "pageNumber" + "\\}", apiClient.escapeString(pageNumber.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -35343,54 +38824,54 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call putImageExtractAsTiffValidateBeforeCall(String name, String imageId, Integer width, Integer height, String storage, String folder, String destFolder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call putImagesExtractAsJpegValidateBeforeCall(String name, Integer pageNumber, Integer width, Integer height, String storage, String folder, String destFolder, 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 putImageExtractAsTiff(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling putImagesExtractAsJpeg(Async)"); } - // verify the required parameter 'imageId' is set - if (imageId == null) { - throw new ApiException("Missing the required parameter 'imageId' when calling putImageExtractAsTiff(Async)"); + // verify the required parameter 'pageNumber' is set + if (pageNumber == null) { + throw new ApiException("Missing the required parameter 'pageNumber' when calling putImagesExtractAsJpeg(Async)"); } - com.squareup.okhttp.Call call = putImageExtractAsTiffCall(name, imageId, width, height, storage, folder, destFolder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = putImagesExtractAsJpegCall(name, pageNumber, width, height, storage, folder, destFolder, progressListener, progressRequestListener); return call; } /** - * Extract document image in TIFF format to folder + * Extract document images in JPEG format to folder. * * @param name The document name. (required) - * @param imageId Image ID. (required) - * @param width The converted image width. (optional) - * @param height The converted image height. (optional) + * @param pageNumber The page number. (required) + * @param width The converted image width. (optional, default to 0) + * @param height The converted image height. (optional, default to 0) * @param storage The document storage. (optional) * @param folder The document folder. (optional) * @param destFolder 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 AsposeResponse putImageExtractAsTiff(String name, String imageId, Integer width, Integer height, String storage, String folder, String destFolder) throws ApiException { + public AsposeResponse putImagesExtractAsJpeg(String name, Integer pageNumber, Integer width, Integer height, String storage, String folder, String destFolder) throws ApiException { try { - ApiResponse resp = putImageExtractAsTiffWithHttpInfo(name, imageId, width, height, storage, folder, destFolder); + ApiResponse resp = putImagesExtractAsJpegWithHttpInfo(name, pageNumber, width, height, storage, folder, destFolder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = putImageExtractAsTiffWithHttpInfo(name, imageId, width, height, storage, folder, destFolder); + apiClient.requestToken(); + ApiResponse resp = putImagesExtractAsJpegWithHttpInfo(name, pageNumber, width, height, storage, folder, destFolder); return resp.getData(); } throw ex; @@ -35398,31 +38879,31 @@ public AsposeResponse putImageExtractAsTiff(String name, String imageId, Integer } /** - * Extract document image in TIFF format to folder + * Extract document images in JPEG format to folder. * * @param name The document name. (required) - * @param imageId Image ID. (required) - * @param width The converted image width. (optional) - * @param height The converted image height. (optional) + * @param pageNumber The page number. (required) + * @param width The converted image width. (optional, default to 0) + * @param height The converted image height. (optional, default to 0) * @param storage The document storage. (optional) * @param folder The document folder. (optional) * @param destFolder 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 putImageExtractAsTiffWithHttpInfo(String name, String imageId, Integer width, Integer height, String storage, String folder, String destFolder) throws ApiException { - com.squareup.okhttp.Call call = putImageExtractAsTiffValidateBeforeCall(name, imageId, width, height, storage, folder, destFolder, null, null); + public ApiResponse putImagesExtractAsJpegWithHttpInfo(String name, Integer pageNumber, Integer width, Integer height, String storage, String folder, String destFolder) throws ApiException { + com.squareup.okhttp.Call call = putImagesExtractAsJpegValidateBeforeCall(name, pageNumber, width, height, storage, folder, destFolder, null, null); Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Extract document image in TIFF format to folder (asynchronously) + * Extract document images in JPEG format to folder. (asynchronously) * * @param name The document name. (required) - * @param imageId Image ID. (required) - * @param width The converted image width. (optional) - * @param height The converted image height. (optional) + * @param pageNumber The page number. (required) + * @param width The converted image width. (optional, default to 0) + * @param height The converted image height. (optional, default to 0) * @param storage The document storage. (optional) * @param folder The document folder. (optional) * @param destFolder The document folder. (optional) @@ -35430,7 +38911,7 @@ public ApiResponse putImageExtractAsTiffWithHttpInfo(String name * @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 putImageExtractAsTiffAsync(String name, String imageId, Integer width, Integer height, String storage, String folder, String destFolder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call putImagesExtractAsJpegAsync(String name, Integer pageNumber, Integer width, Integer height, String storage, String folder, String destFolder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -35451,35 +38932,45 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = putImageExtractAsTiffValidateBeforeCall(name, imageId, width, height, storage, folder, destFolder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = putImagesExtractAsJpegValidateBeforeCall(name, pageNumber, width, height, storage, folder, destFolder, progressListener, progressRequestListener); Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for putImageInStorageToPdf + * Build call for putImagesExtractAsPng * @param name The document name. (required) - * @param imageTemplates Image templates (required) - * @param dstFolder The destination document folder. (optional) + * @param pageNumber The page number. (required) + * @param width The converted image width. (optional, default to 0) + * @param height The converted image height. (optional, default to 0) * @param storage The document storage. (optional) + * @param folder The document folder. (optional) + * @param destFolder 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 putImageInStorageToPdfCall(String name, ImageTemplatesRequest imageTemplates, String dstFolder, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = imageTemplates; + public com.squareup.okhttp.Call putImagesExtractAsPngCall(String name, Integer pageNumber, Integer width, Integer height, String storage, String folder, String destFolder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; // create path and map variables - String localVarPath = "/pdf/{name}/create/images" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + String localVarPath = "/pdf/{name}/pages/{pageNumber}/images/extract/png" + .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) + .replaceAll("\\{" + "pageNumber" + "\\}", apiClient.escapeString(pageNumber.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (dstFolder != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dstFolder", dstFolder)); + if (width != null) + localVarQueryParams.addAll(apiClient.parameterToPair("width", width)); + if (height != null) + localVarQueryParams.addAll(apiClient.parameterToPair("height", height)); if (storage != null) localVarQueryParams.addAll(apiClient.parameterToPair("storage", storage)); + if (folder != null) + localVarQueryParams.addAll(apiClient.parameterToPair("folder", folder)); + if (destFolder != null) + localVarQueryParams.addAll(apiClient.parameterToPair("destFolder", destFolder)); Map localVarHeaderParams = new HashMap(); @@ -35509,51 +39000,54 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call putImageInStorageToPdfValidateBeforeCall(String name, ImageTemplatesRequest imageTemplates, String dstFolder, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call putImagesExtractAsPngValidateBeforeCall(String name, Integer pageNumber, Integer width, Integer height, String storage, String folder, String destFolder, 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 putImageInStorageToPdf(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling putImagesExtractAsPng(Async)"); } - // verify the required parameter 'imageTemplates' is set - if (imageTemplates == null) { - throw new ApiException("Missing the required parameter 'imageTemplates' when calling putImageInStorageToPdf(Async)"); + // verify the required parameter 'pageNumber' is set + if (pageNumber == null) { + throw new ApiException("Missing the required parameter 'pageNumber' when calling putImagesExtractAsPng(Async)"); } - com.squareup.okhttp.Call call = putImageInStorageToPdfCall(name, imageTemplates, dstFolder, storage, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = putImagesExtractAsPngCall(name, pageNumber, width, height, storage, folder, destFolder, progressListener, progressRequestListener); return call; } /** - * Convert image file (located on storage) to PDF format and upload resulting file to storage. + * Extract document images in PNG format to folder. * * @param name The document name. (required) - * @param imageTemplates Image templates (required) - * @param dstFolder The destination document folder. (optional) + * @param pageNumber The page number. (required) + * @param width The converted image width. (optional, default to 0) + * @param height The converted image height. (optional, default to 0) * @param storage The document storage. (optional) + * @param folder The document folder. (optional) + * @param destFolder 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 AsposeResponse putImageInStorageToPdf(String name, ImageTemplatesRequest imageTemplates, String dstFolder, String storage) throws ApiException { + public AsposeResponse putImagesExtractAsPng(String name, Integer pageNumber, Integer width, Integer height, String storage, String folder, String destFolder) throws ApiException { try { - ApiResponse resp = putImageInStorageToPdfWithHttpInfo(name, imageTemplates, dstFolder, storage); + ApiResponse resp = putImagesExtractAsPngWithHttpInfo(name, pageNumber, width, height, storage, folder, destFolder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = putImageInStorageToPdfWithHttpInfo(name, imageTemplates, dstFolder, storage); + apiClient.requestToken(); + ApiResponse resp = putImagesExtractAsPngWithHttpInfo(name, pageNumber, width, height, storage, folder, destFolder); return resp.getData(); } throw ex; @@ -35561,33 +39055,39 @@ public AsposeResponse putImageInStorageToPdf(String name, ImageTemplatesRequest } /** - * Convert image file (located on storage) to PDF format and upload resulting file to storage. + * Extract document images in PNG format to folder. * * @param name The document name. (required) - * @param imageTemplates Image templates (required) - * @param dstFolder The destination document folder. (optional) + * @param pageNumber The page number. (required) + * @param width The converted image width. (optional, default to 0) + * @param height The converted image height. (optional, default to 0) * @param storage The document storage. (optional) + * @param folder The document folder. (optional) + * @param destFolder 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 putImageInStorageToPdfWithHttpInfo(String name, ImageTemplatesRequest imageTemplates, String dstFolder, String storage) throws ApiException { - com.squareup.okhttp.Call call = putImageInStorageToPdfValidateBeforeCall(name, imageTemplates, dstFolder, storage, null, null); + public ApiResponse putImagesExtractAsPngWithHttpInfo(String name, Integer pageNumber, Integer width, Integer height, String storage, String folder, String destFolder) throws ApiException { + com.squareup.okhttp.Call call = putImagesExtractAsPngValidateBeforeCall(name, pageNumber, width, height, storage, folder, destFolder, null, null); Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Convert image file (located on storage) to PDF format and upload resulting file to storage. (asynchronously) + * Extract document images in PNG format to folder. (asynchronously) * * @param name The document name. (required) - * @param imageTemplates Image templates (required) - * @param dstFolder The destination document folder. (optional) + * @param pageNumber The page number. (required) + * @param width The converted image width. (optional, default to 0) + * @param height The converted image height. (optional, default to 0) * @param storage The document storage. (optional) + * @param folder The document folder. (optional) + * @param destFolder 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 putImageInStorageToPdfAsync(String name, ImageTemplatesRequest imageTemplates, String dstFolder, String storage, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call putImagesExtractAsPngAsync(String name, Integer pageNumber, Integer width, Integer height, String storage, String folder, String destFolder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -35608,17 +39108,17 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = putImageInStorageToPdfValidateBeforeCall(name, imageTemplates, dstFolder, storage, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = putImagesExtractAsPngValidateBeforeCall(name, pageNumber, width, height, storage, folder, destFolder, progressListener, progressRequestListener); Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for putImagesExtractAsGif + * Build call for putImagesExtractAsTiff * @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 width The converted image width. (optional, default to 0) + * @param height The converted image height. (optional, default to 0) * @param storage The document storage. (optional) * @param folder The document folder. (optional) * @param destFolder The document folder. (optional) @@ -35627,11 +39127,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 putImagesExtractAsGifCall(String name, Integer pageNumber, Integer width, Integer height, String storage, String folder, String destFolder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call putImagesExtractAsTiffCall(String name, Integer pageNumber, Integer width, Integer height, String storage, String folder, String destFolder, 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/extract/gif" + String localVarPath = "/pdf/{name}/pages/{pageNumber}/images/extract/tiff" .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) .replaceAll("\\{" + "pageNumber" + "\\}", apiClient.escapeString(pageNumber.toString())); @@ -35676,54 +39176,54 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call putImagesExtractAsGifValidateBeforeCall(String name, Integer pageNumber, Integer width, Integer height, String storage, String folder, String destFolder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call putImagesExtractAsTiffValidateBeforeCall(String name, Integer pageNumber, Integer width, Integer height, String storage, String folder, String destFolder, 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 putImagesExtractAsGif(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling putImagesExtractAsTiff(Async)"); } // verify the required parameter 'pageNumber' is set if (pageNumber == null) { - throw new ApiException("Missing the required parameter 'pageNumber' when calling putImagesExtractAsGif(Async)"); + throw new ApiException("Missing the required parameter 'pageNumber' when calling putImagesExtractAsTiff(Async)"); } - com.squareup.okhttp.Call call = putImagesExtractAsGifCall(name, pageNumber, width, height, storage, folder, destFolder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = putImagesExtractAsTiffCall(name, pageNumber, width, height, storage, folder, destFolder, progressListener, progressRequestListener); return call; } /** - * Extract document images in GIF format to folder. + * Extract document images in TIFF format to folder. * * @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 width The converted image width. (optional, default to 0) + * @param height The converted image height. (optional, default to 0) * @param storage The document storage. (optional) * @param folder The document folder. (optional) * @param destFolder 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 AsposeResponse putImagesExtractAsGif(String name, Integer pageNumber, Integer width, Integer height, String storage, String folder, String destFolder) throws ApiException { + public AsposeResponse putImagesExtractAsTiff(String name, Integer pageNumber, Integer width, Integer height, String storage, String folder, String destFolder) throws ApiException { try { - ApiResponse resp = putImagesExtractAsGifWithHttpInfo(name, pageNumber, width, height, storage, folder, destFolder); + ApiResponse resp = putImagesExtractAsTiffWithHttpInfo(name, pageNumber, width, height, storage, folder, destFolder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = putImagesExtractAsGifWithHttpInfo(name, pageNumber, width, height, storage, folder, destFolder); + apiClient.requestToken(); + ApiResponse resp = putImagesExtractAsTiffWithHttpInfo(name, pageNumber, width, height, storage, folder, destFolder); return resp.getData(); } throw ex; @@ -35731,31 +39231,31 @@ public AsposeResponse putImagesExtractAsGif(String name, Integer pageNumber, Int } /** - * Extract document images in GIF format to folder. + * Extract document images in TIFF format to folder. * * @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 width The converted image width. (optional, default to 0) + * @param height The converted image height. (optional, default to 0) * @param storage The document storage. (optional) * @param folder The document folder. (optional) * @param destFolder 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 putImagesExtractAsGifWithHttpInfo(String name, Integer pageNumber, Integer width, Integer height, String storage, String folder, String destFolder) throws ApiException { - com.squareup.okhttp.Call call = putImagesExtractAsGifValidateBeforeCall(name, pageNumber, width, height, storage, folder, destFolder, null, null); + public ApiResponse putImagesExtractAsTiffWithHttpInfo(String name, Integer pageNumber, Integer width, Integer height, String storage, String folder, String destFolder) throws ApiException { + com.squareup.okhttp.Call call = putImagesExtractAsTiffValidateBeforeCall(name, pageNumber, width, height, storage, folder, destFolder, null, null); Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Extract document images in GIF format to folder. (asynchronously) + * Extract document images in TIFF format to folder. (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 width The converted image width. (optional, default to 0) + * @param height The converted image height. (optional, default to 0) * @param storage The document storage. (optional) * @param folder The document folder. (optional) * @param destFolder The document folder. (optional) @@ -35763,7 +39263,7 @@ public ApiResponse putImagesExtractAsGifWithHttpInfo(String name * @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 putImagesExtractAsGifAsync(String name, Integer pageNumber, Integer width, Integer height, String storage, String folder, String destFolder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call putImagesExtractAsTiffAsync(String name, Integer pageNumber, Integer width, Integer height, String storage, String folder, String destFolder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -35784,45 +39284,37 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = putImagesExtractAsGifValidateBeforeCall(name, pageNumber, width, height, storage, folder, destFolder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = putImagesExtractAsTiffValidateBeforeCall(name, pageNumber, width, height, storage, folder, destFolder, progressListener, progressRequestListener); Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for putImagesExtractAsJpeg + * Build call for putImportFieldsFromFdfInStorage * @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 storage (optional) + * @param fdfFilePath The Fdf file path. (required) + * @param storage The document storage. (optional) * @param folder The document folder. (optional) - * @param destFolder 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 putImagesExtractAsJpegCall(String name, Integer pageNumber, Integer width, Integer height, String storage, String folder, String destFolder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call putImportFieldsFromFdfInStorageCall(String name, String fdfFilePath, 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}/images/extract/jpeg" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "pageNumber" + "\\}", apiClient.escapeString(pageNumber.toString())); + String localVarPath = "/pdf/{name}/import/fdf" + .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.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 (fdfFilePath != null) + localVarQueryParams.addAll(apiClient.parameterToPair("fdfFilePath", fdfFilePath)); if (storage != null) localVarQueryParams.addAll(apiClient.parameterToPair("storage", storage)); if (folder != null) localVarQueryParams.addAll(apiClient.parameterToPair("folder", folder)); - if (destFolder != null) - localVarQueryParams.addAll(apiClient.parameterToPair("destFolder", destFolder)); Map localVarHeaderParams = new HashMap(); @@ -35852,54 +39344,51 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call putImagesExtractAsJpegValidateBeforeCall(String name, Integer pageNumber, Integer width, Integer height, String storage, String folder, String destFolder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call putImportFieldsFromFdfInStorageValidateBeforeCall(String name, String fdfFilePath, 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 putImagesExtractAsJpeg(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling putImportFieldsFromFdfInStorage(Async)"); } - // verify the required parameter 'pageNumber' is set - if (pageNumber == null) { - throw new ApiException("Missing the required parameter 'pageNumber' when calling putImagesExtractAsJpeg(Async)"); + // verify the required parameter 'fdfFilePath' is set + if (fdfFilePath == null) { + throw new ApiException("Missing the required parameter 'fdfFilePath' when calling putImportFieldsFromFdfInStorage(Async)"); } - com.squareup.okhttp.Call call = putImagesExtractAsJpegCall(name, pageNumber, width, height, storage, folder, destFolder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = putImportFieldsFromFdfInStorageCall(name, fdfFilePath, storage, folder, progressListener, progressRequestListener); return call; } /** - * Extract document images in JPEG format to folder. + * Update fields from FDF file in storage. * * @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 storage (optional) + * @param fdfFilePath The Fdf file path. (required) + * @param storage The document storage. (optional) * @param folder The document folder. (optional) - * @param destFolder 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 AsposeResponse putImagesExtractAsJpeg(String name, Integer pageNumber, Integer width, Integer height, String storage, String folder, String destFolder) throws ApiException { + public AsposeResponse putImportFieldsFromFdfInStorage(String name, String fdfFilePath, String storage, String folder) throws ApiException { try { - ApiResponse resp = putImagesExtractAsJpegWithHttpInfo(name, pageNumber, width, height, storage, folder, destFolder); + ApiResponse resp = putImportFieldsFromFdfInStorageWithHttpInfo(name, fdfFilePath, storage, folder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = putImagesExtractAsJpegWithHttpInfo(name, pageNumber, width, height, storage, folder, destFolder); + apiClient.requestToken(); + ApiResponse resp = putImportFieldsFromFdfInStorageWithHttpInfo(name, fdfFilePath, storage, folder); return resp.getData(); } throw ex; @@ -35907,39 +39396,33 @@ public AsposeResponse putImagesExtractAsJpeg(String name, Integer pageNumber, In } /** - * Extract document images in JPEG format to folder. + * Update fields from FDF file in storage. * * @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 storage (optional) + * @param fdfFilePath The Fdf file path. (required) + * @param storage The document storage. (optional) * @param folder The document folder. (optional) - * @param destFolder 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 putImagesExtractAsJpegWithHttpInfo(String name, Integer pageNumber, Integer width, Integer height, String storage, String folder, String destFolder) throws ApiException { - com.squareup.okhttp.Call call = putImagesExtractAsJpegValidateBeforeCall(name, pageNumber, width, height, storage, folder, destFolder, null, null); + public ApiResponse putImportFieldsFromFdfInStorageWithHttpInfo(String name, String fdfFilePath, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = putImportFieldsFromFdfInStorageValidateBeforeCall(name, fdfFilePath, storage, folder, null, null); Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Extract document images in JPEG format to folder. (asynchronously) + * Update fields from FDF file in storage. (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 storage (optional) + * @param fdfFilePath The Fdf file path. (required) + * @param storage The document storage. (optional) * @param folder The document folder. (optional) - * @param destFolder 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 putImagesExtractAsJpegAsync(String name, Integer pageNumber, Integer width, Integer height, String storage, String folder, String destFolder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call putImportFieldsFromFdfInStorageAsync(String name, String fdfFilePath, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -35960,45 +39443,37 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = putImagesExtractAsJpegValidateBeforeCall(name, pageNumber, width, height, storage, folder, destFolder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = putImportFieldsFromFdfInStorageValidateBeforeCall(name, fdfFilePath, storage, folder, progressListener, progressRequestListener); Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for putImagesExtractAsPng + * Build call for putImportFieldsFromXfdfInStorage * @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 xfdfFilePath The XFDF file path. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) - * @param destFolder 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 putImagesExtractAsPngCall(String name, Integer pageNumber, Integer width, Integer height, String storage, String folder, String destFolder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call putImportFieldsFromXfdfInStorageCall(String name, String xfdfFilePath, 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}/images/extract/png" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "pageNumber" + "\\}", apiClient.escapeString(pageNumber.toString())); + String localVarPath = "/pdf/{name}/import/xfdf" + .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.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 (xfdfFilePath != null) + localVarQueryParams.addAll(apiClient.parameterToPair("xfdfFilePath", xfdfFilePath)); if (storage != null) localVarQueryParams.addAll(apiClient.parameterToPair("storage", storage)); if (folder != null) localVarQueryParams.addAll(apiClient.parameterToPair("folder", folder)); - if (destFolder != null) - localVarQueryParams.addAll(apiClient.parameterToPair("destFolder", destFolder)); Map localVarHeaderParams = new HashMap(); @@ -36028,54 +39503,51 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call putImagesExtractAsPngValidateBeforeCall(String name, Integer pageNumber, Integer width, Integer height, String storage, String folder, String destFolder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call putImportFieldsFromXfdfInStorageValidateBeforeCall(String name, String xfdfFilePath, 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 putImagesExtractAsPng(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling putImportFieldsFromXfdfInStorage(Async)"); } - // verify the required parameter 'pageNumber' is set - if (pageNumber == null) { - throw new ApiException("Missing the required parameter 'pageNumber' when calling putImagesExtractAsPng(Async)"); + // verify the required parameter 'xfdfFilePath' is set + if (xfdfFilePath == null) { + throw new ApiException("Missing the required parameter 'xfdfFilePath' when calling putImportFieldsFromXfdfInStorage(Async)"); } - com.squareup.okhttp.Call call = putImagesExtractAsPngCall(name, pageNumber, width, height, storage, folder, destFolder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = putImportFieldsFromXfdfInStorageCall(name, xfdfFilePath, storage, folder, progressListener, progressRequestListener); return call; } /** - * Extract document images in PNG format to folder. + * Update fields from XFDF file in storage. * * @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 xfdfFilePath The XFDF file path. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) - * @param destFolder 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 AsposeResponse putImagesExtractAsPng(String name, Integer pageNumber, Integer width, Integer height, String storage, String folder, String destFolder) throws ApiException { + public AsposeResponse putImportFieldsFromXfdfInStorage(String name, String xfdfFilePath, String storage, String folder) throws ApiException { try { - ApiResponse resp = putImagesExtractAsPngWithHttpInfo(name, pageNumber, width, height, storage, folder, destFolder); + ApiResponse resp = putImportFieldsFromXfdfInStorageWithHttpInfo(name, xfdfFilePath, storage, folder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = putImagesExtractAsPngWithHttpInfo(name, pageNumber, width, height, storage, folder, destFolder); + apiClient.requestToken(); + ApiResponse resp = putImportFieldsFromXfdfInStorageWithHttpInfo(name, xfdfFilePath, storage, folder); return resp.getData(); } throw ex; @@ -36083,39 +39555,33 @@ public AsposeResponse putImagesExtractAsPng(String name, Integer pageNumber, Int } /** - * Extract document images in PNG format to folder. + * Update fields from XFDF file in storage. * * @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 xfdfFilePath The XFDF file path. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) - * @param destFolder 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 putImagesExtractAsPngWithHttpInfo(String name, Integer pageNumber, Integer width, Integer height, String storage, String folder, String destFolder) throws ApiException { - com.squareup.okhttp.Call call = putImagesExtractAsPngValidateBeforeCall(name, pageNumber, width, height, storage, folder, destFolder, null, null); + public ApiResponse putImportFieldsFromXfdfInStorageWithHttpInfo(String name, String xfdfFilePath, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = putImportFieldsFromXfdfInStorageValidateBeforeCall(name, xfdfFilePath, storage, folder, null, null); Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Extract document images in PNG format to folder. (asynchronously) + * Update fields from XFDF file in storage. (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 xfdfFilePath The XFDF file path. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) - * @param destFolder 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 putImagesExtractAsPngAsync(String name, Integer pageNumber, Integer width, Integer height, String storage, String folder, String destFolder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call putImportFieldsFromXfdfInStorageAsync(String name, String xfdfFilePath, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -36136,45 +39602,37 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = putImagesExtractAsPngValidateBeforeCall(name, pageNumber, width, height, storage, folder, destFolder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = putImportFieldsFromXfdfInStorageValidateBeforeCall(name, xfdfFilePath, storage, folder, progressListener, progressRequestListener); Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for putImagesExtractAsTiff + * Build call for putImportFieldsFromXmlInStorage * @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 xmlFilePath Full source filename (ex. /folder1/folder2/template.xml) (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) - * @param destFolder 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 putImagesExtractAsTiffCall(String name, Integer pageNumber, Integer width, Integer height, String storage, String folder, String destFolder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call putImportFieldsFromXmlInStorageCall(String name, String xmlFilePath, 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}/images/extract/tiff" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "pageNumber" + "\\}", apiClient.escapeString(pageNumber.toString())); + String localVarPath = "/pdf/{name}/import/xml" + .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.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 (xmlFilePath != null) + localVarQueryParams.addAll(apiClient.parameterToPair("xmlFilePath", xmlFilePath)); if (storage != null) localVarQueryParams.addAll(apiClient.parameterToPair("storage", storage)); if (folder != null) localVarQueryParams.addAll(apiClient.parameterToPair("folder", folder)); - if (destFolder != null) - localVarQueryParams.addAll(apiClient.parameterToPair("destFolder", destFolder)); Map localVarHeaderParams = new HashMap(); @@ -36204,54 +39662,51 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call putImagesExtractAsTiffValidateBeforeCall(String name, Integer pageNumber, Integer width, Integer height, String storage, String folder, String destFolder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call putImportFieldsFromXmlInStorageValidateBeforeCall(String name, String xmlFilePath, 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 putImagesExtractAsTiff(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling putImportFieldsFromXmlInStorage(Async)"); } - // verify the required parameter 'pageNumber' is set - if (pageNumber == null) { - throw new ApiException("Missing the required parameter 'pageNumber' when calling putImagesExtractAsTiff(Async)"); + // verify the required parameter 'xmlFilePath' is set + if (xmlFilePath == null) { + throw new ApiException("Missing the required parameter 'xmlFilePath' when calling putImportFieldsFromXmlInStorage(Async)"); } - com.squareup.okhttp.Call call = putImagesExtractAsTiffCall(name, pageNumber, width, height, storage, folder, destFolder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = putImportFieldsFromXmlInStorageCall(name, xmlFilePath, storage, folder, progressListener, progressRequestListener); return call; } /** - * Extract document images in TIFF format to folder. + * Update fields from XML file in storage. * * @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 xmlFilePath Full source filename (ex. /folder1/folder2/template.xml) (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) - * @param destFolder 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 AsposeResponse putImagesExtractAsTiff(String name, Integer pageNumber, Integer width, Integer height, String storage, String folder, String destFolder) throws ApiException { + public AsposeResponse putImportFieldsFromXmlInStorage(String name, String xmlFilePath, String storage, String folder) throws ApiException { try { - ApiResponse resp = putImagesExtractAsTiffWithHttpInfo(name, pageNumber, width, height, storage, folder, destFolder); + ApiResponse resp = putImportFieldsFromXmlInStorageWithHttpInfo(name, xmlFilePath, storage, folder); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = putImagesExtractAsTiffWithHttpInfo(name, pageNumber, width, height, storage, folder, destFolder); + apiClient.requestToken(); + ApiResponse resp = putImportFieldsFromXmlInStorageWithHttpInfo(name, xmlFilePath, storage, folder); return resp.getData(); } throw ex; @@ -36259,39 +39714,33 @@ public AsposeResponse putImagesExtractAsTiff(String name, Integer pageNumber, In } /** - * Extract document images in TIFF format to folder. + * Update fields from XML file in storage. * * @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 xmlFilePath Full source filename (ex. /folder1/folder2/template.xml) (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) - * @param destFolder 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 putImagesExtractAsTiffWithHttpInfo(String name, Integer pageNumber, Integer width, Integer height, String storage, String folder, String destFolder) throws ApiException { - com.squareup.okhttp.Call call = putImagesExtractAsTiffValidateBeforeCall(name, pageNumber, width, height, storage, folder, destFolder, null, null); + public ApiResponse putImportFieldsFromXmlInStorageWithHttpInfo(String name, String xmlFilePath, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = putImportFieldsFromXmlInStorageValidateBeforeCall(name, xmlFilePath, storage, folder, null, null); Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Extract document images in TIFF format to folder. (asynchronously) + * Update fields from XML file in storage. (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 xmlFilePath Full source filename (ex. /folder1/folder2/template.xml) (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) - * @param destFolder 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 putImagesExtractAsTiffAsync(String name, Integer pageNumber, Integer width, Integer height, String storage, String folder, String destFolder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call putImportFieldsFromXmlInStorageAsync(String name, String xmlFilePath, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -36312,7 +39761,7 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = putImagesExtractAsTiffValidateBeforeCall(name, pageNumber, width, height, storage, folder, destFolder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = putImportFieldsFromXmlInStorageValidateBeforeCall(name, xmlFilePath, storage, folder, progressListener, progressRequestListener); Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; @@ -36372,7 +39821,7 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @@ -36421,7 +39870,7 @@ public InkAnnotationResponse putInkAnnotation(String name, String annotationId, { if (ex.getCode() == 401) { - apiClient.refreshToken(); + apiClient.requestToken(); ApiResponse resp = putInkAnnotationWithHttpInfo(name, annotationId, annotation, storage, folder); return resp.getData(); } @@ -36539,7 +39988,7 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @@ -36582,7 +40031,7 @@ public AsposeResponse putLaTeXInStorageToPdf(String name, String srcPath, String { if (ex.getCode() == 401) { - apiClient.refreshToken(); + apiClient.requestToken(); ApiResponse resp = putLaTeXInStorageToPdfWithHttpInfo(name, srcPath, dstFolder, storage); return resp.getData(); } @@ -36698,7 +40147,7 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @@ -36747,7 +40196,7 @@ public LineAnnotationResponse putLineAnnotation(String name, String annotationId { if (ex.getCode() == 401) { - apiClient.refreshToken(); + apiClient.requestToken(); ApiResponse resp = putLineAnnotationWithHttpInfo(name, annotationId, annotation, storage, folder); return resp.getData(); } @@ -36865,7 +40314,7 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @@ -36914,7 +40363,7 @@ public LinkAnnotationResponse putLinkAnnotation(String name, String linkId, Link { if (ex.getCode() == 401) { - apiClient.refreshToken(); + apiClient.requestToken(); ApiResponse resp = putLinkAnnotationWithHttpInfo(name, linkId, link, storage, folder); return resp.getData(); } @@ -36980,7 +40429,7 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don /** * Build call for putMergeDocuments * @param name Resulting documen name. (required) - * @param mergeDocuments with a list of documents. (optional) + * @param mergeDocuments MergeDocuments with a list of documents. (required) * @param storage Resulting document storage. (optional) * @param folder Resulting document folder. (optional) * @param progressListener Progress listener @@ -37030,7 +40479,7 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @@ -37042,6 +40491,11 @@ private com.squareup.okhttp.Call putMergeDocumentsValidateBeforeCall(String name throw new ApiException("Missing the required parameter 'name' when calling putMergeDocuments(Async)"); } + // verify the required parameter 'mergeDocuments' is set + if (mergeDocuments == null) { + throw new ApiException("Missing the required parameter 'mergeDocuments' when calling putMergeDocuments(Async)"); + } + com.squareup.okhttp.Call call = putMergeDocumentsCall(name, mergeDocuments, storage, folder, progressListener, progressRequestListener); return call; @@ -37052,7 +40506,7 @@ private com.squareup.okhttp.Call putMergeDocumentsValidateBeforeCall(String name * Merge a list of documents. * * @param name Resulting documen name. (required) - * @param mergeDocuments with a list of documents. (optional) + * @param mergeDocuments MergeDocuments with a list of documents. (required) * @param storage Resulting document storage. (optional) * @param folder Resulting document folder. (optional) * @return DocumentResponse @@ -37068,7 +40522,7 @@ public DocumentResponse putMergeDocuments(String name, MergeDocuments mergeDocum { if (ex.getCode() == 401) { - apiClient.refreshToken(); + apiClient.requestToken(); ApiResponse resp = putMergeDocumentsWithHttpInfo(name, mergeDocuments, storage, folder); return resp.getData(); } @@ -37080,7 +40534,7 @@ public DocumentResponse putMergeDocuments(String name, MergeDocuments mergeDocum * Merge a list of documents. * * @param name Resulting documen name. (required) - * @param mergeDocuments with a list of documents. (optional) + * @param mergeDocuments MergeDocuments with a list of documents. (required) * @param storage Resulting document storage. (optional) * @param folder Resulting document folder. (optional) * @return ApiResponse<DocumentResponse> @@ -37096,7 +40550,7 @@ public ApiResponse putMergeDocumentsWithHttpInfo(String name, * Merge a list of documents. (asynchronously) * * @param name Resulting documen name. (required) - * @param mergeDocuments with a list of documents. (optional) + * @param mergeDocuments MergeDocuments with a list of documents. (required) * @param storage Resulting document storage. (optional) * @param folder Resulting document folder. (optional) * @param callback The callback to be executed when the API call finishes @@ -37184,7 +40638,7 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @@ -37227,7 +40681,7 @@ public AsposeResponse putMhtInStorageToPdf(String name, String srcPath, String d { if (ex.getCode() == 401) { - apiClient.refreshToken(); + apiClient.requestToken(); ApiResponse resp = putMhtInStorageToPdfWithHttpInfo(name, srcPath, dstFolder, storage); return resp.getData(); } @@ -37343,7 +40797,7 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @@ -37392,7 +40846,7 @@ public MovieAnnotationResponse putMovieAnnotation(String name, String annotation { if (ex.getCode() == 401) { - apiClient.refreshToken(); + apiClient.requestToken(); ApiResponse resp = putMovieAnnotationWithHttpInfo(name, annotationId, annotation, storage, folder); return resp.getData(); } @@ -37459,7 +40913,7 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * Build call for putPageAddStamp * @param name The document name. (required) * @param pageNumber The page number. (required) - * @param stamp with data. (required) + * @param stamp Stamp with data. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) * @param progressListener Progress listener @@ -37510,7 +40964,7 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @@ -37543,7 +40997,7 @@ private com.squareup.okhttp.Call putPageAddStampValidateBeforeCall(String name, * * @param name The document name. (required) * @param pageNumber The page number. (required) - * @param stamp with data. (required) + * @param stamp Stamp with data. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) * @return AsposeResponse @@ -37559,7 +41013,7 @@ public AsposeResponse putPageAddStamp(String name, Integer pageNumber, Stamp sta { if (ex.getCode() == 401) { - apiClient.refreshToken(); + apiClient.requestToken(); ApiResponse resp = putPageAddStampWithHttpInfo(name, pageNumber, stamp, storage, folder); return resp.getData(); } @@ -37572,7 +41026,7 @@ public AsposeResponse putPageAddStamp(String name, Integer pageNumber, Stamp sta * * @param name The document name. (required) * @param pageNumber The page number. (required) - * @param stamp with data. (required) + * @param stamp Stamp with data. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) * @return ApiResponse<AsposeResponse> @@ -37589,7 +41043,7 @@ public ApiResponse putPageAddStampWithHttpInfo(String name, Inte * * @param name The document name. (required) * @param pageNumber The page number. (required) - * @param stamp with data. (required) + * @param stamp Stamp with data. (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 @@ -37627,8 +41081,8 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param name The document name. (required) * @param pageNumber The page number. (required) * @param outPath The out path of result image. (required) - * @param width The converted image width. (optional) - * @param height The converted image height. (optional) + * @param width The converted image width. (optional, default to 0) + * @param height The converted image height. (optional, default to 0) * @param folder The document folder. (optional) * @param storage The document storage. (optional) * @param progressListener Progress listener @@ -37685,7 +41139,7 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @@ -37719,8 +41173,8 @@ private com.squareup.okhttp.Call putPageConvertToBmpValidateBeforeCall(String na * @param name The document name. (required) * @param pageNumber The page number. (required) * @param outPath The out path of result image. (required) - * @param width The converted image width. (optional) - * @param height The converted image height. (optional) + * @param width The converted image width. (optional, default to 0) + * @param height The converted image height. (optional, default to 0) * @param folder The document folder. (optional) * @param storage The document storage. (optional) * @return AsposeResponse @@ -37736,7 +41190,7 @@ public AsposeResponse putPageConvertToBmp(String name, Integer pageNumber, Strin { if (ex.getCode() == 401) { - apiClient.refreshToken(); + apiClient.requestToken(); ApiResponse resp = putPageConvertToBmpWithHttpInfo(name, pageNumber, outPath, width, height, folder, storage); return resp.getData(); } @@ -37750,8 +41204,8 @@ public AsposeResponse putPageConvertToBmp(String name, Integer pageNumber, Strin * @param name The document name. (required) * @param pageNumber The page number. (required) * @param outPath The out path of result image. (required) - * @param width The converted image width. (optional) - * @param height The converted image height. (optional) + * @param width The converted image width. (optional, default to 0) + * @param height The converted image height. (optional, default to 0) * @param folder The document folder. (optional) * @param storage The document storage. (optional) * @return ApiResponse<AsposeResponse> @@ -37769,8 +41223,8 @@ public ApiResponse putPageConvertToBmpWithHttpInfo(String name, * @param name The document name. (required) * @param pageNumber The page number. (required) * @param outPath The out path of result image. (required) - * @param width The converted image width. (optional) - * @param height The converted image height. (optional) + * @param width The converted image width. (optional, default to 0) + * @param height The converted image height. (optional, default to 0) * @param folder The document folder. (optional) * @param storage The document storage. (optional) * @param callback The callback to be executed when the API call finishes @@ -37808,8 +41262,8 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param name The document name. (required) * @param pageNumber The page number. (required) * @param outPath The out path of result image. (required) - * @param width The converted image width. (optional) - * @param height The converted image height. (optional) + * @param width The converted image width. (optional, default to 0) + * @param height The converted image height. (optional, default to 0) * @param folder The document folder. (optional) * @param storage The document storage. (optional) * @param progressListener Progress listener @@ -37866,7 +41320,7 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @@ -37900,8 +41354,8 @@ private com.squareup.okhttp.Call putPageConvertToEmfValidateBeforeCall(String na * @param name The document name. (required) * @param pageNumber The page number. (required) * @param outPath The out path of result image. (required) - * @param width The converted image width. (optional) - * @param height The converted image height. (optional) + * @param width The converted image width. (optional, default to 0) + * @param height The converted image height. (optional, default to 0) * @param folder The document folder. (optional) * @param storage The document storage. (optional) * @return AsposeResponse @@ -37917,7 +41371,7 @@ public AsposeResponse putPageConvertToEmf(String name, Integer pageNumber, Strin { if (ex.getCode() == 401) { - apiClient.refreshToken(); + apiClient.requestToken(); ApiResponse resp = putPageConvertToEmfWithHttpInfo(name, pageNumber, outPath, width, height, folder, storage); return resp.getData(); } @@ -37931,8 +41385,8 @@ public AsposeResponse putPageConvertToEmf(String name, Integer pageNumber, Strin * @param name The document name. (required) * @param pageNumber The page number. (required) * @param outPath The out path of result image. (required) - * @param width The converted image width. (optional) - * @param height The converted image height. (optional) + * @param width The converted image width. (optional, default to 0) + * @param height The converted image height. (optional, default to 0) * @param folder The document folder. (optional) * @param storage The document storage. (optional) * @return ApiResponse<AsposeResponse> @@ -37950,8 +41404,8 @@ public ApiResponse putPageConvertToEmfWithHttpInfo(String name, * @param name The document name. (required) * @param pageNumber The page number. (required) * @param outPath The out path of result image. (required) - * @param width The converted image width. (optional) - * @param height The converted image height. (optional) + * @param width The converted image width. (optional, default to 0) + * @param height The converted image height. (optional, default to 0) * @param folder The document folder. (optional) * @param storage The document storage. (optional) * @param callback The callback to be executed when the API call finishes @@ -37989,8 +41443,8 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param name The document name. (required) * @param pageNumber The page number. (required) * @param outPath The out path of result image. (required) - * @param width The converted image width. (optional) - * @param height The converted image height. (optional) + * @param width The converted image width. (optional, default to 0) + * @param height The converted image height. (optional, default to 0) * @param folder The document folder. (optional) * @param storage The document storage. (optional) * @param progressListener Progress listener @@ -38047,7 +41501,7 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @@ -38081,8 +41535,8 @@ private com.squareup.okhttp.Call putPageConvertToGifValidateBeforeCall(String na * @param name The document name. (required) * @param pageNumber The page number. (required) * @param outPath The out path of result image. (required) - * @param width The converted image width. (optional) - * @param height The converted image height. (optional) + * @param width The converted image width. (optional, default to 0) + * @param height The converted image height. (optional, default to 0) * @param folder The document folder. (optional) * @param storage The document storage. (optional) * @return AsposeResponse @@ -38098,7 +41552,7 @@ public AsposeResponse putPageConvertToGif(String name, Integer pageNumber, Strin { if (ex.getCode() == 401) { - apiClient.refreshToken(); + apiClient.requestToken(); ApiResponse resp = putPageConvertToGifWithHttpInfo(name, pageNumber, outPath, width, height, folder, storage); return resp.getData(); } @@ -38112,8 +41566,8 @@ public AsposeResponse putPageConvertToGif(String name, Integer pageNumber, Strin * @param name The document name. (required) * @param pageNumber The page number. (required) * @param outPath The out path of result image. (required) - * @param width The converted image width. (optional) - * @param height The converted image height. (optional) + * @param width The converted image width. (optional, default to 0) + * @param height The converted image height. (optional, default to 0) * @param folder The document folder. (optional) * @param storage The document storage. (optional) * @return ApiResponse<AsposeResponse> @@ -38131,8 +41585,8 @@ public ApiResponse putPageConvertToGifWithHttpInfo(String name, * @param name The document name. (required) * @param pageNumber The page number. (required) * @param outPath The out path of result image. (required) - * @param width The converted image width. (optional) - * @param height The converted image height. (optional) + * @param width The converted image width. (optional, default to 0) + * @param height The converted image height. (optional, default to 0) * @param folder The document folder. (optional) * @param storage The document storage. (optional) * @param callback The callback to be executed when the API call finishes @@ -38170,8 +41624,8 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param name The document name. (required) * @param pageNumber The page number. (required) * @param outPath The out path of result image. (required) - * @param width The converted image width. (optional) - * @param height The converted image height. (optional) + * @param width The converted image width. (optional, default to 0) + * @param height The converted image height. (optional, default to 0) * @param folder The document folder. (optional) * @param storage The document storage. (optional) * @param progressListener Progress listener @@ -38228,7 +41682,7 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @@ -38262,8 +41716,8 @@ private com.squareup.okhttp.Call putPageConvertToJpegValidateBeforeCall(String n * @param name The document name. (required) * @param pageNumber The page number. (required) * @param outPath The out path of result image. (required) - * @param width The converted image width. (optional) - * @param height The converted image height. (optional) + * @param width The converted image width. (optional, default to 0) + * @param height The converted image height. (optional, default to 0) * @param folder The document folder. (optional) * @param storage The document storage. (optional) * @return AsposeResponse @@ -38279,7 +41733,7 @@ public AsposeResponse putPageConvertToJpeg(String name, Integer pageNumber, Stri { if (ex.getCode() == 401) { - apiClient.refreshToken(); + apiClient.requestToken(); ApiResponse resp = putPageConvertToJpegWithHttpInfo(name, pageNumber, outPath, width, height, folder, storage); return resp.getData(); } @@ -38293,8 +41747,8 @@ public AsposeResponse putPageConvertToJpeg(String name, Integer pageNumber, Stri * @param name The document name. (required) * @param pageNumber The page number. (required) * @param outPath The out path of result image. (required) - * @param width The converted image width. (optional) - * @param height The converted image height. (optional) + * @param width The converted image width. (optional, default to 0) + * @param height The converted image height. (optional, default to 0) * @param folder The document folder. (optional) * @param storage The document storage. (optional) * @return ApiResponse<AsposeResponse> @@ -38312,8 +41766,8 @@ public ApiResponse putPageConvertToJpegWithHttpInfo(String name, * @param name The document name. (required) * @param pageNumber The page number. (required) * @param outPath The out path of result image. (required) - * @param width The converted image width. (optional) - * @param height The converted image height. (optional) + * @param width The converted image width. (optional, default to 0) + * @param height The converted image height. (optional, default to 0) * @param folder The document folder. (optional) * @param storage The document storage. (optional) * @param callback The callback to be executed when the API call finishes @@ -38351,8 +41805,8 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param name The document name. (required) * @param pageNumber The page number. (required) * @param outPath The out path of result image. (required) - * @param width The converted image width. (optional) - * @param height The converted image height. (optional) + * @param width The converted image width. (optional, default to 0) + * @param height The converted image height. (optional, default to 0) * @param folder The document folder. (optional) * @param storage The document storage. (optional) * @param progressListener Progress listener @@ -38409,7 +41863,7 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @@ -38443,8 +41897,8 @@ private com.squareup.okhttp.Call putPageConvertToPngValidateBeforeCall(String na * @param name The document name. (required) * @param pageNumber The page number. (required) * @param outPath The out path of result image. (required) - * @param width The converted image width. (optional) - * @param height The converted image height. (optional) + * @param width The converted image width. (optional, default to 0) + * @param height The converted image height. (optional, default to 0) * @param folder The document folder. (optional) * @param storage The document storage. (optional) * @return AsposeResponse @@ -38460,7 +41914,7 @@ public AsposeResponse putPageConvertToPng(String name, Integer pageNumber, Strin { if (ex.getCode() == 401) { - apiClient.refreshToken(); + apiClient.requestToken(); ApiResponse resp = putPageConvertToPngWithHttpInfo(name, pageNumber, outPath, width, height, folder, storage); return resp.getData(); } @@ -38474,8 +41928,8 @@ public AsposeResponse putPageConvertToPng(String name, Integer pageNumber, Strin * @param name The document name. (required) * @param pageNumber The page number. (required) * @param outPath The out path of result image. (required) - * @param width The converted image width. (optional) - * @param height The converted image height. (optional) + * @param width The converted image width. (optional, default to 0) + * @param height The converted image height. (optional, default to 0) * @param folder The document folder. (optional) * @param storage The document storage. (optional) * @return ApiResponse<AsposeResponse> @@ -38493,8 +41947,8 @@ public ApiResponse putPageConvertToPngWithHttpInfo(String name, * @param name The document name. (required) * @param pageNumber The page number. (required) * @param outPath The out path of result image. (required) - * @param width The converted image width. (optional) - * @param height The converted image height. (optional) + * @param width The converted image width. (optional, default to 0) + * @param height The converted image height. (optional, default to 0) * @param folder The document folder. (optional) * @param storage The document storage. (optional) * @param callback The callback to be executed when the API call finishes @@ -38532,8 +41986,8 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param name The document name. (required) * @param pageNumber The page number. (required) * @param outPath The out path of result image. (required) - * @param width The converted image width. (optional) - * @param height The converted image height. (optional) + * @param width The converted image width. (optional, default to 0) + * @param height The converted image height. (optional, default to 0) * @param folder The document folder. (optional) * @param storage The document storage. (optional) * @param progressListener Progress listener @@ -38590,7 +42044,7 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @@ -38624,8 +42078,8 @@ private com.squareup.okhttp.Call putPageConvertToTiffValidateBeforeCall(String n * @param name The document name. (required) * @param pageNumber The page number. (required) * @param outPath The out path of result image. (required) - * @param width The converted image width. (optional) - * @param height The converted image height. (optional) + * @param width The converted image width. (optional, default to 0) + * @param height The converted image height. (optional, default to 0) * @param folder The document folder. (optional) * @param storage The document storage. (optional) * @return AsposeResponse @@ -38641,7 +42095,7 @@ public AsposeResponse putPageConvertToTiff(String name, Integer pageNumber, Stri { if (ex.getCode() == 401) { - apiClient.refreshToken(); + apiClient.requestToken(); ApiResponse resp = putPageConvertToTiffWithHttpInfo(name, pageNumber, outPath, width, height, folder, storage); return resp.getData(); } @@ -38655,8 +42109,8 @@ public AsposeResponse putPageConvertToTiff(String name, Integer pageNumber, Stri * @param name The document name. (required) * @param pageNumber The page number. (required) * @param outPath The out path of result image. (required) - * @param width The converted image width. (optional) - * @param height The converted image height. (optional) + * @param width The converted image width. (optional, default to 0) + * @param height The converted image height. (optional, default to 0) * @param folder The document folder. (optional) * @param storage The document storage. (optional) * @return ApiResponse<AsposeResponse> @@ -38674,8 +42128,8 @@ public ApiResponse putPageConvertToTiffWithHttpInfo(String name, * @param name The document name. (required) * @param pageNumber The page number. (required) * @param outPath The out path of result image. (required) - * @param width The converted image width. (optional) - * @param height The converted image height. (optional) + * @param width The converted image width. (optional, default to 0) + * @param height The converted image height. (optional, default to 0) * @param folder The document folder. (optional) * @param storage The document storage. (optional) * @param callback The callback to be executed when the API call finishes @@ -38763,7 +42217,7 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @@ -38806,7 +42260,7 @@ public AsposeResponse putPclInStorageToPdf(String name, String srcPath, String d { if (ex.getCode() == 401) { - apiClient.refreshToken(); + apiClient.requestToken(); ApiResponse resp = putPclInStorageToPdfWithHttpInfo(name, srcPath, dstFolder, storage); return resp.getData(); } @@ -38942,7 +42396,7 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @@ -38987,7 +42441,7 @@ public AsposeResponse putPdfInRequestToDoc(String outPath, Boolean addReturnToLi { if (ex.getCode() == 401) { - apiClient.refreshToken(); + apiClient.requestToken(); ApiResponse resp = putPdfInRequestToDocWithHttpInfo(outPath, addReturnToLineEnd, format, imageResolutionX, imageResolutionY, maxDistanceBetweenTextLines, mode, recognizeBullets, relativeHorizontalProximity, storage, file); return resp.getData(); } @@ -39116,7 +42570,7 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @@ -39154,7 +42608,7 @@ public AsposeResponse putPdfInRequestToEpub(String outPath, String contentRecogn { if (ex.getCode() == 401) { - apiClient.refreshToken(); + apiClient.requestToken(); ApiResponse resp = putPdfInRequestToEpubWithHttpInfo(outPath, contentRecognitionMode, storage, file); return resp.getData(); } @@ -39292,7 +42746,7 @@ public com.squareup.okhttp.Call putPdfInRequestToHtmlCall(String outPath, Intege if (cssClassNamesPrefix != null) localVarQueryParams.addAll(apiClient.parameterToPair("cssClassNamesPrefix", cssClassNamesPrefix)); if (explicitListOfSavedPages != null) - localVarCollectionQueryParams.addAll(apiClient.parameterToPairs("multi", "explicitListOfSavedPages", explicitListOfSavedPages)); + localVarCollectionQueryParams.addAll(apiClient.parameterToPairs("csv", "explicitListOfSavedPages", explicitListOfSavedPages)); if (fontEncodingStrategy != null) localVarQueryParams.addAll(apiClient.parameterToPair("fontEncodingStrategy", fontEncodingStrategy)); if (fontSavingMode != null) @@ -39350,7 +42804,7 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @@ -39415,7 +42869,7 @@ public AsposeResponse putPdfInRequestToHtml(String outPath, Integer additionalMa { if (ex.getCode() == 401) { - apiClient.refreshToken(); + apiClient.requestToken(); ApiResponse resp = putPdfInRequestToHtmlWithHttpInfo(outPath, 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, storage, file); return resp.getData(); } @@ -39584,7 +43038,7 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @@ -39622,7 +43076,7 @@ public AsposeResponse putPdfInRequestToLaTeX(String outPath, Integer pagesCount, { if (ex.getCode() == 401) { - apiClient.refreshToken(); + apiClient.requestToken(); ApiResponse resp = putPdfInRequestToLaTeXWithHttpInfo(outPath, pagesCount, storage, file); return resp.getData(); } @@ -39734,7 +43188,7 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @@ -39771,7 +43225,7 @@ public AsposeResponse putPdfInRequestToMobiXml(String outPath, String storage, F { if (ex.getCode() == 401) { - apiClient.refreshToken(); + apiClient.requestToken(); ApiResponse resp = putPdfInRequestToMobiXmlWithHttpInfo(outPath, storage, file); return resp.getData(); } @@ -39884,7 +43338,7 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @@ -39927,7 +43381,7 @@ public AsposeResponse putPdfInRequestToPdfA(String outPath, String type, String { if (ex.getCode() == 401) { - apiClient.refreshToken(); + apiClient.requestToken(); ApiResponse resp = putPdfInRequestToPdfAWithHttpInfo(outPath, type, storage, file); return resp.getData(); } @@ -40045,7 +43499,7 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @@ -40084,7 +43538,7 @@ public AsposeResponse putPdfInRequestToPptx(String outPath, Boolean separateImag { if (ex.getCode() == 401) { - apiClient.refreshToken(); + apiClient.requestToken(); ApiResponse resp = putPdfInRequestToPptxWithHttpInfo(outPath, separateImages, slidesAsImages, storage, file); return resp.getData(); } @@ -40198,7 +43652,7 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @@ -40235,7 +43689,7 @@ public AsposeResponse putPdfInRequestToSvg(String outPath, String storage, File { if (ex.getCode() == 401) { - apiClient.refreshToken(); + apiClient.requestToken(); ApiResponse resp = putPdfInRequestToSvgWithHttpInfo(outPath, storage, file); return resp.getData(); } @@ -40390,7 +43844,7 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @@ -40442,7 +43896,7 @@ public AsposeResponse putPdfInRequestToTiff(String outPath, Double brightness, S { if (ex.getCode() == 401) { - apiClient.refreshToken(); + apiClient.requestToken(); ApiResponse resp = putPdfInRequestToTiffWithHttpInfo(outPath, brightness, compression, colorDepth, leftMargin, rightMargin, topMargin, bottomMargin, orientation, skipBlankPages, width, height, xResolution, yResolution, pageIndex, pageCount, storage, file); return resp.getData(); } @@ -40594,7 +44048,7 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @@ -40635,7 +44089,7 @@ public AsposeResponse putPdfInRequestToXls(String outPath, Boolean insertBlankCo { if (ex.getCode() == 401) { - apiClient.refreshToken(); + apiClient.requestToken(); ApiResponse resp = putPdfInRequestToXlsWithHttpInfo(outPath, insertBlankColumnAtFirst, minimizeTheNumberOfWorksheets, scaleFactor, uniformWorksheets, storage, file); return resp.getData(); } @@ -40765,7 +44219,7 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @@ -40806,7 +44260,7 @@ public AsposeResponse putPdfInRequestToXlsx(String outPath, Boolean insertBlankC { if (ex.getCode() == 401) { - apiClient.refreshToken(); + apiClient.requestToken(); ApiResponse resp = putPdfInRequestToXlsxWithHttpInfo(outPath, insertBlankColumnAtFirst, minimizeTheNumberOfWorksheets, scaleFactor, uniformWorksheets, storage, file); return resp.getData(); } @@ -40924,7 +44378,7 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @@ -40961,7 +44415,7 @@ public AsposeResponse putPdfInRequestToXml(String outPath, String storage, File { if (ex.getCode() == 401) { - apiClient.refreshToken(); + apiClient.requestToken(); ApiResponse resp = putPdfInRequestToXmlWithHttpInfo(outPath, storage, file); return resp.getData(); } @@ -41071,7 +44525,7 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @@ -41108,7 +44562,7 @@ public AsposeResponse putPdfInRequestToXps(String outPath, String storage, File { if (ex.getCode() == 401) { - apiClient.refreshToken(); + apiClient.requestToken(); ApiResponse resp = putPdfInRequestToXpsWithHttpInfo(outPath, storage, file); return resp.getData(); } @@ -41246,7 +44700,7 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @@ -41297,7 +44751,7 @@ public AsposeResponse putPdfInStorageToDoc(String name, String outPath, Boolean { if (ex.getCode() == 401) { - apiClient.refreshToken(); + apiClient.requestToken(); ApiResponse resp = putPdfInStorageToDocWithHttpInfo(name, outPath, addReturnToLineEnd, format, imageResolutionX, imageResolutionY, maxDistanceBetweenTextLines, mode, recognizeBullets, relativeHorizontalProximity, folder, storage); return resp.getData(); } @@ -41432,7 +44886,7 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @@ -41476,7 +44930,7 @@ public AsposeResponse putPdfInStorageToEpub(String name, String outPath, String { if (ex.getCode() == 401) { - apiClient.refreshToken(); + apiClient.requestToken(); ApiResponse resp = putPdfInStorageToEpubWithHttpInfo(name, outPath, contentRecognitionMode, folder, storage); return resp.getData(); } @@ -41618,7 +45072,7 @@ public com.squareup.okhttp.Call putPdfInStorageToHtmlCall(String name, String ou if (cssClassNamesPrefix != null) localVarQueryParams.addAll(apiClient.parameterToPair("cssClassNamesPrefix", cssClassNamesPrefix)); if (explicitListOfSavedPages != null) - localVarCollectionQueryParams.addAll(apiClient.parameterToPairs("multi", "explicitListOfSavedPages", explicitListOfSavedPages)); + localVarCollectionQueryParams.addAll(apiClient.parameterToPairs("csv", "explicitListOfSavedPages", explicitListOfSavedPages)); if (fontEncodingStrategy != null) localVarQueryParams.addAll(apiClient.parameterToPair("fontEncodingStrategy", fontEncodingStrategy)); if (fontSavingMode != null) @@ -41678,7 +45132,7 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @@ -41749,7 +45203,7 @@ public AsposeResponse putPdfInStorageToHtml(String name, String outPath, Integer { if (ex.getCode() == 401) { - apiClient.refreshToken(); + apiClient.requestToken(); ApiResponse resp = putPdfInStorageToHtmlWithHttpInfo(name, outPath, 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(); } @@ -41924,7 +45378,7 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @@ -41968,7 +45422,7 @@ public AsposeResponse putPdfInStorageToLaTeX(String name, String outPath, Intege { if (ex.getCode() == 401) { - apiClient.refreshToken(); + apiClient.requestToken(); ApiResponse resp = putPdfInStorageToLaTeXWithHttpInfo(name, outPath, pagesCount, folder, storage); return resp.getData(); } @@ -42086,7 +45540,7 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @@ -42129,7 +45583,7 @@ public AsposeResponse putPdfInStorageToMobiXml(String name, String outPath, Stri { if (ex.getCode() == 401) { - apiClient.refreshToken(); + apiClient.requestToken(); ApiResponse resp = putPdfInStorageToMobiXmlWithHttpInfo(name, outPath, folder, storage); return resp.getData(); } @@ -42248,7 +45702,7 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @@ -42297,7 +45751,7 @@ public AsposeResponse putPdfInStorageToPdfA(String name, String outPath, String { if (ex.getCode() == 401) { - apiClient.refreshToken(); + apiClient.requestToken(); ApiResponse resp = putPdfInStorageToPdfAWithHttpInfo(name, outPath, type, folder, storage); return resp.getData(); } @@ -42421,7 +45875,7 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @@ -42466,7 +45920,7 @@ public AsposeResponse putPdfInStorageToPptx(String name, String outPath, Boolean { if (ex.getCode() == 401) { - apiClient.refreshToken(); + apiClient.requestToken(); ApiResponse resp = putPdfInStorageToPptxWithHttpInfo(name, outPath, separateImages, slidesAsImages, folder, storage); return resp.getData(); } @@ -42586,7 +46040,7 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @@ -42629,7 +46083,7 @@ public AsposeResponse putPdfInStorageToSvg(String name, String outPath, String f { if (ex.getCode() == 401) { - apiClient.refreshToken(); + apiClient.requestToken(); ApiResponse resp = putPdfInStorageToSvgWithHttpInfo(name, outPath, folder, storage); return resp.getData(); } @@ -42790,7 +46244,7 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @@ -42848,7 +46302,7 @@ public AsposeResponse putPdfInStorageToTiff(String name, String outPath, Double { if (ex.getCode() == 401) { - apiClient.refreshToken(); + apiClient.requestToken(); ApiResponse resp = putPdfInStorageToTiffWithHttpInfo(name, outPath, brightness, compression, colorDepth, leftMargin, rightMargin, topMargin, bottomMargin, orientation, skipBlankPages, width, height, xResolution, yResolution, pageIndex, pageCount, folder, storage); return resp.getData(); } @@ -43006,7 +46460,7 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @@ -43053,7 +46507,7 @@ public AsposeResponse putPdfInStorageToXls(String name, String outPath, Boolean { if (ex.getCode() == 401) { - apiClient.refreshToken(); + apiClient.requestToken(); ApiResponse resp = putPdfInStorageToXlsWithHttpInfo(name, outPath, insertBlankColumnAtFirst, minimizeTheNumberOfWorksheets, scaleFactor, uniformWorksheets, folder, storage); return resp.getData(); } @@ -43189,7 +46643,7 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @@ -43236,7 +46690,7 @@ public AsposeResponse putPdfInStorageToXlsx(String name, String outPath, Boolean { if (ex.getCode() == 401) { - apiClient.refreshToken(); + apiClient.requestToken(); ApiResponse resp = putPdfInStorageToXlsxWithHttpInfo(name, outPath, insertBlankColumnAtFirst, minimizeTheNumberOfWorksheets, scaleFactor, uniformWorksheets, folder, storage); return resp.getData(); } @@ -43360,7 +46814,7 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @@ -43403,7 +46857,7 @@ public AsposeResponse putPdfInStorageToXml(String name, String outPath, String f { if (ex.getCode() == 401) { - apiClient.refreshToken(); + apiClient.requestToken(); ApiResponse resp = putPdfInStorageToXmlWithHttpInfo(name, outPath, folder, storage); return resp.getData(); } @@ -43519,7 +46973,7 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @@ -43562,7 +47016,7 @@ public AsposeResponse putPdfInStorageToXps(String name, String outPath, String f { if (ex.getCode() == 401) { - apiClient.refreshToken(); + apiClient.requestToken(); ApiResponse resp = putPdfInStorageToXpsWithHttpInfo(name, outPath, folder, storage); return resp.getData(); } @@ -43678,7 +47132,7 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @@ -43727,7 +47181,7 @@ public PolyLineAnnotationResponse putPolyLineAnnotation(String name, String anno { if (ex.getCode() == 401) { - apiClient.refreshToken(); + apiClient.requestToken(); ApiResponse resp = putPolyLineAnnotationWithHttpInfo(name, annotationId, annotation, storage, folder); return resp.getData(); } @@ -43845,7 +47299,7 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @@ -43894,7 +47348,7 @@ public PolygonAnnotationResponse putPolygonAnnotation(String name, String annota { if (ex.getCode() == 401) { - apiClient.refreshToken(); + apiClient.requestToken(); ApiResponse resp = putPolygonAnnotationWithHttpInfo(name, annotationId, annotation, storage, folder); return resp.getData(); } @@ -44012,7 +47466,7 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @@ -44061,7 +47515,7 @@ public PopupAnnotationResponse putPopupAnnotation(String name, String annotation { if (ex.getCode() == 401) { - apiClient.refreshToken(); + apiClient.requestToken(); ApiResponse resp = putPopupAnnotationWithHttpInfo(name, annotationId, annotation, storage, folder); return resp.getData(); } @@ -44127,7 +47581,7 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don /** * Build call for putPrivileges * @param name The document name. (required) - * @param privileges Document privileges. (optional) + * @param privileges Document privileges. DocumentPrivilege (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) * @param progressListener Progress listener @@ -44177,7 +47631,7 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @@ -44189,6 +47643,11 @@ private com.squareup.okhttp.Call putPrivilegesValidateBeforeCall(String name, Do throw new ApiException("Missing the required parameter 'name' when calling putPrivileges(Async)"); } + // verify the required parameter 'privileges' is set + if (privileges == null) { + throw new ApiException("Missing the required parameter 'privileges' when calling putPrivileges(Async)"); + } + com.squareup.okhttp.Call call = putPrivilegesCall(name, privileges, storage, folder, progressListener, progressRequestListener); return call; @@ -44199,7 +47658,7 @@ private com.squareup.okhttp.Call putPrivilegesValidateBeforeCall(String name, Do * Update privilege document. * * @param name The document name. (required) - * @param privileges Document privileges. (optional) + * @param privileges Document privileges. DocumentPrivilege (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) * @return AsposeResponse @@ -44215,7 +47674,7 @@ public AsposeResponse putPrivileges(String name, DocumentPrivilege privileges, S { if (ex.getCode() == 401) { - apiClient.refreshToken(); + apiClient.requestToken(); ApiResponse resp = putPrivilegesWithHttpInfo(name, privileges, storage, folder); return resp.getData(); } @@ -44227,7 +47686,7 @@ public AsposeResponse putPrivileges(String name, DocumentPrivilege privileges, S * Update privilege document. * * @param name The document name. (required) - * @param privileges Document privileges. (optional) + * @param privileges Document privileges. DocumentPrivilege (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) * @return ApiResponse<AsposeResponse> @@ -44243,7 +47702,7 @@ public ApiResponse putPrivilegesWithHttpInfo(String name, Docume * Update privilege document. (asynchronously) * * @param name The document name. (required) - * @param privileges Document privileges. (optional) + * @param privileges Document privileges. DocumentPrivilege (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 @@ -44331,7 +47790,7 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @@ -44374,7 +47833,7 @@ public AsposeResponse putPsInStorageToPdf(String name, String srcPath, String ds { if (ex.getCode() == 401) { - apiClient.refreshToken(); + apiClient.requestToken(); ApiResponse resp = putPsInStorageToPdfWithHttpInfo(name, srcPath, dstFolder, storage); return resp.getData(); } @@ -44490,7 +47949,7 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @@ -44539,7 +47998,7 @@ public RedactionAnnotationResponse putRedactionAnnotation(String name, String an { if (ex.getCode() == 401) { - apiClient.refreshToken(); + apiClient.requestToken(); ApiResponse resp = putRedactionAnnotationWithHttpInfo(name, annotationId, annotation, storage, folder); return resp.getData(); } @@ -44660,7 +48119,7 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @@ -44705,7 +48164,7 @@ public ImageResponse putReplaceImage(String name, String imageId, String imageFi { if (ex.getCode() == 401) { - apiClient.refreshToken(); + apiClient.requestToken(); ApiResponse resp = putReplaceImageWithHttpInfo(name, imageId, imageFilePath, storage, folder, image); return resp.getData(); } @@ -44825,7 +48284,7 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @@ -44874,7 +48333,7 @@ public ScreenAnnotationResponse putScreenAnnotation(String name, String annotati { if (ex.getCode() == 401) { - apiClient.refreshToken(); + apiClient.requestToken(); ApiResponse resp = putScreenAnnotationWithHttpInfo(name, annotationId, annotation, storage, folder); return resp.getData(); } @@ -44994,7 +48453,7 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @@ -45043,7 +48502,7 @@ public AsposeResponse putScreenAnnotationDataExtract(String name, String annotat { if (ex.getCode() == 401) { - apiClient.refreshToken(); + apiClient.requestToken(); ApiResponse resp = putScreenAnnotationDataExtractWithHttpInfo(name, annotationId, outFilePath, storage, folder); return resp.getData(); } @@ -45161,7 +48620,7 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @@ -45199,7 +48658,7 @@ public AsposeResponse putSearchableDocument(String name, String storage, String { if (ex.getCode() == 401) { - apiClient.refreshToken(); + apiClient.requestToken(); ApiResponse resp = putSearchableDocumentWithHttpInfo(name, storage, folder, lang); return resp.getData(); } @@ -45317,7 +48776,7 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @@ -45366,7 +48825,7 @@ public DocumentPropertyResponse putSetProperty(String name, String propertyName, { if (ex.getCode() == 401) { - apiClient.refreshToken(); + apiClient.requestToken(); ApiResponse resp = putSetPropertyWithHttpInfo(name, propertyName, value, storage, folder); return resp.getData(); } @@ -45484,7 +48943,7 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @@ -45533,7 +48992,7 @@ public SoundAnnotationResponse putSoundAnnotation(String name, String annotation { if (ex.getCode() == 401) { - apiClient.refreshToken(); + apiClient.requestToken(); ApiResponse resp = putSoundAnnotationWithHttpInfo(name, annotationId, annotation, storage, folder); return resp.getData(); } @@ -45653,7 +49112,7 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @@ -45702,7 +49161,7 @@ public AsposeResponse putSoundAnnotationDataExtract(String name, String annotati { if (ex.getCode() == 401) { - apiClient.refreshToken(); + apiClient.requestToken(); ApiResponse resp = putSoundAnnotationDataExtractWithHttpInfo(name, annotationId, outFilePath, storage, folder); return resp.getData(); } @@ -45820,7 +49279,7 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @@ -45869,7 +49328,7 @@ public SquareAnnotationResponse putSquareAnnotation(String name, String annotati { if (ex.getCode() == 401) { - apiClient.refreshToken(); + apiClient.requestToken(); ApiResponse resp = putSquareAnnotationWithHttpInfo(name, annotationId, annotation, storage, folder); return resp.getData(); } @@ -45987,7 +49446,7 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @@ -46036,7 +49495,7 @@ public SquigglyAnnotationResponse putSquigglyAnnotation(String name, String anno { if (ex.getCode() == 401) { - apiClient.refreshToken(); + apiClient.requestToken(); ApiResponse resp = putSquigglyAnnotationWithHttpInfo(name, annotationId, annotation, storage, folder); return resp.getData(); } @@ -46154,7 +49613,7 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @@ -46203,7 +49662,7 @@ public StampAnnotationResponse putStampAnnotation(String name, String annotation { if (ex.getCode() == 401) { - apiClient.refreshToken(); + apiClient.requestToken(); ApiResponse resp = putStampAnnotationWithHttpInfo(name, annotationId, annotation, storage, folder); return resp.getData(); } @@ -46323,7 +49782,7 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @@ -46372,7 +49831,7 @@ public AsposeResponse putStampAnnotationDataExtract(String name, String annotati { if (ex.getCode() == 401) { - apiClient.refreshToken(); + apiClient.requestToken(); ApiResponse resp = putStampAnnotationDataExtractWithHttpInfo(name, annotationId, outFilePath, storage, folder); return resp.getData(); } @@ -46490,7 +49949,7 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @@ -46539,7 +49998,7 @@ public StrikeOutAnnotationResponse putStrikeOutAnnotation(String name, String an { if (ex.getCode() == 401) { - apiClient.refreshToken(); + apiClient.requestToken(); ApiResponse resp = putStrikeOutAnnotationWithHttpInfo(name, annotationId, annotation, storage, folder); return resp.getData(); } @@ -46681,7 +50140,7 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @@ -46732,7 +50191,7 @@ public AsposeResponse putSvgInStorageToPdf(String name, String srcPath, Boolean { if (ex.getCode() == 401) { - apiClient.refreshToken(); + apiClient.requestToken(); ApiResponse resp = putSvgInStorageToPdfWithHttpInfo(name, srcPath, adjustPageSize, height, width, isLandscape, marginLeft, marginBottom, marginRight, marginTop, dstFolder, storage); return resp.getData(); } @@ -46864,7 +50323,7 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @@ -46913,7 +50372,7 @@ public AsposeResponse putTable(String name, String tableId, Table table, String { if (ex.getCode() == 401) { - apiClient.refreshToken(); + apiClient.requestToken(); ApiResponse resp = putTableWithHttpInfo(name, tableId, table, storage, folder); return resp.getData(); } @@ -47031,7 +50490,7 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @@ -47080,7 +50539,7 @@ public TextAnnotationResponse putTextAnnotation(String name, String annotationId { if (ex.getCode() == 401) { - apiClient.refreshToken(); + apiClient.requestToken(); ApiResponse resp = putTextAnnotationWithHttpInfo(name, annotationId, annotation, storage, folder); return resp.getData(); } @@ -47198,7 +50657,7 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @@ -47247,7 +50706,7 @@ public UnderlineAnnotationResponse putUnderlineAnnotation(String name, String an { if (ex.getCode() == 401) { - apiClient.refreshToken(); + apiClient.requestToken(); ApiResponse resp = putUnderlineAnnotationWithHttpInfo(name, annotationId, annotation, storage, folder); return resp.getData(); } @@ -47314,7 +50773,7 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * Build call for putUpdateField * @param name The document name. (required) * @param fieldName The name of a field to be updated. (required) - * @param field with the field data. (optional) + * @param field Field with the field data. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) * @param progressListener Progress listener @@ -47365,7 +50824,7 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @@ -47382,6 +50841,11 @@ private com.squareup.okhttp.Call putUpdateFieldValidateBeforeCall(String name, S throw new ApiException("Missing the required parameter 'fieldName' when calling putUpdateField(Async)"); } + // verify the required parameter 'field' is set + if (field == null) { + throw new ApiException("Missing the required parameter 'field' when calling putUpdateField(Async)"); + } + com.squareup.okhttp.Call call = putUpdateFieldCall(name, fieldName, field, storage, folder, progressListener, progressRequestListener); return call; @@ -47393,7 +50857,7 @@ private com.squareup.okhttp.Call putUpdateFieldValidateBeforeCall(String name, S * * @param name The document name. (required) * @param fieldName The name of a field to be updated. (required) - * @param field with the field data. (optional) + * @param field Field with the field data. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) * @return FieldResponse @@ -47409,7 +50873,7 @@ public FieldResponse putUpdateField(String name, String fieldName, Field field, { if (ex.getCode() == 401) { - apiClient.refreshToken(); + apiClient.requestToken(); ApiResponse resp = putUpdateFieldWithHttpInfo(name, fieldName, field, storage, folder); return resp.getData(); } @@ -47422,7 +50886,7 @@ public FieldResponse putUpdateField(String name, String fieldName, Field field, * * @param name The document name. (required) * @param fieldName The name of a field to be updated. (required) - * @param field with the field data. (optional) + * @param field Field with the field data. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) * @return ApiResponse<FieldResponse> @@ -47439,7 +50903,7 @@ public ApiResponse putUpdateFieldWithHttpInfo(String name, String * * @param name The document name. (required) * @param fieldName The name of a field to be updated. (required) - * @param field with the field data. (optional) + * @param field Field with the field data. (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 @@ -47475,7 +50939,7 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don /** * Build call for putUpdateFields * @param name The document name. (required) - * @param fields with the fields data. (optional) + * @param fields Fields with the fields data. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) * @param progressListener Progress listener @@ -47525,7 +50989,7 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @@ -47537,6 +51001,11 @@ private com.squareup.okhttp.Call putUpdateFieldsValidateBeforeCall(String name, throw new ApiException("Missing the required parameter 'name' when calling putUpdateFields(Async)"); } + // verify the required parameter 'fields' is set + if (fields == null) { + throw new ApiException("Missing the required parameter 'fields' when calling putUpdateFields(Async)"); + } + com.squareup.okhttp.Call call = putUpdateFieldsCall(name, fields, storage, folder, progressListener, progressRequestListener); return call; @@ -47547,7 +51016,7 @@ private com.squareup.okhttp.Call putUpdateFieldsValidateBeforeCall(String name, * Update fields. * * @param name The document name. (required) - * @param fields with the fields data. (optional) + * @param fields Fields with the fields data. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) * @return FieldsResponse @@ -47563,7 +51032,7 @@ public FieldsResponse putUpdateFields(String name, Fields fields, String storage { if (ex.getCode() == 401) { - apiClient.refreshToken(); + apiClient.requestToken(); ApiResponse resp = putUpdateFieldsWithHttpInfo(name, fields, storage, folder); return resp.getData(); } @@ -47575,7 +51044,7 @@ public FieldsResponse putUpdateFields(String name, Fields fields, String storage * Update fields. * * @param name The document name. (required) - * @param fields with the fields data. (optional) + * @param fields Fields with the fields data. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) * @return ApiResponse<FieldsResponse> @@ -47591,7 +51060,7 @@ public ApiResponse putUpdateFieldsWithHttpInfo(String name, Fiel * Update fields. (asynchronously) * * @param name The document name. (required) - * @param fields with the fields data. (optional) + * @param fields Fields with the fields data. (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 @@ -47700,7 +51169,7 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @@ -47750,7 +51219,7 @@ public AsposeResponse putWebInStorageToPdf(String name, String url, Double heigh { if (ex.getCode() == 401) { - apiClient.refreshToken(); + apiClient.requestToken(); ApiResponse resp = putWebInStorageToPdfWithHttpInfo(name, url, height, width, isLandscape, marginLeft, marginBottom, marginRight, marginTop, dstFolder, storage); return resp.getData(); } @@ -47876,45 +51345,365 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; + return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call putXfaPdfInRequestToAcroFormValidateBeforeCall(String outPath, String storage, File file, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'outPath' is set + if (outPath == null) { + throw new ApiException("Missing the required parameter 'outPath' when calling putXfaPdfInRequestToAcroForm(Async)"); + } + + + com.squareup.okhttp.Call call = putXfaPdfInRequestToAcroFormCall(outPath, storage, file, progressListener, progressRequestListener); + return call; + + } + + /** + * Converts PDF document which contatins XFA form (in request content) to PDF with AcroForm and uploads resulting file to storage. + * + * @param outPath Full resulting filename (ex. /folder1/folder2/result.pdf) (required) + * @param storage The document storage. (optional) + * @param file A file to be converted. (optional) + * @return AsposeResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public AsposeResponse putXfaPdfInRequestToAcroForm(String outPath, String storage, File file) throws ApiException { + try + { + ApiResponse resp = putXfaPdfInRequestToAcroFormWithHttpInfo(outPath, storage, file); + return resp.getData(); + } + catch (ApiException ex) + { + if (ex.getCode() == 401) + { + apiClient.requestToken(); + ApiResponse resp = putXfaPdfInRequestToAcroFormWithHttpInfo(outPath, storage, file); + return resp.getData(); + } + throw ex; + } + } + + /** + * Converts PDF document which contatins XFA form (in request content) to PDF with AcroForm and uploads resulting file to storage. + * + * @param outPath Full resulting filename (ex. /folder1/folder2/result.pdf) (required) + * @param storage The document storage. (optional) + * @param file A file to be converted. (optional) + * @return ApiResponse<AsposeResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse putXfaPdfInRequestToAcroFormWithHttpInfo(String outPath, String storage, File file) throws ApiException { + com.squareup.okhttp.Call call = putXfaPdfInRequestToAcroFormValidateBeforeCall(outPath, storage, file, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Converts PDF document which contatins XFA form (in request content) to PDF with AcroForm and uploads resulting file to storage. (asynchronously) + * + * @param outPath Full resulting filename (ex. /folder1/folder2/result.pdf) (required) + * @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 + * @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 putXfaPdfInRequestToAcroFormAsync(String outPath, String storage, File file, 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 = putXfaPdfInRequestToAcroFormValidateBeforeCall(outPath, storage, file, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for putXfaPdfInStorageToAcroForm + * @param name The document name. (required) + * @param outPath Full resulting filename (ex. /folder1/folder2/result.pdf) (required) + * @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 putXfaPdfInStorageToAcroFormCall(String name, String outPath, 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/xfatoacroform" + .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (outPath != null) + localVarQueryParams.addAll(apiClient.parameterToPair("outPath", outPath)); + 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" + }; + 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[] { "JWT" }; + return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call putXfaPdfInStorageToAcroFormValidateBeforeCall(String name, String outPath, 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 putXfaPdfInStorageToAcroForm(Async)"); + } + + // verify the required parameter 'outPath' is set + if (outPath == null) { + throw new ApiException("Missing the required parameter 'outPath' when calling putXfaPdfInStorageToAcroForm(Async)"); + } + + + com.squareup.okhttp.Call call = putXfaPdfInStorageToAcroFormCall(name, outPath, folder, storage, progressListener, progressRequestListener); + return call; + + } + + /** + * Converts PDF document which contatins XFA form (located on storage) to PDF with AcroForm and uploads resulting file to storage + * + * @param name The document name. (required) + * @param outPath Full resulting filename (ex. /folder1/folder2/result.pdf) (required) + * @param folder The document folder. (optional) + * @param storage The document storage. (optional) + * @return AsposeResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public AsposeResponse putXfaPdfInStorageToAcroForm(String name, String outPath, String folder, String storage) throws ApiException { + try + { + ApiResponse resp = putXfaPdfInStorageToAcroFormWithHttpInfo(name, outPath, folder, storage); + return resp.getData(); + } + catch (ApiException ex) + { + if (ex.getCode() == 401) + { + apiClient.requestToken(); + ApiResponse resp = putXfaPdfInStorageToAcroFormWithHttpInfo(name, outPath, folder, storage); + return resp.getData(); + } + throw ex; + } + } + + /** + * Converts PDF document which contatins XFA form (located on storage) to PDF with AcroForm and uploads resulting file to storage + * + * @param name The document name. (required) + * @param outPath Full resulting filename (ex. /folder1/folder2/result.pdf) (required) + * @param folder The document folder. (optional) + * @param storage The document storage. (optional) + * @return ApiResponse<AsposeResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse putXfaPdfInStorageToAcroFormWithHttpInfo(String name, String outPath, String folder, String storage) throws ApiException { + com.squareup.okhttp.Call call = putXfaPdfInStorageToAcroFormValidateBeforeCall(name, outPath, folder, 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 uploads resulting file to storage (asynchronously) + * + * @param name The document name. (required) + * @param outPath Full resulting filename (ex. /folder1/folder2/result.pdf) (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 putXfaPdfInStorageToAcroFormAsync(String name, String outPath, 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 = putXfaPdfInStorageToAcroFormValidateBeforeCall(name, outPath, folder, storage, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for putXmlInStorageToPdf + * @param name The document name. (required) + * @param srcPath Full source filename (ex. /folder1/folder2/template.xml) (required) + * @param xslFilePath Full XSL source filename (ex. /folder1/folder2/template.xsl) (optional) + * @param dstFolder The destination 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 putXmlInStorageToPdfCall(String name, String srcPath, String xslFilePath, String dstFolder, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/pdf/{name}/create/xml" + .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 (dstFolder != null) + localVarQueryParams.addAll(apiClient.parameterToPair("dstFolder", dstFolder)); + 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[] { "JWT" }; return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call putXfaPdfInRequestToAcroFormValidateBeforeCall(String outPath, String storage, File file, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call putXmlInStorageToPdfValidateBeforeCall(String name, String srcPath, String xslFilePath, String dstFolder, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - // verify the required parameter 'outPath' is set - if (outPath == null) { - throw new ApiException("Missing the required parameter 'outPath' when calling putXfaPdfInRequestToAcroForm(Async)"); + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling putXmlInStorageToPdf(Async)"); + } + + // verify the required parameter 'srcPath' is set + if (srcPath == null) { + throw new ApiException("Missing the required parameter 'srcPath' when calling putXmlInStorageToPdf(Async)"); } - com.squareup.okhttp.Call call = putXfaPdfInRequestToAcroFormCall(outPath, storage, file, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = putXmlInStorageToPdfCall(name, srcPath, xslFilePath, dstFolder, storage, progressListener, progressRequestListener); return call; } /** - * Converts PDF document which contatins XFA form (in request content) to PDF with AcroForm and uploads resulting file to storage. + * Convert XML file (located on storage) to PDF format and upload resulting file to storage. * - * @param outPath Full resulting filename (ex. /folder1/folder2/result.pdf) (required) + * @param name The document name. (required) + * @param srcPath Full source filename (ex. /folder1/folder2/template.xml) (required) + * @param xslFilePath Full XSL source filename (ex. /folder1/folder2/template.xsl) (optional) + * @param dstFolder The destination document folder. (optional) * @param storage The document storage. (optional) - * @param file A file to be converted. (optional) * @return AsposeResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public AsposeResponse putXfaPdfInRequestToAcroForm(String outPath, String storage, File file) throws ApiException { + public AsposeResponse putXmlInStorageToPdf(String name, String srcPath, String xslFilePath, String dstFolder, String storage) throws ApiException { try { - ApiResponse resp = putXfaPdfInRequestToAcroFormWithHttpInfo(outPath, storage, file); + ApiResponse resp = putXmlInStorageToPdfWithHttpInfo(name, srcPath, xslFilePath, dstFolder, storage); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = putXfaPdfInRequestToAcroFormWithHttpInfo(outPath, storage, file); + apiClient.requestToken(); + ApiResponse resp = putXmlInStorageToPdfWithHttpInfo(name, srcPath, xslFilePath, dstFolder, storage); return resp.getData(); } throw ex; @@ -47922,31 +51711,35 @@ public AsposeResponse putXfaPdfInRequestToAcroForm(String outPath, String storag } /** - * Converts PDF document which contatins XFA form (in request content) to PDF with AcroForm and uploads resulting file to storage. + * Convert XML file (located on storage) to PDF format and upload resulting file to storage. * - * @param outPath Full resulting filename (ex. /folder1/folder2/result.pdf) (required) + * @param name The document name. (required) + * @param srcPath Full source filename (ex. /folder1/folder2/template.xml) (required) + * @param xslFilePath Full XSL source filename (ex. /folder1/folder2/template.xsl) (optional) + * @param dstFolder The destination document folder. (optional) * @param storage The document storage. (optional) - * @param file A file to be converted. (optional) * @return ApiResponse<AsposeResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse putXfaPdfInRequestToAcroFormWithHttpInfo(String outPath, String storage, File file) throws ApiException { - com.squareup.okhttp.Call call = putXfaPdfInRequestToAcroFormValidateBeforeCall(outPath, storage, file, null, null); + public ApiResponse putXmlInStorageToPdfWithHttpInfo(String name, String srcPath, String xslFilePath, String dstFolder, String storage) throws ApiException { + com.squareup.okhttp.Call call = putXmlInStorageToPdfValidateBeforeCall(name, srcPath, xslFilePath, dstFolder, storage, null, null); Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Converts PDF document which contatins XFA form (in request content) to PDF with AcroForm and uploads resulting file to storage. (asynchronously) + * Convert XML file (located on storage) to PDF format and upload resulting file to storage. (asynchronously) * - * @param outPath Full resulting filename (ex. /folder1/folder2/result.pdf) (required) + * @param name The document name. (required) + * @param srcPath Full source filename (ex. /folder1/folder2/template.xml) (required) + * @param xslFilePath Full XSL source filename (ex. /folder1/folder2/template.xsl) (optional) + * @param dstFolder The destination document folder. (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 * @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 putXfaPdfInRequestToAcroFormAsync(String outPath, String storage, File file, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call putXmlInStorageToPdfAsync(String name, String srcPath, String xslFilePath, String dstFolder, String storage, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -47967,35 +51760,35 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = putXfaPdfInRequestToAcroFormValidateBeforeCall(outPath, storage, file, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = putXmlInStorageToPdfValidateBeforeCall(name, srcPath, xslFilePath, dstFolder, storage, progressListener, progressRequestListener); Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for putXfaPdfInStorageToAcroForm + * Build call for putXpsInStorageToPdf * @param name The document name. (required) - * @param outPath Full resulting filename (ex. /folder1/folder2/result.pdf) (required) - * @param folder The document folder. (optional) + * @param srcPath Full source filename (ex. /folder1/folder2/template.xps) (required) + * @param dstFolder The destination 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 putXfaPdfInStorageToAcroFormCall(String name, String outPath, String folder, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call putXpsInStorageToPdfCall(String name, String srcPath, String dstFolder, 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" + String localVarPath = "/pdf/{name}/create/xps" .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (outPath != null) - localVarQueryParams.addAll(apiClient.parameterToPair("outPath", outPath)); - if (folder != null) - localVarQueryParams.addAll(apiClient.parameterToPair("folder", folder)); + if (srcPath != null) + localVarQueryParams.addAll(apiClient.parameterToPair("srcPath", srcPath)); + if (dstFolder != null) + localVarQueryParams.addAll(apiClient.parameterToPair("dstFolder", dstFolder)); if (storage != null) localVarQueryParams.addAll(apiClient.parameterToPair("storage", storage)); @@ -48027,51 +51820,51 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call putXfaPdfInStorageToAcroFormValidateBeforeCall(String name, String outPath, String folder, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call putXpsInStorageToPdfValidateBeforeCall(String name, String srcPath, String dstFolder, 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 putXfaPdfInStorageToAcroForm(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling putXpsInStorageToPdf(Async)"); } - // verify the required parameter 'outPath' is set - if (outPath == null) { - throw new ApiException("Missing the required parameter 'outPath' when calling putXfaPdfInStorageToAcroForm(Async)"); + // verify the required parameter 'srcPath' is set + if (srcPath == null) { + throw new ApiException("Missing the required parameter 'srcPath' when calling putXpsInStorageToPdf(Async)"); } - com.squareup.okhttp.Call call = putXfaPdfInStorageToAcroFormCall(name, outPath, folder, storage, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = putXpsInStorageToPdfCall(name, srcPath, dstFolder, storage, progressListener, progressRequestListener); return call; } /** - * Converts PDF document which contatins XFA form (located on storage) to PDF with AcroForm and uploads resulting file to storage + * Convert XPS file (located on storage) to PDF format and upload resulting file to storage. * * @param name The document name. (required) - * @param outPath Full resulting filename (ex. /folder1/folder2/result.pdf) (required) - * @param folder The document folder. (optional) + * @param srcPath Full source filename (ex. /folder1/folder2/template.xps) (required) + * @param dstFolder The destination document folder. (optional) * @param storage The document storage. (optional) * @return AsposeResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public AsposeResponse putXfaPdfInStorageToAcroForm(String name, String outPath, String folder, String storage) throws ApiException { + public AsposeResponse putXpsInStorageToPdf(String name, String srcPath, String dstFolder, String storage) throws ApiException { try { - ApiResponse resp = putXfaPdfInStorageToAcroFormWithHttpInfo(name, outPath, folder, storage); + ApiResponse resp = putXpsInStorageToPdfWithHttpInfo(name, srcPath, dstFolder, storage); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = putXfaPdfInStorageToAcroFormWithHttpInfo(name, outPath, folder, storage); + apiClient.requestToken(); + ApiResponse resp = putXpsInStorageToPdfWithHttpInfo(name, srcPath, dstFolder, storage); return resp.getData(); } throw ex; @@ -48079,33 +51872,33 @@ public AsposeResponse putXfaPdfInStorageToAcroForm(String name, String outPath, } /** - * Converts PDF document which contatins XFA form (located on storage) to PDF with AcroForm and uploads resulting file to storage + * Convert XPS file (located on storage) to PDF format and upload resulting file to storage. * * @param name The document name. (required) - * @param outPath Full resulting filename (ex. /folder1/folder2/result.pdf) (required) - * @param folder The document folder. (optional) + * @param srcPath Full source filename (ex. /folder1/folder2/template.xps) (required) + * @param dstFolder The destination document folder. (optional) * @param storage The document storage. (optional) * @return ApiResponse<AsposeResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse putXfaPdfInStorageToAcroFormWithHttpInfo(String name, String outPath, String folder, String storage) throws ApiException { - com.squareup.okhttp.Call call = putXfaPdfInStorageToAcroFormValidateBeforeCall(name, outPath, folder, storage, null, null); + public ApiResponse putXpsInStorageToPdfWithHttpInfo(String name, String srcPath, String dstFolder, String storage) throws ApiException { + com.squareup.okhttp.Call call = putXpsInStorageToPdfValidateBeforeCall(name, srcPath, dstFolder, 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 uploads resulting file to storage (asynchronously) + * Convert XPS file (located on storage) to PDF format and upload resulting file to storage. (asynchronously) * * @param name The document name. (required) - * @param outPath Full resulting filename (ex. /folder1/folder2/result.pdf) (required) - * @param folder The document folder. (optional) + * @param srcPath Full source filename (ex. /folder1/folder2/template.xps) (required) + * @param dstFolder The destination 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 putXfaPdfInStorageToAcroFormAsync(String name, String outPath, String folder, String storage, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call putXpsInStorageToPdfAsync(String name, String srcPath, String dstFolder, String storage, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -48126,16 +51919,15 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = putXfaPdfInStorageToAcroFormValidateBeforeCall(name, outPath, folder, storage, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = putXpsInStorageToPdfValidateBeforeCall(name, srcPath, dstFolder, storage, progressListener, progressRequestListener); Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for putXmlInStorageToPdf + * Build call for putXslFoInStorageToPdf * @param name The document name. (required) - * @param srcPath Full source filename (ex. /folder1/folder2/template.xml) (required) - * @param xslFilePath Full XSL source filename (ex. /folder1/folder2/template.xsl) (optional) + * @param srcPath Full source filename (ex. /folder1/folder2/template.xpsfo) (required) * @param dstFolder The destination document folder. (optional) * @param storage The document storage. (optional) * @param progressListener Progress listener @@ -48143,19 +51935,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 putXmlInStorageToPdfCall(String name, String srcPath, String xslFilePath, String dstFolder, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call putXslFoInStorageToPdfCall(String name, String srcPath, String dstFolder, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; // create path and map variables - String localVarPath = "/pdf/{name}/create/xml" + String localVarPath = "/pdf/{name}/create/xslfo" .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 (dstFolder != null) localVarQueryParams.addAll(apiClient.parameterToPair("dstFolder", dstFolder)); if (storage != null) @@ -48189,52 +51979,51 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call putXmlInStorageToPdfValidateBeforeCall(String name, String srcPath, String xslFilePath, String dstFolder, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call putXslFoInStorageToPdfValidateBeforeCall(String name, String srcPath, String dstFolder, 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 putXmlInStorageToPdf(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling putXslFoInStorageToPdf(Async)"); } // verify the required parameter 'srcPath' is set if (srcPath == null) { - throw new ApiException("Missing the required parameter 'srcPath' when calling putXmlInStorageToPdf(Async)"); + throw new ApiException("Missing the required parameter 'srcPath' when calling putXslFoInStorageToPdf(Async)"); } - com.squareup.okhttp.Call call = putXmlInStorageToPdfCall(name, srcPath, xslFilePath, dstFolder, storage, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = putXslFoInStorageToPdfCall(name, srcPath, dstFolder, storage, progressListener, progressRequestListener); return call; } /** - * Convert XML file (located on storage) to PDF format and upload resulting file to storage. + * Convert XslFo file (located on storage) to PDF format and upload resulting file to storage. * * @param name The document name. (required) - * @param srcPath Full source filename (ex. /folder1/folder2/template.xml) (required) - * @param xslFilePath Full XSL source filename (ex. /folder1/folder2/template.xsl) (optional) + * @param srcPath Full source filename (ex. /folder1/folder2/template.xpsfo) (required) * @param dstFolder The destination document folder. (optional) * @param storage The document storage. (optional) * @return AsposeResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public AsposeResponse putXmlInStorageToPdf(String name, String srcPath, String xslFilePath, String dstFolder, String storage) throws ApiException { + public AsposeResponse putXslFoInStorageToPdf(String name, String srcPath, String dstFolder, String storage) throws ApiException { try { - ApiResponse resp = putXmlInStorageToPdfWithHttpInfo(name, srcPath, xslFilePath, dstFolder, storage); + ApiResponse resp = putXslFoInStorageToPdfWithHttpInfo(name, srcPath, dstFolder, storage); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = putXmlInStorageToPdfWithHttpInfo(name, srcPath, xslFilePath, dstFolder, storage); + apiClient.requestToken(); + ApiResponse resp = putXslFoInStorageToPdfWithHttpInfo(name, srcPath, dstFolder, storage); return resp.getData(); } throw ex; @@ -48242,35 +52031,33 @@ public AsposeResponse putXmlInStorageToPdf(String name, String srcPath, String x } /** - * Convert XML file (located on storage) to PDF format and upload resulting file to storage. + * Convert XslFo file (located on storage) to PDF format and upload resulting file to storage. * * @param name The document name. (required) - * @param srcPath Full source filename (ex. /folder1/folder2/template.xml) (required) - * @param xslFilePath Full XSL source filename (ex. /folder1/folder2/template.xsl) (optional) + * @param srcPath Full source filename (ex. /folder1/folder2/template.xpsfo) (required) * @param dstFolder The destination document folder. (optional) * @param storage The document storage. (optional) * @return ApiResponse<AsposeResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse putXmlInStorageToPdfWithHttpInfo(String name, String srcPath, String xslFilePath, String dstFolder, String storage) throws ApiException { - com.squareup.okhttp.Call call = putXmlInStorageToPdfValidateBeforeCall(name, srcPath, xslFilePath, dstFolder, storage, null, null); + public ApiResponse putXslFoInStorageToPdfWithHttpInfo(String name, String srcPath, String dstFolder, String storage) throws ApiException { + com.squareup.okhttp.Call call = putXslFoInStorageToPdfValidateBeforeCall(name, srcPath, dstFolder, storage, null, null); Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Convert XML file (located on storage) to PDF format and upload resulting file to storage. (asynchronously) + * Convert XslFo file (located on storage) to PDF format and upload resulting file to storage. (asynchronously) * * @param name The document name. (required) - * @param srcPath Full source filename (ex. /folder1/folder2/template.xml) (required) - * @param xslFilePath Full XSL source filename (ex. /folder1/folder2/template.xsl) (optional) + * @param srcPath Full source filename (ex. /folder1/folder2/template.xpsfo) (required) * @param dstFolder The destination 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 putXmlInStorageToPdfAsync(String name, String srcPath, String xslFilePath, String dstFolder, String storage, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call putXslFoInStorageToPdfAsync(String name, String srcPath, String dstFolder, String storage, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -48291,37 +52078,28 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = putXmlInStorageToPdfValidateBeforeCall(name, srcPath, xslFilePath, dstFolder, storage, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = putXslFoInStorageToPdfValidateBeforeCall(name, srcPath, dstFolder, storage, progressListener, progressRequestListener); Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for putXpsInStorageToPdf - * @param name The document name. (required) - * @param srcPath Full source filename (ex. /folder1/folder2/template.xps) (required) - * @param dstFolder The destination document folder. (optional) - * @param storage The document storage. (optional) + * Build call for storageExists + * @param storageName 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 putXpsInStorageToPdfCall(String name, String srcPath, String dstFolder, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call storageExistsCall(String storageName, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; // create path and map variables - String localVarPath = "/pdf/{name}/create/xps" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + String localVarPath = "/pdf/storage/{storageName}/exist" + .replaceAll("\\{" + "storageName" + "\\}", apiClient.escapeString(storageName.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (srcPath != null) - localVarQueryParams.addAll(apiClient.parameterToPair("srcPath", srcPath)); - if (dstFolder != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dstFolder", dstFolder)); - if (storage != null) - localVarQueryParams.addAll(apiClient.parameterToPair("storage", storage)); Map localVarHeaderParams = new HashMap(); @@ -48351,51 +52129,43 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; - return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + String[] localVarAuthNames = new String[] { "JWT" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call putXpsInStorageToPdfValidateBeforeCall(String name, String srcPath, String dstFolder, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call storageExistsValidateBeforeCall(String storageName, 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 putXpsInStorageToPdf(Async)"); - } - - // verify the required parameter 'srcPath' is set - if (srcPath == null) { - throw new ApiException("Missing the required parameter 'srcPath' when calling putXpsInStorageToPdf(Async)"); + // verify the required parameter 'storageName' is set + if (storageName == null) { + throw new ApiException("Missing the required parameter 'storageName' when calling storageExists(Async)"); } - com.squareup.okhttp.Call call = putXpsInStorageToPdfCall(name, srcPath, dstFolder, storage, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = storageExistsCall(storageName, progressListener, progressRequestListener); return call; } /** - * Convert XPS file (located on storage) to PDF format and upload resulting file to storage. + * Check if storage exists * - * @param name The document name. (required) - * @param srcPath Full source filename (ex. /folder1/folder2/template.xps) (required) - * @param dstFolder The destination document folder. (optional) - * @param storage The document storage. (optional) - * @return AsposeResponse + * @param storageName Storage name (required) + * @return StorageExist * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public AsposeResponse putXpsInStorageToPdf(String name, String srcPath, String dstFolder, String storage) throws ApiException { + public StorageExist storageExists(String storageName) throws ApiException { try { - ApiResponse resp = putXpsInStorageToPdfWithHttpInfo(name, srcPath, dstFolder, storage); + ApiResponse resp = storageExistsWithHttpInfo(storageName); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = putXpsInStorageToPdfWithHttpInfo(name, srcPath, dstFolder, storage); + apiClient.requestToken(); + ApiResponse resp = storageExistsWithHttpInfo(storageName); return resp.getData(); } throw ex; @@ -48403,33 +52173,27 @@ public AsposeResponse putXpsInStorageToPdf(String name, String srcPath, String d } /** - * Convert XPS file (located on storage) to PDF format and upload resulting file to storage. + * Check if storage exists * - * @param name The document name. (required) - * @param srcPath Full source filename (ex. /folder1/folder2/template.xps) (required) - * @param dstFolder The destination document folder. (optional) - * @param storage The document storage. (optional) - * @return ApiResponse<AsposeResponse> + * @param storageName Storage name (required) + * @return ApiResponse<StorageExist> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse putXpsInStorageToPdfWithHttpInfo(String name, String srcPath, String dstFolder, String storage) throws ApiException { - com.squareup.okhttp.Call call = putXpsInStorageToPdfValidateBeforeCall(name, srcPath, dstFolder, storage, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse storageExistsWithHttpInfo(String storageName) throws ApiException { + com.squareup.okhttp.Call call = storageExistsValidateBeforeCall(storageName, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Convert XPS file (located on storage) to PDF format and upload resulting file to storage. (asynchronously) + * Check if storage exists (asynchronously) * - * @param name The document name. (required) - * @param srcPath Full source filename (ex. /folder1/folder2/template.xps) (required) - * @param dstFolder The destination document folder. (optional) - * @param storage The document storage. (optional) + * @param storageName 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 putXpsInStorageToPdfAsync(String name, String srcPath, String dstFolder, String storage, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call storageExistsAsync(String storageName, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -48450,37 +52214,32 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = putXpsInStorageToPdfValidateBeforeCall(name, srcPath, dstFolder, storage, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = storageExistsValidateBeforeCall(storageName, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for putXslFoInStorageToPdf - * @param name The document name. (required) - * @param srcPath Full source filename (ex. /folder1/folder2/template.xpsfo) (required) - * @param dstFolder The destination document folder. (optional) - * @param storage The document storage. (optional) + * Build call for uploadFile + * @param path Path where to upload including filename and extension e.g. /file.ext or /Folder 1/file.ext If the content is multipart and path does not contains the file name it tries to get them from filename parameter from Content-Disposition header. (required) + * @param file File to upload (required) + * @param storageName 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 putXslFoInStorageToPdfCall(String name, String srcPath, String dstFolder, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = null; + public com.squareup.okhttp.Call uploadFileCall(String path, File file, String storageName, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = file; // create path and map variables - String localVarPath = "/pdf/{name}/create/xslfo" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + String localVarPath = "/pdf/storage/file/{path}" + .replaceAll("\\{" + "path" + "\\}", apiClient.escapeString(path.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (srcPath != null) - localVarQueryParams.addAll(apiClient.parameterToPair("srcPath", srcPath)); - if (dstFolder != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dstFolder", dstFolder)); - if (storage != null) - localVarQueryParams.addAll(apiClient.parameterToPair("storage", storage)); + if (storageName != null) + localVarQueryParams.addAll(apiClient.parameterToPair("storageName", storageName)); Map localVarHeaderParams = new HashMap(); @@ -48510,51 +52269,50 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "JWT" }; return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call putXslFoInStorageToPdfValidateBeforeCall(String name, String srcPath, String dstFolder, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call uploadFileValidateBeforeCall(String path, File file, String storageName, 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 putXslFoInStorageToPdf(Async)"); + // verify the required parameter 'path' is set + if (path == null) { + throw new ApiException("Missing the required parameter 'path' when calling uploadFile(Async)"); } - // verify the required parameter 'srcPath' is set - if (srcPath == null) { - throw new ApiException("Missing the required parameter 'srcPath' when calling putXslFoInStorageToPdf(Async)"); + // verify the required parameter 'file' is set + if (file == null) { + throw new ApiException("Missing the required parameter 'file' when calling uploadFile(Async)"); } - com.squareup.okhttp.Call call = putXslFoInStorageToPdfCall(name, srcPath, dstFolder, storage, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = uploadFileCall(path, file, storageName, progressListener, progressRequestListener); return call; } /** - * Convert XslFo file (located on storage) to PDF format and upload resulting file to storage. + * Upload file * - * @param name The document name. (required) - * @param srcPath Full source filename (ex. /folder1/folder2/template.xpsfo) (required) - * @param dstFolder The destination document folder. (optional) - * @param storage The document storage. (optional) - * @return AsposeResponse + * @param path Path where to upload including filename and extension e.g. /file.ext or /Folder 1/file.ext If the content is multipart and path does not contains the file name it tries to get them from filename parameter from Content-Disposition header. (required) + * @param file File to upload (required) + * @param storageName Storage name (optional) + * @return FilesUploadResult * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public AsposeResponse putXslFoInStorageToPdf(String name, String srcPath, String dstFolder, String storage) throws ApiException { + public FilesUploadResult uploadFile(String path, File file, String storageName) throws ApiException { try { - ApiResponse resp = putXslFoInStorageToPdfWithHttpInfo(name, srcPath, dstFolder, storage); + ApiResponse resp = uploadFileWithHttpInfo(path, file, storageName); return resp.getData(); } catch (ApiException ex) { if (ex.getCode() == 401) { - apiClient.refreshToken(); - ApiResponse resp = putXslFoInStorageToPdfWithHttpInfo(name, srcPath, dstFolder, storage); + apiClient.requestToken(); + ApiResponse resp = uploadFileWithHttpInfo(path, file, storageName); return resp.getData(); } throw ex; @@ -48562,33 +52320,31 @@ public AsposeResponse putXslFoInStorageToPdf(String name, String srcPath, String } /** - * Convert XslFo file (located on storage) to PDF format and upload resulting file to storage. + * Upload file * - * @param name The document name. (required) - * @param srcPath Full source filename (ex. /folder1/folder2/template.xpsfo) (required) - * @param dstFolder The destination document folder. (optional) - * @param storage The document storage. (optional) - * @return ApiResponse<AsposeResponse> + * @param path Path where to upload including filename and extension e.g. /file.ext or /Folder 1/file.ext If the content is multipart and path does not contains the file name it tries to get them from filename parameter from Content-Disposition header. (required) + * @param file File to upload (required) + * @param storageName Storage name (optional) + * @return ApiResponse<FilesUploadResult> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse putXslFoInStorageToPdfWithHttpInfo(String name, String srcPath, String dstFolder, String storage) throws ApiException { - com.squareup.okhttp.Call call = putXslFoInStorageToPdfValidateBeforeCall(name, srcPath, dstFolder, storage, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse uploadFileWithHttpInfo(String path, File file, String storageName) throws ApiException { + com.squareup.okhttp.Call call = uploadFileValidateBeforeCall(path, file, storageName, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Convert XslFo file (located on storage) to PDF format and upload resulting file to storage. (asynchronously) + * Upload file (asynchronously) * - * @param name The document name. (required) - * @param srcPath Full source filename (ex. /folder1/folder2/template.xpsfo) (required) - * @param dstFolder The destination document folder. (optional) - * @param storage The document storage. (optional) + * @param path Path where to upload including filename and extension e.g. /file.ext or /Folder 1/file.ext If the content is multipart and path does not contains the file name it tries to get them from filename parameter from Content-Disposition header. (required) + * @param file File to upload (required) + * @param storageName 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 putXslFoInStorageToPdfAsync(String name, String srcPath, String dstFolder, String storage, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call uploadFileAsync(String path, File file, String storageName, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -48609,8 +52365,8 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = putXslFoInStorageToPdfValidateBeforeCall(name, srcPath, dstFolder, storage, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = uploadFileValidateBeforeCall(path, file, storageName, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } diff --git a/src/main/java/com/aspose/asposecloudpdf/model/Annotation.java b/src/main/java/com/aspose/asposecloudpdf/model/Annotation.java index c2d2114..04c0f5c 100644 --- a/src/main/java/com/aspose/asposecloudpdf/model/Annotation.java +++ b/src/main/java/com/aspose/asposecloudpdf/model/Annotation.java @@ -205,7 +205,7 @@ public Annotation rect(Rectangle rect) { * Gets Rect of the annotation. * @return rect **/ - @ApiModelProperty(value = "Gets Rect of the annotation.") + @ApiModelProperty(required = true, value = "Gets Rect of the annotation.") public Rectangle getRect() { return rect; } diff --git a/src/main/java/com/aspose/asposecloudpdf/model/AnnotationInfo.java b/src/main/java/com/aspose/asposecloudpdf/model/AnnotationInfo.java index d3d12c0..428a470 100644 --- a/src/main/java/com/aspose/asposecloudpdf/model/AnnotationInfo.java +++ b/src/main/java/com/aspose/asposecloudpdf/model/AnnotationInfo.java @@ -59,7 +59,7 @@ public AnnotationInfo annotationType(AnnotationType annotationType) { * Gets annotation type. * @return annotationType **/ - @ApiModelProperty(value = "Gets annotation type.") + @ApiModelProperty(required = true, value = "Gets annotation type.") public AnnotationType getAnnotationType() { return annotationType; } diff --git a/src/main/java/com/aspose/asposecloudpdf/model/Attachment.java b/src/main/java/com/aspose/asposecloudpdf/model/Attachment.java index 9a07acc..aa704af 100644 --- a/src/main/java/com/aspose/asposecloudpdf/model/Attachment.java +++ b/src/main/java/com/aspose/asposecloudpdf/model/Attachment.java @@ -161,7 +161,7 @@ public Attachment size(Integer size) { * The size of the uncompressed embedded file, in bytes. * @return size **/ - @ApiModelProperty(value = "The size of the uncompressed embedded file, in bytes.") + @ApiModelProperty(required = true, value = "The size of the uncompressed embedded file, in bytes.") public Integer getSize() { return size; } diff --git a/src/main/java/com/aspose/asposecloudpdf/model/Bookmark.java b/src/main/java/com/aspose/asposecloudpdf/model/Bookmark.java new file mode 100644 index 0000000..0ee97f2 --- /dev/null +++ b/src/main/java/com/aspose/asposecloudpdf/model/Bookmark.java @@ -0,0 +1,454 @@ +/** + * + * Copyright (c) 2019 Aspose.PDF Cloud + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + * + */ + + +package com.aspose.asposecloudpdf.model; + +import java.util.Objects; +import com.aspose.asposecloudpdf.model.Bookmarks; +import com.aspose.asposecloudpdf.model.Color; +import com.aspose.asposecloudpdf.model.Link; +import com.aspose.asposecloudpdf.model.LinkElement; +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; + +/** + * Provides link to bookmark. + */ +@ApiModel(description = "Provides link to bookmark.") + +public class Bookmark extends LinkElement { + @SerializedName("Title") + private String title = null; + + @SerializedName("Italic") + private Boolean italic = null; + + @SerializedName("Bold") + private Boolean bold = null; + + @SerializedName("Color") + private Color color = null; + + @SerializedName("Action") + private String action = null; + + @SerializedName("Level") + private Integer level = null; + + @SerializedName("Destination") + private String destination = null; + + @SerializedName("PageDisplay") + private String pageDisplay = null; + + @SerializedName("PageDisplay_Bottom") + private Integer pageDisplayBottom = null; + + @SerializedName("PageDisplay_Left") + private Integer pageDisplayLeft = null; + + @SerializedName("PageDisplay_Right") + private Integer pageDisplayRight = null; + + @SerializedName("PageDisplay_Top") + private Integer pageDisplayTop = null; + + @SerializedName("PageDisplay_Zoom") + private Integer pageDisplayZoom = null; + + @SerializedName("PageNumber") + private Integer pageNumber = null; + + @SerializedName("RemoteFile") + private String remoteFile = null; + + @SerializedName("Bookmarks") + private Bookmarks bookmarks = null; + + public Bookmark title(String title) { + this.title = title; + return this; + } + + /** + * Get the Title; + * @return title + **/ + @ApiModelProperty(value = "Get the Title;") + public String getTitle() { + return title; + } + + public void setTitle(String title) { + this.title = title; + } + + public Bookmark italic(Boolean italic) { + this.italic = italic; + return this; + } + + /** + * Is bookmark italic. + * @return italic + **/ + @ApiModelProperty(value = "Is bookmark italic.") + public Boolean isItalic() { + return italic; + } + + public void setItalic(Boolean italic) { + this.italic = italic; + } + + public Bookmark bold(Boolean bold) { + this.bold = bold; + return this; + } + + /** + * Is bookmark bold. + * @return bold + **/ + @ApiModelProperty(value = "Is bookmark bold.") + public Boolean isBold() { + return bold; + } + + public void setBold(Boolean bold) { + this.bold = bold; + } + + public Bookmark color(Color color) { + this.color = color; + return this; + } + + /** + * Get the color + * @return color + **/ + @ApiModelProperty(value = "Get the color") + public Color getColor() { + return color; + } + + public void setColor(Color color) { + this.color = color; + } + + public Bookmark action(String action) { + this.action = action; + return this; + } + + /** + * Gets or sets the action bound with the bookmark. If PageNumber is presented the action can not be specified. The action type includes: \"GoTo\", \"GoToR\", \"Launch\", \"Named\". + * @return action + **/ + @ApiModelProperty(value = "Gets or sets the action bound with the bookmark. If PageNumber is presented the action can not be specified. The action type includes: \"GoTo\", \"GoToR\", \"Launch\", \"Named\".") + public String getAction() { + return action; + } + + public void setAction(String action) { + this.action = action; + } + + public Bookmark level(Integer level) { + this.level = level; + return this; + } + + /** + * Gets or sets bookmark's hierarchy level. + * @return level + **/ + @ApiModelProperty(value = "Gets or sets bookmark's hierarchy level.") + public Integer getLevel() { + return level; + } + + public void setLevel(Integer level) { + this.level = level; + } + + public Bookmark destination(String destination) { + this.destination = destination; + return this; + } + + /** + * Gets or sets bookmark's destination page. Required if action is set as string.Empty. + * @return destination + **/ + @ApiModelProperty(value = "Gets or sets bookmark's destination page. Required if action is set as string.Empty.") + public String getDestination() { + return destination; + } + + public void setDestination(String destination) { + this.destination = destination; + } + + public Bookmark pageDisplay(String pageDisplay) { + this.pageDisplay = pageDisplay; + return this; + } + + /** + * Gets or sets the type of display bookmark's destination page. + * @return pageDisplay + **/ + @ApiModelProperty(value = "Gets or sets the type of display bookmark's destination page.") + public String getPageDisplay() { + return pageDisplay; + } + + public void setPageDisplay(String pageDisplay) { + this.pageDisplay = pageDisplay; + } + + public Bookmark pageDisplayBottom(Integer pageDisplayBottom) { + this.pageDisplayBottom = pageDisplayBottom; + return this; + } + + /** + * Gets or sets the bottom coordinate of page display. + * @return pageDisplayBottom + **/ + @ApiModelProperty(value = "Gets or sets the bottom coordinate of page display.") + public Integer getPageDisplayBottom() { + return pageDisplayBottom; + } + + public void setPageDisplayBottom(Integer pageDisplayBottom) { + this.pageDisplayBottom = pageDisplayBottom; + } + + public Bookmark pageDisplayLeft(Integer pageDisplayLeft) { + this.pageDisplayLeft = pageDisplayLeft; + return this; + } + + /** + * Gets or sets the left coordinate of page display. + * @return pageDisplayLeft + **/ + @ApiModelProperty(value = "Gets or sets the left coordinate of page display.") + public Integer getPageDisplayLeft() { + return pageDisplayLeft; + } + + public void setPageDisplayLeft(Integer pageDisplayLeft) { + this.pageDisplayLeft = pageDisplayLeft; + } + + public Bookmark pageDisplayRight(Integer pageDisplayRight) { + this.pageDisplayRight = pageDisplayRight; + return this; + } + + /** + * Gets or sets the right coordinate of page display. + * @return pageDisplayRight + **/ + @ApiModelProperty(value = "Gets or sets the right coordinate of page display.") + public Integer getPageDisplayRight() { + return pageDisplayRight; + } + + public void setPageDisplayRight(Integer pageDisplayRight) { + this.pageDisplayRight = pageDisplayRight; + } + + public Bookmark pageDisplayTop(Integer pageDisplayTop) { + this.pageDisplayTop = pageDisplayTop; + return this; + } + + /** + * Gets or sets the top coordinate of page display. + * @return pageDisplayTop + **/ + @ApiModelProperty(value = "Gets or sets the top coordinate of page display.") + public Integer getPageDisplayTop() { + return pageDisplayTop; + } + + public void setPageDisplayTop(Integer pageDisplayTop) { + this.pageDisplayTop = pageDisplayTop; + } + + public Bookmark pageDisplayZoom(Integer pageDisplayZoom) { + this.pageDisplayZoom = pageDisplayZoom; + return this; + } + + /** + * Gets or sets the zoom factor of page display. + * @return pageDisplayZoom + **/ + @ApiModelProperty(value = "Gets or sets the zoom factor of page display.") + public Integer getPageDisplayZoom() { + return pageDisplayZoom; + } + + public void setPageDisplayZoom(Integer pageDisplayZoom) { + this.pageDisplayZoom = pageDisplayZoom; + } + + public Bookmark pageNumber(Integer pageNumber) { + this.pageNumber = pageNumber; + return this; + } + + /** + * Gets or sets the number of bookmark's destination page. + * @return pageNumber + **/ + @ApiModelProperty(value = "Gets or sets the number of bookmark's destination page. ") + public Integer getPageNumber() { + return pageNumber; + } + + public void setPageNumber(Integer pageNumber) { + this.pageNumber = pageNumber; + } + + public Bookmark remoteFile(String remoteFile) { + this.remoteFile = remoteFile; + return this; + } + + /** + * Gets or sets the file (path) which is required for \"GoToR\" action of bookmark. + * @return remoteFile + **/ + @ApiModelProperty(value = "Gets or sets the file (path) which is required for \"GoToR\" action of bookmark.") + public String getRemoteFile() { + return remoteFile; + } + + public void setRemoteFile(String remoteFile) { + this.remoteFile = remoteFile; + } + + public Bookmark bookmarks(Bookmarks bookmarks) { + this.bookmarks = bookmarks; + return this; + } + + /** + * The children bookmarks. + * @return bookmarks + **/ + @ApiModelProperty(value = "The children bookmarks.") + public Bookmarks getBookmarks() { + return bookmarks; + } + + public void setBookmarks(Bookmarks bookmarks) { + this.bookmarks = bookmarks; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + Bookmark bookmark = (Bookmark) o; + return Objects.equals(this.title, bookmark.title) && + Objects.equals(this.italic, bookmark.italic) && + Objects.equals(this.bold, bookmark.bold) && + Objects.equals(this.color, bookmark.color) && + Objects.equals(this.action, bookmark.action) && + Objects.equals(this.level, bookmark.level) && + Objects.equals(this.destination, bookmark.destination) && + Objects.equals(this.pageDisplay, bookmark.pageDisplay) && + Objects.equals(this.pageDisplayBottom, bookmark.pageDisplayBottom) && + Objects.equals(this.pageDisplayLeft, bookmark.pageDisplayLeft) && + Objects.equals(this.pageDisplayRight, bookmark.pageDisplayRight) && + Objects.equals(this.pageDisplayTop, bookmark.pageDisplayTop) && + Objects.equals(this.pageDisplayZoom, bookmark.pageDisplayZoom) && + Objects.equals(this.pageNumber, bookmark.pageNumber) && + Objects.equals(this.remoteFile, bookmark.remoteFile) && + Objects.equals(this.bookmarks, bookmark.bookmarks) && + super.equals(o); + } + + @Override + public int hashCode() { + return Objects.hash(title, italic, bold, color, action, level, destination, pageDisplay, pageDisplayBottom, pageDisplayLeft, pageDisplayRight, pageDisplayTop, pageDisplayZoom, pageNumber, remoteFile, bookmarks, super.hashCode()); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class Bookmark {\n"); + sb.append(" ").append(toIndentedString(super.toString())).append("\n"); + sb.append(" title: ").append(toIndentedString(title)).append("\n"); + sb.append(" italic: ").append(toIndentedString(italic)).append("\n"); + sb.append(" bold: ").append(toIndentedString(bold)).append("\n"); + sb.append(" color: ").append(toIndentedString(color)).append("\n"); + sb.append(" action: ").append(toIndentedString(action)).append("\n"); + sb.append(" level: ").append(toIndentedString(level)).append("\n"); + sb.append(" destination: ").append(toIndentedString(destination)).append("\n"); + sb.append(" pageDisplay: ").append(toIndentedString(pageDisplay)).append("\n"); + sb.append(" pageDisplayBottom: ").append(toIndentedString(pageDisplayBottom)).append("\n"); + sb.append(" pageDisplayLeft: ").append(toIndentedString(pageDisplayLeft)).append("\n"); + sb.append(" pageDisplayRight: ").append(toIndentedString(pageDisplayRight)).append("\n"); + sb.append(" pageDisplayTop: ").append(toIndentedString(pageDisplayTop)).append("\n"); + sb.append(" pageDisplayZoom: ").append(toIndentedString(pageDisplayZoom)).append("\n"); + sb.append(" pageNumber: ").append(toIndentedString(pageNumber)).append("\n"); + sb.append(" remoteFile: ").append(toIndentedString(remoteFile)).append("\n"); + sb.append(" bookmarks: ").append(toIndentedString(bookmarks)).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/FilesResponse.java b/src/main/java/com/aspose/asposecloudpdf/model/BookmarkResponse.java similarity index 72% rename from src/main/java/com/aspose/asposecloudpdf/model/FilesResponse.java rename to src/main/java/com/aspose/asposecloudpdf/model/BookmarkResponse.java index 65d799f..0f6e767 100644 --- a/src/main/java/com/aspose/asposecloudpdf/model/FilesResponse.java +++ b/src/main/java/com/aspose/asposecloudpdf/model/BookmarkResponse.java @@ -24,6 +24,7 @@ import java.util.Objects; import com.aspose.asposecloudpdf.model.AsposeResponse; +import com.aspose.asposecloudpdf.model.Bookmark; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -32,41 +33,32 @@ import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; -import java.util.ArrayList; -import java.util.List; /** - * FilesResponse + * Represents response containing single bookmark info */ +@ApiModel(description = "Represents response containing single bookmark info") -public class FilesResponse extends AsposeResponse { - @SerializedName("Files") - private List files = null; +public class BookmarkResponse extends AsposeResponse { + @SerializedName("Bookmark") + private Bookmark bookmark = null; - public FilesResponse files(List files) { - this.files = files; - return this; - } - - public FilesResponse addFilesItem(File filesItem) { - if (this.files == null) { - this.files = new ArrayList(); - } - this.files.add(filesItem); + public BookmarkResponse bookmark(Bookmark bookmark) { + this.bookmark = bookmark; return this; } /** - * Get files - * @return files + * Bookmark object + * @return bookmark **/ - @ApiModelProperty(value = "") - public List getFiles() { - return files; + @ApiModelProperty(value = "Bookmark object") + public Bookmark getBookmark() { + return bookmark; } - public void setFiles(List files) { - this.files = files; + public void setBookmark(Bookmark bookmark) { + this.bookmark = bookmark; } @@ -78,23 +70,23 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - FilesResponse filesResponse = (FilesResponse) o; - return Objects.equals(this.files, filesResponse.files) && + BookmarkResponse bookmarkResponse = (BookmarkResponse) o; + return Objects.equals(this.bookmark, bookmarkResponse.bookmark) && super.equals(o); } @Override public int hashCode() { - return Objects.hash(files, super.hashCode()); + return Objects.hash(bookmark, super.hashCode()); } @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class FilesResponse {\n"); + sb.append("class BookmarkResponse {\n"); sb.append(" ").append(toIndentedString(super.toString())).append("\n"); - sb.append(" files: ").append(toIndentedString(files)).append("\n"); + sb.append(" bookmark: ").append(toIndentedString(bookmark)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/aspose/asposecloudpdf/model/Bookmarks.java b/src/main/java/com/aspose/asposecloudpdf/model/Bookmarks.java new file mode 100644 index 0000000..721d24b --- /dev/null +++ b/src/main/java/com/aspose/asposecloudpdf/model/Bookmarks.java @@ -0,0 +1,117 @@ +/** + * + * Copyright (c) 2019 Aspose.PDF Cloud + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + * + */ + + +package com.aspose.asposecloudpdf.model; + +import java.util.Objects; +import com.aspose.asposecloudpdf.model.Bookmark; +import com.aspose.asposecloudpdf.model.Link; +import com.aspose.asposecloudpdf.model.LinkElement; +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; + +/** + * Represents list of bookmark. + */ +@ApiModel(description = "Represents list of bookmark.") + +public class Bookmarks extends LinkElement { + @SerializedName("List") + private List list = null; + + public Bookmarks list(List list) { + this.list = list; + return this; + } + + public Bookmarks addListItem(Bookmark listItem) { + if (this.list == null) { + this.list = new ArrayList(); + } + this.list.add(listItem); + return this; + } + + /** + * List of bookmarks. + * @return list + **/ + @ApiModelProperty(value = "List of bookmarks.") + public List getList() { + return list; + } + + public void setList(List list) { + this.list = list; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + Bookmarks bookmarks = (Bookmarks) o; + return Objects.equals(this.list, bookmarks.list) && + super.equals(o); + } + + @Override + public int hashCode() { + return Objects.hash(list, super.hashCode()); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class Bookmarks {\n"); + sb.append(" ").append(toIndentedString(super.toString())).append("\n"); + sb.append(" list: ").append(toIndentedString(list)).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/BookmarksResponse.java similarity index 71% rename from src/main/java/com/aspose/asposecloudpdf/model/DiscUsageResponse.java rename to src/main/java/com/aspose/asposecloudpdf/model/BookmarksResponse.java index 10a5d40..ca7abaa 100644 --- a/src/main/java/com/aspose/asposecloudpdf/model/DiscUsageResponse.java +++ b/src/main/java/com/aspose/asposecloudpdf/model/BookmarksResponse.java @@ -24,7 +24,7 @@ import java.util.Objects; import com.aspose.asposecloudpdf.model.AsposeResponse; -import com.aspose.asposecloudpdf.model.DiscUsage; +import com.aspose.asposecloudpdf.model.Bookmarks; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -35,29 +35,30 @@ import java.io.IOException; /** - * DiscUsageResponse + * Represents response containing multiple bookmarks info */ +@ApiModel(description = "Represents response containing multiple bookmarks info") -public class DiscUsageResponse extends AsposeResponse { - @SerializedName("DiscUsage") - private DiscUsage discUsage = null; +public class BookmarksResponse extends AsposeResponse { + @SerializedName("Bookmarks") + private Bookmarks bookmarks = null; - public DiscUsageResponse discUsage(DiscUsage discUsage) { - this.discUsage = discUsage; + public BookmarksResponse bookmarks(Bookmarks bookmarks) { + this.bookmarks = bookmarks; return this; } /** - * Get discUsage - * @return discUsage + * Bookmarks object + * @return bookmarks **/ - @ApiModelProperty(value = "") - public DiscUsage getDiscUsage() { - return discUsage; + @ApiModelProperty(value = "Bookmarks object") + public Bookmarks getBookmarks() { + return bookmarks; } - public void setDiscUsage(DiscUsage discUsage) { - this.discUsage = discUsage; + public void setBookmarks(Bookmarks bookmarks) { + this.bookmarks = bookmarks; } @@ -69,23 +70,23 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - DiscUsageResponse discUsageResponse = (DiscUsageResponse) o; - return Objects.equals(this.discUsage, discUsageResponse.discUsage) && + BookmarksResponse bookmarksResponse = (BookmarksResponse) o; + return Objects.equals(this.bookmarks, bookmarksResponse.bookmarks) && super.equals(o); } @Override public int hashCode() { - return Objects.hash(discUsage, super.hashCode()); + return Objects.hash(bookmarks, super.hashCode()); } @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class DiscUsageResponse {\n"); + sb.append("class BookmarksResponse {\n"); sb.append(" ").append(toIndentedString(super.toString())).append("\n"); - sb.append(" discUsage: ").append(toIndentedString(discUsage)).append("\n"); + sb.append(" bookmarks: ").append(toIndentedString(bookmarks)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/aspose/asposecloudpdf/model/CellRecognized.java b/src/main/java/com/aspose/asposecloudpdf/model/CellRecognized.java index b2977de..5b92f47 100644 --- a/src/main/java/com/aspose/asposecloudpdf/model/CellRecognized.java +++ b/src/main/java/com/aspose/asposecloudpdf/model/CellRecognized.java @@ -51,10 +51,10 @@ public CellRecognized textRects(TextRects textRects) { } /** - * Gets collection of objects that describes text containing in the cell + * Gets collection of TextRect objects that describes text containing in the cell * @return textRects **/ - @ApiModelProperty(value = "Gets collection of objects that describes text containing in the cell") + @ApiModelProperty(value = "Gets collection of TextRect objects that describes text containing in the cell") public TextRects getTextRects() { return textRects; } diff --git a/src/main/java/com/aspose/asposecloudpdf/model/DiscUsage.java b/src/main/java/com/aspose/asposecloudpdf/model/DiscUsage.java index 93fca12..dc13fdc 100644 --- a/src/main/java/com/aspose/asposecloudpdf/model/DiscUsage.java +++ b/src/main/java/com/aspose/asposecloudpdf/model/DiscUsage.java @@ -33,8 +33,9 @@ import java.io.IOException; /** - * DiscUsage + * Class for disc space information. */ +@ApiModel(description = "Class for disc space information.") public class DiscUsage { @SerializedName("UsedSize") @@ -49,10 +50,10 @@ public DiscUsage usedSize(Long usedSize) { } /** - * Get usedSize + * Application used disc space. * @return usedSize **/ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty(required = true, value = "Application used disc space.") public Long getUsedSize() { return usedSize; } @@ -67,10 +68,10 @@ public DiscUsage totalSize(Long totalSize) { } /** - * Get totalSize + * Total disc space. * @return totalSize **/ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty(required = true, value = "Total disc space.") public Long getTotalSize() { return totalSize; } diff --git a/src/main/java/com/aspose/asposecloudpdf/model/DocumentPrivilege.java b/src/main/java/com/aspose/asposecloudpdf/model/DocumentPrivilege.java index c70a41b..e6bcc3d 100644 --- a/src/main/java/com/aspose/asposecloudpdf/model/DocumentPrivilege.java +++ b/src/main/java/com/aspose/asposecloudpdf/model/DocumentPrivilege.java @@ -33,9 +33,9 @@ import java.io.IOException; /** - * Represents the privileges for accessing Pdf file./>. + * Represents the privileges for accessing Pdf file. */ -@ApiModel(description = "Represents the privileges for accessing Pdf file./>.") +@ApiModel(description = "Represents the privileges for accessing Pdf file.") public class DocumentPrivilege { @SerializedName("AllowPrint") diff --git a/src/main/java/com/aspose/asposecloudpdf/model/DocumentProperty.java b/src/main/java/com/aspose/asposecloudpdf/model/DocumentProperty.java index 5f93d95..4c5e92c 100644 --- a/src/main/java/com/aspose/asposecloudpdf/model/DocumentProperty.java +++ b/src/main/java/com/aspose/asposecloudpdf/model/DocumentProperty.java @@ -95,7 +95,7 @@ public DocumentProperty builtIn(Boolean builtIn) { * Value indicating whether it is a built-in property. * @return builtIn **/ - @ApiModelProperty(value = "Value indicating whether it is a built-in property.") + @ApiModelProperty(required = true, 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/AppendDocument.java b/src/main/java/com/aspose/asposecloudpdf/model/Error.java similarity index 50% rename from src/main/java/com/aspose/asposecloudpdf/model/AppendDocument.java rename to src/main/java/com/aspose/asposecloudpdf/model/Error.java index adc46a8..15b4b85 100644 --- a/src/main/java/com/aspose/asposecloudpdf/model/AppendDocument.java +++ b/src/main/java/com/aspose/asposecloudpdf/model/Error.java @@ -23,6 +23,7 @@ package com.aspose.asposecloudpdf.model; import java.util.Objects; +import com.aspose.asposecloudpdf.model.ErrorDetails; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -33,72 +34,93 @@ import java.io.IOException; /** - * Class for appendDocument service request building. + * Error */ -@ApiModel(description = "Class for appendDocument service request building.") +@ApiModel(description = "Error") -public class AppendDocument { - @SerializedName("Document") - private String document = null; +public class Error { + @SerializedName("Code") + private String code = null; - @SerializedName("StartPage") - private Integer startPage = null; + @SerializedName("Message") + private String message = null; - @SerializedName("EndPage") - private Integer endPage = null; + @SerializedName("Description") + private String description = null; - public AppendDocument document(String document) { - this.document = document; + @SerializedName("InnerError") + private ErrorDetails innerError = null; + + public Error code(String code) { + this.code = code; + return this; + } + + /** + * Code + * @return code + **/ + @ApiModelProperty(value = "Code ") + public String getCode() { + return code; + } + + public void setCode(String code) { + this.code = code; + } + + public Error message(String message) { + this.message = message; return this; } /** - * Document to append (server path). - * @return document + * Message + * @return message **/ - @ApiModelProperty(required = true, value = "Document to append (server path).") - public String getDocument() { - return document; + @ApiModelProperty(value = "Message ") + public String getMessage() { + return message; } - public void setDocument(String document) { - this.document = document; + public void setMessage(String message) { + this.message = message; } - public AppendDocument startPage(Integer startPage) { - this.startPage = startPage; + public Error description(String description) { + this.description = description; return this; } /** - * Appending start page. - * @return startPage + * Description + * @return description **/ - @ApiModelProperty(required = true, value = "Appending start page.") - public Integer getStartPage() { - return startPage; + @ApiModelProperty(value = "Description ") + public String getDescription() { + return description; } - public void setStartPage(Integer startPage) { - this.startPage = startPage; + public void setDescription(String description) { + this.description = description; } - public AppendDocument endPage(Integer endPage) { - this.endPage = endPage; + public Error innerError(ErrorDetails innerError) { + this.innerError = innerError; return this; } /** - * Appending end page. - * @return endPage + * Inner Error + * @return innerError **/ - @ApiModelProperty(required = true, value = "Appending end page.") - public Integer getEndPage() { - return endPage; + @ApiModelProperty(value = "Inner Error ") + public ErrorDetails getInnerError() { + return innerError; } - public void setEndPage(Integer endPage) { - this.endPage = endPage; + public void setInnerError(ErrorDetails innerError) { + this.innerError = innerError; } @@ -110,26 +132,28 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - AppendDocument appendDocument = (AppendDocument) o; - return Objects.equals(this.document, appendDocument.document) && - Objects.equals(this.startPage, appendDocument.startPage) && - Objects.equals(this.endPage, appendDocument.endPage); + Error error = (Error) o; + return Objects.equals(this.code, error.code) && + Objects.equals(this.message, error.message) && + Objects.equals(this.description, error.description) && + Objects.equals(this.innerError, error.innerError); } @Override public int hashCode() { - return Objects.hash(document, startPage, endPage); + return Objects.hash(code, message, description, innerError); } @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class AppendDocument {\n"); + sb.append("class Error {\n"); - sb.append(" document: ").append(toIndentedString(document)).append("\n"); - sb.append(" startPage: ").append(toIndentedString(startPage)).append("\n"); - sb.append(" endPage: ").append(toIndentedString(endPage)).append("\n"); + sb.append(" code: ").append(toIndentedString(code)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" innerError: ").append(toIndentedString(innerError)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/aspose/asposecloudpdf/model/ErrorDetails.java b/src/main/java/com/aspose/asposecloudpdf/model/ErrorDetails.java new file mode 100644 index 0000000..fbbbadc --- /dev/null +++ b/src/main/java/com/aspose/asposecloudpdf/model/ErrorDetails.java @@ -0,0 +1,127 @@ +/** + * + * Copyright (c) 2019 Aspose.PDF Cloud + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + * + */ + + +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; + +/** + * The error details + */ +@ApiModel(description = "The error details") + +public class ErrorDetails { + @SerializedName("RequestId") + private String requestId = null; + + @SerializedName("Date") + private OffsetDateTime date = null; + + public ErrorDetails requestId(String requestId) { + this.requestId = requestId; + return this; + } + + /** + * The request id + * @return requestId + **/ + @ApiModelProperty(value = "The request id") + public String getRequestId() { + return requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public ErrorDetails date(OffsetDateTime date) { + this.date = date; + return this; + } + + /** + * Date + * @return date + **/ + @ApiModelProperty(required = true, value = "Date") + public OffsetDateTime getDate() { + return date; + } + + public void setDate(OffsetDateTime date) { + this.date = date; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ErrorDetails errorDetails = (ErrorDetails) o; + return Objects.equals(this.requestId, errorDetails.requestId) && + Objects.equals(this.date, errorDetails.date); + } + + @Override + public int hashCode() { + return Objects.hash(requestId, date); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ErrorDetails {\n"); + + sb.append(" requestId: ").append(toIndentedString(requestId)).append("\n"); + sb.append(" date: ").append(toIndentedString(date)).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/Field.java b/src/main/java/com/aspose/asposecloudpdf/model/Field.java index 8ee0df4..070933e 100644 --- a/src/main/java/com/aspose/asposecloudpdf/model/Field.java +++ b/src/main/java/com/aspose/asposecloudpdf/model/Field.java @@ -57,7 +57,7 @@ public class Field extends LinkElement { private Rectangle rect = null; @SerializedName("Values") - private List values = null; + private List values = new ArrayList(); public Field name(String name) { this.name = name; @@ -145,9 +145,6 @@ public Field values(List values) { } public Field addValuesItem(String valuesItem) { - if (this.values == null) { - this.values = new ArrayList(); - } this.values.add(valuesItem); return this; } @@ -156,7 +153,7 @@ public Field addValuesItem(String valuesItem) { * Field values. * @return values **/ - @ApiModelProperty(value = "Field values.") + @ApiModelProperty(required = true, value = "Field values.") public List getValues() { return values; } diff --git a/src/main/java/com/aspose/asposecloudpdf/model/Fields.java b/src/main/java/com/aspose/asposecloudpdf/model/Fields.java index 5fdedf5..92dbbc7 100644 --- a/src/main/java/com/aspose/asposecloudpdf/model/Fields.java +++ b/src/main/java/com/aspose/asposecloudpdf/model/Fields.java @@ -44,7 +44,7 @@ public class Fields extends LinkElement { @SerializedName("List") - private List list = null; + private List list = new ArrayList(); public Fields list(List list) { this.list = list; @@ -52,9 +52,6 @@ public Fields list(List list) { } public Fields addListItem(Field listItem) { - if (this.list == null) { - this.list = new ArrayList(); - } this.list.add(listItem); return this; } @@ -63,7 +60,7 @@ public Fields addListItem(Field listItem) { * List of form fields. * @return list **/ - @ApiModelProperty(value = "List of form fields.") + @ApiModelProperty(required = true, value = "List of form fields.") public List getList() { return list; } diff --git a/src/main/java/com/aspose/asposecloudpdf/model/FileVersion.java b/src/main/java/com/aspose/asposecloudpdf/model/FileVersion.java index 46384e7..876aef5 100644 --- a/src/main/java/com/aspose/asposecloudpdf/model/FileVersion.java +++ b/src/main/java/com/aspose/asposecloudpdf/model/FileVersion.java @@ -23,6 +23,7 @@ package com.aspose.asposecloudpdf.model; import java.util.Objects; +import com.aspose.asposecloudpdf.model.StorageFile; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -34,10 +35,11 @@ import org.threeten.bp.OffsetDateTime; /** - * FileVersion + * File Version */ +@ApiModel(description = "File Version") -public class FileVersion extends File { +public class FileVersion extends StorageFile { @SerializedName("VersionId") private String versionId = null; @@ -50,10 +52,10 @@ public FileVersion versionId(String versionId) { } /** - * Get versionId + * File Version ID. * @return versionId **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "File Version ID.") public String getVersionId() { return versionId; } @@ -68,10 +70,10 @@ public FileVersion isLatest(Boolean isLatest) { } /** - * Get isLatest + * Specifies whether the file is (true) or is not (false) the latest version of an file. * @return isLatest **/ - @ApiModelProperty(value = "") + @ApiModelProperty(required = true, value = "Specifies whether the file is (true) or is not (false) the latest version of an file.") public Boolean isIsLatest() { return isLatest; } diff --git a/src/main/java/com/aspose/asposecloudpdf/model/FileVersions.java b/src/main/java/com/aspose/asposecloudpdf/model/FileVersions.java new file mode 100644 index 0000000..9654e09 --- /dev/null +++ b/src/main/java/com/aspose/asposecloudpdf/model/FileVersions.java @@ -0,0 +1,114 @@ +/** + * + * Copyright (c) 2019 Aspose.PDF Cloud + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + * + */ + + +package com.aspose.asposecloudpdf.model; + +import java.util.Objects; +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; + +/** + * File versions FileVersion. + */ +@ApiModel(description = "File versions FileVersion.") + +public class FileVersions { + @SerializedName("Value") + private List value = null; + + public FileVersions value(List value) { + this.value = value; + return this; + } + + public FileVersions addValueItem(FileVersion valueItem) { + if (this.value == null) { + this.value = new ArrayList(); + } + this.value.add(valueItem); + return this; + } + + /** + * File versions FileVersion. + * @return value + **/ + @ApiModelProperty(value = "File versions FileVersion.") + public List getValue() { + return value; + } + + public void setValue(List value) { + this.value = value; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + FileVersions fileVersions = (FileVersions) o; + return Objects.equals(this.value, fileVersions.value); + } + + @Override + public int hashCode() { + return Objects.hash(value); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class FileVersions {\n"); + + sb.append(" value: ").append(toIndentedString(value)).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/FilesList.java similarity index 67% rename from src/main/java/com/aspose/asposecloudpdf/model/FileExistResponse.java rename to src/main/java/com/aspose/asposecloudpdf/model/FilesList.java index 3f8f7dd..febfe98 100644 --- a/src/main/java/com/aspose/asposecloudpdf/model/FileExistResponse.java +++ b/src/main/java/com/aspose/asposecloudpdf/model/FilesList.java @@ -23,8 +23,7 @@ package com.aspose.asposecloudpdf.model; import java.util.Objects; -import com.aspose.asposecloudpdf.model.AsposeResponse; -import com.aspose.asposecloudpdf.model.FileExist; +import com.aspose.asposecloudpdf.model.StorageFile; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -33,31 +32,42 @@ import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import java.util.ArrayList; +import java.util.List; /** - * FileExistResponse + * Files list */ +@ApiModel(description = "Files list") -public class FileExistResponse extends AsposeResponse { - @SerializedName("FileExist") - private FileExist fileExist = null; +public class FilesList { + @SerializedName("Value") + private List value = null; - public FileExistResponse fileExist(FileExist fileExist) { - this.fileExist = fileExist; + public FilesList value(List value) { + this.value = value; + return this; + } + + public FilesList addValueItem(StorageFile valueItem) { + if (this.value == null) { + this.value = new ArrayList(); + } + this.value.add(valueItem); return this; } /** - * Get fileExist - * @return fileExist + * Files and folders contained by folder StorageFile. + * @return value **/ - @ApiModelProperty(value = "") - public FileExist getFileExist() { - return fileExist; + @ApiModelProperty(value = "Files and folders contained by folder StorageFile.") + public List getValue() { + return value; } - public void setFileExist(FileExist fileExist) { - this.fileExist = fileExist; + public void setValue(List value) { + this.value = value; } @@ -69,23 +79,22 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - FileExistResponse fileExistResponse = (FileExistResponse) o; - return Objects.equals(this.fileExist, fileExistResponse.fileExist) && - super.equals(o); + FilesList filesList = (FilesList) o; + return Objects.equals(this.value, filesList.value); } @Override public int hashCode() { - return Objects.hash(fileExist, super.hashCode()); + return Objects.hash(value); } @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("class FilesList {\n"); + + sb.append(" value: ").append(toIndentedString(value)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/aspose/asposecloudpdf/model/FileVersionsResponse.java b/src/main/java/com/aspose/asposecloudpdf/model/FilesUploadResult.java similarity index 56% rename from src/main/java/com/aspose/asposecloudpdf/model/FileVersionsResponse.java rename to src/main/java/com/aspose/asposecloudpdf/model/FilesUploadResult.java index 92d455f..d1c5b2b 100644 --- a/src/main/java/com/aspose/asposecloudpdf/model/FileVersionsResponse.java +++ b/src/main/java/com/aspose/asposecloudpdf/model/FilesUploadResult.java @@ -23,8 +23,7 @@ package com.aspose.asposecloudpdf.model; import java.util.Objects; -import com.aspose.asposecloudpdf.model.AsposeResponse; -import com.aspose.asposecloudpdf.model.FileVersion; +import com.aspose.asposecloudpdf.model.Error; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -37,37 +36,67 @@ import java.util.List; /** - * FileVersionsResponse + * File upload result */ +@ApiModel(description = "File upload result") -public class FileVersionsResponse extends AsposeResponse { - @SerializedName("FileVersions") - private List fileVersions = null; +public class FilesUploadResult { + @SerializedName("Uploaded") + private List uploaded = null; - public FileVersionsResponse fileVersions(List fileVersions) { - this.fileVersions = fileVersions; + @SerializedName("Errors") + private List errors = null; + + public FilesUploadResult uploaded(List uploaded) { + this.uploaded = uploaded; + return this; + } + + public FilesUploadResult addUploadedItem(String uploadedItem) { + if (this.uploaded == null) { + this.uploaded = new ArrayList(); + } + this.uploaded.add(uploadedItem); + return this; + } + + /** + * List of uploaded file names + * @return uploaded + **/ + @ApiModelProperty(value = "List of uploaded file names") + public List getUploaded() { + return uploaded; + } + + public void setUploaded(List uploaded) { + this.uploaded = uploaded; + } + + public FilesUploadResult errors(List errors) { + this.errors = errors; return this; } - public FileVersionsResponse addFileVersionsItem(FileVersion fileVersionsItem) { - if (this.fileVersions == null) { - this.fileVersions = new ArrayList(); + public FilesUploadResult addErrorsItem(Error errorsItem) { + if (this.errors == null) { + this.errors = new ArrayList(); } - this.fileVersions.add(fileVersionsItem); + this.errors.add(errorsItem); return this; } /** - * Get fileVersions - * @return fileVersions + * List of errors. + * @return errors **/ - @ApiModelProperty(value = "") - public List getFileVersions() { - return fileVersions; + @ApiModelProperty(value = "List of errors.") + public List getErrors() { + return errors; } - public void setFileVersions(List fileVersions) { - this.fileVersions = fileVersions; + public void setErrors(List errors) { + this.errors = errors; } @@ -79,23 +108,24 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - FileVersionsResponse fileVersionsResponse = (FileVersionsResponse) o; - return Objects.equals(this.fileVersions, fileVersionsResponse.fileVersions) && - super.equals(o); + FilesUploadResult filesUploadResult = (FilesUploadResult) o; + return Objects.equals(this.uploaded, filesUploadResult.uploaded) && + Objects.equals(this.errors, filesUploadResult.errors); } @Override public int hashCode() { - return Objects.hash(fileVersions, super.hashCode()); + return Objects.hash(uploaded, errors); } @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("class FilesUploadResult {\n"); + + sb.append(" uploaded: ").append(toIndentedString(uploaded)).append("\n"); + sb.append(" errors: ").append(toIndentedString(errors)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/aspose/asposecloudpdf/model/FreeTextAnnotation.java b/src/main/java/com/aspose/asposecloudpdf/model/FreeTextAnnotation.java index 24e66cb..1e85cee 100644 --- a/src/main/java/com/aspose/asposecloudpdf/model/FreeTextAnnotation.java +++ b/src/main/java/com/aspose/asposecloudpdf/model/FreeTextAnnotation.java @@ -125,7 +125,7 @@ public FreeTextAnnotation textStyle(TextStyle textStyle) { * Text style of the annotation. * @return textStyle **/ - @ApiModelProperty(value = "Text style of the annotation.") + @ApiModelProperty(required = true, value = "Text style of the annotation.") public TextStyle getTextStyle() { return textStyle; } diff --git a/src/main/java/com/aspose/asposecloudpdf/model/GraphInfo.java b/src/main/java/com/aspose/asposecloudpdf/model/GraphInfo.java index d04cbbb..188d553 100644 --- a/src/main/java/com/aspose/asposecloudpdf/model/GraphInfo.java +++ b/src/main/java/com/aspose/asposecloudpdf/model/GraphInfo.java @@ -98,10 +98,10 @@ public GraphInfo color(Color color) { } /** - * Gets or sets a object that indicates the color of the graph. + * Gets or sets a Color object that indicates the color of the graph. * @return color **/ - @ApiModelProperty(value = "Gets or sets a object that indicates the color of the graph.") + @ApiModelProperty(value = "Gets or sets a Color object that indicates the color of the graph.") public Color getColor() { return color; } @@ -160,10 +160,10 @@ public GraphInfo fillColor(Color fillColor) { } /** - * Gets or sets a object that indicates the fill color of the graph. + * Gets or sets a Color object that indicates the fill color of the graph. * @return fillColor **/ - @ApiModelProperty(value = "Gets or sets a object that indicates the fill color of the graph.") + @ApiModelProperty(value = "Gets or sets a Color object that indicates the fill color of the graph.") public Color getFillColor() { return fillColor; } diff --git a/src/main/java/com/aspose/asposecloudpdf/model/Image.java b/src/main/java/com/aspose/asposecloudpdf/model/Image.java index 88df2c9..c005ebd 100644 --- a/src/main/java/com/aspose/asposecloudpdf/model/Image.java +++ b/src/main/java/com/aspose/asposecloudpdf/model/Image.java @@ -66,7 +66,7 @@ public Image width(Integer width) { * Gets width of the image. * @return width **/ - @ApiModelProperty(value = "Gets width of the image.") + @ApiModelProperty(required = true, value = "Gets width of the image.") public Integer getWidth() { return width; } @@ -84,7 +84,7 @@ public Image height(Integer height) { * Gets height of the image. * @return height **/ - @ApiModelProperty(value = "Gets height of the image.") + @ApiModelProperty(required = true, value = "Gets height of the image.") public Integer getHeight() { return height; } @@ -138,7 +138,7 @@ public Image pageNumber(Integer pageNumber) { * Gets page number. * @return pageNumber **/ - @ApiModelProperty(value = "Gets page number.") + @ApiModelProperty(required = true, value = "Gets page number.") public Integer getPageNumber() { return pageNumber; } diff --git a/src/main/java/com/aspose/asposecloudpdf/model/LineAnnotation.java b/src/main/java/com/aspose/asposecloudpdf/model/LineAnnotation.java index 3d3ebbe..7c6b771 100644 --- a/src/main/java/com/aspose/asposecloudpdf/model/LineAnnotation.java +++ b/src/main/java/com/aspose/asposecloudpdf/model/LineAnnotation.java @@ -95,7 +95,7 @@ public LineAnnotation starting(Point starting) { * Gets or sets starting point of line. * @return starting **/ - @ApiModelProperty(value = "Gets or sets starting point of line.") + @ApiModelProperty(required = true, value = "Gets or sets starting point of line.") public Point getStarting() { return starting; } @@ -131,7 +131,7 @@ public LineAnnotation ending(Point ending) { * Gets or sets ending point of line. * @return ending **/ - @ApiModelProperty(value = "Gets or sets ending point of line.") + @ApiModelProperty(required = true, value = "Gets or sets ending point of line.") public Point getEnding() { return ending; } diff --git a/src/main/java/com/aspose/asposecloudpdf/model/LinkAnnotation.java b/src/main/java/com/aspose/asposecloudpdf/model/LinkAnnotation.java index f1ffa50..8d2f5d4 100644 --- a/src/main/java/com/aspose/asposecloudpdf/model/LinkAnnotation.java +++ b/src/main/java/com/aspose/asposecloudpdf/model/LinkAnnotation.java @@ -72,7 +72,7 @@ public LinkAnnotation actionType(LinkActionType actionType) { * Get actionType * @return actionType **/ - @ApiModelProperty(value = "") + @ApiModelProperty(required = true, value = "") public LinkActionType getActionType() { return actionType; } @@ -90,7 +90,7 @@ public LinkAnnotation action(String action) { * Get action * @return action **/ - @ApiModelProperty(value = "") + @ApiModelProperty(required = true, value = "") public String getAction() { return action; } @@ -108,7 +108,7 @@ public LinkAnnotation highlighting(LinkHighlightingMode highlighting) { * Get highlighting * @return highlighting **/ - @ApiModelProperty(value = "") + @ApiModelProperty(required = true, value = "") public LinkHighlightingMode getHighlighting() { return highlighting; } @@ -144,7 +144,7 @@ public LinkAnnotation rect(Rectangle rect) { * Get rect * @return rect **/ - @ApiModelProperty(value = "") + @ApiModelProperty(required = true, value = "") public Rectangle getRect() { return rect; } diff --git a/src/main/java/com/aspose/asposecloudpdf/model/FileExist.java b/src/main/java/com/aspose/asposecloudpdf/model/ObjectExist.java similarity index 71% rename from src/main/java/com/aspose/asposecloudpdf/model/FileExist.java rename to src/main/java/com/aspose/asposecloudpdf/model/ObjectExist.java index 7582c4d..6642936 100644 --- a/src/main/java/com/aspose/asposecloudpdf/model/FileExist.java +++ b/src/main/java/com/aspose/asposecloudpdf/model/ObjectExist.java @@ -33,44 +33,45 @@ import java.io.IOException; /** - * FileExist + * Object exists */ +@ApiModel(description = "Object exists") -public class FileExist { - @SerializedName("IsExist") - private Boolean isExist = null; +public class ObjectExist { + @SerializedName("Exists") + private Boolean exists = null; @SerializedName("IsFolder") private Boolean isFolder = null; - public FileExist isExist(Boolean isExist) { - this.isExist = isExist; + public ObjectExist exists(Boolean exists) { + this.exists = exists; return this; } /** - * Get isExist - * @return isExist + * Indicates that the file or folder exists. + * @return exists **/ - @ApiModelProperty(required = true, value = "") - public Boolean isIsExist() { - return isExist; + @ApiModelProperty(required = true, value = "Indicates that the file or folder exists.") + public Boolean isExists() { + return exists; } - public void setIsExist(Boolean isExist) { - this.isExist = isExist; + public void setExists(Boolean exists) { + this.exists = exists; } - public FileExist isFolder(Boolean isFolder) { + public ObjectExist isFolder(Boolean isFolder) { this.isFolder = isFolder; return this; } /** - * Get isFolder + * True if it is a folder, false if it is a file. * @return isFolder **/ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty(required = true, value = "True if it is a folder, false if it is a file.") public Boolean isIsFolder() { return isFolder; } @@ -88,23 +89,23 @@ public boolean equals(java.lang.Object o) { 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); + ObjectExist objectExist = (ObjectExist) o; + return Objects.equals(this.exists, objectExist.exists) && + Objects.equals(this.isFolder, objectExist.isFolder); } @Override public int hashCode() { - return Objects.hash(isExist, isFolder); + return Objects.hash(exists, isFolder); } @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class FileExist {\n"); + sb.append("class ObjectExist {\n"); - sb.append(" isExist: ").append(toIndentedString(isExist)).append("\n"); + sb.append(" exists: ").append(toIndentedString(exists)).append("\n"); sb.append(" isFolder: ").append(toIndentedString(isFolder)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/src/main/java/com/aspose/asposecloudpdf/model/Page.java b/src/main/java/com/aspose/asposecloudpdf/model/Page.java index 4856f80..60c93f4 100644 --- a/src/main/java/com/aspose/asposecloudpdf/model/Page.java +++ b/src/main/java/com/aspose/asposecloudpdf/model/Page.java @@ -61,7 +61,7 @@ public Page id(Integer id) { * Page's id. * @return id **/ - @ApiModelProperty(value = "Page's id.") + @ApiModelProperty(required = true, value = "Page's id.") public Integer getId() { return id; } diff --git a/src/main/java/com/aspose/asposecloudpdf/model/PolyAnnotation.java b/src/main/java/com/aspose/asposecloudpdf/model/PolyAnnotation.java index e44e92d..75d7d26 100644 --- a/src/main/java/com/aspose/asposecloudpdf/model/PolyAnnotation.java +++ b/src/main/java/com/aspose/asposecloudpdf/model/PolyAnnotation.java @@ -63,7 +63,7 @@ public class PolyAnnotation extends MarkupAnnotation { private PolyIntent intent = null; @SerializedName("Vertices") - private List vertices = null; + private List vertices = new ArrayList(); public PolyAnnotation interiorColor(Color interiorColor) { this.interiorColor = interiorColor; @@ -143,9 +143,6 @@ public PolyAnnotation vertices(List vertices) { } public PolyAnnotation addVerticesItem(Point verticesItem) { - if (this.vertices == null) { - this.vertices = new ArrayList(); - } this.vertices.add(verticesItem); return this; } @@ -154,7 +151,7 @@ public PolyAnnotation addVerticesItem(Point verticesItem) { * Gets or sets an array of points representing the horizontal and vertical coordinates of each vertex. * @return vertices **/ - @ApiModelProperty(value = "Gets or sets an array of points representing the horizontal and vertical coordinates of each vertex.") + @ApiModelProperty(required = true, value = "Gets or sets an array of points representing the horizontal and vertical coordinates of each vertex.") public List getVertices() { return vertices; } diff --git a/src/main/java/com/aspose/asposecloudpdf/model/RectanglePdf.java b/src/main/java/com/aspose/asposecloudpdf/model/RectanglePdf.java deleted file mode 100644 index e73ebbb..0000000 --- a/src/main/java/com/aspose/asposecloudpdf/model/RectanglePdf.java +++ /dev/null @@ -1,172 +0,0 @@ -/** - * - * 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 RectanglePdf { - @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 RectanglePdf LLX(Double LLX) { - this.LLX = LLX; - return this; - } - - /** - * Get LLX - * @return LLX - **/ - @ApiModelProperty(required = true, value = "") - public Double getLLX() { - return LLX; - } - - public void setLLX(Double LLX) { - this.LLX = LLX; - } - - public RectanglePdf LLY(Double LLY) { - this.LLY = LLY; - return this; - } - - /** - * Get LLY - * @return LLY - **/ - @ApiModelProperty(required = true, value = "") - public Double getLLY() { - return LLY; - } - - public void setLLY(Double LLY) { - this.LLY = LLY; - } - - public RectanglePdf URX(Double URX) { - this.URX = URX; - return this; - } - - /** - * Get URX - * @return URX - **/ - @ApiModelProperty(required = true, value = "") - public Double getURX() { - return URX; - } - - public void setURX(Double URX) { - this.URX = URX; - } - - public RectanglePdf URY(Double URY) { - this.URY = URY; - return this; - } - - /** - * Get URY - * @return URY - **/ - @ApiModelProperty(required = true, value = "") - 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; - } - RectanglePdf rectanglePdf = (RectanglePdf) o; - return Objects.equals(this.LLX, rectanglePdf.LLX) && - Objects.equals(this.LLY, rectanglePdf.LLY) && - Objects.equals(this.URX, rectanglePdf.URX) && - Objects.equals(this.URY, rectanglePdf.URY); - } - - @Override - public int hashCode() { - return Objects.hash(LLX, LLY, URX, URY); - } - - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class RectanglePdf {\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/Signature.java b/src/main/java/com/aspose/asposecloudpdf/model/Signature.java index d09e1f7..c3af486 100644 --- a/src/main/java/com/aspose/asposecloudpdf/model/Signature.java +++ b/src/main/java/com/aspose/asposecloudpdf/model/Signature.java @@ -211,10 +211,10 @@ public Signature visible(Boolean visible) { } /** - * Gets or sets a value indicating whether this is visible. Supports only when signing particular page. + * Gets or sets a value indicating whether this Signature is visible. Supports only when signing particular page. * @return visible **/ - @ApiModelProperty(required = true, value = "Gets or sets a value indicating whether this is visible. Supports only when signing particular page.") + @ApiModelProperty(required = true, value = "Gets or sets a value indicating whether this Signature is visible. Supports only when signing particular page.") public Boolean isVisible() { return visible; } diff --git a/src/main/java/com/aspose/asposecloudpdf/model/SignatureVerifyResponse.java b/src/main/java/com/aspose/asposecloudpdf/model/SignatureVerifyResponse.java index f007edf..3e04905 100644 --- a/src/main/java/com/aspose/asposecloudpdf/model/SignatureVerifyResponse.java +++ b/src/main/java/com/aspose/asposecloudpdf/model/SignatureVerifyResponse.java @@ -51,7 +51,7 @@ public SignatureVerifyResponse valid(Boolean valid) { * True if signature is valid and false if not * @return valid **/ - @ApiModelProperty(value = "True if signature is valid and false if not") + @ApiModelProperty(required = true, 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/SoundAnnotation.java b/src/main/java/com/aspose/asposecloudpdf/model/SoundAnnotation.java index 172d222..6ec20c4 100644 --- a/src/main/java/com/aspose/asposecloudpdf/model/SoundAnnotation.java +++ b/src/main/java/com/aspose/asposecloudpdf/model/SoundAnnotation.java @@ -75,7 +75,7 @@ public SoundAnnotation filePath(String filePath) { * A sound file path defining the sound to be played when the annotation is activated. * @return filePath **/ - @ApiModelProperty(value = "A sound file path defining the sound to be played when the annotation is activated.") + @ApiModelProperty(required = true, value = "A sound file path defining the sound to be played when the annotation is activated.") public String getFilePath() { return filePath; } diff --git a/src/main/java/com/aspose/asposecloudpdf/model/SplitResultDocument.java b/src/main/java/com/aspose/asposecloudpdf/model/SplitResultDocument.java index 914f93f..a191d7b 100644 --- a/src/main/java/com/aspose/asposecloudpdf/model/SplitResultDocument.java +++ b/src/main/java/com/aspose/asposecloudpdf/model/SplitResultDocument.java @@ -51,7 +51,7 @@ public SplitResultDocument id(Integer id) { * Gets or sets the page number. * @return id **/ - @ApiModelProperty(value = "Gets or sets the page number.") + @ApiModelProperty(required = true, value = "Gets or sets the page number.") public Integer getId() { return id; } diff --git a/src/main/java/com/aspose/asposecloudpdf/model/Stamp.java b/src/main/java/com/aspose/asposecloudpdf/model/Stamp.java index 44daf74..30b781c 100644 --- a/src/main/java/com/aspose/asposecloudpdf/model/Stamp.java +++ b/src/main/java/com/aspose/asposecloudpdf/model/Stamp.java @@ -241,10 +241,10 @@ public Stamp rotate(Rotation rotate) { } /** - * Sets or gets the rotation of stamp content according values. Note. This property is for set angles which are multiples of 90 degrees (0, 90, 180, 270 degrees). To set arbitrary angle use RotateAngle property. If angle set by ArbitraryAngle is not multiple of 90 then Rotate property returns Rotation.None. + * Sets or gets the rotation of stamp content according Rotation values. Note. This property is for set angles which are multiples of 90 degrees (0, 90, 180, 270 degrees). To set arbitrary angle use RotateAngle property. If angle set by ArbitraryAngle is not multiple of 90 then Rotate property returns Rotation.None. * @return rotate **/ - @ApiModelProperty(value = "Sets or gets the rotation of stamp content according values. Note. This property is for set angles which are multiples of 90 degrees (0, 90, 180, 270 degrees). To set arbitrary angle use RotateAngle property. If angle set by ArbitraryAngle is not multiple of 90 then Rotate property returns Rotation.None.") + @ApiModelProperty(value = "Sets or gets the rotation of stamp content according Rotation values. Note. This property is for set angles which are multiples of 90 degrees (0, 90, 180, 270 degrees). To set arbitrary angle use RotateAngle property. If angle set by ArbitraryAngle is not multiple of 90 then Rotate property returns Rotation.None.") public Rotation getRotate() { return rotate; } @@ -403,10 +403,10 @@ public Stamp textState(TextState textState) { } /** - * Gets text properties of the stamp. See for details. + * Gets text properties of the stamp. See TextState for details. * @return textState **/ - @ApiModelProperty(value = "Gets text properties of the stamp. See for details.") + @ApiModelProperty(value = "Gets text properties of the stamp. See TextState for details.") public TextState getTextState() { return textState; } diff --git a/src/main/java/com/aspose/asposecloudpdf/model/StampBase.java b/src/main/java/com/aspose/asposecloudpdf/model/StampBase.java index 89fbec6..6e49855 100644 --- a/src/main/java/com/aspose/asposecloudpdf/model/StampBase.java +++ b/src/main/java/com/aspose/asposecloudpdf/model/StampBase.java @@ -127,10 +127,10 @@ public StampBase rotate(Rotation rotate) { } /** - * Sets or gets the rotation of stamp content according values. Note. This property is for set angles which are multiples of 90 degrees (0, 90, 180, 270 degrees). To set arbitrary angle use RotateAngle property. If angle set by ArbitraryAngle is not multiple of 90 then Rotate property returns Rotation.None. + * Sets or gets the rotation of stamp content according Rotation values. Note. This property is for set angles which are multiples of 90 degrees (0, 90, 180, 270 degrees). To set arbitrary angle use RotateAngle property. If angle set by ArbitraryAngle is not multiple of 90 then Rotate property returns Rotation.None. * @return rotate **/ - @ApiModelProperty(value = "Sets or gets the rotation of stamp content according values. Note. This property is for set angles which are multiples of 90 degrees (0, 90, 180, 270 degrees). To set arbitrary angle use RotateAngle property. If angle set by ArbitraryAngle is not multiple of 90 then Rotate property returns Rotation.None.") + @ApiModelProperty(value = "Sets or gets the rotation of stamp content according Rotation values. Note. This property is for set angles which are multiples of 90 degrees (0, 90, 180, 270 degrees). To set arbitrary angle use RotateAngle property. If angle set by ArbitraryAngle is not multiple of 90 then Rotate property returns Rotation.None.") public Rotation getRotate() { return rotate; } diff --git a/src/main/java/com/aspose/asposecloudpdf/model/StampInfo.java b/src/main/java/com/aspose/asposecloudpdf/model/StampInfo.java index d5f53a6..8216371 100644 --- a/src/main/java/com/aspose/asposecloudpdf/model/StampInfo.java +++ b/src/main/java/com/aspose/asposecloudpdf/model/StampInfo.java @@ -181,7 +181,7 @@ public StampInfo stampType(StampType stampType) { * Gets stamp type. * @return stampType **/ - @ApiModelProperty(value = "Gets stamp type.") + @ApiModelProperty(required = true, value = "Gets stamp type.") public StampType getStampType() { return stampType; } diff --git a/src/main/java/com/aspose/asposecloudpdf/model/StorageExistResponse.java b/src/main/java/com/aspose/asposecloudpdf/model/StorageExist.java similarity index 71% rename from src/main/java/com/aspose/asposecloudpdf/model/StorageExistResponse.java rename to src/main/java/com/aspose/asposecloudpdf/model/StorageExist.java index adaded1..035e37a 100644 --- a/src/main/java/com/aspose/asposecloudpdf/model/StorageExistResponse.java +++ b/src/main/java/com/aspose/asposecloudpdf/model/StorageExist.java @@ -23,7 +23,6 @@ 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; @@ -34,29 +33,30 @@ import java.io.IOException; /** - * StorageExistResponse + * Storage exists */ +@ApiModel(description = "Storage exists") -public class StorageExistResponse extends AsposeResponse { - @SerializedName("IsExist") - private Boolean isExist = null; +public class StorageExist { + @SerializedName("Exists") + private Boolean exists = null; - public StorageExistResponse isExist(Boolean isExist) { - this.isExist = isExist; + public StorageExist exists(Boolean exists) { + this.exists = exists; return this; } /** - * Get isExist - * @return isExist + * Shows that the storage exists. + * @return exists **/ - @ApiModelProperty(value = "") - public Boolean isIsExist() { - return isExist; + @ApiModelProperty(required = true, value = "Shows that the storage exists. ") + public Boolean isExists() { + return exists; } - public void setIsExist(Boolean isExist) { - this.isExist = isExist; + public void setExists(Boolean exists) { + this.exists = exists; } @@ -68,23 +68,22 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - StorageExistResponse storageExistResponse = (StorageExistResponse) o; - return Objects.equals(this.isExist, storageExistResponse.isExist) && - super.equals(o); + StorageExist storageExist = (StorageExist) o; + return Objects.equals(this.exists, storageExist.exists); } @Override public int hashCode() { - return Objects.hash(isExist, super.hashCode()); + return Objects.hash(exists); } @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("class StorageExist {\n"); + + sb.append(" exists: ").append(toIndentedString(exists)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/aspose/asposecloudpdf/model/File.java b/src/main/java/com/aspose/asposecloudpdf/model/StorageFile.java similarity index 77% rename from src/main/java/com/aspose/asposecloudpdf/model/File.java rename to src/main/java/com/aspose/asposecloudpdf/model/StorageFile.java index 3543570..dc55f84 100644 --- a/src/main/java/com/aspose/asposecloudpdf/model/File.java +++ b/src/main/java/com/aspose/asposecloudpdf/model/StorageFile.java @@ -34,12 +34,12 @@ import org.threeten.bp.OffsetDateTime; /** - * Represents file DTO. + * File or folder information */ -@ApiModel(description = "Represents file DTO.") +@ApiModel(description = "File or folder information") -public class File { +public class StorageFile { @SerializedName("Name") private String name = null; @@ -55,16 +55,16 @@ public class File { @SerializedName("Path") private String path = null; - public File name(String name) { + public StorageFile name(String name) { this.name = name; return this; } /** - * Get name + * File or folder name. * @return name **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "File or folder name.") public String getName() { return name; } @@ -73,16 +73,16 @@ public void setName(String name) { this.name = name; } - public File isFolder(Boolean isFolder) { + public StorageFile isFolder(Boolean isFolder) { this.isFolder = isFolder; return this; } /** - * Get isFolder + * True if it is a folder. * @return isFolder **/ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty(required = true, value = "True if it is a folder.") public Boolean isIsFolder() { return isFolder; } @@ -91,16 +91,16 @@ public void setIsFolder(Boolean isFolder) { this.isFolder = isFolder; } - public File modifiedDate(OffsetDateTime modifiedDate) { + public StorageFile modifiedDate(OffsetDateTime modifiedDate) { this.modifiedDate = modifiedDate; return this; } /** - * Get modifiedDate + * File or folder last modified DateTime. * @return modifiedDate **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "File or folder last modified DateTime.") public OffsetDateTime getModifiedDate() { return modifiedDate; } @@ -109,16 +109,16 @@ public void setModifiedDate(OffsetDateTime modifiedDate) { this.modifiedDate = modifiedDate; } - public File size(Long size) { + public StorageFile size(Long size) { this.size = size; return this; } /** - * Get size + * File or folder size. * @return size **/ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty(required = true, value = "File or folder size.") public Long getSize() { return size; } @@ -127,16 +127,16 @@ public void setSize(Long size) { this.size = size; } - public File path(String path) { + public StorageFile path(String path) { this.path = path; return this; } /** - * Get path + * File or folder path. * @return path **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "File or folder path.") public String getPath() { return path; } @@ -154,12 +154,12 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - File file = (File) o; - return Objects.equals(this.name, file.name) && - Objects.equals(this.isFolder, file.isFolder) && - Objects.equals(this.modifiedDate, file.modifiedDate) && - Objects.equals(this.size, file.size) && - Objects.equals(this.path, file.path); + StorageFile storageFile = (StorageFile) o; + return Objects.equals(this.name, storageFile.name) && + Objects.equals(this.isFolder, storageFile.isFolder) && + Objects.equals(this.modifiedDate, storageFile.modifiedDate) && + Objects.equals(this.size, storageFile.size) && + Objects.equals(this.path, storageFile.path); } @Override @@ -171,7 +171,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class File {\n"); + sb.append("class StorageFile {\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" isFolder: ").append(toIndentedString(isFolder)).append("\n"); diff --git a/src/main/java/com/aspose/asposecloudpdf/model/Table.java b/src/main/java/com/aspose/asposecloudpdf/model/Table.java index 4f7f4fa..2f7cd86 100644 --- a/src/main/java/com/aspose/asposecloudpdf/model/Table.java +++ b/src/main/java/com/aspose/asposecloudpdf/model/Table.java @@ -78,7 +78,7 @@ public class Table extends LinkElement { private BorderInfo border = null; @SerializedName("Rows") - private List rows = null; + private List rows = new ArrayList(); @SerializedName("DefaultColumnWidth") private String defaultColumnWidth = null; @@ -269,9 +269,6 @@ public Table rows(List rows) { } public Table addRowsItem(Row rowsItem) { - if (this.rows == null) { - this.rows = new ArrayList(); - } this.rows.add(rowsItem); return this; } @@ -280,7 +277,7 @@ public Table addRowsItem(Row rowsItem) { * Sets the rows of the table. * @return rows **/ - @ApiModelProperty(value = "Sets the rows of the table.") + @ApiModelProperty(required = true, value = "Sets the rows of the table.") public List getRows() { return rows; } diff --git a/src/main/java/com/aspose/asposecloudpdf/model/TextFooter.java b/src/main/java/com/aspose/asposecloudpdf/model/TextFooter.java index ebad0a4..e755d38 100644 --- a/src/main/java/com/aspose/asposecloudpdf/model/TextFooter.java +++ b/src/main/java/com/aspose/asposecloudpdf/model/TextFooter.java @@ -104,10 +104,10 @@ public TextFooter textState(TextState textState) { } /** - * Gets text properties of the stamp. See for details. + * Gets text properties of the stamp. See TextState for details. * @return textState **/ - @ApiModelProperty(value = "Gets text properties of the stamp. See for details.") + @ApiModelProperty(value = "Gets text properties of the stamp. See TextState for details.") public TextState getTextState() { return textState; } diff --git a/src/main/java/com/aspose/asposecloudpdf/model/TextHeader.java b/src/main/java/com/aspose/asposecloudpdf/model/TextHeader.java index c7df83d..50aa42d 100644 --- a/src/main/java/com/aspose/asposecloudpdf/model/TextHeader.java +++ b/src/main/java/com/aspose/asposecloudpdf/model/TextHeader.java @@ -104,10 +104,10 @@ public TextHeader textState(TextState textState) { } /** - * Gets text properties of the stamp. See for details. + * Gets text properties of the stamp. See TextState for details. * @return textState **/ - @ApiModelProperty(value = "Gets text properties of the stamp. See for details.") + @ApiModelProperty(value = "Gets text properties of the stamp. See TextState for details.") public TextState getTextState() { return textState; } diff --git a/src/main/java/com/aspose/asposecloudpdf/model/TextRect.java b/src/main/java/com/aspose/asposecloudpdf/model/TextRect.java index 9c34196..ecddee5 100644 --- a/src/main/java/com/aspose/asposecloudpdf/model/TextRect.java +++ b/src/main/java/com/aspose/asposecloudpdf/model/TextRect.java @@ -163,10 +163,10 @@ public TextRect position(Position position) { } /** - * Gets or sets text position for text, represented with object. + * Gets or sets text position for text, represented with TextRect object. * @return position **/ - @ApiModelProperty(value = "Gets or sets text position for text, represented with object.") + @ApiModelProperty(value = "Gets or sets text position for text, represented with TextRect object.") public Position getPosition() { return position; } @@ -181,10 +181,10 @@ public TextRect baselinePosition(Position baselinePosition) { } /** - * Gets text position for text, represented with object. The YIndent of the Position structure represents baseline coordinate of the text fragment. + * Gets text position for text, represented with TextRect object. The YIndent of the Position structure represents baseline coordinate of the text fragment. * @return baselinePosition **/ - @ApiModelProperty(value = "Gets text position for text, represented with object. The YIndent of the Position structure represents baseline coordinate of the text fragment.") + @ApiModelProperty(value = "Gets text position for text, represented with TextRect object. The YIndent of the Position structure represents baseline coordinate of the text fragment.") public Position getBaselinePosition() { return baselinePosition; } @@ -199,10 +199,10 @@ public TextRect textState(TextState textState) { } /** - * Gets or sets text state for the text that object represents. + * Gets or sets text state for the text that TextRect object represents. * @return textState **/ - @ApiModelProperty(value = "Gets or sets text state for the text that object represents.") + @ApiModelProperty(value = "Gets or sets text state for the text that TextRect object represents.") public TextState getTextState() { return textState; } diff --git a/src/main/java/com/aspose/asposecloudpdf/model/TextReplaceListRequest.java b/src/main/java/com/aspose/asposecloudpdf/model/TextReplaceListRequest.java index 95b7864..e79c701 100644 --- a/src/main/java/com/aspose/asposecloudpdf/model/TextReplaceListRequest.java +++ b/src/main/java/com/aspose/asposecloudpdf/model/TextReplaceListRequest.java @@ -82,10 +82,10 @@ public TextReplaceListRequest defaultFont(String defaultFont) { } /** - * Get defaultFont + * Name of font to use if requested font is not embedded into document. * @return defaultFont **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "Name of font to use if requested font is not embedded into document.") public String getDefaultFont() { return defaultFont; } diff --git a/src/main/java/com/aspose/asposecloudpdf/model/TextReplaceResponse.java b/src/main/java/com/aspose/asposecloudpdf/model/TextReplaceResponse.java index 2692081..eeb3e87 100644 --- a/src/main/java/com/aspose/asposecloudpdf/model/TextReplaceResponse.java +++ b/src/main/java/com/aspose/asposecloudpdf/model/TextReplaceResponse.java @@ -51,7 +51,7 @@ public TextReplaceResponse matches(Integer matches) { * Number of matches * @return matches **/ - @ApiModelProperty(value = "Number of matches") + @ApiModelProperty(required = true, value = "Number of matches") public Integer getMatches() { return matches; } diff --git a/src/main/java/com/aspose/asposecloudpdf/model/TextStamp.java b/src/main/java/com/aspose/asposecloudpdf/model/TextStamp.java index 7c34d5d..5535a77 100644 --- a/src/main/java/com/aspose/asposecloudpdf/model/TextStamp.java +++ b/src/main/java/com/aspose/asposecloudpdf/model/TextStamp.java @@ -111,10 +111,10 @@ public TextStamp textState(TextState textState) { } /** - * Gets text properties of the stamp. See for details. + * Gets text properties of the stamp. See TextState for details. * @return textState **/ - @ApiModelProperty(value = "Gets text properties of the stamp. See for details.") + @ApiModelProperty(value = "Gets text properties of the stamp. See TextState for details.") public TextState getTextState() { return textState; } diff --git a/src/main/java/com/aspose/asposecloudpdf/model/WordCountResponse.java b/src/main/java/com/aspose/asposecloudpdf/model/WordCountResponse.java index 42a1bad..e45166f 100644 --- a/src/main/java/com/aspose/asposecloudpdf/model/WordCountResponse.java +++ b/src/main/java/com/aspose/asposecloudpdf/model/WordCountResponse.java @@ -49,10 +49,10 @@ public WordCountResponse wordsPerPage(WordCount wordsPerPage) { } /** - * with words per page info. + * WordCount with words per page info. * @return wordsPerPage **/ - @ApiModelProperty(value = "with words per page info. ") + @ApiModelProperty(value = "WordCount with words per page info.") public WordCount getWordsPerPage() { return wordsPerPage; } diff --git a/src/test/java/com/aspose/asposecloudpdf/api/AnnotattionsTests.java b/src/test/java/com/aspose/asposecloudpdf/api/AnnotattionsTests.java new file mode 100644 index 0000000..ab8651d --- /dev/null +++ b/src/test/java/com/aspose/asposecloudpdf/api/AnnotattionsTests.java @@ -0,0 +1,142 @@ +/** + * + * Copyright (c) 2019 Aspose.PDF Cloud + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + * + */ + +package com.aspose.asposecloudpdf.api; + +import com.aspose.asposecloudpdf.ApiException; +import com.aspose.asposecloudpdf.model.*; + +import org.junit.Test; + +import java.util.ArrayList; +import java.util.List; + +import static org.junit.Assert.assertEquals; + +public class AnnotattionsTests +{ + private TestHelper th; + public AnnotattionsTests() throws ApiException + { + th = TestHelper.getInstance(); + } + + /** + * GetDocumentAnnotationsTest + * @throws ApiException + * if the Api call fails + */ + @Test + public void getDocumentAnnotationsTest()throws ApiException + { + String name = "PdfWithAnnotations.pdf"; + + th.uploadFile(name); + AnnotationsInfoResponse response = th.pdfApi.getDocumentAnnotations(name, null, th.tempFolder); + assertEquals(200, (int)response.getCode()); + } + + /** + * DeleteDocumentAnnotationsTest + * @throws ApiException + * if the Api call fails + */ + @Test + public void deleteDocumentAnnotationsTest()throws ApiException + { + String name = "PdfWithAnnotations.pdf"; + + th.uploadFile(name); + AsposeResponse response = th.pdfApi.deleteDocumentAnnotations(name, null, th.tempFolder); + assertEquals(200, (int)response.getCode()); + } + + /** + * GetPageAnnotationsTest + * @throws ApiException + * if the Api call fails + */ + @Test + public void getPageAnnotationsTest()throws ApiException + { + String name = "PdfWithAnnotations.pdf"; + int pageNumber = 2; + + th.uploadFile(name); + AnnotationsInfoResponse response = th.pdfApi.getPageAnnotations(name, pageNumber, null, th.tempFolder); + assertEquals(200, (int)response.getCode()); + } + + + /** + * DeletePageAnnotationsTest + * @throws ApiException + * if the Api call fails + */ + @Test + public void deletePageAnnotationsTest()throws ApiException + { + String name = "PdfWithAnnotations.pdf"; + int pageNumber = 2; + + th.uploadFile(name); + AsposeResponse response = th.pdfApi.deletePageAnnotations(name, pageNumber, null, th.tempFolder); + assertEquals(200, (int)response.getCode()); + } + + + /** + * DeleteAnnotationTest + * @throws ApiException + * if the Api call fails + */ + @Test + public void deleteAnnotationTest()throws ApiException + { + String name = "PdfWithAnnotations.pdf"; + + th.uploadFile(name); + + AnnotationsInfoResponse responseAnnotations = th.pdfApi.getDocumentAnnotations(name, null, th.tempFolder); + assertEquals(200, (int)responseAnnotations.getCode()); + String annotationId = responseAnnotations.getAnnotations().getList().get(0).getId(); + + AsposeResponse response = th.pdfApi.deleteAnnotation(name, annotationId, null, th.tempFolder); + assertEquals(200, (int)response.getCode()); + } + + /** + * PutAnnotationsFlattenTest + * @throws ApiException + * if the Api call fails + */ + @Test + public void PutAnnotationsFlattenTest()throws ApiException + { + String name = "PdfWithAnnotations.pdf"; + int endPage = 2; + List annotationTypes = new ArrayList<>(); + annotationTypes.add(AnnotationType.STAMP); + th.uploadFile(name); + AsposeResponse response = th.pdfApi.putAnnotationsFlatten(name, null, endPage, annotationTypes, null, th.tempFolder); + assertEquals(200, (int)response.getCode()); + } +} diff --git a/src/test/java/com/aspose/asposecloudpdf/api/AppendTests.java b/src/test/java/com/aspose/asposecloudpdf/api/AppendTests.java new file mode 100644 index 0000000..00ec049 --- /dev/null +++ b/src/test/java/com/aspose/asposecloudpdf/api/AppendTests.java @@ -0,0 +1,60 @@ +/** + * + * Copyright (c) 2019 Aspose.PDF Cloud + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + * + */ + +package com.aspose.asposecloudpdf.api; + +import com.aspose.asposecloudpdf.ApiException; +import com.aspose.asposecloudpdf.model.*; + +import org.junit.Test; + +import static org.junit.Assert.assertEquals; + +public class AppendTests +{ + private TestHelper th; + public AppendTests() throws ApiException + { + th = TestHelper.getInstance(); + } + /** + * PostAppendDocumentUsingQueryParams Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void postAppendDocumentTest() throws ApiException + { + String name = "PdfWithImages2.pdf"; + String appendFileName = "4pages.pdf"; + + th.uploadFile(name); + th.uploadFile(appendFileName); + + int startPage = 2; + int endPage = 4; + + DocumentResponse response = th.pdfApi.postAppendDocument(name, th.tempFolder + '/' + appendFileName, startPage, endPage, null, th.tempFolder); + assertEquals(200, (int)response.getCode()); + } +} + diff --git a/src/test/java/com/aspose/asposecloudpdf/api/AttachmentsTestsTests.java b/src/test/java/com/aspose/asposecloudpdf/api/AttachmentsTestsTests.java new file mode 100644 index 0000000..a788e47 --- /dev/null +++ b/src/test/java/com/aspose/asposecloudpdf/api/AttachmentsTestsTests.java @@ -0,0 +1,94 @@ +/** + * + * Copyright (c) 2009 Aspose.PDF Cloud + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of TestHelper.getInstance() 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.api; + +import com.aspose.asposecloudpdf.ApiException; +import com.aspose.asposecloudpdf.model.*; + +import org.junit.Test; + +import java.io.File; +import java.util.ArrayList; +import java.util.List; + +import static org.junit.Assert.assertEquals; +import static org.junit.Assert.assertNotNull; + +public class AttachmentsTestsTests { + private TestHelper th; + + public AttachmentsTestsTests() throws ApiException { + th = TestHelper.getInstance(); + } + + /** + * GetDocumentAttachmentByIndex Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void getDocumentAttachmentByIndexTest() throws ApiException + { + String name = "PdfWithEmbeddedFiles.pdf"; + this.th.uploadFile(name); + + int attachmentIndex = 1; + + AttachmentResponse response = this.th.pdfApi.getDocumentAttachmentByIndex(name, attachmentIndex, null, this.th.tempFolder); + assertEquals(200, (int)response.getCode()); + } + + /** + * GetDocumentAttachments Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void getDocumentAttachmentsTest() throws ApiException + { + String name = "PdfWithEmbeddedFiles.pdf"; + this.th.uploadFile(name); + + AttachmentsResponse response = this.th.pdfApi.getDocumentAttachments(name, null, this.th.tempFolder); + assertEquals(200, (int)response.getCode()); + } + + /** + * GetDownloadDocumentAttachmentByIndex Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void getDownloadDocumentAttachmentByIndexTest() throws ApiException + { + String name = "PdfWithEmbeddedFiles.pdf"; + this.th.uploadFile(name); + + int attachmentIndex = 1; + + File response = this.th.pdfApi.getDownloadDocumentAttachmentByIndex(name, attachmentIndex, null, this.th.tempFolder); + assertNotNull(response); + } +} diff --git a/src/test/java/com/aspose/asposecloudpdf/api/BookmarksTests.java b/src/test/java/com/aspose/asposecloudpdf/api/BookmarksTests.java new file mode 100644 index 0000000..13d19e5 --- /dev/null +++ b/src/test/java/com/aspose/asposecloudpdf/api/BookmarksTests.java @@ -0,0 +1,185 @@ +/** + * + * Copyright (c) 2009 Aspose.PDF Cloud + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of TestHelper.getInstance() 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.api; + +import com.aspose.asposecloudpdf.ApiException; +import com.aspose.asposecloudpdf.model.*; + +import org.junit.Test; + +import java.util.ArrayList; + +import static org.junit.Assert.assertEquals; + +public class BookmarksTests { + private TestHelper th; + + public BookmarksTests() throws ApiException { + th = TestHelper.getInstance(); + } + + /** + * GetDocumentBookmarksTest + * @throws ApiException + * if the Api call fails + */ + @Test + public void getDocumentBookmarksTest()throws ApiException + { + String name = "PdfWithBookmarks.pdf"; + th.uploadFile(name); + + BookmarksResponse response = th.pdfApi.getDocumentBookmarks(name, th.tempFolder, null); + assertEquals(200, (int)response.getCode()); + } + + /** + * GetBookmarksTest + * @throws ApiException + * if the Api call fails + */ + @Test + public void getBookmarksTest()throws ApiException + { + String name = "PdfWithBookmarks.pdf"; + th.uploadFile(name); + + String bookmarkPath = "1/1"; + + BookmarksResponse response = th.pdfApi.getBookmarks(name, bookmarkPath, th.tempFolder, null); + assertEquals(200, (int)response.getCode()); + } + + /** + * GetBookmarkTest + * @throws ApiException + * if the Api call fails + */ + @Test + public void getBookmarkTest()throws ApiException + { + String name = "PdfWithBookmarks.pdf"; + th.uploadFile(name); + + String bookmarkPath = "1/1"; + + BookmarkResponse response = th.pdfApi.getBookmark(name, bookmarkPath, th.tempFolder, null); + assertEquals(200, (int)response.getCode()); + } + + /** + * DeleteDocumentBookmarksTest + * @throws ApiException + * if the Api call fails + */ + @Test + public void deleteDocumentBookmarksTest()throws ApiException + { + String name = "PdfWithBookmarks.pdf"; + th.uploadFile(name); + + AsposeResponse response = th.pdfApi.deleteDocumentBookmarks(name, th.tempFolder, null); + assertEquals(200, (int)response.getCode()); + } + + /** + * DeleteBookmarkTest + * @throws ApiException + * if the Api call fails + */ + @Test + public void deleteBookmarkTest()throws ApiException + { + String name = "PdfWithBookmarks.pdf"; + th.uploadFile(name); + + String bookmarkPath = "1/1"; + + AsposeResponse response = th.pdfApi.deleteBookmark(name, bookmarkPath, th.tempFolder, null); + assertEquals(200, (int)response.getCode()); + } + + /** + * PostBookmarkTest + * @throws ApiException + * if the Api call fails + */ + @Test + public void postBookmarkTest()throws ApiException + { + String name = "PdfWithBookmarks.pdf"; + th.uploadFile(name); + + String bookmarkPath = "1/1"; + + Bookmark bookmark = new Bookmark(); + bookmark.setAction("GoTo"); + bookmark.setBold(true); + bookmark.setItalic(false); + bookmark.setTitle("New Bookmark XYZ"); + bookmark.setPageDisplay("XYZ"); + bookmark.setPageDisplayBottom(10); + bookmark.setPageDisplayLeft(10); + bookmark.setPageDisplayRight(10); + bookmark.setPageDisplayTop(10); + bookmark.setPageDisplayZoom(2); + bookmark.setPageNumber(2); + bookmark.setColor(new Color().A(255).R(255)); + ArrayList bookmarks = new ArrayList(); + bookmarks.add(bookmark); + + BookmarksResponse response = th.pdfApi.postBookmark(name, bookmarkPath, bookmarks, th.tempFolder, null); + assertEquals(200, (int)response.getCode()); + } + + /** + * PostBookmarkTest + * @throws ApiException + * if the Api call fails + */ + @Test + public void putBookmarkTest()throws ApiException + { + String name = "PdfWithBookmarks.pdf"; + th.uploadFile(name); + + String bookmarkPath = "1/1"; + + Bookmark bookmark = new Bookmark(); + bookmark.setAction("GoTo"); + bookmark.setBold(true); + bookmark.setItalic(false); + bookmark.setTitle("New Bookmark XYZ"); + bookmark.setPageDisplay("XYZ"); + bookmark.setPageDisplayBottom(10); + bookmark.setPageDisplayLeft(10); + bookmark.setPageDisplayRight(10); + bookmark.setPageDisplayTop(10); + bookmark.setPageDisplayZoom(2); + bookmark.setPageNumber(2); + bookmark.setColor(new Color().A(255).R(255)); + + + BookmarkResponse response = th.pdfApi.putBookmark(name, bookmarkPath, bookmark, th.tempFolder, null); + assertEquals(200, (int)response.getCode()); + } +} diff --git a/src/test/java/com/aspose/asposecloudpdf/api/CaretAnnotationsTests.java b/src/test/java/com/aspose/asposecloudpdf/api/CaretAnnotationsTests.java new file mode 100644 index 0000000..8824104 --- /dev/null +++ b/src/test/java/com/aspose/asposecloudpdf/api/CaretAnnotationsTests.java @@ -0,0 +1,175 @@ +/** + * + * Copyright (c) 2009 Aspose.PDF Cloud + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of TestHelper.getInstance() 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.api; + +import com.aspose.asposecloudpdf.ApiException; +import com.aspose.asposecloudpdf.model.*; + +import org.junit.Test; + +import java.util.ArrayList; +import java.util.List; + +import static org.junit.Assert.assertEquals; + +public class CaretAnnotationsTests { + private TestHelper th; + + public CaretAnnotationsTests() throws ApiException { + th = TestHelper.getInstance(); + } + + /** + * GetDocumentCaretAnnotationsTest + * @throws ApiException + * if the Api call fails + */ + @Test + public void getDocumentCaretAnnotationsTest()throws ApiException + { + String name = "PdfWithAnnotations.pdf"; + th.uploadFile(name); + + CaretAnnotationsResponse response = th.pdfApi.getDocumentCaretAnnotations(name, null, th.tempFolder); + assertEquals(200, (int)response.getCode()); + } + + /** + * GetPageCaretAnnotationsTest + * @throws ApiException + * if the Api call fails + */ + @Test + public void getPageCaretAnnotationsTest()throws ApiException + { + String name = "PdfWithAnnotations.pdf"; + th.uploadFile(name); + + int pageNumber = 2; + + CaretAnnotationsResponse response = th.pdfApi.getPageCaretAnnotations(name, pageNumber, null, th.tempFolder); + assertEquals(200, (int)response.getCode()); + } + + + /** + * GetCaretAnnotationTest + * @throws ApiException + * if the Api call fails + */ + @Test + public void getCaretAnnotationTest()throws ApiException + { + String name = "PdfWithAnnotations.pdf"; + th.uploadFile(name); + + CaretAnnotationsResponse responseAnnotations = th.pdfApi.getDocumentCaretAnnotations(name, null, th.tempFolder); + assertEquals(200, (int)responseAnnotations.getCode()); + String annotationId = responseAnnotations.getAnnotations().getList().get(0).getId(); + + CaretAnnotationResponse response = th.pdfApi.getCaretAnnotation(name, annotationId, null, th.tempFolder); + assertEquals(200, (int)response.getCode()); + } + + /** + * PostPageCaretAnnotationsTest + * @throws ApiException + * if the Api call fails + */ + @Test + public void postPageCaretAnnotationsTest()throws ApiException + { + String name = "PdfWithAnnotations.pdf"; + th.uploadFile(name); + + int pageNumber = 1; + + Rectangle rect = new Rectangle() + .LLX(100.) + .LLY(100.) + .URX(200.) + .URY(200.); + + List flags = new ArrayList<>(); + flags.add(AnnotationFlags.DEFAULT); + + CaretAnnotation annotation = new CaretAnnotation(); + annotation.setName("Name"); + annotation.setRect(rect); + annotation.setFlags(flags); + annotation.setHorizontalAlignment(HorizontalAlignment.CENTER); + annotation.setRichText("Rich Text"); + annotation.setSubject("Subj"); + annotation.setZindex(1); + annotation.setTitle("Title"); + annotation.setFrame(rect); + annotation.setModified("02/02/2008 00:00:00.000 AM"); + + List annotations = new ArrayList<>(); + annotations.add(annotation); + + AsposeResponse response = th.pdfApi.postPageCaretAnnotations(name, pageNumber, annotations, null, th.tempFolder); + assertEquals(200, (int)response.getCode()); + } + + + /** + * PutCaretAnnotationTest + * @throws ApiException + * if the Api call fails + */ + @Test + public void putCaretAnnotationTest()throws ApiException + { + String name = "PdfWithAnnotations.pdf"; + th.uploadFile(name); + + Rectangle rect = new Rectangle() + .LLX(100.) + .LLY(100.) + .URX(200.) + .URY(200.); + + List flags = new ArrayList<>(); + flags.add(AnnotationFlags.DEFAULT); + + + CaretAnnotation annotation = new CaretAnnotation(); + annotation.setName("Name Updated"); + annotation.setRect(rect); + annotation.setFlags(flags); + annotation.setHorizontalAlignment(HorizontalAlignment.CENTER); + annotation.setRichText("Rich Text Updated"); + annotation.setSubject("Subj Updated"); + annotation.setZindex(1); + annotation.setTitle("Title Updated"); + annotation.setFrame(rect); + annotation.setModified("02/02/2008 00:00:00.000 AM"); + + CaretAnnotationsResponse responseAnnotations = th.pdfApi.getDocumentCaretAnnotations(name, null, th.tempFolder); + assertEquals(200, (int)responseAnnotations.getCode()); + String annotationId = responseAnnotations.getAnnotations().getList().get(0).getId(); + + AsposeResponse response = th.pdfApi.putCaretAnnotation(name, annotationId, annotation, null, th.tempFolder); + assertEquals(200, (int)response.getCode()); + } +} diff --git a/src/test/java/com/aspose/asposecloudpdf/api/CircleAnnotationsTests.java b/src/test/java/com/aspose/asposecloudpdf/api/CircleAnnotationsTests.java new file mode 100644 index 0000000..369ed6b --- /dev/null +++ b/src/test/java/com/aspose/asposecloudpdf/api/CircleAnnotationsTests.java @@ -0,0 +1,170 @@ +/** + * + * Copyright (c) 2009 Aspose.PDF Cloud + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of TestHelper.getInstance() 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.api; + +import com.aspose.asposecloudpdf.ApiException; +import com.aspose.asposecloudpdf.model.*; + +import org.junit.Test; + +import java.util.ArrayList; +import java.util.List; + +import static org.junit.Assert.assertEquals; + +public class CircleAnnotationsTests { + private TestHelper th; + + public CircleAnnotationsTests() throws ApiException { + th = TestHelper.getInstance(); + } + + /** + * GetDocumentCircleAnnotationsTest + * @throws ApiException + * if the Api call fails + */ + @Test + public void getDocumentCircleAnnotationsTest()throws ApiException + { + String name = "PdfWithAnnotations.pdf"; + th.uploadFile(name); + + CircleAnnotationsResponse response = th.pdfApi.getDocumentCircleAnnotations(name, null, th.tempFolder); + assertEquals(200, (int)response.getCode()); + } + + /** + * GetPageCircleAnnotationsTest + * @throws ApiException + * if the Api call fails + */ + @Test + public void getPageCircleAnnotationsTest()throws ApiException + { + String name = "PdfWithAnnotations.pdf"; + th.uploadFile(name); + + int pageNumber = 2; + + CircleAnnotationsResponse response = th.pdfApi.getPageCircleAnnotations(name, pageNumber, null, th.tempFolder); + assertEquals(200, (int)response.getCode()); + } + + + /** + * GetCircleAnnotationTest + * @throws ApiException + * if the Api call fails + */ + @Test + public void getCircleAnnotationTest()throws ApiException + { + String name = "PdfWithAnnotations.pdf"; + th.uploadFile(name); + + CircleAnnotationsResponse responseAnnotations = th.pdfApi.getDocumentCircleAnnotations(name, null, th.tempFolder); + assertEquals(200, (int)responseAnnotations.getCode()); + String annotationId = responseAnnotations.getAnnotations().getList().get(0).getId(); + + CircleAnnotationResponse response = th.pdfApi.getCircleAnnotation(name, annotationId, null, th.tempFolder); + assertEquals(200, (int)response.getCode()); + } + + /** + * PostPageCircleAnnotationsTest + * @throws ApiException + * if the Api call fails + */ + @Test + public void postPageCircleAnnotationsTest()throws ApiException + { + String name = "PdfWithAnnotations.pdf"; + th.uploadFile(name); + + int pageNumber = 1; + + Rectangle rect = new Rectangle() + .LLX(100.) + .LLY(100.) + .URX(200.) + .URY(200.); + + List flags = new ArrayList<>(); + flags.add(AnnotationFlags.DEFAULT); + + CircleAnnotation annotation = new CircleAnnotation(); + annotation.setName("Name"); + annotation.setRect(rect); + annotation.setFlags(flags); + annotation.setHorizontalAlignment(HorizontalAlignment.CENTER); + annotation.setRichText("Rich Text"); + annotation.setSubject("Subj"); + annotation.setZindex(1); + annotation.setTitle("Title"); + + List annotations = new ArrayList<>(); + annotations.add(annotation); + + AsposeResponse response = th.pdfApi.postPageCircleAnnotations(name, pageNumber, annotations, null, th.tempFolder); + assertEquals(200, (int)response.getCode()); + } + + + /** + * PutCircleAnnotationTest + * @throws ApiException + * if the Api call fails + */ + @Test + public void putCircleAnnotationTest()throws ApiException + { + String name = "PdfWithAnnotations.pdf"; + th.uploadFile(name); + + Rectangle rect = new Rectangle() + .LLX(100.) + .LLY(100.) + .URX(200.) + .URY(200.); + + List flags = new ArrayList<>(); + flags.add(AnnotationFlags.DEFAULT); + + CircleAnnotation annotation = new CircleAnnotation(); + annotation.setName("Name Updated"); + annotation.setRect(rect); + annotation.setFlags(flags); + annotation.setHorizontalAlignment(HorizontalAlignment.CENTER); + annotation.setRichText("Rich Text Updated"); + annotation.setSubject("Subj Updated"); + annotation.setZindex(1); + annotation.setTitle("Title Updated"); + + CircleAnnotationsResponse responseAnnotations = th.pdfApi.getDocumentCircleAnnotations(name, null, th.tempFolder); + assertEquals(200, (int)responseAnnotations.getCode()); + String annotationId = responseAnnotations.getAnnotations().getList().get(0).getId(); + + AsposeResponse response = th.pdfApi.putCircleAnnotation(name, annotationId, annotation, null, th.tempFolder); + assertEquals(200, (int)response.getCode()); + } +} diff --git a/src/test/java/com/aspose/asposecloudpdf/api/ConvertTests.java b/src/test/java/com/aspose/asposecloudpdf/api/ConvertTests.java new file mode 100644 index 0000000..aae767f --- /dev/null +++ b/src/test/java/com/aspose/asposecloudpdf/api/ConvertTests.java @@ -0,0 +1,883 @@ +/** + * + * Copyright (c) 2009 Aspose.PDF Cloud + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of TestHelper.getInstance() 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.api; + +import com.aspose.asposecloudpdf.ApiException; +import com.aspose.asposecloudpdf.model.*; + +import org.junit.Test; + +import java.io.File; + +import static org.junit.Assert.assertEquals; +import static org.junit.Assert.assertNotNull; + +public class ConvertTests { + private TestHelper th; + + public ConvertTests() throws ApiException { + th = TestHelper.getInstance(); + } + + /** + * GetPdfInStorageToDoc Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void getPdfInStorageToDocTest() throws ApiException + { + String name = "4pages.pdf"; + th.uploadFile(name); + String folder = th.tempFolder; + + File response = th.pdfApi.getPdfInStorageToDoc(name, null, null, null, null, null, null, null, null, folder, null); + assertNotNull(response); + } + + /** + * PutPdfInStorageToDoc Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void putPdfInStorageToDocTest() throws ApiException + { + String name = "4pages.pdf"; + th.uploadFile(name); + String folder = th.tempFolder; + String resFileName = "result.doc"; + + AsposeResponse response = th.pdfApi.putPdfInStorageToDoc(name, th.tempFolder + '/' + resFileName, null, null, null, null, null, null, null, null, folder, null); + assertEquals(200, (int)response.getCode()); + } + + /** + * PutPdfInRequestToDoc Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void putPdfInRequestToDocTest() throws ApiException + { + String name = "4pages.pdf"; + File file = new File(th.testDataFolder + "/" + name); + String resFileName = "result.doc"; + + AsposeResponse response = th.pdfApi.putPdfInRequestToDoc(th.tempFolder + '/' + resFileName, null, null, null, null, null, null, null, null, null, file); + assertEquals(200, (int)response.getCode()); + } + + /** + * GetPdfInStorageToPdfA Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void getPdfInStorageToPdfATest() throws ApiException + { + String name = "4pages.pdf"; + th.uploadFile(name); + + String type = PdfAType.PDFA1A.toString(); + String folder = th.tempFolder; + + + File response = th.pdfApi.getPdfInStorageToPdfA(name, type, folder, null); + assertNotNull(response); + } + + /** + * PutPdfInStorageToPdfA Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void putPdfInStorageToPdfATest() throws ApiException + { + String name = "4pages.pdf"; + th.uploadFile(name); + + String type = PdfAType.PDFA1A.toString(); + String folder = th.tempFolder; + String resFileName = "result.pdf"; + + AsposeResponse response = th.pdfApi.putPdfInStorageToPdfA(name, th.tempFolder + '/' + resFileName, type, folder, null); + assertEquals(200, (int)response.getCode()); + } + + /** + * PutPdfInRequestToPdfA Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void putPdfInRequestToPdfATest() throws ApiException + { + String name = "4pages.pdf"; + File file = new File(th.testDataFolder + "/" + name); + String type = PdfAType.PDFA1A.toString(); + String resFileName = "result.pdf"; + + AsposeResponse response = th.pdfApi.putPdfInRequestToPdfA(th.tempFolder + '/' + resFileName, type, null, file); + assertEquals(200, (int)response.getCode()); + } + + /** + * GetPdfInStorageToTiff Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void getPdfInStorageToTiffTest() throws ApiException + { + String name = "4pages.pdf"; + th.uploadFile(name); + + String folder = th.tempFolder; + + + File response = th.pdfApi.getPdfInStorageToTiff(name, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, folder, null); + assertNotNull(response); + } + + /** + * PutPdfInStorageToTiff Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void putPdfInStorageToTiffTest() throws ApiException + { + String name = "4pages.pdf"; + th.uploadFile(name); + + String folder = th.tempFolder; + String resFileName = "result.tiff"; + + AsposeResponse response = th.pdfApi.putPdfInStorageToTiff(name, th.tempFolder + '/' + resFileName, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, folder, null); + assertEquals(200, (int)response.getCode()); + } + + /** + * PutPdfInRequestToTiff Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void putPdfInRequestToTiffTest() throws ApiException + { + String name = "4pages.pdf"; + File file = new File(th.testDataFolder + "/" + name); + String resFileName = "result.tiff"; + + AsposeResponse response = th.pdfApi.putPdfInRequestToTiff(th.tempFolder + '/' + resFileName, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, file); + assertEquals(200, (int)response.getCode()); + } + + /** + * GetPdfInStorageToSvg Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void getPdfInStorageToSvgTest() throws ApiException + { + String name = "4pages.pdf"; + th.uploadFile(name); + + String folder = th.tempFolder; + + + File response = th.pdfApi.getPdfInStorageToSvg(name, null, folder, null); + assertNotNull(response); + } + + /** + * PutPdfInStorageToSvg Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void putPdfInStorageToSvgTest() throws ApiException + { + String name = "4pages.pdf"; + th.uploadFile(name); + + String folder = th.tempFolder; + String resFileName = "result.svg"; + + AsposeResponse response = th.pdfApi.putPdfInStorageToSvg(name, th.tempFolder + '/' + resFileName, folder, null); + assertEquals(200, (int)response.getCode()); + } + + /** + * PutPdfInRequestToSvg Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void putPdfInRequestToSvgTest() throws ApiException + { + String name = "4pages.pdf"; + File file = new File(th.testDataFolder + "/" + name); + String resFileName = "result.svg"; + + AsposeResponse response = th.pdfApi.putPdfInRequestToSvg(th.tempFolder + '/' + resFileName, null, file); + assertEquals(200, (int)response.getCode()); + } + + /** + * GetPdfInStorageToXps Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void getPdfInStorageToXpsTest() throws ApiException + { + String name = "4pages.pdf"; + th.uploadFile(name); + + String folder = th.tempFolder; + + + File response = th.pdfApi.getPdfInStorageToXps(name, folder, null); + assertNotNull(response); + } + + /** + * PutPdfInStorageToXps Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void putPdfInStorageToXpsTest() throws ApiException + { + String name = "4pages.pdf"; + th.uploadFile(name); + + String folder = th.tempFolder; + String resFileName = "result.xps"; + + AsposeResponse response = th.pdfApi.putPdfInStorageToXps(name, th.tempFolder + '/' + resFileName, folder, null); + assertEquals(200, (int)response.getCode()); + } + + /** + * PutPdfInRequestToXps Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void putPdfInRequestToXpsTest() throws ApiException + { + String name = "4pages.pdf"; + File file = new File(th.testDataFolder + "/" + name); + String resFileName = "result.xps"; + + AsposeResponse response = th.pdfApi.putPdfInRequestToXps(th.tempFolder + '/' + resFileName, null , file); + assertEquals(200, (int)response.getCode()); + } + + /** + * GetPdfInStorageToXls Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void getPdfInStorageToXlsTest() throws ApiException + { + String name = "4pages.pdf"; + th.uploadFile(name); + + String folder = th.tempFolder; + + + File response = th.pdfApi.getPdfInStorageToXls(name, null, null, null, null, folder, null); + assertNotNull(response); + } + + /** + * PutPdfInStorageToXls Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void putPdfInStorageToXlsTest() throws ApiException + { + String name = "4pages.pdf"; + th.uploadFile(name); + + String folder = th.tempFolder; + String resFileName = "result.xls"; + + AsposeResponse response = th.pdfApi.putPdfInStorageToXls(name, th.tempFolder + '/' + resFileName, null, null, null, null, folder, null); + assertEquals(200, (int)response.getCode()); + } + + /** + * PutPdfInRequestToXls Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void putPdfInRequestToXlsTest() throws ApiException + { + String name = "4pages.pdf"; + File file = new File(th.testDataFolder + "/" + name); + String resFileName = "result.xls"; + + AsposeResponse response = th.pdfApi.putPdfInRequestToXls(th.tempFolder + '/' + resFileName, null, null, null, null, null , file); + assertEquals(200, (int)response.getCode()); + } + + /** + * GetPdfInStorageToXlsx Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void getPdfInStorageToXlsxTest() throws ApiException + { + String name = "4pages.pdf"; + th.uploadFile(name); + + String folder = th.tempFolder; + + + File response = th.pdfApi.getPdfInStorageToXlsx(name, null, null, null, null, folder, null); + assertNotNull(response); + } + + /** + * PutPdfInStorageToXlsx Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void putPdfInStorageToXlsxTest() throws ApiException + { + String name = "4pages.pdf"; + th.uploadFile(name); + + String folder = th.tempFolder; + String resFileName = "result.xlsx"; + + AsposeResponse response = th.pdfApi.putPdfInStorageToXlsx(name, th.tempFolder + '/' + resFileName, null, null, null, null, folder, null); + assertEquals(200, (int)response.getCode()); + } + + /** + * PutPdfInRequestToXlsx Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void putPdfInRequestToXlsxTest() throws ApiException + { + String name = "4pages.pdf"; + File file = new File(th.testDataFolder + "/" + name); + String resFileName = "result.xlsx"; + + AsposeResponse response = th.pdfApi.putPdfInRequestToXlsx(th.tempFolder + '/' + resFileName, null, null, null, null, null , file); + assertEquals(200, (int)response.getCode()); + } + + + /** + * GetPdfInStorageToHtml Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void getPdfInStorageToHtmlTest() throws ApiException + { + String name = "4pages.pdf"; + th.uploadFile(name); + + String folder = th.tempFolder; + + + File response = th.pdfApi.getPdfInStorageToHtml(name, null, null, null, null, null, null, null, null, + null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, folder, null); + assertNotNull(response); + } + + /** + * PutPdfInStorageToHtml Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void putPdfInStorageToHtmlTest() throws ApiException + { + String name = "4pages.pdf"; + th.uploadFile(name); + + String folder = th.tempFolder; + String resFileName = "result.zip"; + + AsposeResponse response = th.pdfApi.putPdfInStorageToHtml( + name, + th.tempFolder + '/' + resFileName, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + folder, + null); + assertEquals(200, (int)response.getCode()); + } + + /** + * PutPdfInRequestToHtml Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void putPdfInRequestToHtmlTest() throws ApiException + { + String name = "4pages.pdf"; + File file = new File(th.testDataFolder + "/" + name); + String resFileName = "result.zip"; + + AsposeResponse response = th.pdfApi.putPdfInRequestToHtml( + th.tempFolder + '/' + resFileName, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + file); + assertEquals(200, (int)response.getCode()); + } + + /** + * GetPdfInStorageToEpub Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void getPdfInStorageToEpubTest() throws ApiException + { + String name = "4pages.pdf"; + th.uploadFile(name); + + String folder = th.tempFolder; + + + File response = th.pdfApi.getPdfInStorageToEpub(name, null, folder, null); + assertNotNull(response); + } + + /** + * PutPdfInStorageToEpub Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void putPdfInStorageToEpubTest() throws ApiException + { + String name = "4pages.pdf"; + th.uploadFile(name); + + String folder = th.tempFolder; + String resFileName = "result.epub"; + + AsposeResponse response = th.pdfApi.putPdfInStorageToEpub(name, th.tempFolder + '/' + resFileName, null, folder, null); + assertEquals(200, (int)response.getCode()); + } + + /** + * PutPdfInRequestToEpub Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void putPdfInRequestToEpubTest() throws ApiException + { + String name = "4pages.pdf"; + File file = new File(th.testDataFolder + "/" + name); + String resFileName = "result.epub"; + + AsposeResponse response = th.pdfApi.putPdfInRequestToEpub(th.tempFolder + '/' + resFileName, null, null, file); + assertEquals(200, (int)response.getCode()); + } + + + /** + * GetPdfInStorageToPptx Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void getPdfInStorageToPptxTest() throws ApiException + { + String name = "4pages.pdf"; + th.uploadFile(name); + + String folder = th.tempFolder; + + + File response = th.pdfApi.getPdfInStorageToPptx(name, null, null, folder, null); + assertNotNull(response); + } + + /** + * PutPdfInStorageToPptx Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void putPdfInStorageToPptxTest() throws ApiException + { + String name = "4pages.pdf"; + th.uploadFile(name); + + String folder = th.tempFolder; + String resFileName = "result.pptx"; + + AsposeResponse response = th.pdfApi.putPdfInStorageToPptx(name, th.tempFolder + '/' + resFileName, null, null, folder, null); + assertEquals(200, (int)response.getCode()); + } + + /** + * PutPdfInRequestToPptx Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void putPdfInRequestToPptxTest() throws ApiException + { + String name = "4pages.pdf"; + File file = new File(th.testDataFolder + "/" + name); + String resFileName = "result.pptx"; + + AsposeResponse response = th.pdfApi.putPdfInRequestToPptx(th.tempFolder + '/' + resFileName, null, null, null, file); + assertEquals(200, (int)response.getCode()); + } + + + /** + * GetPdfInStorageToLaTeX Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void getPdfInStorageToLaTeXTest() throws ApiException + { + String name = "4pages.pdf"; + th.uploadFile(name); + + String folder = th.tempFolder; + + + File response = th.pdfApi.getPdfInStorageToLaTeX(name, null, folder, null); + assertNotNull(response); + } + + /** + * PutPdfInStorageToLaTeX Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void putPdfInStorageToLaTeXTest() throws ApiException + { + String name = "4pages.pdf"; + th.uploadFile(name); + + String folder = th.tempFolder; + String resFileName = "result.latex"; + + AsposeResponse response = th.pdfApi.putPdfInStorageToLaTeX(name, th.tempFolder + '/' + resFileName, null, folder, null); + assertEquals(200, (int)response.getCode()); + } + + /** + * PutPdfInRequestToLaTeX Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void putPdfInRequestToLaTeXTest() throws ApiException + { + String name = "4pages.pdf"; + File file = new File(th.testDataFolder + "/" + name); + String resFileName = "result.latex"; + + AsposeResponse response = th.pdfApi.putPdfInRequestToLaTeX(th.tempFolder + '/' + resFileName, null, null, file); + assertEquals(200, (int)response.getCode()); + } + + + /** + * GetPdfInStorageToMobiXml Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void getPdfInStorageToMobiXmlTest() throws ApiException + { + String name = "4pages.pdf"; + th.uploadFile(name); + + String folder = th.tempFolder; + + + File response = th.pdfApi.getPdfInStorageToMobiXml(name, folder, null); + assertNotNull(response); + } + + + /** + * PutPdfInStorageToMobiXml Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void putPdfInStorageToMobiXmlTest() throws ApiException + { + String name = "4pages.pdf"; + th.uploadFile(name); + + String folder = th.tempFolder; + String resFileName = "result.mobi"; + + AsposeResponse response = th.pdfApi.putPdfInStorageToMobiXml(name, th.tempFolder + '/' + resFileName, folder, null); + assertEquals(200, (int)response.getCode()); + } + + + /** + * PutPdfInRequestToMobiXml Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void putPdfInRequestToMobiXmlTest() throws ApiException + { + String name = "4pages.pdf"; + File file = new File(th.testDataFolder + "/" + name); + String resFileName = "result.mobi"; + + AsposeResponse response = th.pdfApi.putPdfInRequestToMobiXml(th.tempFolder + '/' + resFileName, null, file); + assertEquals(200, (int)response.getCode()); + } + + + /** + * GetXfaPdfInStorageToAcroForm Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void getXfaPdfInStorageToAcroFormTest() throws ApiException + { + String name = "PdfWithXfaForm.pdf"; + th.uploadFile(name); + + String folder = th.tempFolder; + + + File response = th.pdfApi.getXfaPdfInStorageToAcroForm(name, folder, null); + assertNotNull(response); + } + + /** + * PutXfaPdfInStorageToAcroForm Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void putXfaPdfInStorageToAcroFormTest() throws ApiException + { + String name = "PdfWithXfaForm.pdf"; + th.uploadFile(name); + + String folder = th.tempFolder; + String resFileName = "result.pdf"; + + AsposeResponse response = th.pdfApi.putXfaPdfInStorageToAcroForm(name, th.tempFolder + '/' + resFileName, folder, null); + assertEquals(200, (int)response.getCode()); + } + + /** + * PutXfaPdfInRequestToAcroForm Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void putXfaPdfInRequestToAcroFormTest() throws ApiException + { + String name = "PdfWithXfaForm.pdf"; + File file = new File(th.testDataFolder + "/" + name); + String resFileName = "result.pdf"; + + AsposeResponse response = th.pdfApi.putXfaPdfInRequestToAcroForm(th.tempFolder + '/' + resFileName, null, file); + assertEquals(200, (int)response.getCode()); + } + + + /** + * GetPdfInStorageToXml Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void getPdfInStorageToXmlTest() throws ApiException + { + String name = "4pages.pdf"; + th.uploadFile(name); + + String folder = th.tempFolder; + + + File response = th.pdfApi.getPdfInStorageToXml(name, folder, null); + assertNotNull(response); + } + + /** + * PutPdfInStorageToXml Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void putPdfInStorageToXmlTest() throws ApiException + { + String name = "4pages.pdf"; + th.uploadFile(name); + + String folder = th.tempFolder; + String resFileName = "result.xml"; + + AsposeResponse response = th.pdfApi.putPdfInStorageToXml(name, th.tempFolder + '/' + resFileName, folder, null); + assertEquals(200, (int)response.getCode()); + } + + /** + * PutPdfInRequestToXml Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void putPdfInRequestToXmlTest() throws ApiException + { + String name = "4pages.pdf"; + File file = new File(th.testDataFolder + "/" + name); + String resFileName = "result.xml"; + + AsposeResponse response = th.pdfApi.putPdfInRequestToXml(th.tempFolder + '/' + resFileName, null, file); + assertEquals(200, (int)response.getCode()); + } +} + diff --git a/src/test/java/com/aspose/asposecloudpdf/api/ConvertToPdfTests.java b/src/test/java/com/aspose/asposecloudpdf/api/ConvertToPdfTests.java new file mode 100644 index 0000000..ccc11b1 --- /dev/null +++ b/src/test/java/com/aspose/asposecloudpdf/api/ConvertToPdfTests.java @@ -0,0 +1,525 @@ +/** + * + * Copyright (c) 2019 Aspose.PDF Cloud + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of TestHelper.getInstance() 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.api; + +import com.aspose.asposecloudpdf.ApiException; +import com.aspose.asposecloudpdf.model.*; + +import org.junit.Test; + +import java.io.File; +import java.util.ArrayList; + +import static org.junit.Assert.assertEquals; +import static org.junit.Assert.assertNotNull; + +public class ConvertToPdfTests { + private TestHelper th; + + public ConvertToPdfTests() throws ApiException { + th = TestHelper.getInstance(); + } + + /** + * GetEpubInStorageToPdf Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void getEpubInStorageToPdfTest() throws ApiException + { + String name = "4pages.epub"; + th.uploadFile(name); + + + String srcPath = th.tempFolder + '/' + name; + + File response = th.pdfApi.getEpubInStorageToPdf(srcPath, null); + assertNotNull(response); + } + + + /** + * PutEpubInStorageToPdf Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void putEpubInStorageToPdfTest() throws ApiException + { + String name = "4pages.epub"; + th.uploadFile(name); + + + String srcPath = th.tempFolder + '/' + name; + String resultName = "fromEpub.pdf"; + + AsposeResponse response = th.pdfApi.putEpubInStorageToPdf(resultName, srcPath, null, th.tempFolder); + assertEquals(200, (int)response.getCode()); + } + + /** + * GetWebInStorageToPdf Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void getWebInStorageToPdfTest() throws ApiException + { + String sourceUrl = "http://google.com"; + + File response = th.pdfApi.getWebInStorageToPdf(sourceUrl, null, null , null, + null, null, null, null, null); + assertNotNull(response); + } + + + /** + * PutWebInStorageToPdf Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void putWebInStorageToPdfTest() throws ApiException + { + String sourceUrl = "http://google.com"; + String resultName = "fromWeb.pdf"; + + AsposeResponse response = th.pdfApi.putWebInStorageToPdf(resultName, sourceUrl, null, + null, null, null, null, null, + null, th.tempFolder, null); + assertEquals(200, (int)response.getCode()); + } + + + /** + * GetLaTeXInStorageToPdf Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void getLaTeXInStorageToPdfTest() throws ApiException + { + String name = "sample.tex"; + th.uploadFile(name); + + + String srcPath = th.tempFolder + '/' + name; + + File response = th.pdfApi.getLaTeXInStorageToPdf(srcPath, null); + assertNotNull(response); + } + + + /** + * PutLaTeXInStorageToPdf Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void putLaTeXInStorageToPdfTest() throws ApiException + { + String name = "sample.tex"; + th.uploadFile(name); + + + String srcPath = th.tempFolder + '/' + name; + String resultName = "fromTex.pdf"; + + AsposeResponse response = th.pdfApi.putLaTeXInStorageToPdf(resultName, srcPath, th.tempFolder, null); + assertEquals(200, (int)response.getCode()); + } + + + /** + * GetMhtInStorageToPdf Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void getMhtInStorageToPdfTest() throws ApiException + { + String name = "MhtExample.mht"; + th.uploadFile(name); + + + String srcPath = th.tempFolder + '/' + name; + + File response = th.pdfApi.getMhtInStorageToPdf(srcPath, null); + assertNotNull(response); + } + + + /** + * PutMhtInStorageToPdf Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void putMhtInStorageToPdfTest() throws ApiException + { + String name = "MhtExample.mht"; + th.uploadFile(name); + + + String srcPath = th.tempFolder + '/' + name; + String resultName = "fromMht.pdf"; + + AsposeResponse response = th.pdfApi.putMhtInStorageToPdf(resultName, srcPath, th.tempFolder, null); + assertEquals(200, (int)response.getCode()); + } + + + /** + * GetHtmlInStorageToPdf Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void getHtmlInStorageToPdfTest() throws ApiException + { + String name = "HtmlWithImage.zip"; + th.uploadFile(name); + + String htmlFileName = "HtmlWithImage.html"; + double height = 650; + double width = 250; + String srcPath = th.tempFolder + '/' + name; + + File response = th.pdfApi.getHtmlInStorageToPdf(srcPath, htmlFileName, height, width, + null, null, null, null, null, null); + assertNotNull(response); + } + + + /** + * PutHtmlInStorageToPdf Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void putHtmlInStorageToPdfTest() throws ApiException + { + String name = "HtmlWithImage.zip"; + th.uploadFile(name); + + String htmlFileName = "HtmlWithImage.html"; + double height = 650; + double width = 250; + String resultName = "fromHtml.pdf"; + String srcPath = th.tempFolder + '/' + name; + + + AsposeResponse response = th.pdfApi.putHtmlInStorageToPdf(name, srcPath, htmlFileName, + height, width, null, null, null, + null, null, null, null); + assertEquals(200, (int)response.getCode()); + } + + /** + * GetXslFoInStorageToPdf Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void getXslFoInStorageToPdfTest() throws ApiException + { + String name = "XslfoExample.xslfo"; + th.uploadFile(name); + + + String srcPath = th.tempFolder + '/' + name; + + File response = th.pdfApi.getXslFoInStorageToPdf(srcPath, null); + assertNotNull(response); + } + + + /** + * PutXslFoInStorageToPdf Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void putXslFoInStorageToPdfTest() throws ApiException + { + String name = "XslfoExample.xslfo"; + th.uploadFile(name); + + + String srcPath = th.tempFolder + '/' + name; + String resultName = "fromXlsFo.pdf"; + + AsposeResponse response = th.pdfApi.putXslFoInStorageToPdf(resultName, srcPath, th.tempFolder, null); + assertEquals(200, (int)response.getCode()); + } + + + /** + * GetXpsInStorageToPdf Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void getXpsInStorageToPdfTest() throws ApiException + { + String name = "Simple.xps"; + th.uploadFile(name); + + + String srcPath = th.tempFolder + '/' + name; + + File response = th.pdfApi.getXpsInStorageToPdf(srcPath, null); + assertNotNull(response); + } + + + /** + * PutXpsInStorageToPdf Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void putXpsInStorageToPdfTest() throws ApiException + { + String name = "Simple.xps"; + th.uploadFile(name); + + + String srcPath = th.tempFolder + '/' + name; + String resultName = "fromXps.pdf"; + + AsposeResponse response = th.pdfApi.putXpsInStorageToPdf(resultName, srcPath, th.tempFolder, null); + assertEquals(200, (int)response.getCode()); + } + + + /** + * GetSvgInStorageToPdf Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void getSvgInStorageToPdfTest() throws ApiException + { + String name = "Simple.svg"; + th.uploadFile(name); + + + String srcPath = th.tempFolder + '/' + name; + + File response = th.pdfApi.getSvgInStorageToPdf(srcPath, null, null, null, + null, null, null, null, null, null); + assertNotNull(response); + } + + + /** + * PutSvgInStorageToPdf Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void putSvgInStorageToPdfTest() throws ApiException + { + String name = "Simple.svg"; + th.uploadFile(name); + + + String srcPath = th.tempFolder + '/' + name; + String resultName = "fromSvg.pdf"; + + AsposeResponse response = th.pdfApi.putSvgInStorageToPdf(resultName, srcPath, null, + null, null, null, null, null, + null, null, th.tempFolder, null); + assertEquals(200, (int)response.getCode()); + } + + /** + * GetPclInStorageToPdf Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void getPclInStorageToPdfTest() throws ApiException + { + String name = "template.pcl"; + th.uploadFile(name); + + + String srcPath = th.tempFolder + '/' + name; + + File response = th.pdfApi.getPclInStorageToPdf(srcPath, null); + assertNotNull(response); + } + + + /** + * PutPclInStorageToPdf Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void putPclInStorageToPdfTest() throws ApiException + { + String name = "template.pcl"; + th.uploadFile(name); + + + String srcPath = th.tempFolder + '/' + name; + String resultName = "fromPcl.pdf"; + + AsposeResponse response = th.pdfApi.putPclInStorageToPdf(resultName, srcPath, th.tempFolder, null); + assertEquals(200, (int)response.getCode()); + } + + + /** + * GetXmlInStorageToPdf Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void getXmlInStorageToPdfTest() throws ApiException + { + String name = "template.xml"; + th.uploadFile(name); + + + String srcPath = th.tempFolder + '/' + name; + + File response = th.pdfApi.getXmlInStorageToPdf(srcPath, null, null); + assertNotNull(response); + } + + + /** + * PutXmlInStorageToPdf Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void putXmlInStorageToPdfTest() throws ApiException + { + String name = "template.xml"; + th.uploadFile(name); + + + String srcPath = th.tempFolder + '/' + name; + String resultName = "fromXml.pdf"; + + AsposeResponse response = th.pdfApi.putXmlInStorageToPdf(resultName, srcPath, null, th.tempFolder, null); + assertEquals(200, (int)response.getCode()); + } + + + /** + * GetPsInStorageToPdf Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void getPsInStorageToPdfTest() throws ApiException + { + String name = "Typography.PS"; + th.uploadFile(name); + + + String srcPath = th.tempFolder + '/' + name; + + File response = th.pdfApi.getPsInStorageToPdf(srcPath, null); + assertNotNull(response); + } + + + /** + * PutPsInStorageToPdf Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void putPsInStorageToPdfTest() throws ApiException + { + String name = "Typography.PS"; + th.uploadFile(name); + + + String srcPath = th.tempFolder + '/' + name; + String resultName = "fromPs.pdf"; + + AsposeResponse response = th.pdfApi.putPsInStorageToPdf(resultName, srcPath, th.tempFolder, null); + assertEquals(200, (int)response.getCode()); + } + + + /** + * PutImageInStorageToPdf Test + * @throws ApiException + * if the Api call fails + */ + @Test + public void putImageInStorageToPdfTest() throws ApiException + { + final String dataFile1 = "33539.jpg"; + th.uploadFile(dataFile1); + + final String dataFile2 = "44781.jpg"; + th.uploadFile(dataFile2); + + String resultName = "result.pdf"; + + + ImageTemplatesRequest imageTemplatesRequest = new ImageTemplatesRequest() + .isOCR(true) + .ocRLangs("eng") + .imagesList(new ArrayList(){{ + add(new ImageTemplate().imagePath(th.tempFolder + '/' + dataFile1).imageSrcType(ImageSrcType.COMMON)); + add(new ImageTemplate().imagePath(th.tempFolder + '/' + dataFile2).imageSrcType(ImageSrcType.COMMON)); + }}); + + AsposeResponse response = th.pdfApi.putImageInStorageToPdf(resultName, imageTemplatesRequest, th.tempFolder, null); + assertEquals(200, (int)response.getCode()); + } + +} diff --git a/src/test/java/com/aspose/asposecloudpdf/api/DocumentTests.java b/src/test/java/com/aspose/asposecloudpdf/api/DocumentTests.java new file mode 100644 index 0000000..e4d037d --- /dev/null +++ b/src/test/java/com/aspose/asposecloudpdf/api/DocumentTests.java @@ -0,0 +1,120 @@ +/** + * + * Copyright (c) 2009 Aspose.PDF Cloud + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of TestHelper.getInstance() 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.api; + +import com.aspose.asposecloudpdf.ApiException; +import com.aspose.asposecloudpdf.model.*; + +import org.junit.Test; + + +import static org.junit.Assert.assertEquals; + +public class DocumentTests { + private TestHelper th; + + public DocumentTests() throws ApiException { + th = TestHelper.getInstance(); + } + + /** + * GetDocument Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void getDocumentTest() throws ApiException + { + String name = "4pages.pdf"; + this.th.uploadFile(name); + + String folder = this.th.tempFolder; + + DocumentResponse response = this.th.pdfApi.getDocument(name, null, folder); + assertEquals(200, (int)response.getCode()); + } + + + /** + * PostOptimizeDocument Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void postOptimizeDocumentTest() throws ApiException + { + String name = "4pages.pdf"; + this.th.uploadFile(name); + + OptimizeOptions optimizeOptions = new OptimizeOptions(); + optimizeOptions.setAllowReusePageContent(false); + optimizeOptions.setCompressImages(true); + optimizeOptions.setImageQuality(100); + optimizeOptions.setLinkDuplcateStreams(true); + optimizeOptions.setRemoveUnusedObjects(true); + optimizeOptions.setRemoveUnusedStreams(true); + optimizeOptions.setUnembedFonts(true); + + String folder = this.th.tempFolder; + + AsposeResponse response = this.th.pdfApi.postOptimizeDocument(name, optimizeOptions, null, folder); + assertEquals(200, (int)response.getCode()); + } + + /** + * PostSplitDocument Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void postSplitDocumentTest() throws ApiException + { + String name = "4pages.pdf"; + this.th.uploadFile(name); + + String folder = this.th.tempFolder; + + SplitResultResponse response = this.th.pdfApi.postSplitDocument(name, null, null, null, null, folder); + assertEquals(200, (int)response.getCode()); + } + + + /** + * PutCreateEmptyDocument Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void putCreateEmptyDocumentTest() throws ApiException + { + String name = "empty.pdf"; + + String folder = this.th.tempFolder; + + DocumentResponse response = this.th.pdfApi.putCreateDocument(name, null, folder); + assertEquals(200, (int)response.getCode()); + } +} diff --git a/src/test/java/com/aspose/asposecloudpdf/api/EncryptDecryptTests.java b/src/test/java/com/aspose/asposecloudpdf/api/EncryptDecryptTests.java new file mode 100644 index 0000000..932a390 --- /dev/null +++ b/src/test/java/com/aspose/asposecloudpdf/api/EncryptDecryptTests.java @@ -0,0 +1,161 @@ +/** + * + * Copyright (c) 2009 Aspose.PDF Cloud + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of TestHelper.getInstance() 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.api; + +import com.aspose.asposecloudpdf.ApiException; +import com.aspose.asposecloudpdf.model.*; + +import org.junit.Test; + +import java.io.File; + +import static org.junit.Assert.assertEquals; + +public class EncryptDecryptTests { + private TestHelper th; + + public EncryptDecryptTests() throws ApiException { + th = TestHelper.getInstance(); + } + // Encrypt Decrypt Tests + + /** + * PutEncryptDocument Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void putEncryptDocumentTest() throws ApiException + { + String name = "4pages.pdf"; + File file = new File(th.testDataFolder + "/" + name); + + String outPath = th.tempFolder + '/' + name; + String userPasswordBase64encoded = "dXNlciAkXlBhc3N3b3JkISY="; //user $^Password!& + String ownerPasswordBase64encoded = "b3duZXJcLy8/ICQxMl5QYXNzd29yZCEm"; //owner\//? $12^Password!& + + AsposeResponse response = th.pdfApi.putEncryptDocument(outPath, userPasswordBase64encoded, ownerPasswordBase64encoded, + CryptoAlgorithm.AESX128.getValue(), null, null, null, file); + assertEquals(200, (int)response.getCode()); + } + + /** + * PostEncryptDocumentInStorage Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void postEncryptDocumentInStorageTest() throws ApiException + { + String name = "4pages.pdf"; + th.uploadFile(name); + + String userPasswordBase64encoded = "dXNlciAkXlBhc3N3b3JkISY="; //user $^Password!& + String ownerPasswordBase64encoded = "b3duZXJcLy8/ICQxMl5QYXNzd29yZCEm"; //owner\//? $12^Password!& + + AsposeResponse response = th.pdfApi.postEncryptDocumentInStorage(name, userPasswordBase64encoded, ownerPasswordBase64encoded, + CryptoAlgorithm.AESX128.getValue(), null, null, null, th.tempFolder); + assertEquals(200, (int)response.getCode()); + } + + /** + * PutDecryptDocument Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void putDecryptDocumentTest() throws ApiException + { + String name = "4pagesEncrypted.pdf"; + File file = new File(th.testDataFolder + "/" + name); + + String outPath = th.tempFolder + '/' + name; + String userPasswordBase64encoded = "dXNlciAkXlBhc3N3b3JkISY="; //user $^Password!& + + AsposeResponse response = th.pdfApi.putDecryptDocument(outPath, userPasswordBase64encoded, null, file); + assertEquals(200, (int)response.getCode()); + } + + /** + * PostDencryptDocumentInStorage Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void posttDencryptDocumentInStorageTest() throws ApiException + { + String name = "4pagesEncrypted.pdf"; + th.uploadFile(name); + + String userPasswordBase64encoded = "dXNlciAkXlBhc3N3b3JkISY="; //user $^Password!& + + AsposeResponse response = th.pdfApi.postDecryptDocumentInStorage(name, userPasswordBase64encoded, null, th.tempFolder); + assertEquals(200, (int)response.getCode()); + } + + /** + * PutChangePasswordDocument Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void putChangePasswordDocumentTest() throws ApiException + { + String name = "4pagesEncrypted.pdf"; + File file = new File(th.testDataFolder + "/" + name); + + String outPath = th.tempFolder + '/' + name; + String ownerPasswordBase64Encoded = "b3duZXJcLy8/ICQxMl5QYXNzd29yZCEm"; //owner\//? $12^Password!& + String newUserPasswordBase64Encoded = "dXNlciBuZXcvLz8gJDEyXlBhc3N3b3JkISY="; //user new\//? $12^Password!& + String newOwnerPasswordBase64Encoded = "b3duZXIgbmV3Ly8/ICQxMl5QYXNzd29yZCEm"; //owner new\//? $12^Password!& + + AsposeResponse response = th.pdfApi.putChangePasswordDocument(outPath, ownerPasswordBase64Encoded, + newUserPasswordBase64Encoded, newOwnerPasswordBase64Encoded, null, file); + assertEquals(200, (int)response.getCode()); + } + + /** + * PostChangePasswordDocumentInStorage Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void postChangePasswordDocumentInStorageTest() throws ApiException + { + String name = "4pagesEncrypted.pdf"; + th.uploadFile(name); + + String ownerPasswordBase64Encoded = "b3duZXJcLy8/ICQxMl5QYXNzd29yZCEm"; //owner\//? $12^Password!& + String newUserPasswordBase64Encoded = "dXNlciBuZXcvLz8gJDEyXlBhc3N3b3JkISY="; //user new\//? $12^Password!& + String newOwnerPasswordBase64Encoded = "b3duZXIgbmV3Ly8/ICQxMl5QYXNzd29yZCEm"; //owner new\//? $12^Password!& + + AsposeResponse response = th.pdfApi.postChangePasswordDocumentInStorage(name, ownerPasswordBase64Encoded, + newUserPasswordBase64Encoded, newOwnerPasswordBase64Encoded, null, th.tempFolder); + assertEquals(200, (int)response.getCode()); + } +} diff --git a/src/test/java/com/aspose/asposecloudpdf/api/FieldsTests.java b/src/test/java/com/aspose/asposecloudpdf/api/FieldsTests.java new file mode 100644 index 0000000..ca97c85 --- /dev/null +++ b/src/test/java/com/aspose/asposecloudpdf/api/FieldsTests.java @@ -0,0 +1,223 @@ +/** + * + * Copyright (c) 2009 Aspose.PDF Cloud + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of TestHelper.getInstance() 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.api; + +import com.aspose.asposecloudpdf.ApiException; +import com.aspose.asposecloudpdf.model.*; + +import org.junit.Test; + +import java.util.ArrayList; + +import static org.junit.Assert.assertEquals; + +public class FieldsTests { + private TestHelper th; + + public FieldsTests() throws ApiException { + th = TestHelper.getInstance(); + } + + + /** + * GetField Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void getFieldTest() throws ApiException + { + String name = "PdfWithAcroForm.pdf"; + th.uploadFile(name); + + String folder = th.tempFolder; + String fieldName = "textField"; + + FieldResponse response = th.pdfApi.getField(name, fieldName, null, folder); + assertEquals(200, (int)response.getCode()); + } + + + /** + * GetFields Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void getFieldsTest() throws ApiException + { + String name = "PdfWithAcroForm.pdf"; + th.uploadFile(name); + + String folder = th.tempFolder; + + FieldsResponse response = th.pdfApi.getFields(name, null, folder); + assertEquals(200, (int)response.getCode()); + } + + + /** + * PostCreateField Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void postCreateFieldTest() throws ApiException + { + String name = "Hello world.pdf"; + th.uploadFile(name); + + Rectangle rect = new Rectangle() + .LLX(50.) + .LLY(200.) + .URX(200.) + .URY(400.); + + Field field = new Field(); + field.setName("checkboxfield"); + field.setValues(new ArrayList(){{ add("1");}}); + field.setType(FieldType.BOOLEAN); + field.setRect(rect); + + int pageNumber = 1; + String folder = th.tempFolder; + + AsposeResponse response = th.pdfApi.postCreateField(name, pageNumber, field, null, folder); + assertEquals(200, (int)response.getCode()); + } + + /** + * PutUpdateField Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void putUpdateFieldTest() throws ApiException + { + String name = "PdfWithAcroForm.pdf"; + th.uploadFile(name); + + String fieldName = "textField"; + + Field field = new Field(); + field.setName(fieldName); + field.setValues(new ArrayList(){{ add("Text field updated value.");}}); + field.setType(FieldType.TEXT); + + String folder = th.tempFolder; + + FieldResponse response = th.pdfApi.putUpdateField(name, fieldName, field, null, folder); + assertEquals(200, (int)response.getCode()); + } + + /** + * PutUpdateField Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void putUpdateFieldsTest() throws ApiException + { + String name = "PdfWithAcroForm.pdf"; + th.uploadFile(name); + + Field field = new Field(); + field.setName("textField"); + field.setValues(new ArrayList(){{ add("1");}}); + field.setType(FieldType.TEXT); + + ArrayList fieldsList = new ArrayList(); + fieldsList.add(field); + + Fields fields = new Fields().list(fieldsList); + + String folder = th.tempFolder; + + AsposeResponse response = th.pdfApi.putUpdateFields(name, fields,null, folder); + assertEquals(200, (int)response.getCode()); + } + + + /** + * DeleteField Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void deleteFieldTest() throws ApiException + { + String name = "PdfWithAcroForm.pdf"; + th.uploadFile(name); + + String fieldName = "textField"; + + String folder = th.tempFolder; + + AsposeResponse response = th.pdfApi.deleteField(name, fieldName, null, folder); + assertEquals(200, (int)response.getCode()); + } + + + /** + * PutFieldsFlatten Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void putFieldsFlattenTest() throws ApiException + { + String name = "PdfWithAcroForm.pdf"; + th.uploadFile(name); + + String folder = th.tempFolder; + + AsposeResponse response = th.pdfApi.putFieldsFlatten(name, null, folder); + assertEquals(200, (int)response.getCode()); + } + + /** + * PostFlattenDocument Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void postFlattenDocumentTest() throws ApiException + { + String name = "PdfWithAcroForm.pdf"; + th.uploadFile(name); + + boolean updateAppearances = true; + boolean hideButtons = true; + String folder = th.tempFolder; + + AsposeResponse response = th.pdfApi.postFlattenDocument(name, updateAppearances, null, hideButtons, null, folder); + assertEquals(200, (int)response.getCode()); + } +} diff --git a/src/test/java/com/aspose/asposecloudpdf/api/FileAttachmentAnnotationsTests.java b/src/test/java/com/aspose/asposecloudpdf/api/FileAttachmentAnnotationsTests.java new file mode 100644 index 0000000..983a634 --- /dev/null +++ b/src/test/java/com/aspose/asposecloudpdf/api/FileAttachmentAnnotationsTests.java @@ -0,0 +1,213 @@ +/** + * + * Copyright (c) 2009 Aspose.PDF Cloud + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of TestHelper.getInstance() 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.api; + +import com.aspose.asposecloudpdf.ApiException; +import com.aspose.asposecloudpdf.model.*; + +import org.junit.Test; + +import java.io.File; +import java.util.ArrayList; +import java.util.List; + +import static org.junit.Assert.assertEquals; +import static org.junit.Assert.assertNotNull; + +public class FileAttachmentAnnotationsTests { + private TestHelper th; + + public FileAttachmentAnnotationsTests() throws ApiException { + th = TestHelper.getInstance(); + } + + /** + * GetDocumentFileAttachmentAnnotationsTest + * + * @throws ApiException if the Api call fails + */ + @Test + public void getDocumentFileAttachmentAnnotationsTest() throws ApiException { + String name = "PdfWithAnnotations.pdf"; + th.uploadFile(name); + + FileAttachmentAnnotationsResponse response = th.pdfApi.getDocumentFileAttachmentAnnotations(name, null, th.tempFolder); + assertEquals(200, (int) response.getCode()); + } + + /** + * GetPageFileAttachmentAnnotationsTest + * + * @throws ApiException if the Api call fails + */ + @Test + public void getPageFileAttachmentAnnotationsTest() throws ApiException { + String name = "PdfWithAnnotations.pdf"; + th.uploadFile(name); + + int pageNumber = 2; + + FileAttachmentAnnotationsResponse response = th.pdfApi.getPageFileAttachmentAnnotations(name, pageNumber, null, th.tempFolder); + assertEquals(200, (int) response.getCode()); + } + + /** + * PostPageFileAttachmentAnnotationsTest + * + * @throws ApiException if the Api call fails + */ + @Test + public void postPageFileAttachmentAnnotationsTest() throws ApiException { + String name = "PdfWithAnnotations.pdf"; + th.uploadFile(name); + + String attachmentFile = "4pages.pdf"; + th.uploadFile(attachmentFile); + + int pageNumber = 1; + + Rectangle rect = new Rectangle() + .LLX(100.) + .LLY(100.) + .URX(200.) + .URY(200.); + + List flags = new ArrayList<>(); + flags.add(AnnotationFlags.DEFAULT); + + FileAttachmentAnnotation annotation = new FileAttachmentAnnotation(); + annotation.setName("Name"); + annotation.setRect(rect); + annotation.setFlags(flags); + annotation.setHorizontalAlignment(HorizontalAlignment.CENTER); + annotation.setRichText("Rich Text"); + annotation.setSubject("Subj"); + annotation.setZindex(1); + annotation.setTitle("Title"); + annotation.setModified("01/01/2018 12:00:00.000 AM"); + annotation.setFilePath(th.tempFolder + '/' + attachmentFile); + annotation.setFileName(attachmentFile); + + List annotations = new ArrayList<>(); + annotations.add(annotation); + + AsposeResponse response = th.pdfApi.postPageFileAttachmentAnnotations(name, pageNumber, annotations, null, th.tempFolder); + assertEquals(200, (int) response.getCode()); + } + + /** + * GetFileAttachmentAnnotationTest + * + * @throws ApiException if the Api call fails + */ + @Test + public void getFileAttachmentAnnotationTest() throws ApiException { + String name = "PdfWithAnnotations.pdf"; + th.uploadFile(name); + + FileAttachmentAnnotationsResponse responseAnnotations = th.pdfApi.getDocumentFileAttachmentAnnotations(name, null, th.tempFolder); + assertEquals(200, (int) responseAnnotations.getCode()); + String annotationId = responseAnnotations.getAnnotations().getList().get(0).getId(); + + FileAttachmentAnnotationResponse response = th.pdfApi.getFileAttachmentAnnotation(name, annotationId, null, th.tempFolder); + assertEquals(200, (int) response.getCode()); + } + + /** + * PutFileAttachmentAnnotationTest + * + * @throws ApiException if the Api call fails + */ + @Test + public void putFileAttachmentAnnotationTest() throws ApiException { + String name = "PdfWithAnnotations.pdf"; + th.uploadFile(name); + + String attachmentFile = "4pages.pdf"; + th.uploadFile(attachmentFile); + + Rectangle rect = new Rectangle() + .LLX(100.) + .LLY(100.) + .URX(200.) + .URY(200.); + + List flags = new ArrayList<>(); + flags.add(AnnotationFlags.DEFAULT); + + FileAttachmentAnnotation annotation = new FileAttachmentAnnotation(); + annotation.setName("Name"); + annotation.setRect(rect); + annotation.setFlags(flags); + annotation.setHorizontalAlignment(HorizontalAlignment.CENTER); + annotation.setRichText("Rich Text"); + annotation.setSubject("Subj"); + annotation.setZindex(1); + annotation.setTitle("Title"); + annotation.setModified("01/01/2018 12:00:00.000 AM"); + annotation.setFilePath(th.tempFolder + '/' + attachmentFile); + annotation.setFileName(attachmentFile); + + FileAttachmentAnnotationsResponse responseAnnotations = th.pdfApi.getDocumentFileAttachmentAnnotations(name, null, th.tempFolder); + assertEquals(200, (int) responseAnnotations.getCode()); + String annotationId = responseAnnotations.getAnnotations().getList().get(0).getId(); + + AsposeResponse response = th.pdfApi.putFileAttachmentAnnotation(name, annotationId, annotation, null, th.tempFolder); + assertEquals(200, (int) response.getCode()); + } + + /** + * GetFileAttachmentAnnotationDataTest + * + * @throws ApiException if the Api call fails + */ + @Test + public void getFileAttachmentAnnotationDataTest() throws ApiException { + String name = "PdfWithAnnotations.pdf"; + th.uploadFile(name); + + FileAttachmentAnnotationsResponse responseAnnotations = th.pdfApi.getDocumentFileAttachmentAnnotations(name, null, th.tempFolder); + assertEquals(200, (int) responseAnnotations.getCode()); + String annotationId = responseAnnotations.getAnnotations().getList().get(0).getId(); + + File response = th.pdfApi.getFileAttachmentAnnotationData(name, annotationId, null, th.tempFolder); + assertNotNull(response); + } + + /** + * PutFileAttachmentAnnotationDataExtractTest + * + * @throws ApiException if the Api call fails + */ + @Test + public void putFileAttachmentAnnotationDataExtractTest() throws ApiException { + String name = "PdfWithAnnotations.pdf"; + th.uploadFile(name); + + FileAttachmentAnnotationsResponse responseAnnotations = th.pdfApi.getDocumentFileAttachmentAnnotations(name, null, th.tempFolder); + assertEquals(200, (int) responseAnnotations.getCode()); + String annotationId = responseAnnotations.getAnnotations().getList().get(0).getId(); + + AsposeResponse response = th.pdfApi.putFileAttachmentAnnotationDataExtract(name, annotationId, null, null, th.tempFolder); + assertEquals(200, (int) response.getCode()); + } +} diff --git a/src/test/java/com/aspose/asposecloudpdf/api/FreeTextAnnotationsTests.java b/src/test/java/com/aspose/asposecloudpdf/api/FreeTextAnnotationsTests.java new file mode 100644 index 0000000..6060785 --- /dev/null +++ b/src/test/java/com/aspose/asposecloudpdf/api/FreeTextAnnotationsTests.java @@ -0,0 +1,213 @@ +/** + * + * Copyright (c) 2009 Aspose.PDF Cloud + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of TestHelper.getInstance() 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.api; + +import com.aspose.asposecloudpdf.ApiException; +import com.aspose.asposecloudpdf.model.*; + +import org.junit.Test; + +import java.util.ArrayList; +import java.util.List; + +import static org.junit.Assert.assertEquals; + +public class FreeTextAnnotationsTests { + private TestHelper th; + + public FreeTextAnnotationsTests() throws ApiException { + th = TestHelper.getInstance(); + } + + /** + * GetDocumentFreeTextAnnotationsTest + * @throws ApiException + * if the Api call fails + */ + @Test + public void getDocumentFreeTextAnnotationsTest()throws ApiException + { + String name = "PdfWithAnnotations.pdf"; + th.uploadFile(name); + + FreeTextAnnotationsResponse response = th.pdfApi.getDocumentFreeTextAnnotations(name, null, th.tempFolder); + assertEquals(200, (int)response.getCode()); + } + + /** + * GetPageFreeTextAnnotationsTest + * @throws ApiException + * if the Api call fails + */ + @Test + public void getPageFreeTextAnnotationsTest()throws ApiException + { + String name = "PdfWithAnnotations.pdf"; + th.uploadFile(name); + + int pageNumber = 2; + + FreeTextAnnotationsResponse response = th.pdfApi.getPageFreeTextAnnotations(name, pageNumber, null, th.tempFolder); + assertEquals(200, (int)response.getCode()); + } + + + /** + * GetFreeTextAnnotationTest + * @throws ApiException + * if the Api call fails + */ + @Test + public void getFreeTextAnnotationTest()throws ApiException + { + String name = "PdfWithAnnotations.pdf"; + th.uploadFile(name); + + FreeTextAnnotationsResponse responseAnnotations = th.pdfApi.getDocumentFreeTextAnnotations(name, null, th.tempFolder); + assertEquals(200, (int)responseAnnotations.getCode()); + String annotationId = responseAnnotations.getAnnotations().getList().get(0).getId(); + + FreeTextAnnotationResponse response = th.pdfApi.getFreeTextAnnotation(name, annotationId, null, th.tempFolder); + assertEquals(200, (int)response.getCode()); + } + + /** + * PostPageFreeTextAnnotationsTest + * @throws ApiException + * if the Api call fails + */ + @Test + public void postPageFreeTextAnnotationsTest()throws ApiException + { + String name = "PdfWithAnnotations.pdf"; + th.uploadFile(name); + + int pageNumber = 1; + + Color foregroundColor = new Color(); + foregroundColor.setA(0x00); + foregroundColor.setR(0x00); + foregroundColor.setG(0xFF); + foregroundColor.setB(0x00); + + Color backgroundColor = new Color(); + backgroundColor.setA(0x00); + backgroundColor.setR(0xFF); + backgroundColor.setG(0x00); + backgroundColor.setB(0x00); + + TextStyle textStyle = new TextStyle(); + textStyle.setFont("Arial"); + textStyle.setFontSize(12.); + textStyle.setForegroundColor(foregroundColor); + textStyle.setBackgroundColor(backgroundColor); + + Rectangle rect = new Rectangle() + .LLX(100.) + .LLY(100.) + .URX(200.) + .URY(200.); + + List flags = new ArrayList<>(); + flags.add(AnnotationFlags.DEFAULT); + + FreeTextAnnotation freeTextAnnotation = new FreeTextAnnotation(); + freeTextAnnotation.setName("Test Free Text"); + freeTextAnnotation.setTextStyle(textStyle); + freeTextAnnotation.setRect(rect); + freeTextAnnotation.setFlags(flags); + freeTextAnnotation.setHorizontalAlignment(HorizontalAlignment.CENTER); + freeTextAnnotation.setIntent(FreeTextIntent.FREETEXTTYPEWRITER); + freeTextAnnotation.setRichText("Rich Text"); + freeTextAnnotation.setSubject("Text Box Subj"); + freeTextAnnotation.setZindex(1); + freeTextAnnotation.setJustification(Justification.CENTER); + freeTextAnnotation.setTitle("Title"); + + List annotations = new ArrayList<>(); + annotations.add(freeTextAnnotation); + + AsposeResponse response = th.pdfApi.postPageFreeTextAnnotations(name, pageNumber, annotations, null, th.tempFolder); + assertEquals(200, (int)response.getCode()); + } + + + /** + * PutFreeTextAnnotationTest + * @throws ApiException + * if the Api call fails + */ + @Test + public void putFreeTextAnnotationTest()throws ApiException + { + String name = "PdfWithAnnotations.pdf"; + th.uploadFile(name); + + + Color foregroundColor = new Color(); + foregroundColor.setA(0x00); + foregroundColor.setR(0x00); + foregroundColor.setG(0xFF); + foregroundColor.setB(0x00); + + Color backgroundColor = new Color(); + backgroundColor.setA(0x00); + backgroundColor.setR(0xFF); + backgroundColor.setG(0x00); + backgroundColor.setB(0x00); + + TextStyle textStyle = new TextStyle(); + textStyle.setFont("Arial"); + textStyle.setFontSize(12.); + textStyle.setForegroundColor(foregroundColor); + textStyle.setBackgroundColor(backgroundColor); + + Rectangle rect = new Rectangle() + .LLX(100.) + .LLY(100.) + .URX(200.) + .URY(200.); + + List flags = new ArrayList<>(); + flags.add(AnnotationFlags.DEFAULT); + + FreeTextAnnotation freeTextAnnotation = new FreeTextAnnotation(); + freeTextAnnotation.setName("Test Free Text"); + freeTextAnnotation.setTextStyle(textStyle); + freeTextAnnotation.setRect(rect); + freeTextAnnotation.setFlags(flags); + freeTextAnnotation.setHorizontalAlignment(HorizontalAlignment.CENTER); + freeTextAnnotation.setIntent(FreeTextIntent.FREETEXTTYPEWRITER); + freeTextAnnotation.setRichText("Rich Text"); + freeTextAnnotation.setSubject("Text Box Subj"); + freeTextAnnotation.setZindex(1); + freeTextAnnotation.setJustification(Justification.CENTER); + freeTextAnnotation.setTitle("Title"); + + FreeTextAnnotationsResponse responseAnnotations = th.pdfApi.getDocumentFreeTextAnnotations(name, null, th.tempFolder); + assertEquals(200, (int)responseAnnotations.getCode()); + String annotationId = responseAnnotations.getAnnotations().getList().get(0).getId(); + + AsposeResponse response = th.pdfApi.putFreeTextAnnotation(name, annotationId, freeTextAnnotation, null, th.tempFolder); + assertEquals(200, (int)response.getCode()); + } +} diff --git a/src/test/java/com/aspose/asposecloudpdf/api/HeaderFooterTests.java b/src/test/java/com/aspose/asposecloudpdf/api/HeaderFooterTests.java new file mode 100644 index 0000000..e99bba0 --- /dev/null +++ b/src/test/java/com/aspose/asposecloudpdf/api/HeaderFooterTests.java @@ -0,0 +1,213 @@ +/** + * + * Copyright (c) 2009 Aspose.PDF Cloud + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of TestHelper.getInstance() 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.api; + +import com.aspose.asposecloudpdf.ApiException; +import com.aspose.asposecloudpdf.model.*; + +import org.junit.Test; + +import static org.junit.Assert.assertEquals; + +public class HeaderFooterTests { + private TestHelper th; + + public HeaderFooterTests() throws ApiException { + th = TestHelper.getInstance(); + } + + /** + * PostDocumentTextHeaderTest + * @throws ApiException + * if the Api call fails + */ + @Test + public void postDocumentTextHeaderTest()throws ApiException + { + String name = "4pages.pdf"; + th.uploadFile(name); + + int startPage = 2; + int endPage = 3; + + Color foregroundColor = new Color(); + foregroundColor.setA(0x00); + foregroundColor.setR(0x00); + foregroundColor.setG(0xFF); + foregroundColor.setB(0x00); + + Color backgroundColor = new Color(); + backgroundColor.setA(0x00); + backgroundColor.setR(0xFF); + backgroundColor.setG(0x00); + backgroundColor.setB(0x00); + + TextState textState = new TextState() + .fontSize(14.) + .foregroundColor(foregroundColor) + .backgroundColor(backgroundColor); + + TextHeader header = new TextHeader() + .leftMargin(1.) + .rightMargin(2.) + .topMargin(3.) + .textAlignment(HorizontalAlignment.CENTER) + .value("Header") + .textState(textState); + header.background(true) + .horizontalAlignment(HorizontalAlignment.CENTER) + .opacity(1.) + .rotate(Rotation.NONE) + .rotateAngle(0.) + .xindent(0.) + .yindent(0.) + .zoom(1.); + + + AsposeResponse response = th.pdfApi.postDocumentTextHeader(name, header, startPage, endPage, null, th.tempFolder); + assertEquals(200, (int)response.getCode()); + } + + /** + * PostDocumentTextFooterTest + * @throws ApiException + * if the Api call fails + */ + @Test + public void postDocumentTextFooterTest()throws ApiException + { + String name = "4pages.pdf"; + th.uploadFile(name); + + int startPage = 2; + int endPage = 3; + + Color foregroundColor = new Color(); + foregroundColor.setA(0x00); + foregroundColor.setR(0x00); + foregroundColor.setG(0xFF); + foregroundColor.setB(0x00); + + Color backgroundColor = new Color(); + backgroundColor.setA(0x00); + backgroundColor.setR(0xFF); + backgroundColor.setG(0x00); + backgroundColor.setB(0x00); + + TextState textState = new TextState() + .fontSize(14.) + .foregroundColor(foregroundColor) + .backgroundColor(backgroundColor); + + TextFooter footer = new TextFooter() + .leftMargin(1.) + .rightMargin(2.) + .bottomMargin(3.) + .textAlignment(HorizontalAlignment.CENTER) + .value("Header") + .textState(textState); + footer.background(true) + .horizontalAlignment(HorizontalAlignment.CENTER) + .opacity(1.) + .rotate(Rotation.NONE) + .rotateAngle(0.) + .xindent(0.) + .yindent(0.) + .zoom(1.); + + + AsposeResponse response = th.pdfApi.postDocumentTextFooter(name, footer, startPage, endPage, null, th.tempFolder); + assertEquals(200, (int)response.getCode()); + } + + /** + * PostDocumentImageHeaderTest + * @throws ApiException + * if the Api call fails + */ + @Test + public void postDocumentImageHeaderTest()throws ApiException + { + String name = "4pages.pdf"; + th.uploadFile(name); + + String image = "Koala.jpg"; + th.uploadFile(image); + + int startPage = 2; + int endPage = 3; + + ImageHeader header = new ImageHeader() + .leftMargin(1.) + .rightMargin(2.) + .topMargin(3.) + .fileName(th.tempFolder + '/' + image); + header.background(true) + .horizontalAlignment(HorizontalAlignment.CENTER) + .opacity(1.) + .rotate(Rotation.NONE) + .rotateAngle(0.) + .xindent(0.) + .yindent(0.) + .zoom(.1); + + + AsposeResponse response = th.pdfApi.postDocumentImageHeader(name, header, startPage, endPage, null, th.tempFolder); + assertEquals(200, (int)response.getCode()); + } + + /** + * PostDocumentImageFooterTest + * @throws ApiException + * if the Api call fails + */ + @Test + public void postDocumentImageFooterTest()throws ApiException + { + String name = "4pages.pdf"; + th.uploadFile(name); + + String image = "Koala.jpg"; + th.uploadFile(image); + + int startPage = 2; + int endPage = 3; + + ImageFooter footer = new ImageFooter() + .leftMargin(1.) + .rightMargin(2.) + .bottomMargin(3.) + .fileName(th.tempFolder + '/' + image); + footer.background(true) + .horizontalAlignment(HorizontalAlignment.CENTER) + .opacity(1.) + .rotate(Rotation.NONE) + .rotateAngle(0.) + .xindent(0.) + .yindent(0.) + .zoom(1.); + + + AsposeResponse response = th.pdfApi.postDocumentImageFooter(name, footer, startPage, endPage, null, th.tempFolder); + assertEquals(200, (int)response.getCode()); + } +} diff --git a/src/test/java/com/aspose/asposecloudpdf/api/HighlightAnnotationsTests.java b/src/test/java/com/aspose/asposecloudpdf/api/HighlightAnnotationsTests.java new file mode 100644 index 0000000..1ac9c68 --- /dev/null +++ b/src/test/java/com/aspose/asposecloudpdf/api/HighlightAnnotationsTests.java @@ -0,0 +1,186 @@ +/** + * + * Copyright (c) 2009 Aspose.PDF Cloud + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of TestHelper.getInstance() 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.api; + +import com.aspose.asposecloudpdf.ApiException; +import com.aspose.asposecloudpdf.model.*; + +import org.junit.Test; + +import java.util.ArrayList; +import java.util.List; + +import static org.junit.Assert.assertEquals; + +public class HighlightAnnotationsTests { + private TestHelper th; + + public HighlightAnnotationsTests() throws ApiException { + th = TestHelper.getInstance(); + } + + /** + * GetDocumentHighlightAnnotationsTest + * @throws ApiException + * if the Api call fails + */ + @Test + public void getDocumentHighlightAnnotationsTest()throws ApiException + { + String name = "PdfWithAnnotations.pdf"; + th.uploadFile(name); + + HighlightAnnotationsResponse response = th.pdfApi.getDocumentHighlightAnnotations(name, null, th.tempFolder); + assertEquals(200, (int)response.getCode()); + } + + /** + * GetPageHighlightAnnotationsTest + * @throws ApiException + * if the Api call fails + */ + @Test + public void getPageHighlightAnnotationsTest()throws ApiException + { + String name = "PdfWithAnnotations.pdf"; + th.uploadFile(name); + + int pageNumber = 2; + + HighlightAnnotationsResponse response = th.pdfApi.getPageHighlightAnnotations(name, pageNumber, null, th.tempFolder); + assertEquals(200, (int)response.getCode()); + } + + + /** + * GetHighlightAnnotationTest + * @throws ApiException + * if the Api call fails + */ + @Test + public void getHighlightAnnotationTest()throws ApiException + { + String name = "PdfWithAnnotations.pdf"; + th.uploadFile(name); + + HighlightAnnotationsResponse responseAnnotations = th.pdfApi.getDocumentHighlightAnnotations(name, null, th.tempFolder); + assertEquals(200, (int)responseAnnotations.getCode()); + String annotationId = responseAnnotations.getAnnotations().getList().get(0).getId(); + + HighlightAnnotationResponse response = th.pdfApi.getHighlightAnnotation(name, annotationId, null, th.tempFolder); + assertEquals(200, (int)response.getCode()); + } + + /** + * PostPageHighlightAnnotationsTest + * @throws ApiException + * if the Api call fails + */ + @Test + public void postPageHighlightAnnotationsTest()throws ApiException + { + String name = "PdfWithAnnotations.pdf"; + th.uploadFile(name); + + int pageNumber = 1; + + Rectangle rect = new Rectangle() + .LLX(100.) + .LLY(100.) + .URX(200.) + .URY(200.); + + List flags = new ArrayList<>(); + flags.add(AnnotationFlags.DEFAULT); + + List points = new ArrayList<>(); + points.add(new Point().X(10.).Y(10.)); + points.add(new Point().X(20.).Y(10.)); + points.add(new Point().X(10.).Y(20.)); + points.add(new Point().X(10.).Y(10.)); + + HighlightAnnotation annotation = new HighlightAnnotation(); + annotation.setName("Name"); + annotation.setRect(rect); + annotation.setFlags(flags); + annotation.setHorizontalAlignment(HorizontalAlignment.CENTER); + annotation.setRichText("Rich Text"); + annotation.setSubject("Subj"); + annotation.setZindex(1); + annotation.setTitle("Title"); + annotation.setQuadPoints(points); + annotation.setModified("02/02/2018 00:00:00.000 AM"); + + List annotations = new ArrayList<>(); + annotations.add(annotation); + + AsposeResponse response = th.pdfApi.postPageHighlightAnnotations(name, pageNumber, annotations, null, th.tempFolder); + assertEquals(200, (int)response.getCode()); + } + + + /** + * PutHighlightAnnotationTest + * @throws ApiException + * if the Api call fails + */ + @Test + public void putHighlightAnnotationTest()throws ApiException + { + String name = "PdfWithAnnotations.pdf"; + th.uploadFile(name); + + Rectangle rect = new Rectangle() + .LLX(100.) + .LLY(100.) + .URX(200.) + .URY(200.); + + List flags = new ArrayList<>(); + flags.add(AnnotationFlags.DEFAULT); + + List points = new ArrayList<>(); + points.add(new Point().X(10.).Y(10.)); + points.add(new Point().X(20.).Y(10.)); + points.add(new Point().X(10.).Y(20.)); + points.add(new Point().X(10.).Y(10.)); + + HighlightAnnotation annotation = new HighlightAnnotation(); + annotation.setName("Name Updated"); + annotation.setRect(rect); + annotation.setFlags(flags); + annotation.setHorizontalAlignment(HorizontalAlignment.CENTER); + annotation.setRichText("Rich Text Updated"); + annotation.setSubject("Subj Updated"); + annotation.setZindex(1); + annotation.setTitle("Title Updated"); + annotation.setQuadPoints(points); + annotation.setModified("02/02/2018 00:00:00.000 AM"); + + HighlightAnnotationsResponse responseAnnotations = th.pdfApi.getDocumentHighlightAnnotations(name, null, th.tempFolder); + assertEquals(200, (int)responseAnnotations.getCode()); + String annotationId = responseAnnotations.getAnnotations().getList().get(0).getId(); + + AsposeResponse response = th.pdfApi.putHighlightAnnotation(name, annotationId, annotation, null, th.tempFolder); + assertEquals(200, (int)response.getCode()); + } +} diff --git a/src/test/java/com/aspose/asposecloudpdf/api/ImagesTests.java b/src/test/java/com/aspose/asposecloudpdf/api/ImagesTests.java new file mode 100644 index 0000000..4f778d7 --- /dev/null +++ b/src/test/java/com/aspose/asposecloudpdf/api/ImagesTests.java @@ -0,0 +1,449 @@ +/** + * + * Copyright (c) 2009 Aspose.PDF Cloud + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of TestHelper.getInstance() 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.api; + +import com.aspose.asposecloudpdf.ApiException; +import com.aspose.asposecloudpdf.model.*; + +import org.junit.Test; + +import java.io.File; + +import static org.junit.Assert.assertEquals; +import static org.junit.Assert.assertNotNull; + +public class ImagesTests { + private TestHelper th; + + public ImagesTests() throws ApiException { + th = TestHelper.getInstance(); + } + + /** + * GetImage Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void getImageTest() throws ApiException + { + String name = "PdfWithImages2.pdf"; + th.uploadFile(name); + + int pageNumber = 1; + String folder = th.tempFolder; + + ImagesResponse imagesResponse = th.pdfApi.getImages(name, pageNumber, null, folder); + assertEquals((int)imagesResponse.getCode(), 200); + String imageId = imagesResponse.getImages().getList().get(0).getId(); + + ImageResponse response = th.pdfApi.getImage(name, imageId, null, folder); + assertEquals(200, (int)response.getCode()); + } + + + /** + * DeleteImage Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void deleteImageTest() throws ApiException + { + String name = "PdfWithImages2.pdf"; + th.uploadFile(name); + + int pageNumber = 1; + String folder = th.tempFolder; + + ImagesResponse imagesResponse = th.pdfApi.getImages(name, pageNumber, null, folder); + assertEquals((int)imagesResponse.getCode(), 200); + String imageId = imagesResponse.getImages().getList().get(0).getId(); + + AsposeResponse response = th.pdfApi.deleteImage(name, imageId, null, folder); + assertEquals(200, (int)response.getCode()); + } + + /** + * GetImages Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void getImagesTest() throws ApiException + { + String name = "PdfWithImages2.pdf"; + th.uploadFile(name); + + int pageNumber = 1; + String folder = th.tempFolder; + + ImagesResponse response = th.pdfApi.getImages(name, pageNumber, null, folder); + assertEquals(200, (int)response.getCode()); + } + + + /** + * PostReplaceImage Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void putReplaceImageTest() throws ApiException + { + String name = "PdfWithImages2.pdf"; + th.uploadFile(name); + + String imageFileName = "Koala.jpg"; + th.uploadFile(imageFileName); + + int pageNumber = 1; + String folder = th.tempFolder; + String imageFile = folder + '/' + imageFileName; + + ImagesResponse imagesResponse = th.pdfApi.getImages(name, pageNumber, null, folder); + assertEquals((int)imagesResponse.getCode(), 200); + String imageId = imagesResponse.getImages().getList().get(0).getId(); + + ImageResponse response = th.pdfApi.putReplaceImage(name, imageId, imageFile, null, folder, null); + assertEquals(200, (int)response.getCode()); + } + + + /** + * PostInsertImage Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void postInsertImageTest() throws ApiException + { + String name = "PdfWithImages2.pdf"; + th.uploadFile(name); + + String imageFileName = "Koala.jpg"; + File file = new File(th.testDataFolder + "/" + imageFileName); + + int pageNumber = 1; + String folder = th.tempFolder; + String imageFile = folder + '/' + imageFileName; + + double llx = 10; + double lly = 10; + double urx = 100; + double ury = 100; + + AsposeResponse response = th.pdfApi.postInsertImage(name, pageNumber, llx, lly, urx, ury, imageFile, null, folder, null); + assertEquals(200, (int)response.getCode()); + } + + + /** + * PutImagesExtractAsJpeg Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void putImagesExtractAsJpegTest() throws ApiException + { + final String name = "PdfWithImages2.pdf"; + th.uploadFile(name); + + int pageNumber = 1; + final String destFolder = th.tempFolder + '/' + "extract_jpg"; + + AsposeResponse response = th.pdfApi.putImagesExtractAsJpeg(name, pageNumber, null, null, null, + th.tempFolder, destFolder); + assertEquals(200, (int)response.getCode()); + } + + /** + * PutImagesExtractAsTiff Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void putImagesExtractAsTiffTest() throws ApiException + { + final String name = "PdfWithImages2.pdf"; + th.uploadFile(name); + + int pageNumber = 1; + final String destFolder = th.tempFolder + '/' + "extract_tiff"; + + AsposeResponse response = th.pdfApi.putImagesExtractAsTiff(name, pageNumber, null, null, null, + th.tempFolder, destFolder); + assertEquals(200, (int)response.getCode()); + } + + /** + * PutImagesExtractAsGif Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void putImagesExtractAsGifTest() throws ApiException + { + final String name = "PdfWithImages2.pdf"; + th.uploadFile(name); + + int pageNumber = 1; + final String destFolder = th.tempFolder + '/' + "extract_gif"; + + AsposeResponse response = th.pdfApi.putImagesExtractAsGif(name, pageNumber, null, null, null, + th.tempFolder, destFolder); + assertEquals(200, (int)response.getCode()); + } + + /** + * PutImagesExtractAsPng Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void putImagesExtractAsPngTest() throws ApiException + { + final String name = "PdfWithImages2.pdf"; + th.uploadFile(name); + + int pageNumber = 1; + final String destFolder = th.tempFolder + '/' + "extract_png"; + + AsposeResponse response = th.pdfApi.putImagesExtractAsPng(name, pageNumber, null, null, null, + th.tempFolder, destFolder); + assertEquals(200, (int)response.getCode()); + } + + + /** + * PutImageExtractAsJpeg Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void putImageExtractAsJpegTest() throws ApiException + { + final String name = "PdfWithImages2.pdf"; + th.uploadFile(name); + + int pageNumber = 1; + + ImagesResponse imagesResponse = th.pdfApi.getImages(name, pageNumber, null, th.tempFolder); + assertEquals(200, (int)imagesResponse.getCode()); + String imageId = imagesResponse.getImages().getList().get(0).getId(); + + final String destFolder = th.tempFolder + '/' + "extract_jpg"; + + AsposeResponse response = th.pdfApi.putImageExtractAsJpeg(name, imageId, null, null, null, + th.tempFolder, destFolder); + assertEquals(200, (int)response.getCode()); + } + + + /** + * GetImageExtractAsJpeg Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void getImageExtractAsJpegTest() throws ApiException + { + final String name = "PdfWithImages2.pdf"; + th.uploadFile(name); + + int pageNumber = 1; + + ImagesResponse imagesResponse = th.pdfApi.getImages(name, pageNumber, null, th.tempFolder); + assertEquals(200, (int)imagesResponse.getCode()); + String imageId = imagesResponse.getImages().getList().get(0).getId(); + + + File response = th.pdfApi.getImageExtractAsJpeg(name, imageId, null, null, null, + th.tempFolder); + assertNotNull(response); + } + + + /** + * PutImageExtractAsTiff Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void putImageExtractAsTiffTest() throws ApiException + { + final String name = "PdfWithImages2.pdf"; + th.uploadFile(name); + + int pageNumber = 1; + + ImagesResponse imagesResponse = th.pdfApi.getImages(name, pageNumber, null, th.tempFolder); + assertEquals(200, (int)imagesResponse.getCode()); + String imageId = imagesResponse.getImages().getList().get(0).getId(); + + final String destFolder = th.tempFolder + '/' + "extract_tiff"; + + AsposeResponse response = th.pdfApi.putImageExtractAsTiff(name, imageId, null, null, null, + th.tempFolder, destFolder); + assertEquals(200, (int)response.getCode()); + } + + + /** + * GetImageExtractAsTiff Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void getImageExtractAsTiffTest() throws ApiException + { + final String name = "PdfWithImages2.pdf"; + th.uploadFile(name); + + int pageNumber = 1; + + ImagesResponse imagesResponse = th.pdfApi.getImages(name, pageNumber, null, th.tempFolder); + assertEquals(200, (int)imagesResponse.getCode()); + String imageId = imagesResponse.getImages().getList().get(0).getId(); + + + File response = th.pdfApi.getImageExtractAsTiff(name, imageId, null, null, null, + th.tempFolder); + assertNotNull(response); + } + + + /** + * PutImageExtractAsGif Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void putImageExtractAsGifTest() throws ApiException + { + final String name = "PdfWithImages2.pdf"; + th.uploadFile(name); + + int pageNumber = 1; + + ImagesResponse imagesResponse = th.pdfApi.getImages(name, pageNumber, null, th.tempFolder); + assertEquals(200, (int)imagesResponse.getCode()); + String imageId = imagesResponse.getImages().getList().get(0).getId(); + + final String destFolder = th.tempFolder + '/' + "extract_gif"; + + AsposeResponse response = th.pdfApi.putImageExtractAsGif(name, imageId, null, null, null, + th.tempFolder, destFolder); + assertEquals(200, (int)response.getCode()); + } + + + /** + * GetImageExtractAsGif Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void getImageExtractAsGifTest() throws ApiException + { + final String name = "PdfWithImages2.pdf"; + th.uploadFile(name); + + int pageNumber = 1; + + ImagesResponse imagesResponse = th.pdfApi.getImages(name, pageNumber, null, th.tempFolder); + assertEquals(200, (int)imagesResponse.getCode()); + String imageId = imagesResponse.getImages().getList().get(0).getId(); + + + File response = th.pdfApi.getImageExtractAsGif(name, imageId, null, null, null, + th.tempFolder); + assertNotNull(response); + } + + + /** + * PutImageExtractAsPng Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void putImageExtractAsPngTest() throws ApiException + { + final String name = "PdfWithImages2.pdf"; + th.uploadFile(name); + + int pageNumber = 1; + + ImagesResponse imagesResponse = th.pdfApi.getImages(name, pageNumber, null, th.tempFolder); + assertEquals(200, (int)imagesResponse.getCode()); + String imageId = imagesResponse.getImages().getList().get(0).getId(); + + final String destFolder = th.tempFolder + '/' + "extract_png"; + + AsposeResponse response = th.pdfApi.putImageExtractAsPng(name, imageId, null, null, null, + th.tempFolder, destFolder); + assertEquals(200, (int)response.getCode()); + } + + + /** + * GetImageExtractAsPng Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void getImageExtractAsPngTest() throws ApiException + { + final String name = "PdfWithImages2.pdf"; + th.uploadFile(name); + + int pageNumber = 1; + + ImagesResponse imagesResponse = th.pdfApi.getImages(name, pageNumber, null, th.tempFolder); + assertEquals(200, (int)imagesResponse.getCode()); + String imageId = imagesResponse.getImages().getList().get(0).getId(); + + + File response = th.pdfApi.getImageExtractAsPng(name, imageId, null, null, null, + th.tempFolder); + assertNotNull(response); + } +} + diff --git a/src/test/java/com/aspose/asposecloudpdf/api/ImportExportTests.java b/src/test/java/com/aspose/asposecloudpdf/api/ImportExportTests.java new file mode 100644 index 0000000..18331d9 --- /dev/null +++ b/src/test/java/com/aspose/asposecloudpdf/api/ImportExportTests.java @@ -0,0 +1,323 @@ +/** + * + * Copyright (c) 2009 Aspose.PDF Cloud + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of TestHelper.getInstance() 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.api; + +import com.aspose.asposecloudpdf.ApiException; +import com.aspose.asposecloudpdf.model.AsposeResponse; + +import org.junit.Test; + +import java.io.File; + +import static org.junit.Assert.assertEquals; +import static org.junit.Assert.assertNotNull; + +public class ImportExportTests { + private TestHelper th; + + public ImportExportTests() throws ApiException { + th = TestHelper.getInstance(); + } + + /** + * GetExportFieldsFromPdfToXmlInStorage Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void getExportFieldsFromPdfToXmlInStorageTest() throws ApiException + { + String name = "FormData.pdf"; + th.uploadFile(name); + + File response = th.pdfApi.getExportFieldsFromPdfToXmlInStorage(name, null, th.tempFolder); + assertNotNull(response); + } + + /** + * GetExportFieldsFromPdfToFdfInStorage Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void getExportFieldsFromPdfToFdfInStorageTest() throws ApiException + { + String name = "FormData.pdf"; + th.uploadFile(name); + + File response = th.pdfApi.getExportFieldsFromPdfToFdfInStorage(name, null, th.tempFolder); + assertNotNull(response); + } + + /** + * GetExportFieldsFromPdfToXfdfInStorage Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void getExportFieldsFromPdfToXfdfInStorageTest() throws ApiException + { + String name = "FormData.pdf"; + th.uploadFile(name); + + File response = th.pdfApi.getExportFieldsFromPdfToXfdfInStorage(name, null, th.tempFolder); + assertNotNull(response); + } + + /** + * PutExportFieldsFromPdfToXmlInStorage Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void putExportFieldsFromPdfToXmlInStorageTest() throws ApiException + { + String name = "FormData.pdf"; + th.uploadFile(name); + String outPath = th.tempFolder + "/exportData.xml"; + AsposeResponse response = th.pdfApi.putExportFieldsFromPdfToXmlInStorage(name, outPath, null, th.tempFolder); + assertEquals(200, (int)response.getCode()); + } + + /** + * PutExportFieldsFromPdfToFdfInStorage Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void putExportFieldsFromPdfToFdfInStorageTest() throws ApiException + { + String name = "FormData.pdf"; + th.uploadFile(name); + String outPath = th.tempFolder + "/exportData.fdf"; + AsposeResponse response = th.pdfApi.putExportFieldsFromPdfToFdfInStorage(name, outPath, null, th.tempFolder); + assertEquals(200, (int)response.getCode()); + } + + /** + * PutExportFieldsFromPdfToXfdfInStorage Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void putExportFieldsFromPdfToXfdfInStorageTest() throws ApiException + { + String name = "FormData.pdf"; + th.uploadFile(name); + String outPath = th.tempFolder + "/exportData.xfdf"; + AsposeResponse response = th.pdfApi.putExportFieldsFromPdfToXfdfInStorage(name, outPath, null, th.tempFolder); + assertEquals(200, (int)response.getCode()); + } + + /** + * GetImportFieldsFromFdfInStorage Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void getImportFieldsFromFdfInStorageTest() throws ApiException + { + String name = "FormData.pdf"; + th.uploadFile(name); + + String dataFile = "FormData.fdf"; + th.uploadFile(dataFile); + + String dataPath = th.tempFolder + "/" + dataFile; + + File response = th.pdfApi.getImportFieldsFromFdfInStorage(name, dataPath, null, th.tempFolder); + assertNotNull(response); + } + + /** + * GetImportFieldsFromXfdfInStorage Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void getImportFieldsFromXfdfInStorageTest() throws ApiException + { + String name = "FormDataXfdf_in.pdf"; + th.uploadFile(name); + + String dataFile = "FormDataXfdf_in.xfdf"; + th.uploadFile(dataFile); + + String dataPath = th.tempFolder + "/" + dataFile; + + File response = th.pdfApi.getImportFieldsFromXfdfInStorage(name, dataPath, null, th.tempFolder); + assertNotNull(response); + } + + /** + * GetImportFieldsFromXmlInStorage Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void getImportFieldsFromXmlInStorageTest() throws ApiException + { + String name = "FormDataXfa_in.pdf"; + th.uploadFile(name); + + String dataFile = "FormDataXfa_in.xml"; + th.uploadFile(dataFile); + + String dataPath = th.tempFolder + "/" + dataFile; + + File response = th.pdfApi.getImportFieldsFromXmlInStorage(name, dataPath, null, th.tempFolder); + assertNotNull(response); + } + + /** + * PutImportFieldsFromFdfInStorage Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void putImportFieldsFromFdfInStorageTest() throws ApiException + { + String name = "FormData.pdf"; + th.uploadFile(name); + + String dataFile = "FormData.fdf"; + th.uploadFile(dataFile); + + String dataPath = th.tempFolder + "/" + dataFile; + + AsposeResponse response = th.pdfApi.putImportFieldsFromFdfInStorage(name, dataPath, null, th.tempFolder); + assertEquals(200, (int)response.getCode()); + } + + /** + * PutImportFieldsFromXfdfInStorage Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void putImportFieldsFromXfdfInStorageTest() throws ApiException + { + String name = "FormDataXfdf_in.pdf"; + th.uploadFile(name); + + String dataFile = "FormDataXfdf_in.xfdf"; + th.uploadFile(dataFile); + + String dataPath = th.tempFolder + "/" + dataFile; + + AsposeResponse response = th.pdfApi.putImportFieldsFromXfdfInStorage(name, dataPath, null, th.tempFolder); + assertEquals(200, (int)response.getCode()); + } + + /** + * PutImportFieldsFromXmlInStorage Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void putImportFieldsFromXmlInStorageTest() throws ApiException + { + String name = "FormDataXfa_in.pdf"; + th.uploadFile(name); + + String dataFile = "FormDataXfa_in.xml"; + th.uploadFile(dataFile); + + String dataPath = th.tempFolder + "/" + dataFile; + + AsposeResponse response = th.pdfApi.putImportFieldsFromXmlInStorage(name, dataPath, null, th.tempFolder); + assertEquals(200, (int)response.getCode()); + } + + + /** + * PostImportFieldsFromFdf Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void postImportFieldsFromFdfTest() throws ApiException + { + String name = "FormData.pdf"; + th.uploadFile(name); + + String dataFile = "FormData.fdf"; + + File file = new File(th.testDataFolder + "/" + dataFile); + + AsposeResponse response = th.pdfApi.postImportFieldsFromFdf(name, null, th.tempFolder, file); + assertEquals(200, (int)response.getCode()); + } + + /** + * PostImportFieldsFromXfdf Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void postImportFieldsFromXfdfTest() throws ApiException + { + String name = "FormDataXfdf_in.pdf"; + th.uploadFile(name); + + String dataFile = "FormDataXfdf_in.xfdf"; + + File file = new File(th.testDataFolder + "/" + dataFile); + + AsposeResponse response = th.pdfApi.postImportFieldsFromXfdf(name, null, th.tempFolder, file); + assertEquals(200, (int)response.getCode()); + } + + /** + * PostImportFieldsFromXml Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void postImportFieldsFromXmlTest() throws ApiException + { + String name = "FormDataXfa_in.pdf"; + th.uploadFile(name); + + String dataFile = "FormDataXfa_in.xml"; + File file = new File(th.testDataFolder + "/" + dataFile); + + AsposeResponse response = th.pdfApi.postImportFieldsFromXml(name, null, th.tempFolder, file); + assertEquals(200, (int)response.getCode()); + } + +} diff --git a/src/test/java/com/aspose/asposecloudpdf/api/InkAnnotationsTests.java b/src/test/java/com/aspose/asposecloudpdf/api/InkAnnotationsTests.java new file mode 100644 index 0000000..a98e84a --- /dev/null +++ b/src/test/java/com/aspose/asposecloudpdf/api/InkAnnotationsTests.java @@ -0,0 +1,205 @@ +/** + * + * Copyright (c) 2009 Aspose.PDF Cloud + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of TestHelper.getInstance() 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.api; + +import com.aspose.asposecloudpdf.ApiException; +import com.aspose.asposecloudpdf.model.*; + +import org.junit.Test; + +import java.util.ArrayList; +import java.util.List; + +import static org.junit.Assert.assertEquals; + +public class InkAnnotationsTests { + private TestHelper th; + + public InkAnnotationsTests() throws ApiException { + th = TestHelper.getInstance(); + } + + /** + * GetDocumentInkAnnotationsTest + * @throws ApiException + * if the Api call fails + */ + @Test + public void getDocumentInkAnnotationsTest()throws ApiException + { + String name = "PdfWithAnnotations.pdf"; + th.uploadFile(name); + + InkAnnotationsResponse response = th.pdfApi.getDocumentInkAnnotations(name, null, th.tempFolder); + assertEquals(200, (int)response.getCode()); + } + + /** + * GetPageInkAnnotationsTest + * @throws ApiException + * if the Api call fails + */ + @Test + public void getPageInkAnnotationsTest()throws ApiException + { + String name = "PdfWithAnnotations.pdf"; + th.uploadFile(name); + + int pageNumber = 2; + + InkAnnotationsResponse response = th.pdfApi.getPageInkAnnotations(name, pageNumber, null, th.tempFolder); + assertEquals(200, (int)response.getCode()); + } + + + /** + * GetInkAnnotationTest + * @throws ApiException + * if the Api call fails + */ + @Test + public void getInkAnnotationTest()throws ApiException + { + String name = "PdfWithAnnotations.pdf"; + th.uploadFile(name); + + InkAnnotationsResponse responseAnnotations = th.pdfApi.getDocumentInkAnnotations(name, null, th.tempFolder); + assertEquals(200, (int)responseAnnotations.getCode()); + String annotationId = responseAnnotations.getAnnotations().getList().get(0).getId(); + + InkAnnotationResponse response = th.pdfApi.getInkAnnotation(name, annotationId, null, th.tempFolder); + assertEquals(200, (int)response.getCode()); + } + + /** + * PostPageInkAnnotationsTest + * @throws ApiException + * if the Api call fails + */ + @Test + public void postPageInkAnnotationsTest()throws ApiException + { + String name = "PdfWithAnnotations.pdf"; + th.uploadFile(name); + + int pageNumber = 1; + + Rectangle rect = new Rectangle() + .LLX(100.) + .LLY(100.) + .URX(200.) + .URY(200.); + + List> inkList = new ArrayList<>(); + + List inks1 = new ArrayList<>(); + inks1.add(new Point().X(10.).Y(40.)); + inks1.add(new Point().X(30.).Y(40.)); + + List inks2 = new ArrayList<>(); + inks2.add(new Point().X(10.).Y(20.)); + inks2.add(new Point().X(20.).Y(20.)); + inks2.add(new Point().X(30.).Y(20.)); + + inkList.add(inks1); + inkList.add(inks2); + + List flags = new ArrayList<>(); + flags.add(AnnotationFlags.DEFAULT); + + InkAnnotation annotation = new InkAnnotation(); + annotation.setName("Name"); + annotation.setRect(rect); + annotation.setFlags(flags); + annotation.setHorizontalAlignment(HorizontalAlignment.CENTER); + annotation.setRichText("Rich Text"); + annotation.setSubject("Subj"); + annotation.setZindex(1); + annotation.setTitle("Title"); + annotation.setInkList(inkList); + annotation.setCapStyle(CapStyle.ROUNDED); + annotation.setModified("02/02/2018 00:00:00.000 AM"); + + List annotations = new ArrayList<>(); + annotations.add(annotation); + + AsposeResponse response = th.pdfApi.postPageInkAnnotations(name, pageNumber, annotations, null, th.tempFolder); + assertEquals(200, (int)response.getCode()); + } + + + /** + * PutInkAnnotationTest + * @throws ApiException + * if the Api call fails + */ + @Test + public void putInkAnnotationTest()throws ApiException + { + String name = "PdfWithAnnotations.pdf"; + th.uploadFile(name); + + Rectangle rect = new Rectangle() + .LLX(100.) + .LLY(100.) + .URX(200.) + .URY(200.); + + List> inkList = new ArrayList<>(); + + List inks1 = new ArrayList<>(); + inks1.add(new Point().X(10.).Y(40.)); + inks1.add(new Point().X(30.).Y(40.)); + + List inks2 = new ArrayList<>(); + inks2.add(new Point().X(10.).Y(20.)); + inks2.add(new Point().X(20.).Y(20.)); + inks2.add(new Point().X(30.).Y(20.)); + + inkList.add(inks1); + inkList.add(inks2); + + List flags = new ArrayList<>(); + flags.add(AnnotationFlags.DEFAULT); + + + InkAnnotation annotation = new InkAnnotation(); + annotation.setName("Name Updated"); + annotation.setRect(rect); + annotation.setFlags(flags); + annotation.setHorizontalAlignment(HorizontalAlignment.CENTER); + annotation.setRichText("Rich Text Updated"); + annotation.setSubject("Subj Updated"); + annotation.setZindex(1); + annotation.setTitle("Title Updated"); + annotation.setInkList(inkList); + annotation.setCapStyle(CapStyle.ROUNDED); + annotation.setModified("02/02/2018 00:00:00.000 AM"); + + InkAnnotationsResponse responseAnnotations = th.pdfApi.getDocumentInkAnnotations(name, null, th.tempFolder); + assertEquals(200, (int)responseAnnotations.getCode()); + String annotationId = responseAnnotations.getAnnotations().getList().get(0).getId(); + + AsposeResponse response = th.pdfApi.putInkAnnotation(name, annotationId, annotation, null, th.tempFolder); + assertEquals(200, (int)response.getCode()); + } +} diff --git a/src/test/java/com/aspose/asposecloudpdf/api/LineAnnotationsTests.java b/src/test/java/com/aspose/asposecloudpdf/api/LineAnnotationsTests.java new file mode 100644 index 0000000..5fc1092 --- /dev/null +++ b/src/test/java/com/aspose/asposecloudpdf/api/LineAnnotationsTests.java @@ -0,0 +1,174 @@ +/** + * + * Copyright (c) 2009 Aspose.PDF Cloud + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of TestHelper.getInstance() 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.api; + +import com.aspose.asposecloudpdf.ApiException; +import com.aspose.asposecloudpdf.model.*; + +import org.junit.Test; + +import java.util.ArrayList; +import java.util.List; + +import static org.junit.Assert.assertEquals; + +public class LineAnnotationsTests { + private TestHelper th; + + public LineAnnotationsTests() throws ApiException { + th = TestHelper.getInstance(); + } + + /** + * GetDocumentLineAnnotationsTest + * @throws ApiException + * if the Api call fails + */ + @Test + public void getDocumentLineAnnotationsTest()throws ApiException + { + String name = "PdfWithAnnotations.pdf"; + th.uploadFile(name); + + LineAnnotationsResponse response = th.pdfApi.getDocumentLineAnnotations(name, null, th.tempFolder); + assertEquals(200, (int)response.getCode()); + } + + /** + * GetPageLineAnnotationsTest + * @throws ApiException + * if the Api call fails + */ + @Test + public void getPageLineAnnotationsTest()throws ApiException + { + String name = "PdfWithAnnotations.pdf"; + th.uploadFile(name); + + int pageNumber = 2; + + LineAnnotationsResponse response = th.pdfApi.getPageLineAnnotations(name, pageNumber, null, th.tempFolder); + assertEquals(200, (int)response.getCode()); + } + + + /** + * GetLineAnnotationTest + * @throws ApiException + * if the Api call fails + */ + @Test + public void getLineAnnotationTest()throws ApiException + { + String name = "PdfWithAnnotations.pdf"; + th.uploadFile(name); + + LineAnnotationsResponse responseAnnotations = th.pdfApi.getDocumentLineAnnotations(name, null, th.tempFolder); + assertEquals(200, (int)responseAnnotations.getCode()); + String annotationId = responseAnnotations.getAnnotations().getList().get(0).getId(); + + LineAnnotationResponse response = th.pdfApi.getLineAnnotation(name, annotationId, null, th.tempFolder); + assertEquals(200, (int)response.getCode()); + } + + /** + * PostPageLineAnnotationsTest + * @throws ApiException + * if the Api call fails + */ + @Test + public void postPageLineAnnotationsTest()throws ApiException + { + String name = "PdfWithAnnotations.pdf"; + th.uploadFile(name); + + int pageNumber = 1; + + Rectangle rect = new Rectangle() + .LLX(100.) + .LLY(100.) + .URX(200.) + .URY(200.); + + List flags = new ArrayList<>(); + flags.add(AnnotationFlags.DEFAULT); + + LineAnnotation annotation = new LineAnnotation(); + annotation.setName("Name"); + annotation.setRect(rect); + annotation.setFlags(flags); + annotation.setHorizontalAlignment(HorizontalAlignment.CENTER); + annotation.setRichText("Rich Text"); + annotation.setSubject("Subj"); + annotation.setZindex(1); + annotation.setTitle("Title"); + annotation.setStarting(new Point().X(10.).Y(10.)); + annotation.setEnding(new Point().X(100.).Y(100.)); + + List annotations = new ArrayList<>(); + annotations.add(annotation); + + AsposeResponse response = th.pdfApi.postPageLineAnnotations(name, pageNumber, annotations, null, th.tempFolder); + assertEquals(200, (int)response.getCode()); + } + + + /** + * PutLineAnnotationTest + * @throws ApiException + * if the Api call fails + */ + @Test + public void putLineAnnotationTest()throws ApiException + { + String name = "PdfWithAnnotations.pdf"; + th.uploadFile(name); + + Rectangle rect = new Rectangle() + .LLX(100.) + .LLY(100.) + .URX(200.) + .URY(200.); + + List flags = new ArrayList<>(); + flags.add(AnnotationFlags.DEFAULT); + + LineAnnotation annotation = new LineAnnotation(); + annotation.setName("Name Updated"); + annotation.setRect(rect); + annotation.setFlags(flags); + annotation.setHorizontalAlignment(HorizontalAlignment.CENTER); + annotation.setRichText("Rich Text Updated"); + annotation.setSubject("Subj Updated"); + annotation.setZindex(1); + annotation.setTitle("Title Updated"); + annotation.setStarting(new Point().X(10.).Y(10.)); + annotation.setEnding(new Point().X(100.).Y(100.)); + + LineAnnotationsResponse responseAnnotations = th.pdfApi.getDocumentLineAnnotations(name, null, th.tempFolder); + assertEquals(200, (int)responseAnnotations.getCode()); + String annotationId = responseAnnotations.getAnnotations().getList().get(0).getId(); + + AsposeResponse response = th.pdfApi.putLineAnnotation(name, annotationId, annotation, null, th.tempFolder); + assertEquals(200, (int)response.getCode()); + } +} diff --git a/src/test/java/com/aspose/asposecloudpdf/api/LinksTests.java b/src/test/java/com/aspose/asposecloudpdf/api/LinksTests.java new file mode 100644 index 0000000..c924fa4 --- /dev/null +++ b/src/test/java/com/aspose/asposecloudpdf/api/LinksTests.java @@ -0,0 +1,226 @@ +/** + * + * Copyright (c) 2009 Aspose.PDF Cloud + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of TestHelper.getInstance() 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.api; + +import com.aspose.asposecloudpdf.ApiException; +import com.aspose.asposecloudpdf.model.*; + +import org.junit.Test; + +import java.util.ArrayList; + +import static org.junit.Assert.assertEquals; + +public class LinksTests { + private TestHelper th; + + public LinksTests() throws ApiException { + th = TestHelper.getInstance(); + } + + /** + * GetPageLinkAnnotation Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void getPageLinkAnnotationTest() throws ApiException + { + String name = "PdfWithLinks.pdf"; + th.uploadFile(name); + + int pageNumber = 1; + String folder = th.tempFolder; + + LinkAnnotationsResponse linksResponse = th.pdfApi.getPageLinkAnnotations(name, pageNumber, null, folder); + assertEquals(200, (int)linksResponse.getCode()); + String linkId = linksResponse.getLinks().getList().get(0).getId(); + + LinkAnnotationResponse response = th.pdfApi.getPageLinkAnnotation(name, pageNumber, linkId, null, folder); + assertEquals(200, (int)response.getCode()); + } + + + /** + * DeleteLinkAnnotation Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void deleteLinkAnnotationTest() throws ApiException + { + String name = "PdfWithLinks.pdf"; + th.uploadFile(name); + + int pageNumber = 1; + String folder = th.tempFolder; + + LinkAnnotationsResponse linksResponse = th.pdfApi.getPageLinkAnnotations(name, pageNumber, null, folder); + assertEquals(200, (int)linksResponse.getCode()); + String linkId = linksResponse.getLinks().getList().get(0).getId(); + + AsposeResponse response = th.pdfApi.deleteLinkAnnotation(name, linkId, null, folder); + assertEquals(200, (int)response.getCode()); + } + + + /** + * GetPageLinkAnnotations Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void getPageLinkAnnotationsTest() throws ApiException + { + String name = "PdfWithLinks.pdf"; + th.uploadFile(name); + + int pageNumber = 1; + String folder = th.tempFolder; + + LinkAnnotationsResponse response = th.pdfApi.getPageLinkAnnotations(name, pageNumber, null, folder); + assertEquals(200, (int)response.getCode()); + } + + + /** + * PostPageLinkAnnotations Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void postPageLinkAnnotationsTest() throws ApiException + { + String name = "PdfWithLinks.pdf"; + th.uploadFile(name); + + int pageNumber = 1; + String folder = th.tempFolder; + + LinkAnnotation link = new LinkAnnotation() + .actionType(LinkActionType.GOTOURIACTION) + .action("https://products.aspose.cloud/pdf") + .rect(new Rectangle().LLX(100.).LLY(100.).URX(500.).URY(500.)); + + ArrayList links = new ArrayList<>(); + links.add(link); + + AsposeResponse response = th.pdfApi.postPageLinkAnnotations(name, pageNumber, links, null, folder); + assertEquals(200, (int)response.getCode()); + } + + + /** + * PutLinkAnnotation Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void putLinkAnnotationTest() throws ApiException + { + String name = "PdfWithLinks.pdf"; + th.uploadFile(name); + + int pageNumber = 1; + String folder = th.tempFolder; + + LinkAnnotation link = new LinkAnnotation() + .actionType(LinkActionType.GOTOURIACTION) + .action("https://products.aspose.cloud/pdf") + .rect(new Rectangle().LLX(100.).LLY(100.).URX(500.).URY(500.)); + + LinkAnnotationsResponse linksResponse = th.pdfApi.getPageLinkAnnotations(name, pageNumber, null, folder); + assertEquals(200, (int)linksResponse.getCode()); + String linkId = linksResponse.getLinks().getList().get(0).getId(); + + AsposeResponse response = th.pdfApi.putLinkAnnotation(name, linkId, link, null, folder); + assertEquals(200, (int)response.getCode()); + } + + + /** + * DeletePageLinkAnnotations Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void deletePageLinkAnnotationsTest() throws ApiException + { + String name = "PdfWithLinks.pdf"; + th.uploadFile(name); + + int pageNumber = 1; + String folder = th.tempFolder; + + AsposeResponse response = th.pdfApi.deletePageLinkAnnotations(name, pageNumber, null, folder); + assertEquals(200, (int)response.getCode()); + } + + + /** + * DeleteDocumentLinkAnnotations Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void deleteDocumentLinkAnnotationsTest() throws ApiException + { + String name = "PdfWithLinks.pdf"; + th.uploadFile(name); + + String folder = th.tempFolder; + + AsposeResponse response = th.pdfApi.deleteDocumentLinkAnnotations(name, null, folder); + assertEquals(200, (int)response.getCode()); + } + + /** + * GetLinkAnnotation Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void getLinkAnnotationTest() throws ApiException + { + String name = "PdfWithLinks.pdf"; + th.uploadFile(name); + + int pageNumber = 1; + String folder = th.tempFolder; + + LinkAnnotationsResponse linksResponse = th.pdfApi.getPageLinkAnnotations(name, pageNumber, null, folder); + assertEquals(200, (int)linksResponse.getCode()); + String linkId = linksResponse.getLinks().getList().get(0).getId(); + + AsposeResponse response = th.pdfApi.getLinkAnnotation(name, linkId, null, folder); + assertEquals(200, (int)response.getCode()); + } +} + diff --git a/src/test/java/com/aspose/asposecloudpdf/api/MergeTests.java b/src/test/java/com/aspose/asposecloudpdf/api/MergeTests.java new file mode 100644 index 0000000..3e535d0 --- /dev/null +++ b/src/test/java/com/aspose/asposecloudpdf/api/MergeTests.java @@ -0,0 +1,75 @@ +/** + * + * Copyright (c) 2009 Aspose.PDF Cloud + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of TestHelper.getInstance() 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.api; + +import com.aspose.asposecloudpdf.ApiException; +import com.aspose.asposecloudpdf.model.*; + +import org.junit.Test; + +import java.util.ArrayList; + +import static org.junit.Assert.assertEquals; + +public class MergeTests { + private TestHelper th; + + public MergeTests() throws ApiException { + th = TestHelper.getInstance(); + } + + /** + * PutMergeDocuments Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void putMergeDocumentsTest() throws ApiException + { + ArrayList nameList = new ArrayList(); + nameList.add("4pages.pdf"); + nameList.add("PdfWithImages2.pdf"); + nameList.add("marketing.pdf"); + + for (String name : nameList) + { + th.uploadFile(name); + } + + String resultName = "MergingResult.pdf"; + + MergeDocuments mergeDocuments = new MergeDocuments(); + + for(int i = 0; i < nameList.size(); i++) + { + nameList.set(i, th.tempFolder + '/' + nameList.get(i)); + } + + mergeDocuments.setList(nameList); + + String folder = th.tempFolder; + + DocumentResponse response = th.pdfApi.putMergeDocuments(resultName, mergeDocuments, null, folder); + assertEquals(200, (int)response.getCode()); + } +} diff --git a/src/test/java/com/aspose/asposecloudpdf/api/MovieAnnotationsTests.java b/src/test/java/com/aspose/asposecloudpdf/api/MovieAnnotationsTests.java new file mode 100644 index 0000000..8db5f5d --- /dev/null +++ b/src/test/java/com/aspose/asposecloudpdf/api/MovieAnnotationsTests.java @@ -0,0 +1,164 @@ +/** + * + * Copyright (c) 2009 Aspose.PDF Cloud + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of TestHelper.getInstance() 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.api; + +import com.aspose.asposecloudpdf.ApiException; +import com.aspose.asposecloudpdf.model.*; + +import org.junit.Test; + +import java.util.ArrayList; +import java.util.List; + +import static org.junit.Assert.assertEquals; + +public class MovieAnnotationsTests { + private TestHelper th; + + public MovieAnnotationsTests() throws ApiException { + th = TestHelper.getInstance(); + } + + /** + * GetDocumentMovieAnnotationsTest + * @throws ApiException + * if the Api call fails + */ + @Test + public void getDocumentMovieAnnotationsTest()throws ApiException + { + String name = "PdfWithAnnotations1.pdf"; + th.uploadFile(name); + + MovieAnnotationsResponse response = th.pdfApi.getDocumentMovieAnnotations(name, null, th.tempFolder); + assertEquals(200, (int)response.getCode()); + } + + /** + * GetPageMovieAnnotationsTest + * @throws ApiException + * if the Api call fails + */ + @Test + public void getPageMovieAnnotationsTest()throws ApiException + { + String name = "PdfWithAnnotations1.pdf"; + th.uploadFile(name); + + int pageNumber = 2; + + MovieAnnotationsResponse response = th.pdfApi.getPageMovieAnnotations(name, pageNumber, null, th.tempFolder); + assertEquals(200, (int)response.getCode()); + } + + /** + * PostPageMovieAnnotationsTest + * @throws ApiException + * if the Api call fails + */ + @Test + public void postPageMovieAnnotationsTest()throws ApiException + { + String name = "PdfWithAnnotations1.pdf"; + th.uploadFile(name); + + int pageNumber = 1; + + Rectangle rect = new Rectangle() + .LLX(100.) + .LLY(100.) + .URX(200.) + .URY(200.); + + List flags = new ArrayList<>(); + flags.add(AnnotationFlags.DEFAULT); + + MovieAnnotation annotation = new MovieAnnotation(); + annotation.setName("Name"); + annotation.setRect(rect); + annotation.setFlags(flags); + annotation.setHorizontalAlignment(HorizontalAlignment.CENTER); + annotation.setZindex(1); + annotation.setModified("01/01/2018 12:00:00.000 AM"); + + List annotations = new ArrayList<>(); + annotations.add(annotation); + + AsposeResponse response = th.pdfApi.postPageMovieAnnotations(name, pageNumber, annotations, null, th.tempFolder); + assertEquals(200, (int)response.getCode()); + } + + /** + * GetMovieAnnotationTest + * @throws ApiException + * if the Api call fails + */ + @Test + public void getMovieAnnotationTest()throws ApiException + { + String name = "PdfWithAnnotations1.pdf"; + th.uploadFile(name); + + MovieAnnotationsResponse responseAnnotations = th.pdfApi.getDocumentMovieAnnotations(name, null, th.tempFolder); + assertEquals(200, (int)responseAnnotations.getCode()); + String annotationId = responseAnnotations.getAnnotations().getList().get(0).getId(); + + MovieAnnotationResponse response = th.pdfApi.getMovieAnnotation(name, annotationId, null, th.tempFolder); + assertEquals(200, (int)response.getCode()); + } + + /** + * PutMovieAnnotationTest + * @throws ApiException + * if the Api call fails + */ + @Test + public void putMovieAnnotationTest()throws ApiException + { + String name = "PdfWithAnnotations1.pdf"; + th.uploadFile(name); + + Rectangle rect = new Rectangle() + .LLX(100.) + .LLY(100.) + .URX(200.) + .URY(200.); + + List flags = new ArrayList<>(); + flags.add(AnnotationFlags.DEFAULT); + + MovieAnnotation annotation = new MovieAnnotation(); + annotation.setName("Name Updated"); + annotation.setRect(rect); + annotation.setFlags(flags); + annotation.setHorizontalAlignment(HorizontalAlignment.CENTER); + annotation.setZindex(1); + annotation.setModified("01/01/2018 12:02:03.000 AM"); + + MovieAnnotationsResponse responseAnnotations = th.pdfApi.getDocumentMovieAnnotations(name, null, th.tempFolder); + assertEquals(200, (int)responseAnnotations.getCode()); + String annotationId = responseAnnotations.getAnnotations().getList().get(0).getId(); + + AsposeResponse response = th.pdfApi.putMovieAnnotation(name, annotationId, annotation, null, th.tempFolder); + assertEquals(200, (int)response.getCode()); + } +} diff --git a/src/test/java/com/aspose/asposecloudpdf/api/OcrTests.java b/src/test/java/com/aspose/asposecloudpdf/api/OcrTests.java new file mode 100644 index 0000000..267851c --- /dev/null +++ b/src/test/java/com/aspose/asposecloudpdf/api/OcrTests.java @@ -0,0 +1,74 @@ +/** + * + * Copyright (c) 2009 Aspose.PDF Cloud + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of TestHelper.getInstance() 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.api; + +import com.aspose.asposecloudpdf.ApiException; +import com.aspose.asposecloudpdf.model.*; + +import org.junit.Test; + +import static org.junit.Assert.assertEquals; + +public class OcrTests { + private TestHelper th; + + public OcrTests() throws ApiException { + th = TestHelper.getInstance(); + } + + /** + * PutSearchableDocument Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void putSearchableDocumentTest() throws ApiException + { + String name = "rusdoc.pdf"; + th.uploadFile(name); + + String lang = "rus,eng"; + String folder = th.tempFolder; + + AsposeResponse response = th.pdfApi.putSearchableDocument(name, null, folder, lang); + assertEquals(200, (int)response.getCode()); + } + + /** + * PutSearchableDocumentWithDefaultLang Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void putSearchableDocumentWithDefaultLangTest() throws ApiException + { + String name = "rusdoc.pdf"; + th.uploadFile(name); + + String folder = th.tempFolder; + + AsposeResponse response = th.pdfApi.putSearchableDocument(name, null, folder, null); + assertEquals(200, (int)response.getCode()); + } +} diff --git a/src/test/java/com/aspose/asposecloudpdf/api/PageConvertToImageTests.java b/src/test/java/com/aspose/asposecloudpdf/api/PageConvertToImageTests.java new file mode 100644 index 0000000..583ac67 --- /dev/null +++ b/src/test/java/com/aspose/asposecloudpdf/api/PageConvertToImageTests.java @@ -0,0 +1,259 @@ +/** + * + * Copyright (c) 2009 Aspose.PDF Cloud + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of TestHelper.getInstance() 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.api; + +import com.aspose.asposecloudpdf.ApiException; +import com.aspose.asposecloudpdf.model.*; + +import org.junit.Test; + +import java.io.File; + +import static org.junit.Assert.assertEquals; +import static org.junit.Assert.assertNotNull; + +public class PageConvertToImageTests { + private TestHelper th; + + public PageConvertToImageTests() throws ApiException { + th = TestHelper.getInstance(); + } + + /** + * GetPageConvertToTiff Test + * @throws ApiException + * if the Api call fails + */ + @Test + public void getPageConvertToTiffTest() throws ApiException + { + final String name = "4pages.pdf"; + th.uploadFile(name); + + int pageNumber = 2; + + File response = th.pdfApi.getPageConvertToTiff(name, pageNumber, null, null, th.tempFolder, null); + assertNotNull(response); + } + + /** + * PutPageConvertToTiff Test + * @throws ApiException + * if the Api call fails + */ + @Test + public void putPageConvertToTiffTest() throws ApiException + { + final String name = "4pages.pdf"; + th.uploadFile(name); + + int pageNumber = 2; + final String resultFile = "page.tiff"; + final String outPath = th.tempFolder + '/' + resultFile; + AsposeResponse response = th.pdfApi.putPageConvertToTiff(name, pageNumber, outPath, + null, null, th.tempFolder, null); + assertEquals(200, (int)response.getCode()); + } + + /** + * GetPageConvertToJpeg Test + * @throws ApiException + * if the Api call fails + */ + @Test + public void getPageConvertToJpegTest() throws ApiException + { + final String name = "4pages.pdf"; + th.uploadFile(name); + + int pageNumber = 2; + + File response = th.pdfApi.getPageConvertToJpeg(name, pageNumber, null, null, th.tempFolder, null); + assertNotNull(response); + } + + /** + * PutPageConvertToJpeg Test + * @throws ApiException + * if the Api call fails + */ + @Test + public void putPageConvertToJpegTest() throws ApiException + { + final String name = "4pages.pdf"; + th.uploadFile(name); + + int pageNumber = 2; + final String resultFile = "page.jpeg"; + final String outPath = th.tempFolder + '/' + resultFile; + AsposeResponse response = th.pdfApi.putPageConvertToJpeg(name, pageNumber, outPath, + null, null, th.tempFolder, null); + assertEquals(200, (int)response.getCode()); + } + + + /** + * GetPageConvertToPng Test + * @throws ApiException + * if the Api call fails + */ + @Test + public void getPageConvertToPngTest() throws ApiException + { + final String name = "4pages.pdf"; + th.uploadFile(name); + + int pageNumber = 2; + + File response = th.pdfApi.getPageConvertToPng(name, pageNumber, null, null, th.tempFolder, null); + assertNotNull(response); + } + + /** + * PutPageConvertToPng Test + * @throws ApiException + * if the Api call fails + */ + @Test + public void putPageConvertToPngTest() throws ApiException + { + final String name = "4pages.pdf"; + th.uploadFile(name); + + int pageNumber = 2; + final String resultFile = "page.png"; + final String outPath = th.tempFolder + '/' + resultFile; + AsposeResponse response = th.pdfApi.putPageConvertToPng(name, pageNumber, outPath, + null, null, th.tempFolder, null); + assertEquals(200, (int)response.getCode()); + } + + + /** + * GetPageConvertToEmf Test + * @throws ApiException + * if the Api call fails + */ + @Test + public void getPageConvertToEmfTest() throws ApiException + { + final String name = "4pages.pdf"; + th.uploadFile(name); + + int pageNumber = 2; + + File response = th.pdfApi.getPageConvertToEmf(name, pageNumber, null, null, th.tempFolder, null); + assertNotNull(response); + } + + /** + * PutPageConvertToEmf Test + * @throws ApiException + * if the Api call fails + */ + @Test + public void putPageConvertToEmfTest() throws ApiException + { + final String name = "4pages.pdf"; + th.uploadFile(name); + + int pageNumber = 2; + final String resultFile = "page.emf"; + final String outPath = th.tempFolder + '/' + resultFile; + AsposeResponse response = th.pdfApi.putPageConvertToEmf(name, pageNumber, outPath, + null, null, th.tempFolder, null); + assertEquals(200, (int)response.getCode()); + } + + /** + * GetPageConvertToBmp Test + * @throws ApiException + * if the Api call fails + */ + @Test + public void getPageConvertToBmpTest() throws ApiException + { + final String name = "4pages.pdf"; + th.uploadFile(name); + + int pageNumber = 2; + + File response = th.pdfApi.getPageConvertToBmp(name, pageNumber, null, null, th.tempFolder, null); + assertNotNull(response); + } + + /** + * PutPageConvertToBmp Test + * @throws ApiException + * if the Api call fails + */ + @Test + public void putPageConvertToBmpTest() throws ApiException + { + final String name = "4pages.pdf"; + th.uploadFile(name); + + int pageNumber = 2; + final String resultFile = "page.bmp"; + final String outPath = th.tempFolder + '/' + resultFile; + AsposeResponse response = th.pdfApi.putPageConvertToBmp(name, pageNumber, outPath, + null, null, th.tempFolder, null); + assertEquals(200, (int)response.getCode()); + } + + + /** + * GetPageConvertToGif Test + * @throws ApiException + * if the Api call fails + */ + @Test + public void getPageConvertToGifTest() throws ApiException + { + final String name = "4pages.pdf"; + th.uploadFile(name); + + int pageNumber = 2; + + File response = th.pdfApi.getPageConvertToGif(name, pageNumber, null, null, th.tempFolder, null); + assertNotNull(response); + } + + /** + * PutPageConvertToGif Test + * @throws ApiException + * if the Api call fails + */ + @Test + public void putPageConvertToGifTest() throws ApiException + { + final String name = "4pages.pdf"; + th.uploadFile(name); + + int pageNumber = 2; + final String resultFile = "page.gif"; + final String outPath = th.tempFolder + '/' + resultFile; + AsposeResponse response = th.pdfApi.putPageConvertToGif(name, pageNumber, outPath, + null, null, th.tempFolder, null); + assertEquals(200, (int)response.getCode()); + } +} diff --git a/src/test/java/com/aspose/asposecloudpdf/api/PagesTests.java b/src/test/java/com/aspose/asposecloudpdf/api/PagesTests.java new file mode 100644 index 0000000..2e2c776 --- /dev/null +++ b/src/test/java/com/aspose/asposecloudpdf/api/PagesTests.java @@ -0,0 +1,188 @@ +/** + * + * Copyright (c) 2009 Aspose.PDF Cloud + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of TestHelper.getInstance() 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.api; + +import com.aspose.asposecloudpdf.ApiException; +import com.aspose.asposecloudpdf.model.*; + +import org.junit.Test; + +import static org.junit.Assert.assertEquals; +import static org.junit.Assert.assertNotNull; + +public class PagesTests { + private TestHelper th; + + public PagesTests() throws ApiException { + th = TestHelper.getInstance(); + } + + /** + * DeletePage Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void deletePageTest() throws ApiException + { + String name = "4pages.pdf"; + th.uploadFile(name); + + int pageNumber = 1; + String folder = th.tempFolder; + + AsposeResponse response = th.pdfApi.deletePage(name, pageNumber, null, folder); + assertEquals(200, (int)response.getCode()); + } + + + /** + * GetPage Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void getPageTest() throws ApiException + { + String name = "4pages.pdf"; + th.uploadFile(name); + + int pageNumber = 3; + String folder = th.tempFolder; + + DocumentPageResponse response = th.pdfApi.getPage(name, pageNumber, null, folder); + assertNotNull(response); + } + + + /** + * GetPages Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void getPagesTest() throws ApiException + { + String name = "4pages.pdf"; + th.uploadFile(name); + + String folder = th.tempFolder; + + DocumentPagesResponse response = th.pdfApi.getPages(name, null, folder); + assertEquals(200, (int)response.getCode()); + } + + + /** + * GetWordsPerPage Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void getWordsPerPageTest() throws ApiException + { + String name = "4pages.pdf"; + th.uploadFile(name); + + String folder = th.tempFolder; + + WordCountResponse response = th.pdfApi.getWordsPerPage(name, null, folder); + assertEquals(200, (int)response.getCode()); + } + + + /** + * PostMovePage Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void postMovePageTest() throws ApiException + { + String name = "4pages.pdf"; + th.uploadFile(name); + + String folder = th.tempFolder; + int pageNumber = 1; + int newIndex = 1; + + AsposeResponse response = th.pdfApi.postMovePage(name, pageNumber, newIndex, null, folder); + assertEquals(200, (int)response.getCode()); + } + + + /** + * PutAddNewPage Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void putAddNewPageTest() throws ApiException + { + String name = "4pages.pdf"; + th.uploadFile(name); + + String folder = th.tempFolder; + + DocumentPagesResponse response = th.pdfApi.putAddNewPage(name, null, folder); + assertEquals(200, (int)response.getCode()); + } + + + /** + * PutPageAddStamp Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void putPageAddStampTest() throws ApiException + { + String name = "4pages.pdf"; + th.uploadFile(name); + + String stampFileName = "Penguins.jpg"; + th.uploadFile(stampFileName); + + int pageNumber = 1; + String folder = th.tempFolder; + + + Stamp stamp = new Stamp(); + stamp.setType(StampType.IMAGE); + stamp.setFileName(folder + '/' + stampFileName); + stamp.setBackground(true); + stamp.setWidth(200.); + stamp.setHeight(200.); + stamp.setXindent(100.); + stamp.setYindent(100.); + + AsposeResponse response = th.pdfApi.putPageAddStamp(name, pageNumber, stamp, null, folder); + assertEquals(200, (int)response.getCode()); + } +} diff --git a/src/test/java/com/aspose/asposecloudpdf/api/PdfApiTest.java b/src/test/java/com/aspose/asposecloudpdf/api/PdfApiTest.java index 0329b42..e69de29 100644 --- a/src/test/java/com/aspose/asposecloudpdf/api/PdfApiTest.java +++ b/src/test/java/com/aspose/asposecloudpdf/api/PdfApiTest.java @@ -1,7409 +0,0 @@ -/** - * - * Copyright (c) 2019 Aspose.PDF Cloud - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - * - */ - - -package com.aspose.asposecloudpdf.api; - -import com.aspose.asposecloudpdf.ApiException; -import com.aspose.asposecloudpdf.model.*; - -import java.io.File; - -import com.google.gson.Gson; -import com.google.gson.stream.JsonReader; - -import org.junit.Test; - -import java.io.FileNotFoundException; -import java.io.FileReader; -import java.util.ArrayList; -import java.util.List; - -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertNotNull; -import static org.junit.Assert.assertNull; - -/** - * API tests for PdfApi - */ -public class PdfApiTest -{ - private final PdfApi pdfApi; - private String tempFolder = "TempPdfCloud"; - private String testDataFolder = "testData"; - private String setupFile = "setup.json"; - - class ApiCreds{ - public String app_key; - public String app_sid; - public String product_uri; - } - - public PdfApiTest() throws FileNotFoundException - { - ApiCreds apiCreds = getApiCreds(); - pdfApi = new PdfApi(apiCreds.app_key, apiCreds.app_sid); - pdfApi.getApiClient().setBasePath(apiCreds.product_uri); - } - - private ApiCreds getApiCreds() throws FileNotFoundException - { - Gson gson = new Gson(); - JsonReader reader = new JsonReader(new FileReader(setupFile)); - return gson.fromJson(reader, ApiCreds.class); - } - - - private void uploadFile(String name) throws ApiException - { - File file = new File(testDataFolder + "/" + name); - AsposeResponse response = pdfApi.putCreate(tempFolder + '/' + name, file, null, null); - assertEquals(200, (int)response.getCode()); - } - - //Annotations Tests - - /** - * GetDocumentAnnotationsTest - * @throws ApiException - * if the Api call fails - */ - @Test - public void getDocumentAnnotationsTest()throws ApiException - { - String name = "PdfWithAnnotations.pdf"; - - uploadFile(name); - AnnotationsInfoResponse response = pdfApi.getDocumentAnnotations(name, null, tempFolder); - assertEquals(200, (int)response.getCode()); - } - - /** - * DeleteDocumentAnnotationsTest - * @throws ApiException - * if the Api call fails - */ - @Test - public void deleteDocumentAnnotationsTest()throws ApiException - { - String name = "PdfWithAnnotations.pdf"; - - uploadFile(name); - AsposeResponse response = pdfApi.deleteDocumentAnnotations(name, null, tempFolder); - assertEquals(200, (int)response.getCode()); - } - - /** - * GetPageAnnotationsTest - * @throws ApiException - * if the Api call fails - */ - @Test - public void getPageAnnotationsTest()throws ApiException - { - String name = "PdfWithAnnotations.pdf"; - int pageNumber = 2; - - uploadFile(name); - AnnotationsInfoResponse response = pdfApi.getPageAnnotations(name, pageNumber, null, tempFolder); - assertEquals(200, (int)response.getCode()); - } - - - /** - * DeletePageAnnotationsTest - * @throws ApiException - * if the Api call fails - */ - @Test - public void deletePageAnnotationsTest()throws ApiException - { - String name = "PdfWithAnnotations.pdf"; - int pageNumber = 2; - - uploadFile(name); - AsposeResponse response = pdfApi.deletePageAnnotations(name, pageNumber, null, tempFolder); - assertEquals(200, (int)response.getCode()); - } - - - /** - * DeleteAnnotationTest - * @throws ApiException - * if the Api call fails - */ - @Test - public void deleteAnnotationTest()throws ApiException - { - String name = "PdfWithAnnotations.pdf"; - - uploadFile(name); - - AnnotationsInfoResponse responseAnnotations = pdfApi.getDocumentAnnotations(name, null, tempFolder); - assertEquals(200, (int)responseAnnotations.getCode()); - String annotationId = responseAnnotations.getAnnotations().getList().get(0).getId(); - - AsposeResponse response = pdfApi.deleteAnnotation(name, annotationId, null, tempFolder); - assertEquals(200, (int)response.getCode()); - } - - /** - * PutAnnotationsFlattenTest - * @throws ApiException - * if the Api call fails - */ - @Test - public void PutAnnotationsFlattenTest()throws ApiException - { - String name = "PdfWithAnnotations.pdf"; - int endPage = 2; - List annotationTypes = new ArrayList<>(); - annotationTypes.add(AnnotationType.STAMP); - uploadFile(name); - AsposeResponse response = pdfApi.putAnnotationsFlatten(name, null, endPage, annotationTypes, null, tempFolder); - assertEquals(200, (int)response.getCode()); - } - - // File Attachment Annotations - - /** - * GetDocumentFileAttachmentAnnotationsTest - * @throws ApiException - * if the Api call fails - */ - @Test - public void getDocumentFileAttachmentAnnotationsTest()throws ApiException - { - String name = "PdfWithAnnotations.pdf"; - uploadFile(name); - - FileAttachmentAnnotationsResponse response = pdfApi.getDocumentFileAttachmentAnnotations(name, null, tempFolder); - assertEquals(200, (int)response.getCode()); - } - - /** - * GetPageFileAttachmentAnnotationsTest - * @throws ApiException - * if the Api call fails - */ - @Test - public void getPageFileAttachmentAnnotationsTest()throws ApiException - { - String name = "PdfWithAnnotations.pdf"; - uploadFile(name); - - int pageNumber = 2; - - FileAttachmentAnnotationsResponse response = pdfApi.getPageFileAttachmentAnnotations(name, pageNumber, null, tempFolder); - assertEquals(200, (int)response.getCode()); - } - - /** - * PostPageFileAttachmentAnnotationsTest - * @throws ApiException - * if the Api call fails - */ - @Test - public void postPageFileAttachmentAnnotationsTest()throws ApiException - { - String name = "PdfWithAnnotations.pdf"; - uploadFile(name); - - String attachmentFile = "4pages.pdf"; - uploadFile(attachmentFile); - - int pageNumber = 1; - - Rectangle rect = new Rectangle() - .LLX(100.) - .LLY(100.) - .URX(200.) - .URY(200.); - - List flags = new ArrayList<>(); - flags.add(AnnotationFlags.DEFAULT); - - FileAttachmentAnnotation annotation = new FileAttachmentAnnotation(); - annotation.setName("Name"); - annotation.setRect(rect); - annotation.setFlags(flags); - annotation.setHorizontalAlignment(HorizontalAlignment.CENTER); - annotation.setRichText("Rich Text"); - annotation.setSubject("Subj"); - annotation.setZindex(1); - annotation.setTitle("Title"); - annotation.setModified("01/01/2018 12:00:00.000 AM"); - annotation.setFilePath(tempFolder + '/' + attachmentFile); - annotation.setFileName(attachmentFile); - - List annotations = new ArrayList<>(); - annotations.add(annotation); - - AsposeResponse response = pdfApi.postPageFileAttachmentAnnotations(name, pageNumber, annotations, null, tempFolder); - assertEquals(201, (int)response.getCode()); - } - - /** - * GetFileAttachmentAnnotationTest - * @throws ApiException - * if the Api call fails - */ - @Test - public void getFileAttachmentAnnotationTest()throws ApiException - { - String name = "PdfWithAnnotations.pdf"; - uploadFile(name); - - FileAttachmentAnnotationsResponse responseAnnotations = pdfApi.getDocumentFileAttachmentAnnotations(name, null, tempFolder); - assertEquals(200, (int)responseAnnotations.getCode()); - String annotationId = responseAnnotations.getAnnotations().getList().get(0).getId(); - - FileAttachmentAnnotationResponse response = pdfApi.getFileAttachmentAnnotation(name, annotationId, null, tempFolder); - assertEquals(200, (int)response.getCode()); - } - - /** - * PutFileAttachmentAnnotationTest - * @throws ApiException - * if the Api call fails - */ - @Test - public void putFileAttachmentAnnotationTest()throws ApiException - { - String name = "PdfWithAnnotations.pdf"; - uploadFile(name); - - String attachmentFile = "4pages.pdf"; - uploadFile(attachmentFile); - - Rectangle rect = new Rectangle() - .LLX(100.) - .LLY(100.) - .URX(200.) - .URY(200.); - - List flags = new ArrayList<>(); - flags.add(AnnotationFlags.DEFAULT); - - FileAttachmentAnnotation annotation = new FileAttachmentAnnotation(); - annotation.setName("Name"); - annotation.setRect(rect); - annotation.setFlags(flags); - annotation.setHorizontalAlignment(HorizontalAlignment.CENTER); - annotation.setRichText("Rich Text"); - annotation.setSubject("Subj"); - annotation.setZindex(1); - annotation.setTitle("Title"); - annotation.setModified("01/01/2018 12:00:00.000 AM"); - annotation.setFilePath(tempFolder + '/' + attachmentFile); - annotation.setFileName(attachmentFile); - - FileAttachmentAnnotationsResponse responseAnnotations = pdfApi.getDocumentFileAttachmentAnnotations(name, null, tempFolder); - assertEquals(200, (int)responseAnnotations.getCode()); - String annotationId = responseAnnotations.getAnnotations().getList().get(0).getId(); - - AsposeResponse response = pdfApi.putFileAttachmentAnnotation(name, annotationId, annotation, null, tempFolder); - assertEquals(201, (int)response.getCode()); - } - - /** - * GetFileAttachmentAnnotationDataTest - * @throws ApiException - * if the Api call fails - */ - @Test - public void getFileAttachmentAnnotationDataTest()throws ApiException - { - String name = "PdfWithAnnotations.pdf"; - uploadFile(name); - - FileAttachmentAnnotationsResponse responseAnnotations = pdfApi.getDocumentFileAttachmentAnnotations(name, null, tempFolder); - assertEquals(200, (int)responseAnnotations.getCode()); - String annotationId = responseAnnotations.getAnnotations().getList().get(0).getId(); - - File response = pdfApi.getFileAttachmentAnnotationData(name, annotationId, null, tempFolder); - assertNotNull(response); - } - - /** - * PutFileAttachmentAnnotationDataExtractTest - * @throws ApiException - * if the Api call fails - */ - @Test - public void putFileAttachmentAnnotationDataExtractTest()throws ApiException - { - String name = "PdfWithAnnotations.pdf"; - uploadFile(name); - - FileAttachmentAnnotationsResponse responseAnnotations = pdfApi.getDocumentFileAttachmentAnnotations(name, null, tempFolder); - assertEquals(200, (int)responseAnnotations.getCode()); - String annotationId = responseAnnotations.getAnnotations().getList().get(0).getId(); - - AsposeResponse response = pdfApi.putFileAttachmentAnnotationDataExtract(name, annotationId, null, null, tempFolder); - assertEquals(201, (int)response.getCode()); - } - - // Stamp Tests - - /** - * GetDocumentStampsTest - * @throws ApiException - * if the Api call fails - */ - @Test - public void getDocumentStampsTest()throws ApiException - { - String name = "PageNumberStamp.pdf"; - uploadFile(name); - - StampsInfoResponse response = pdfApi.getDocumentStamps(name, null, tempFolder); - assertEquals(200, (int)response.getCode()); - } - - /** - * DeleteDocumentStampsTest - * @throws ApiException - * if the Api call fails - */ - @Test - public void deleteDocumentStampsTest()throws ApiException - { - String name = "PageNumberStamp.pdf"; - uploadFile(name); - - AsposeResponse response = pdfApi.deleteDocumentStamps(name, null, tempFolder); - assertEquals(200, (int)response.getCode()); - } - - /** - * GetPageStampsTest - * @throws ApiException - * if the Api call fails - */ - @Test - public void getPageStampsTest()throws ApiException - { - String name = "PageNumberStamp.pdf"; - uploadFile(name); - int pageNumber = 1; - StampsInfoResponse response = pdfApi.getPageStamps(name, pageNumber,null, tempFolder); - assertEquals(200, (int)response.getCode()); - } - - /** - * DeletePageStampsTest - * @throws ApiException - * if the Api call fails - */ - @Test - public void deletePageStampsTest()throws ApiException - { - String name = "PageNumberStamp.pdf"; - uploadFile(name); - int pageNumber = 1; - AsposeResponse response = pdfApi.deletePageStamps(name, pageNumber,null, tempFolder); - assertEquals(200, (int)response.getCode()); - } - - /** - * PostPageTextStampsTest - * @throws ApiException - * if the Api call fails - */ - - @Test - public void postPageTextStampsTest()throws ApiException - { - String name = "PageNumberStamp.pdf"; - uploadFile(name); - int pageNumber = 1; - - TextState textState = new TextState().fontSize(14.); - - TextStamp stamp = new TextStamp() - .textAlignment(HorizontalAlignment.CENTER) - .value("Text Stamp") - .textState(textState) - .leftMargin(1.) - .rightMargin(2.) - .topMargin(3.) - .bottomMargin(4.) - .verticalAlignment(VerticalAlignment.CENTER); - - stamp.background(true) - .horizontalAlignment(HorizontalAlignment.CENTER) - .opacity(1.) - .rotate(Rotation.NONE) - .rotateAngle(0.) - .xindent(0.) - .yindent(0.) - .zoom(1.); - - List stamps = new ArrayList<>(); - stamps.add(stamp); - - AsposeResponse response = pdfApi.postPageTextStamps(name, pageNumber, stamps,null, tempFolder); - assertEquals(201, (int)response.getCode()); - } - - /** - * PostPageImageStampsTest - * @throws ApiException - * if the Api call fails - */ - @Test - public void postPageImageStampsTest()throws ApiException - { - String name = "PageNumberStamp.pdf"; - uploadFile(name); - - String image = "Koala.jpg"; - uploadFile(image); - int pageNumber = 1; - - ImageStamp stamp = new ImageStamp() - .fileName(tempFolder + '/' + image) - .leftMargin(1.) - .rightMargin(2.) - .topMargin(3.) - .bottomMargin(4.) - .verticalAlignment(VerticalAlignment.CENTER); - stamp.background(true) - .horizontalAlignment(HorizontalAlignment.CENTER) - .opacity(1.) - .rotate(Rotation.NONE) - .rotateAngle(0.) - .xindent(0.) - .yindent(0.) - .zoom(1.); - - List stamps = new ArrayList<>(); - stamps.add(stamp); - - AsposeResponse response = pdfApi.postPageImageStamps(name, pageNumber, stamps,null, tempFolder); - assertEquals(201, (int)response.getCode()); - } - - /** - * PostPagePdfPageStampsTest - * @throws ApiException - * if the Api call fails - */ - @Test - public void postPagePdfPageStampsTest()throws ApiException - { - String name = "PageNumberStamp.pdf"; - uploadFile(name); - - String pdf = "4pages.pdf"; - uploadFile(pdf); - int pageNumber = 1; - - PdfPageStamp stamp = new PdfPageStamp() - .fileName(tempFolder + '/' + pdf) - .pageIndex(2) - .leftMargin(1.) - .rightMargin(2.) - .topMargin(3.) - .bottomMargin(4.) - .verticalAlignment(VerticalAlignment.CENTER); - stamp.background(true) - .horizontalAlignment(HorizontalAlignment.CENTER) - .opacity(1.) - .rotate(Rotation.NONE) - .rotateAngle(0.) - .xindent(0.) - .yindent(0.) - .zoom(1.); - - List stamps = new ArrayList<>(); - stamps.add(stamp); - - AsposeResponse response = pdfApi.postPagePdfPageStamps(name, pageNumber, stamps,null, tempFolder); - assertEquals(201, (int)response.getCode()); - } - - /** - * DeleteStampTest - * @throws ApiException - * if the Api call fails - */ - @Test - public void deleteStampTest()throws ApiException - { - String name = "PageNumberStamp.pdf"; - uploadFile(name); - - StampsInfoResponse stampsResponse = pdfApi.getDocumentStamps(name, null, tempFolder); - assertEquals(200, (int)stampsResponse.getCode()); - String stampId = stampsResponse.getStamps().getList().get(0).getId(); - - AsposeResponse response = pdfApi.deleteStamp(name, stampId, null, tempFolder); - assertEquals(200, (int)response.getCode()); - } - - /** - * PostDocumentPageNumberStamps Test - * @throws ApiException - * if the Api call fails - */ - - @Test - public void postDocumentPageNumberStampsTest()throws ApiException - { - String name = "4pages.pdf"; - uploadFile(name); - - PageNumberStamp stamp = new PageNumberStamp() - .value("Page #") - .leftMargin(1.) - .rightMargin(2.) - .topMargin(3.) - .bottomMargin(4.) - .verticalAlignment(VerticalAlignment.BOTTOM) - .startingNumber(3); - - stamp.background(true) - .horizontalAlignment(HorizontalAlignment.CENTER) - .opacity(1.) - .rotate(Rotation.NONE) - .rotateAngle(0.) - .xindent(0.) - .yindent(0.) - .zoom(1.); - - int startPageNumber = 2; - int endPageNumber = 3; - - AsposeResponse response = pdfApi.postDocumentPageNumberStamps(name, stamp, startPageNumber, endPageNumber, null, tempFolder); - assertEquals(201, (int)response.getCode()); - } - - // Header Footer Tests - - /** - * PostDocumentTextHeaderTest - * @throws ApiException - * if the Api call fails - */ - @Test - public void postDocumentTextHeaderTest()throws ApiException - { - String name = "4pages.pdf"; - uploadFile(name); - - int startPage = 2; - int endPage = 3; - - Color foregroundColor = new Color(); - foregroundColor.setA(0x00); - foregroundColor.setR(0x00); - foregroundColor.setG(0xFF); - foregroundColor.setB(0x00); - - Color backgroundColor = new Color(); - backgroundColor.setA(0x00); - backgroundColor.setR(0xFF); - backgroundColor.setG(0x00); - backgroundColor.setB(0x00); - - TextState textState = new TextState() - .fontSize(14.) - .foregroundColor(foregroundColor) - .backgroundColor(backgroundColor); - - TextHeader header = new TextHeader() - .leftMargin(1.) - .rightMargin(2.) - .topMargin(3.) - .textAlignment(HorizontalAlignment.CENTER) - .value("Header") - .textState(textState); - header.background(true) - .horizontalAlignment(HorizontalAlignment.CENTER) - .opacity(1.) - .rotate(Rotation.NONE) - .rotateAngle(0.) - .xindent(0.) - .yindent(0.) - .zoom(1.); - - - AsposeResponse response = pdfApi.postDocumentTextHeader(name, header, startPage, endPage, null, tempFolder); - assertEquals(201, (int)response.getCode()); - } - - /** - * PostDocumentTextFooterTest - * @throws ApiException - * if the Api call fails - */ - @Test - public void postDocumentTextFooterTest()throws ApiException - { - String name = "4pages.pdf"; - uploadFile(name); - - int startPage = 2; - int endPage = 3; - - Color foregroundColor = new Color(); - foregroundColor.setA(0x00); - foregroundColor.setR(0x00); - foregroundColor.setG(0xFF); - foregroundColor.setB(0x00); - - Color backgroundColor = new Color(); - backgroundColor.setA(0x00); - backgroundColor.setR(0xFF); - backgroundColor.setG(0x00); - backgroundColor.setB(0x00); - - TextState textState = new TextState() - .fontSize(14.) - .foregroundColor(foregroundColor) - .backgroundColor(backgroundColor); - - TextFooter footer = new TextFooter() - .leftMargin(1.) - .rightMargin(2.) - .bottomMargin(3.) - .textAlignment(HorizontalAlignment.CENTER) - .value("Header") - .textState(textState); - footer.background(true) - .horizontalAlignment(HorizontalAlignment.CENTER) - .opacity(1.) - .rotate(Rotation.NONE) - .rotateAngle(0.) - .xindent(0.) - .yindent(0.) - .zoom(1.); - - - AsposeResponse response = pdfApi.postDocumentTextFooter(name, footer, startPage, endPage, null, tempFolder); - assertEquals(201, (int)response.getCode()); - } - - /** - * PostDocumentImageHeaderTest - * @throws ApiException - * if the Api call fails - */ - @Test - public void postDocumentImageHeaderTest()throws ApiException - { - String name = "4pages.pdf"; - uploadFile(name); - - String image = "Koala.jpg"; - uploadFile(image); - - int startPage = 2; - int endPage = 3; - - ImageHeader header = new ImageHeader() - .leftMargin(1.) - .rightMargin(2.) - .topMargin(3.) - .fileName(tempFolder + '/' + image); - header.background(true) - .horizontalAlignment(HorizontalAlignment.CENTER) - .opacity(1.) - .rotate(Rotation.NONE) - .rotateAngle(0.) - .xindent(0.) - .yindent(0.) - .zoom(.1); - - - AsposeResponse response = pdfApi.postDocumentImageHeader(name, header, startPage, endPage, null, tempFolder); - assertEquals(201, (int)response.getCode()); - } - - /** - * PostDocumentImageFooterTest - * @throws ApiException - * if the Api call fails - */ - @Test - public void postDocumentImageFooterTest()throws ApiException - { - String name = "4pages.pdf"; - uploadFile(name); - - String image = "Koala.jpg"; - uploadFile(image); - - int startPage = 2; - int endPage = 3; - - ImageFooter footer = new ImageFooter() - .leftMargin(1.) - .rightMargin(2.) - .bottomMargin(3.) - .fileName(tempFolder + '/' + image); - footer.background(true) - .horizontalAlignment(HorizontalAlignment.CENTER) - .opacity(1.) - .rotate(Rotation.NONE) - .rotateAngle(0.) - .xindent(0.) - .yindent(0.) - .zoom(1.); - - - AsposeResponse response = pdfApi.postDocumentImageFooter(name, footer, startPage, endPage, null, tempFolder); - assertEquals(201, (int)response.getCode()); - } - - // Table Tests - - /** - * GetDocumentTablesTest - * @throws ApiException - * if the Api call fails - */ - @Test - public void getDocumentTablesTest()throws ApiException - { - String name = "PdfWithTable.pdf"; - uploadFile(name); - - TablesRecognizedResponse response = pdfApi.getDocumentTables(name, null, tempFolder); - assertEquals(200, (int)response.getCode()); - } - - /** - * DeleteDocumentTablesTest - * @throws ApiException - * if the Api call fails - */ - @Test - public void deleteDocumentTablesTest()throws ApiException - { - String name = "PdfWithTable.pdf"; - uploadFile(name); - - AsposeResponse response = pdfApi.deleteDocumentTables(name, null, tempFolder); - assertEquals(200, (int)response.getCode()); - } - - /** - * GetPageTablesTest - * @throws ApiException - * if the Api call fails - */ - @Test - public void getPageTablesTest()throws ApiException - { - String name = "PdfWithTable.pdf"; - uploadFile(name); - int pageNumber = 1; - - TablesRecognizedResponse response = pdfApi.getPageTables(name, pageNumber, null, tempFolder); - assertEquals(200, (int)response.getCode()); - } - - /** - * DeletePageTablesTest - * @throws ApiException - * if the Api call fails - */ - @Test - public void deletePageTablesTest()throws ApiException - { - String name = "PdfWithTable.pdf"; - uploadFile(name); - int pageNumber = 1; - - AsposeResponse response = pdfApi.deletePageTables(name, pageNumber, null, tempFolder); - assertEquals(200, (int)response.getCode()); - } - - /** - * GetTableTest - * @throws ApiException - * if the Api call fails - */ - @Test - public void getTableTest()throws ApiException - { - String name = "PdfWithTable.pdf"; - uploadFile(name); - - TablesRecognizedResponse tablesResponse = pdfApi.getDocumentTables(name, null, tempFolder); - assertEquals(200, (int)tablesResponse.getCode()); - String tableId = tablesResponse.getTables().getList().get(0).getId(); - - TableRecognizedResponse response = pdfApi.getTable(name, tableId, null, tempFolder); - assertEquals(200, (int)response.getCode()); - } - - /** - * DeleteTableTest - * @throws ApiException - * if the Api call fails - */ - @Test - public void deleteTableTest()throws ApiException - { - String name = "PdfWithTable.pdf"; - uploadFile(name); - - TablesRecognizedResponse tablesResponse = pdfApi.getDocumentTables(name, null, tempFolder); - assertEquals(200, (int)tablesResponse.getCode()); - String tableId = tablesResponse.getTables().getList().get(0).getId(); - - AsposeResponse response = pdfApi.deleteTable(name, tableId, null, tempFolder); - assertEquals(200, (int)response.getCode()); - } - - /** - * PostPageTablesTest - * @throws ApiException - * if the Api call fails - */ - @Test - public void postPageTablesTest()throws ApiException - { - String name = "4pages.pdf"; - uploadFile(name); - - int pageNumber = 1; - - List
tables = new ArrayList<>(); - tables.add(drawTable()); - - AsposeResponse response = pdfApi.postPageTables(name, pageNumber, tables, null, tempFolder); - assertEquals(201, (int)response.getCode()); - } - - /** - * PutTableTest - * @throws ApiException - * if the Api call fails - */ - @Test - public void putTableTest()throws ApiException - { - String name = "PdfWithTable.pdf"; - uploadFile(name); - - int pageNumber = 1; - - TablesRecognizedResponse tablesResponse = pdfApi.getDocumentTables(name, null, tempFolder); - assertEquals(200, (int)tablesResponse.getCode()); - String tableId = tablesResponse.getTables().getList().get(0).getId(); - - AsposeResponse response = pdfApi.putTable(name, tableId, drawTable(), null, tempFolder); - assertEquals(201, (int)response.getCode()); - } - - private Table drawTable() - { - TextState textState = new TextState() - .fontSize(10.) - .backgroundColor(new Color().A(255).R(255)); - - int numOfCols = 5; - int numOfRows = 5; - - Table table = new Table(); - table.setRows(new ArrayList()); - - String colWidths = ""; - for (int c = 0; c < numOfCols; c++) - { - colWidths += " 30"; - } - table.columnWidths(colWidths); - - table.defaultCellTextState(textState); - - GraphInfo borderTableBorder = new GraphInfo(); - borderTableBorder.setColor(new Color().A(255).G(255)); - borderTableBorder.setLineWidth(1.); - - table.setDefaultCellBorder(new BorderInfo() - .top(borderTableBorder) - .right(borderTableBorder) - .bottom(borderTableBorder) - .left(borderTableBorder) - ); - - table.setTop(100.); - - for (int r = 0; r < numOfRows; r++) - { - - Row row = new Row().cells(new ArrayList()); - - for (int c = 0; c < numOfCols; c++) - { - - Cell cell = new Cell(); - cell.setBackgroundColor(new Color().A(255).G(128)); - cell.setDefaultCellTextState(textState); - cell.setParagraphs(new ArrayList()); - cell.getParagraphs().add(new TextRect().text("value")); - - // change properties on cell - if (c == 1) - { - cell.getDefaultCellTextState().setForegroundColor(new Color().A(255).B(255)); - } - - // change properties on cell AFTER first clearing and re-adding paragraphs - else if (c == 2) - { - cell.getParagraphs().clear(); - cell.getParagraphs().add(new TextRect().text("y")); - cell.getDefaultCellTextState().setForegroundColor(new Color().A(255).B(255)); - } - - // change properties on paragraph - else if (c == 3) - { - cell.getParagraphs().get(0).setTextState(textState); - cell.getParagraphs().get(0).getTextState().setForegroundColor(new Color().A(255).G(255)); - } - - // change properties on paragraph AFTER first clearing and re-adding paragraphs - else if (c == 4) - { - cell.getParagraphs().clear(); - cell.getParagraphs().add(new TextRect().text("y")); - cell.getParagraphs().get(0).setTextState(textState); - cell.getParagraphs().get(0).getTextState().setForegroundColor(new Color().A(255).B(255)); - } - row.getCells().add(cell); - - } - table.getRows().add(row); - } - - return table; - } - - // Stamp Annotations - - /** - * GetDocumentStampAnnotationsTest - * @throws ApiException - * if the Api call fails - */ - @Test - public void getDocumentStampAnnotationsTest()throws ApiException - { - String name = "PdfWithAnnotations.pdf"; - uploadFile(name); - - StampAnnotationsResponse response = pdfApi.getDocumentStampAnnotations(name, null, tempFolder); - assertEquals(200, (int)response.getCode()); - } - - /** - * GetPageStampAnnotationsTest - * @throws ApiException - * if the Api call fails - */ - @Test - public void getPageStampAnnotationsTest()throws ApiException - { - String name = "PdfWithAnnotations.pdf"; - uploadFile(name); - - int pageNumber = 2; - - StampAnnotationsResponse response = pdfApi.getPageStampAnnotations(name, pageNumber, null, tempFolder); - assertEquals(200, (int)response.getCode()); - } - - /** - * PostPageStampAnnotationsTest - * @throws ApiException - * if the Api call fails - */ - @Test - public void postPageStampAnnotationsTest()throws ApiException - { - String name = "PdfWithAnnotations.pdf"; - uploadFile(name); - - String attachmentFile = "4pages.pdf"; - uploadFile(attachmentFile); - - int pageNumber = 1; - - Rectangle rect = new Rectangle() - .LLX(100.) - .LLY(100.) - .URX(200.) - .URY(200.); - - List flags = new ArrayList<>(); - flags.add(AnnotationFlags.DEFAULT); - - StampAnnotation annotation = new StampAnnotation(); - annotation.setName("Name"); - annotation.setRect(rect); - annotation.setFlags(flags); - annotation.setHorizontalAlignment(HorizontalAlignment.CENTER); - annotation.setRichText("Rich Text"); - annotation.setSubject("Subj"); - annotation.setZindex(1); - annotation.setTitle("Title"); - annotation.setModified("01/01/2018 12:00:00.000 AM"); - annotation.setFilePath(tempFolder + '/' + attachmentFile); - - List annotations = new ArrayList<>(); - annotations.add(annotation); - - AsposeResponse response = pdfApi.postPageStampAnnotations(name, pageNumber, annotations, null, tempFolder); - assertEquals(201, (int)response.getCode()); - } - - /** - * GetStampAnnotationTest - * @throws ApiException - * if the Api call fails - */ - @Test - public void getStampAnnotationTest()throws ApiException - { - String name = "PdfWithAnnotations.pdf"; - uploadFile(name); - - StampAnnotationsResponse responseAnnotations = pdfApi.getDocumentStampAnnotations(name, null, tempFolder); - assertEquals(200, (int)responseAnnotations.getCode()); - String annotationId = responseAnnotations.getAnnotations().getList().get(0).getId(); - - StampAnnotationResponse response = pdfApi.getStampAnnotation(name, annotationId, null, tempFolder); - assertEquals(200, (int)response.getCode()); - } - - /** - * PutStampAnnotationTest - * @throws ApiException - * if the Api call fails - */ - @Test - public void putStampAnnotationTest()throws ApiException - { - String name = "PdfWithAnnotations.pdf"; - uploadFile(name); - - String attachmentFile = "4pages.pdf"; - uploadFile(attachmentFile); - - Rectangle rect = new Rectangle() - .LLX(100.) - .LLY(100.) - .URX(200.) - .URY(200.); - - List flags = new ArrayList<>(); - flags.add(AnnotationFlags.DEFAULT); - - StampAnnotation annotation = new StampAnnotation(); - annotation.setName("Name"); - annotation.setRect(rect); - annotation.setFlags(flags); - annotation.setHorizontalAlignment(HorizontalAlignment.CENTER); - annotation.setRichText("Rich Text"); - annotation.setSubject("Subj"); - annotation.setZindex(1); - annotation.setTitle("Title"); - annotation.setModified("01/01/2018 12:00:00.000 AM"); - annotation.setFilePath(tempFolder + '/' + attachmentFile); - - StampAnnotationsResponse responseAnnotations = pdfApi.getDocumentStampAnnotations(name, null, tempFolder); - assertEquals(200, (int)responseAnnotations.getCode()); - String annotationId = responseAnnotations.getAnnotations().getList().get(0).getId(); - - AsposeResponse response = pdfApi.putStampAnnotation(name, annotationId, annotation, null, tempFolder); - assertEquals(201, (int)response.getCode()); - } - - /** - * GetStampAnnotationDataTest - * @throws ApiException - * if the Api call fails - */ - @Test - public void getStampAnnotationDataTest()throws ApiException - { - String name = "PdfWithAnnotations.pdf"; - uploadFile(name); - - StampAnnotationsResponse responseAnnotations = pdfApi.getDocumentStampAnnotations(name, null, tempFolder); - assertEquals(200, (int)responseAnnotations.getCode()); - String annotationId = responseAnnotations.getAnnotations().getList().get(0).getId(); - - File response = pdfApi.getStampAnnotationData(name, annotationId, null, tempFolder); - assertNull(response); - } - - /** - * PutStampAnnotationDataExtractTest - * @throws ApiException - * if the Api call fails - */ - @Test - public void putStampAnnotationDataExtractTest()throws ApiException - { - String name = "PdfWithAnnotations.pdf"; - uploadFile(name); - - String outFilePath = tempFolder + '/' + "stamp.dat"; - - StampAnnotationsResponse responseAnnotations = pdfApi.getDocumentStampAnnotations(name, null, tempFolder); - assertEquals(200, (int)responseAnnotations.getCode()); - String annotationId = responseAnnotations.getAnnotations().getList().get(0).getId(); - - AsposeResponse response = pdfApi.putStampAnnotationDataExtract(name, annotationId, outFilePath, null, tempFolder); - assertEquals(201, (int)response.getCode()); - } - - // Screen Annotations - - /** - * GetDocumentScreenAnnotationsTest - * @throws ApiException - * if the Api call fails - */ - @Test - public void getDocumentScreenAnnotationsTest()throws ApiException - { - String name = "PdfWithScreenAnnotations.pdf"; - uploadFile(name); - - ScreenAnnotationsResponse response = pdfApi.getDocumentScreenAnnotations(name, null, tempFolder); - assertEquals(200, (int)response.getCode()); - } - - /** - * GetPageScreenAnnotationsTest - * @throws ApiException - * if the Api call fails - */ - @Test - public void getPageScreenAnnotationsTest()throws ApiException - { - String name = "PdfWithScreenAnnotations.pdf"; - uploadFile(name); - - int pageNumber = 2; - - ScreenAnnotationsResponse response = pdfApi.getPageScreenAnnotations(name, pageNumber, null, tempFolder); - assertEquals(200, (int)response.getCode()); - } - - /** - * PostPageScreenAnnotationsTest - * @throws ApiException - * if the Api call fails - */ - @Test - public void postPageScreenAnnotationsTest()throws ApiException - { - String name = "PdfWithScreenAnnotations.pdf"; - uploadFile(name); - - String attachmentFile = "ScreenMovie.swf"; - uploadFile(attachmentFile); - - int pageNumber = 1; - - Rectangle rect = new Rectangle() - .LLX(100.) - .LLY(100.) - .URX(200.) - .URY(200.); - - List flags = new ArrayList<>(); - flags.add(AnnotationFlags.DEFAULT); - - ScreenAnnotation annotation = new ScreenAnnotation(); - annotation.setName("Name"); - annotation.setRect(rect); - annotation.setFlags(flags); - annotation.setHorizontalAlignment(HorizontalAlignment.CENTER); - annotation.setZindex(1); - annotation.setTitle("Title"); - annotation.setModified("01/01/2018 12:00:00.000 AM"); - annotation.setFilePath(tempFolder + '/' + attachmentFile); - - List annotations = new ArrayList<>(); - annotations.add(annotation); - - AsposeResponse response = pdfApi.postPageScreenAnnotations(name, pageNumber, annotations, null, tempFolder); - assertEquals(201, (int)response.getCode()); - } - - /** - * GetScreenAnnotationTest - * @throws ApiException - * if the Api call fails - */ - @Test - public void getScreenAnnotationTest()throws ApiException - { - String name = "PdfWithScreenAnnotations.pdf"; - uploadFile(name); - - ScreenAnnotationsResponse responseAnnotations = pdfApi.getDocumentScreenAnnotations(name, null, tempFolder); - assertEquals(200, (int)responseAnnotations.getCode()); - String annotationId = responseAnnotations.getAnnotations().getList().get(0).getId(); - - ScreenAnnotationResponse response = pdfApi.getScreenAnnotation(name, annotationId, null, tempFolder); - assertEquals(200, (int)response.getCode()); - } - - /** - * PutScreenAnnotationTest - * @throws ApiException - * if the Api call fails - */ - @Test - public void putScreenAnnotationTest()throws ApiException - { - String name = "PdfWithScreenAnnotations.pdf"; - uploadFile(name); - - String attachmentFile = "ScreenMovie.swf"; - uploadFile(attachmentFile); - - Rectangle rect = new Rectangle() - .LLX(100.) - .LLY(100.) - .URX(200.) - .URY(200.); - - List flags = new ArrayList<>(); - flags.add(AnnotationFlags.DEFAULT); - - ScreenAnnotation annotation = new ScreenAnnotation(); - annotation.setName("Name"); - annotation.setRect(rect); - annotation.setFlags(flags); - annotation.setHorizontalAlignment(HorizontalAlignment.CENTER); - annotation.setZindex(1); - annotation.setTitle("Title"); - annotation.setModified("01/01/2018 12:00:00.000 AM"); - annotation.setFilePath(tempFolder + '/' + attachmentFile); - - ScreenAnnotationsResponse responseAnnotations = pdfApi.getDocumentScreenAnnotations(name, null, tempFolder); - assertEquals(200, (int)responseAnnotations.getCode()); - String annotationId = responseAnnotations.getAnnotations().getList().get(0).getId(); - - AsposeResponse response = pdfApi.putScreenAnnotation(name, annotationId, annotation, null, tempFolder); - assertEquals(201, (int)response.getCode()); - } - - /** - * GetScreenAnnotationDataTest - * @throws ApiException - * if the Api call fails - */ - @Test - public void getScreenAnnotationDataTest()throws ApiException - { - String name = "PdfWithScreenAnnotations.pdf"; - uploadFile(name); - - ScreenAnnotationsResponse responseAnnotations = pdfApi.getDocumentScreenAnnotations(name, null, tempFolder); - assertEquals(200, (int)responseAnnotations.getCode()); - String annotationId = responseAnnotations.getAnnotations().getList().get(0).getId(); - - File response = pdfApi.getScreenAnnotationData(name, annotationId, null, tempFolder); - assertNotNull(response); - } - - /** - * PutScreenAnnotationDataExtractTest - * @throws ApiException - * if the Api call fails - */ - @Test - public void putScreenAnnotationDataExtractTest()throws ApiException - { - String name = "PdfWithScreenAnnotations.pdf"; - uploadFile(name); - - ScreenAnnotationsResponse responseAnnotations = pdfApi.getDocumentScreenAnnotations(name, null, tempFolder); - assertEquals(200, (int)responseAnnotations.getCode()); - String annotationId = responseAnnotations.getAnnotations().getList().get(0).getId(); - - AsposeResponse response = pdfApi.putScreenAnnotationDataExtract(name, annotationId, "outFile.dat", null, tempFolder); - assertEquals(201, (int)response.getCode()); - } - - // Sound Annotations - - /** - * GetDocumentSoundAnnotationsTest - * @throws ApiException - * if the Api call fails - */ - @Test - public void getDocumentSoundAnnotationsTest()throws ApiException - { - String name = "PdfWithAnnotations.pdf"; - uploadFile(name); - - SoundAnnotationsResponse response = pdfApi.getDocumentSoundAnnotations(name, null, tempFolder); - assertEquals(200, (int)response.getCode()); - } - - /** - * GetPageSoundAnnotationsTest - * @throws ApiException - * if the Api call fails - */ - @Test - public void getPageSoundAnnotationsTest()throws ApiException - { - String name = "PdfWithAnnotations.pdf"; - uploadFile(name); - - int pageNumber = 2; - - SoundAnnotationsResponse response = pdfApi.getPageSoundAnnotations(name, pageNumber, null, tempFolder); - assertEquals(200, (int)response.getCode()); - } - - /** - * PostPageSoundAnnotationsTest - * @throws ApiException - * if the Api call fails - */ - @Test - public void postPageSoundAnnotationsTest()throws ApiException - { - String name = "PdfWithAnnotations.pdf"; - uploadFile(name); - - String attachmentFile = "4pages.pdf"; - uploadFile(attachmentFile); - - int pageNumber = 1; - - Rectangle rect = new Rectangle() - .LLX(100.) - .LLY(100.) - .URX(200.) - .URY(200.); - - List flags = new ArrayList<>(); - flags.add(AnnotationFlags.DEFAULT); - - SoundAnnotation annotation = new SoundAnnotation(); - annotation.setName("Name"); - annotation.setRect(rect); - annotation.setFlags(flags); - annotation.setHorizontalAlignment(HorizontalAlignment.CENTER); - annotation.setRichText("Rich Text"); - annotation.setSubject("Subj"); - annotation.setZindex(1); - annotation.setTitle("Title"); - annotation.setModified("01/01/2018 12:00:00.000 AM"); - annotation.setFilePath(tempFolder + '/' + attachmentFile); - - List annotations = new ArrayList<>(); - annotations.add(annotation); - - AsposeResponse response = pdfApi.postPageSoundAnnotations(name, pageNumber, annotations, null, tempFolder); - assertEquals(201, (int)response.getCode()); - } - - /** - * GetSoundAnnotationTest - * @throws ApiException - * if the Api call fails - */ - @Test - public void getSoundAnnotationTest()throws ApiException - { - String name = "PdfWithAnnotations.pdf"; - uploadFile(name); - - SoundAnnotationsResponse responseAnnotations = pdfApi.getDocumentSoundAnnotations(name, null, tempFolder); - assertEquals(200, (int)responseAnnotations.getCode()); - String annotationId = responseAnnotations.getAnnotations().getList().get(0).getId(); - - SoundAnnotationResponse response = pdfApi.getSoundAnnotation(name, annotationId, null, tempFolder); - assertEquals(200, (int)response.getCode()); - } - - /** - * PutSoundAnnotationTest - * @throws ApiException - * if the Api call fails - */ - @Test - public void putSoundAnnotationTest()throws ApiException - { - String name = "PdfWithAnnotations.pdf"; - uploadFile(name); - - String attachmentFile = "4pages.pdf"; - uploadFile(attachmentFile); - - Rectangle rect = new Rectangle() - .LLX(100.) - .LLY(100.) - .URX(200.) - .URY(200.); - - List flags = new ArrayList<>(); - flags.add(AnnotationFlags.DEFAULT); - - SoundAnnotation annotation = new SoundAnnotation(); - annotation.setName("Name Updated"); - annotation.setRect(rect); - annotation.setFlags(flags); - annotation.setHorizontalAlignment(HorizontalAlignment.CENTER); - annotation.setRichText("Rich Text Updated"); - annotation.setSubject("Subj Updated"); - annotation.setZindex(1); - annotation.setTitle("Title Updated"); - annotation.setModified("01/01/2018 12:01:02.000 AM"); - annotation.setFilePath(tempFolder + '/' + attachmentFile); - - SoundAnnotationsResponse responseAnnotations = pdfApi.getDocumentSoundAnnotations(name, null, tempFolder); - assertEquals(200, (int)responseAnnotations.getCode()); - String annotationId = responseAnnotations.getAnnotations().getList().get(0).getId(); - - AsposeResponse response = pdfApi.putSoundAnnotation(name, annotationId, annotation, null, tempFolder); - assertEquals(201, (int)response.getCode()); - } - - /** - * GetSoundAnnotationDataTest - * @throws ApiException - * if the Api call fails - */ - @Test - public void getSoundAnnotationDataTest()throws ApiException - { - String name = "PdfWithAnnotations.pdf"; - uploadFile(name); - - SoundAnnotationsResponse responseAnnotations = pdfApi.getDocumentSoundAnnotations(name, null, tempFolder); - assertEquals(200, (int)responseAnnotations.getCode()); - String annotationId = responseAnnotations.getAnnotations().getList().get(0).getId(); - - File response = pdfApi.getSoundAnnotationData(name, annotationId, null, tempFolder); - assertNotNull(response); - } - - /** - * PutSoundAnnotationDataExtractTest - * @throws ApiException - * if the Api call fails - */ - @Test - public void putSoundAnnotationDataExtractTest()throws ApiException - { - String name = "PdfWithAnnotations.pdf"; - uploadFile(name); - - SoundAnnotationsResponse responseAnnotations = pdfApi.getDocumentSoundAnnotations(name, null, tempFolder); - assertEquals(200, (int)responseAnnotations.getCode()); - String annotationId = responseAnnotations.getAnnotations().getList().get(0).getId(); - - AsposeResponse response = pdfApi.putSoundAnnotationDataExtract(name, annotationId, "outFile.dat", null, tempFolder); - assertEquals(201, (int)response.getCode()); - } - - // Redaction Annotations - - /** - * GetDocumentRedactionAnnotationsTest - * @throws ApiException - * if the Api call fails - */ - @Test - public void getDocumentRedactionAnnotationsTest()throws ApiException - { - String name = "PdfWithAnnotations.pdf"; - uploadFile(name); - - RedactionAnnotationsResponse response = pdfApi.getDocumentRedactionAnnotations(name, null, tempFolder); - assertEquals(200, (int)response.getCode()); - } - - /** - * GetPageRedactionAnnotationsTest - * @throws ApiException - * if the Api call fails - */ - @Test - public void getPageRedactionAnnotationsTest()throws ApiException - { - String name = "PdfWithAnnotations.pdf"; - uploadFile(name); - - int pageNumber = 2; - - RedactionAnnotationsResponse response = pdfApi.getPageRedactionAnnotations(name, pageNumber, null, tempFolder); - assertEquals(200, (int)response.getCode()); - } - - /** - * PostPageRedactionAnnotationsTest - * @throws ApiException - * if the Api call fails - */ - @Test - public void postPageRedactionAnnotationsTest()throws ApiException - { - String name = "PdfWithAnnotations.pdf"; - uploadFile(name); - - int pageNumber = 1; - - Rectangle rect = new Rectangle() - .LLX(100.) - .LLY(100.) - .URX(200.) - .URY(200.); - - List flags = new ArrayList<>(); - flags.add(AnnotationFlags.DEFAULT); - - List points = new ArrayList<>(); - points.add(new Point().X(10.).Y(40.)); - points.add(new Point().X(30.).Y(40.)); - - RedactionAnnotation annotation = new RedactionAnnotation(); - annotation.setName("Name"); - annotation.setRect(rect); - annotation.setFlags(flags); - annotation.setHorizontalAlignment(HorizontalAlignment.CENTER); - annotation.setZindex(1); - annotation.setModified("01/01/2018 12:00:00.000 AM"); - annotation.setQuadPoint(points); - - List annotations = new ArrayList<>(); - annotations.add(annotation); - - AsposeResponse response = pdfApi.postPageRedactionAnnotations(name, pageNumber, annotations, null, tempFolder); - assertEquals(201, (int)response.getCode()); - } - - /** - * GetRedactionAnnotationTest - * @throws ApiException - * if the Api call fails - */ - @Test - public void getRedactionAnnotationTest()throws ApiException - { - String name = "PdfWithAnnotations.pdf"; - uploadFile(name); - - RedactionAnnotationsResponse responseAnnotations = pdfApi.getDocumentRedactionAnnotations(name, null, tempFolder); - assertEquals(200, (int)responseAnnotations.getCode()); - String annotationId = responseAnnotations.getAnnotations().getList().get(0).getId(); - - RedactionAnnotationResponse response = pdfApi.getRedactionAnnotation(name, annotationId, null, tempFolder); - assertEquals(200, (int)response.getCode()); - } - - /** - * PutRedactionAnnotationTest - * @throws ApiException - * if the Api call fails - */ - @Test - public void putRedactionAnnotationTest()throws ApiException - { - String name = "PdfWithAnnotations.pdf"; - uploadFile(name); - - Rectangle rect = new Rectangle() - .LLX(100.) - .LLY(100.) - .URX(200.) - .URY(200.); - - List flags = new ArrayList<>(); - flags.add(AnnotationFlags.DEFAULT); - - List points = new ArrayList<>(); - points.add(new Point().X(10.).Y(40.)); - points.add(new Point().X(30.).Y(40.)); - - RedactionAnnotation annotation = new RedactionAnnotation(); - annotation.setName("Name Updated"); - annotation.setRect(rect); - annotation.setFlags(flags); - annotation.setHorizontalAlignment(HorizontalAlignment.CENTER); - annotation.setZindex(1); - annotation.setModified("01/01/2018 12:02:03.000 AM"); - annotation.setQuadPoint(points); - - RedactionAnnotationsResponse responseAnnotations = pdfApi.getDocumentRedactionAnnotations(name, null, tempFolder); - assertEquals(200, (int)responseAnnotations.getCode()); - String annotationId = responseAnnotations.getAnnotations().getList().get(0).getId(); - - AsposeResponse response = pdfApi.putRedactionAnnotation(name, annotationId, annotation, null, tempFolder); - assertEquals(201, (int)response.getCode()); - } - - // Movie Annotations - - /** - * GetDocumentMovieAnnotationsTest - * @throws ApiException - * if the Api call fails - */ - @Test - public void getDocumentMovieAnnotationsTest()throws ApiException - { - String name = "PdfWithAnnotations1.pdf"; - uploadFile(name); - - MovieAnnotationsResponse response = pdfApi.getDocumentMovieAnnotations(name, null, tempFolder); - assertEquals(200, (int)response.getCode()); - } - - /** - * GetPageMovieAnnotationsTest - * @throws ApiException - * if the Api call fails - */ - @Test - public void getPageMovieAnnotationsTest()throws ApiException - { - String name = "PdfWithAnnotations1.pdf"; - uploadFile(name); - - int pageNumber = 2; - - MovieAnnotationsResponse response = pdfApi.getPageMovieAnnotations(name, pageNumber, null, tempFolder); - assertEquals(200, (int)response.getCode()); - } - - /** - * PostPageMovieAnnotationsTest - * @throws ApiException - * if the Api call fails - */ - @Test - public void postPageMovieAnnotationsTest()throws ApiException - { - String name = "PdfWithAnnotations1.pdf"; - uploadFile(name); - - int pageNumber = 1; - - Rectangle rect = new Rectangle() - .LLX(100.) - .LLY(100.) - .URX(200.) - .URY(200.); - - List flags = new ArrayList<>(); - flags.add(AnnotationFlags.DEFAULT); - - MovieAnnotation annotation = new MovieAnnotation(); - annotation.setName("Name"); - annotation.setRect(rect); - annotation.setFlags(flags); - annotation.setHorizontalAlignment(HorizontalAlignment.CENTER); - annotation.setZindex(1); - annotation.setModified("01/01/2018 12:00:00.000 AM"); - - List annotations = new ArrayList<>(); - annotations.add(annotation); - - AsposeResponse response = pdfApi.postPageMovieAnnotations(name, pageNumber, annotations, null, tempFolder); - assertEquals(201, (int)response.getCode()); - } - - /** - * GetMovieAnnotationTest - * @throws ApiException - * if the Api call fails - */ - @Test - public void getMovieAnnotationTest()throws ApiException - { - String name = "PdfWithAnnotations1.pdf"; - uploadFile(name); - - MovieAnnotationsResponse responseAnnotations = pdfApi.getDocumentMovieAnnotations(name, null, tempFolder); - assertEquals(200, (int)responseAnnotations.getCode()); - String annotationId = responseAnnotations.getAnnotations().getList().get(0).getId(); - - MovieAnnotationResponse response = pdfApi.getMovieAnnotation(name, annotationId, null, tempFolder); - assertEquals(200, (int)response.getCode()); - } - - /** - * PutMovieAnnotationTest - * @throws ApiException - * if the Api call fails - */ - @Test - public void putMovieAnnotationTest()throws ApiException - { - String name = "PdfWithAnnotations1.pdf"; - uploadFile(name); - - Rectangle rect = new Rectangle() - .LLX(100.) - .LLY(100.) - .URX(200.) - .URY(200.); - - List flags = new ArrayList<>(); - flags.add(AnnotationFlags.DEFAULT); - - MovieAnnotation annotation = new MovieAnnotation(); - annotation.setName("Name Updated"); - annotation.setRect(rect); - annotation.setFlags(flags); - annotation.setHorizontalAlignment(HorizontalAlignment.CENTER); - annotation.setZindex(1); - annotation.setModified("01/01/2018 12:02:03.000 AM"); - - MovieAnnotationsResponse responseAnnotations = pdfApi.getDocumentMovieAnnotations(name, null, tempFolder); - assertEquals(200, (int)responseAnnotations.getCode()); - String annotationId = responseAnnotations.getAnnotations().getList().get(0).getId(); - - AsposeResponse response = pdfApi.putMovieAnnotation(name, annotationId, annotation, null, tempFolder); - assertEquals(201, (int)response.getCode()); - } - - - - // Line Annotations - - /** - * GetDocumentLineAnnotationsTest - * @throws ApiException - * if the Api call fails - */ - @Test - public void getDocumentLineAnnotationsTest()throws ApiException - { - String name = "PdfWithAnnotations.pdf"; - uploadFile(name); - - LineAnnotationsResponse response = pdfApi.getDocumentLineAnnotations(name, null, tempFolder); - assertEquals(200, (int)response.getCode()); - } - - /** - * GetPageLineAnnotationsTest - * @throws ApiException - * if the Api call fails - */ - @Test - public void getPageLineAnnotationsTest()throws ApiException - { - String name = "PdfWithAnnotations.pdf"; - uploadFile(name); - - int pageNumber = 2; - - LineAnnotationsResponse response = pdfApi.getPageLineAnnotations(name, pageNumber, null, tempFolder); - assertEquals(200, (int)response.getCode()); - } - - - /** - * GetLineAnnotationTest - * @throws ApiException - * if the Api call fails - */ - @Test - public void getLineAnnotationTest()throws ApiException - { - String name = "PdfWithAnnotations.pdf"; - uploadFile(name); - - LineAnnotationsResponse responseAnnotations = pdfApi.getDocumentLineAnnotations(name, null, tempFolder); - assertEquals(200, (int)responseAnnotations.getCode()); - String annotationId = responseAnnotations.getAnnotations().getList().get(0).getId(); - - LineAnnotationResponse response = pdfApi.getLineAnnotation(name, annotationId, null, tempFolder); - assertEquals(200, (int)response.getCode()); - } - - /** - * PostPageLineAnnotationsTest - * @throws ApiException - * if the Api call fails - */ - @Test - public void postPageLineAnnotationsTest()throws ApiException - { - String name = "PdfWithAnnotations.pdf"; - uploadFile(name); - - int pageNumber = 1; - - Rectangle rect = new Rectangle() - .LLX(100.) - .LLY(100.) - .URX(200.) - .URY(200.); - - List flags = new ArrayList<>(); - flags.add(AnnotationFlags.DEFAULT); - - LineAnnotation annotation = new LineAnnotation(); - annotation.setName("Name"); - annotation.setRect(rect); - annotation.setFlags(flags); - annotation.setHorizontalAlignment(HorizontalAlignment.CENTER); - annotation.setRichText("Rich Text"); - annotation.setSubject("Subj"); - annotation.setZindex(1); - annotation.setTitle("Title"); - annotation.setStarting(new Point().X(10.).Y(10.)); - annotation.setEnding(new Point().X(100.).Y(100.)); - - List annotations = new ArrayList<>(); - annotations.add(annotation); - - AsposeResponse response = pdfApi.postPageLineAnnotations(name, pageNumber, annotations, null, tempFolder); - assertEquals(201, (int)response.getCode()); - } - - - /** - * PutLineAnnotationTest - * @throws ApiException - * if the Api call fails - */ - @Test - public void putLineAnnotationTest()throws ApiException - { - String name = "PdfWithAnnotations.pdf"; - uploadFile(name); - - Rectangle rect = new Rectangle() - .LLX(100.) - .LLY(100.) - .URX(200.) - .URY(200.); - - List flags = new ArrayList<>(); - flags.add(AnnotationFlags.DEFAULT); - - LineAnnotation annotation = new LineAnnotation(); - annotation.setName("Name Updated"); - annotation.setRect(rect); - annotation.setFlags(flags); - annotation.setHorizontalAlignment(HorizontalAlignment.CENTER); - annotation.setRichText("Rich Text Updated"); - annotation.setSubject("Subj Updated"); - annotation.setZindex(1); - annotation.setTitle("Title Updated"); - annotation.setStarting(new Point().X(10.).Y(10.)); - annotation.setEnding(new Point().X(100.).Y(100.)); - - LineAnnotationsResponse responseAnnotations = pdfApi.getDocumentLineAnnotations(name, null, tempFolder); - assertEquals(200, (int)responseAnnotations.getCode()); - String annotationId = responseAnnotations.getAnnotations().getList().get(0).getId(); - - AsposeResponse response = pdfApi.putLineAnnotation(name, annotationId, annotation, null, tempFolder); - assertEquals(201, (int)response.getCode()); - } - - // Square Annotations - - /** - * GetDocumentSquareAnnotationsTest - * @throws ApiException - * if the Api call fails - */ - @Test - public void getDocumentSquareAnnotationsTest()throws ApiException - { - String name = "PdfWithAnnotations.pdf"; - uploadFile(name); - - SquareAnnotationsResponse response = pdfApi.getDocumentSquareAnnotations(name, null, tempFolder); - assertEquals(200, (int)response.getCode()); - } - - /** - * GetPageSquareAnnotationsTest - * @throws ApiException - * if the Api call fails - */ - @Test - public void getPageSquareAnnotationsTest()throws ApiException - { - String name = "PdfWithAnnotations.pdf"; - uploadFile(name); - - int pageNumber = 2; - - SquareAnnotationsResponse response = pdfApi.getPageSquareAnnotations(name, pageNumber, null, tempFolder); - assertEquals(200, (int)response.getCode()); - } - - - /** - * GetSquareAnnotationTest - * @throws ApiException - * if the Api call fails - */ - @Test - public void getSquareAnnotationTest()throws ApiException - { - String name = "PdfWithAnnotations.pdf"; - uploadFile(name); - - SquareAnnotationsResponse responseAnnotations = pdfApi.getDocumentSquareAnnotations(name, null, tempFolder); - assertEquals(200, (int)responseAnnotations.getCode()); - String annotationId = responseAnnotations.getAnnotations().getList().get(0).getId(); - - SquareAnnotationResponse response = pdfApi.getSquareAnnotation(name, annotationId, null, tempFolder); - assertEquals(200, (int)response.getCode()); - } - - /** - * PostPageSquareAnnotationsTest - * @throws ApiException - * if the Api call fails - */ - @Test - public void postPageSquareAnnotationsTest()throws ApiException - { - String name = "PdfWithAnnotations.pdf"; - uploadFile(name); - - int pageNumber = 1; - - Rectangle rect = new Rectangle() - .LLX(100.) - .LLY(100.) - .URX(200.) - .URY(200.); - - List flags = new ArrayList<>(); - flags.add(AnnotationFlags.DEFAULT); - - SquareAnnotation annotation = new SquareAnnotation(); - annotation.setName("Name"); - annotation.setRect(rect); - annotation.setFlags(flags); - annotation.setHorizontalAlignment(HorizontalAlignment.CENTER); - annotation.setRichText("Rich Text"); - annotation.setSubject("Subj"); - annotation.setZindex(1); - annotation.setTitle("Title"); - - List annotations = new ArrayList<>(); - annotations.add(annotation); - - AsposeResponse response = pdfApi.postPageSquareAnnotations(name, pageNumber, annotations, null, tempFolder); - assertEquals(201, (int)response.getCode()); - } - - - /** - * PutSquareAnnotationTest - * @throws ApiException - * if the Api call fails - */ - @Test - public void putSquareAnnotationTest()throws ApiException - { - String name = "PdfWithAnnotations.pdf"; - uploadFile(name); - - Rectangle rect = new Rectangle() - .LLX(100.) - .LLY(100.) - .URX(200.) - .URY(200.); - - List flags = new ArrayList<>(); - flags.add(AnnotationFlags.DEFAULT); - - SquareAnnotation annotation = new SquareAnnotation(); - annotation.setName("Name Updated"); - annotation.setRect(rect); - annotation.setFlags(flags); - annotation.setHorizontalAlignment(HorizontalAlignment.CENTER); - annotation.setRichText("Rich Text Updated"); - annotation.setSubject("Subj Updated"); - annotation.setZindex(1); - annotation.setTitle("Title Updated"); - - SquareAnnotationsResponse responseAnnotations = pdfApi.getDocumentSquareAnnotations(name, null, tempFolder); - assertEquals(200, (int)responseAnnotations.getCode()); - String annotationId = responseAnnotations.getAnnotations().getList().get(0).getId(); - - AsposeResponse response = pdfApi.putSquareAnnotation(name, annotationId, annotation, null, tempFolder); - assertEquals(201, (int)response.getCode()); - } - - // Circle Annotations - - /** - * GetDocumentCircleAnnotationsTest - * @throws ApiException - * if the Api call fails - */ - @Test - public void getDocumentCircleAnnotationsTest()throws ApiException - { - String name = "PdfWithAnnotations.pdf"; - uploadFile(name); - - CircleAnnotationsResponse response = pdfApi.getDocumentCircleAnnotations(name, null, tempFolder); - assertEquals(200, (int)response.getCode()); - } - - /** - * GetPageCircleAnnotationsTest - * @throws ApiException - * if the Api call fails - */ - @Test - public void getPageCircleAnnotationsTest()throws ApiException - { - String name = "PdfWithAnnotations.pdf"; - uploadFile(name); - - int pageNumber = 2; - - CircleAnnotationsResponse response = pdfApi.getPageCircleAnnotations(name, pageNumber, null, tempFolder); - assertEquals(200, (int)response.getCode()); - } - - - /** - * GetCircleAnnotationTest - * @throws ApiException - * if the Api call fails - */ - @Test - public void getCircleAnnotationTest()throws ApiException - { - String name = "PdfWithAnnotations.pdf"; - uploadFile(name); - - CircleAnnotationsResponse responseAnnotations = pdfApi.getDocumentCircleAnnotations(name, null, tempFolder); - assertEquals(200, (int)responseAnnotations.getCode()); - String annotationId = responseAnnotations.getAnnotations().getList().get(0).getId(); - - CircleAnnotationResponse response = pdfApi.getCircleAnnotation(name, annotationId, null, tempFolder); - assertEquals(200, (int)response.getCode()); - } - - /** - * PostPageCircleAnnotationsTest - * @throws ApiException - * if the Api call fails - */ - @Test - public void postPageCircleAnnotationsTest()throws ApiException - { - String name = "PdfWithAnnotations.pdf"; - uploadFile(name); - - int pageNumber = 1; - - Rectangle rect = new Rectangle() - .LLX(100.) - .LLY(100.) - .URX(200.) - .URY(200.); - - List flags = new ArrayList<>(); - flags.add(AnnotationFlags.DEFAULT); - - CircleAnnotation annotation = new CircleAnnotation(); - annotation.setName("Name"); - annotation.setRect(rect); - annotation.setFlags(flags); - annotation.setHorizontalAlignment(HorizontalAlignment.CENTER); - annotation.setRichText("Rich Text"); - annotation.setSubject("Subj"); - annotation.setZindex(1); - annotation.setTitle("Title"); - - List annotations = new ArrayList<>(); - annotations.add(annotation); - - AsposeResponse response = pdfApi.postPageCircleAnnotations(name, pageNumber, annotations, null, tempFolder); - assertEquals(201, (int)response.getCode()); - } - - - /** - * PutCircleAnnotationTest - * @throws ApiException - * if the Api call fails - */ - @Test - public void putCircleAnnotationTest()throws ApiException - { - String name = "PdfWithAnnotations.pdf"; - uploadFile(name); - - Rectangle rect = new Rectangle() - .LLX(100.) - .LLY(100.) - .URX(200.) - .URY(200.); - - List flags = new ArrayList<>(); - flags.add(AnnotationFlags.DEFAULT); - - CircleAnnotation annotation = new CircleAnnotation(); - annotation.setName("Name Updated"); - annotation.setRect(rect); - annotation.setFlags(flags); - annotation.setHorizontalAlignment(HorizontalAlignment.CENTER); - annotation.setRichText("Rich Text Updated"); - annotation.setSubject("Subj Updated"); - annotation.setZindex(1); - annotation.setTitle("Title Updated"); - - CircleAnnotationsResponse responseAnnotations = pdfApi.getDocumentCircleAnnotations(name, null, tempFolder); - assertEquals(200, (int)responseAnnotations.getCode()); - String annotationId = responseAnnotations.getAnnotations().getList().get(0).getId(); - - AsposeResponse response = pdfApi.putCircleAnnotation(name, annotationId, annotation, null, tempFolder); - assertEquals(201, (int)response.getCode()); - } - - // Polygon Annotations - - /** - * GetDocumentPolygonAnnotationsTest - * @throws ApiException - * if the Api call fails - */ - @Test - public void getDocumentPolygonAnnotationsTest()throws ApiException - { - String name = "PdfWithAnnotations.pdf"; - uploadFile(name); - - PolygonAnnotationsResponse response = pdfApi.getDocumentPolygonAnnotations(name, null, tempFolder); - assertEquals(200, (int)response.getCode()); - } - - /** - * GetPagePolygonAnnotationsTest - * @throws ApiException - * if the Api call fails - */ - @Test - public void getPagePolygonAnnotationsTest()throws ApiException - { - String name = "PdfWithAnnotations.pdf"; - uploadFile(name); - - int pageNumber = 2; - - PolygonAnnotationsResponse response = pdfApi.getPagePolygonAnnotations(name, pageNumber, null, tempFolder); - assertEquals(200, (int)response.getCode()); - } - - - /** - * GetPolygonAnnotationTest - * @throws ApiException - * if the Api call fails - */ - @Test - public void getPolygonAnnotationTest()throws ApiException - { - String name = "PdfWithAnnotations.pdf"; - uploadFile(name); - - PolygonAnnotationsResponse responseAnnotations = pdfApi.getDocumentPolygonAnnotations(name, null, tempFolder); - assertEquals(200, (int)responseAnnotations.getCode()); - String annotationId = responseAnnotations.getAnnotations().getList().get(0).getId(); - - PolygonAnnotationResponse response = pdfApi.getPolygonAnnotation(name, annotationId, null, tempFolder); - assertEquals(200, (int)response.getCode()); - } - - /** - * PostPagePolygonAnnotationsTest - * @throws ApiException - * if the Api call fails - */ - @Test - public void postPagePolygonAnnotationsTest()throws ApiException - { - String name = "PdfWithAnnotations.pdf"; - uploadFile(name); - - int pageNumber = 1; - - Rectangle rect = new Rectangle() - .LLX(100.) - .LLY(100.) - .URX(200.) - .URY(200.); - - List vertices = new ArrayList(); - vertices.add(new Point().X(10.).Y(10.)); - vertices.add(new Point().X(20.).Y(10.)); - vertices.add(new Point().X(10.).Y(20.)); - vertices.add(new Point().X(10.).Y(10.)); - - List flags = new ArrayList<>(); - flags.add(AnnotationFlags.DEFAULT); - - PolygonAnnotation annotation = new PolygonAnnotation(); - annotation.setName("Name"); - annotation.setRect(rect); - annotation.setFlags(flags); - annotation.setHorizontalAlignment(HorizontalAlignment.CENTER); - annotation.setRichText("Rich Text"); - annotation.setSubject("Subj"); - annotation.setZindex(1); - annotation.setTitle("Title"); - annotation.setVertices(vertices); - - List annotations = new ArrayList<>(); - annotations.add(annotation); - - AsposeResponse response = pdfApi.postPagePolygonAnnotations(name, pageNumber, annotations, null, tempFolder); - assertEquals(201, (int)response.getCode()); - } - - - /** - * PutPolygonAnnotationTest - * @throws ApiException - * if the Api call fails - */ - @Test - public void putPolygonAnnotationTest()throws ApiException - { - String name = "PdfWithAnnotations.pdf"; - uploadFile(name); - - Rectangle rect = new Rectangle() - .LLX(100.) - .LLY(100.) - .URX(200.) - .URY(200.); - - List vertices = new ArrayList(); - vertices.add(new Point().X(10.).Y(10.)); - vertices.add(new Point().X(20.).Y(10.)); - vertices.add(new Point().X(10.).Y(20.)); - vertices.add(new Point().X(10.).Y(10.)); - - List flags = new ArrayList<>(); - flags.add(AnnotationFlags.DEFAULT); - - PolygonAnnotation annotation = new PolygonAnnotation(); - annotation.setName("Name Updated"); - annotation.setRect(rect); - annotation.setFlags(flags); - annotation.setHorizontalAlignment(HorizontalAlignment.CENTER); - annotation.setRichText("Rich Text Updated"); - annotation.setSubject("Subj Updated"); - annotation.setZindex(1); - annotation.setTitle("Title Updated"); - annotation.setVertices(vertices); - - PolygonAnnotationsResponse responseAnnotations = pdfApi.getDocumentPolygonAnnotations(name, null, tempFolder); - assertEquals(200, (int)responseAnnotations.getCode()); - String annotationId = responseAnnotations.getAnnotations().getList().get(0).getId(); - - AsposeResponse response = pdfApi.putPolygonAnnotation(name, annotationId, annotation, null, tempFolder); - assertEquals(201, (int)response.getCode()); - } - - // PolyLine Annotations - - /** - * GetDocumentPolyLineAnnotationsTest - * @throws ApiException - * if the Api call fails - */ - @Test - public void getDocumentPolyLineAnnotationsTest()throws ApiException - { - String name = "PdfWithAnnotations.pdf"; - uploadFile(name); - - PolyLineAnnotationsResponse response = pdfApi.getDocumentPolyLineAnnotations(name, null, tempFolder); - assertEquals(200, (int)response.getCode()); - } - - /** - * GetPagePolyLineAnnotationsTest - * @throws ApiException - * if the Api call fails - */ - @Test - public void getPagePolyLineAnnotationsTest()throws ApiException - { - String name = "PdfWithAnnotations.pdf"; - uploadFile(name); - - int pageNumber = 2; - - PolyLineAnnotationsResponse response = pdfApi.getPagePolyLineAnnotations(name, pageNumber, null, tempFolder); - assertEquals(200, (int)response.getCode()); - } - - - /** - * GetPolyLineAnnotationTest - * @throws ApiException - * if the Api call fails - */ - @Test - public void getPolyLineAnnotationTest()throws ApiException - { - String name = "PdfWithAnnotations.pdf"; - uploadFile(name); - - PolyLineAnnotationsResponse responseAnnotations = pdfApi.getDocumentPolyLineAnnotations(name, null, tempFolder); - assertEquals(200, (int)responseAnnotations.getCode()); - String annotationId = responseAnnotations.getAnnotations().getList().get(0).getId(); - - PolyLineAnnotationResponse response = pdfApi.getPolyLineAnnotation(name, annotationId, null, tempFolder); - assertEquals(200, (int)response.getCode()); - } - - /** - * PostPagePolyLineAnnotationsTest - * @throws ApiException - * if the Api call fails - */ - @Test - public void postPagePolyLineAnnotationsTest()throws ApiException - { - String name = "PdfWithAnnotations.pdf"; - uploadFile(name); - - int pageNumber = 1; - - Rectangle rect = new Rectangle() - .LLX(100.) - .LLY(100.) - .URX(200.) - .URY(200.); - - List vertices = new ArrayList(); - vertices.add(new Point().X(10.).Y(10.)); - vertices.add(new Point().X(20.).Y(10.)); - vertices.add(new Point().X(10.).Y(20.)); - vertices.add(new Point().X(10.).Y(10.)); - - List flags = new ArrayList<>(); - flags.add(AnnotationFlags.DEFAULT); - - PolyLineAnnotation annotation = new PolyLineAnnotation(); - annotation.setName("Name"); - annotation.setRect(rect); - annotation.setFlags(flags); - annotation.setHorizontalAlignment(HorizontalAlignment.CENTER); - annotation.setRichText("Rich Text"); - annotation.setSubject("Subj"); - annotation.setZindex(1); - annotation.setTitle("Title"); - annotation.setVertices(vertices); - - List annotations = new ArrayList<>(); - annotations.add(annotation); - - AsposeResponse response = pdfApi.postPagePolyLineAnnotations(name, pageNumber, annotations, null, tempFolder); - assertEquals(201, (int)response.getCode()); - } - - - /** - * PutPolyLineAnnotationTest - * @throws ApiException - * if the Api call fails - */ - @Test - public void putPolyLineAnnotationTest()throws ApiException - { - String name = "PdfWithAnnotations.pdf"; - uploadFile(name); - - Rectangle rect = new Rectangle() - .LLX(100.) - .LLY(100.) - .URX(200.) - .URY(200.); - - List vertices = new ArrayList(); - vertices.add(new Point().X(10.).Y(10.)); - vertices.add(new Point().X(20.).Y(10.)); - vertices.add(new Point().X(10.).Y(20.)); - vertices.add(new Point().X(10.).Y(10.)); - - List flags = new ArrayList<>(); - flags.add(AnnotationFlags.DEFAULT); - - PolyLineAnnotation annotation = new PolyLineAnnotation(); - annotation.setName("Name Updated"); - annotation.setRect(rect); - annotation.setFlags(flags); - annotation.setHorizontalAlignment(HorizontalAlignment.CENTER); - annotation.setRichText("Rich Text Updated"); - annotation.setSubject("Subj Updated"); - annotation.setZindex(1); - annotation.setTitle("Title Updated"); - annotation.setVertices(vertices); - - PolyLineAnnotationsResponse responseAnnotations = pdfApi.getDocumentPolyLineAnnotations(name, null, tempFolder); - assertEquals(200, (int)responseAnnotations.getCode()); - String annotationId = responseAnnotations.getAnnotations().getList().get(0).getId(); - - AsposeResponse response = pdfApi.putPolyLineAnnotation(name, annotationId, annotation, null, tempFolder); - assertEquals(201, (int)response.getCode()); - } - - // Free Text Annotations - - /** - * GetDocumentFreeTextAnnotationsTest - * @throws ApiException - * if the Api call fails - */ - @Test - public void getDocumentFreeTextAnnotationsTest()throws ApiException - { - String name = "PdfWithAnnotations.pdf"; - uploadFile(name); - - FreeTextAnnotationsResponse response = pdfApi.getDocumentFreeTextAnnotations(name, null, tempFolder); - assertEquals(200, (int)response.getCode()); - } - - /** - * GetPageFreeTextAnnotationsTest - * @throws ApiException - * if the Api call fails - */ - @Test - public void getPageFreeTextAnnotationsTest()throws ApiException - { - String name = "PdfWithAnnotations.pdf"; - uploadFile(name); - - int pageNumber = 2; - - FreeTextAnnotationsResponse response = pdfApi.getPageFreeTextAnnotations(name, pageNumber, null, tempFolder); - assertEquals(200, (int)response.getCode()); - } - - - /** - * GetFreeTextAnnotationTest - * @throws ApiException - * if the Api call fails - */ - @Test - public void getFreeTextAnnotationTest()throws ApiException - { - String name = "PdfWithAnnotations.pdf"; - uploadFile(name); - - FreeTextAnnotationsResponse responseAnnotations = pdfApi.getDocumentFreeTextAnnotations(name, null, tempFolder); - assertEquals(200, (int)responseAnnotations.getCode()); - String annotationId = responseAnnotations.getAnnotations().getList().get(0).getId(); - - FreeTextAnnotationResponse response = pdfApi.getFreeTextAnnotation(name, annotationId, null, tempFolder); - assertEquals(200, (int)response.getCode()); - } - - /** - * PostPageFreeTextAnnotationsTest - * @throws ApiException - * if the Api call fails - */ - @Test - public void postPageFreeTextAnnotationsTest()throws ApiException - { - String name = "PdfWithAnnotations.pdf"; - uploadFile(name); - - int pageNumber = 1; - - Color foregroundColor = new Color(); - foregroundColor.setA(0x00); - foregroundColor.setR(0x00); - foregroundColor.setG(0xFF); - foregroundColor.setB(0x00); - - Color backgroundColor = new Color(); - backgroundColor.setA(0x00); - backgroundColor.setR(0xFF); - backgroundColor.setG(0x00); - backgroundColor.setB(0x00); - - TextStyle textStyle = new TextStyle(); - textStyle.setFont("Arial"); - textStyle.setFontSize(12.); - textStyle.setForegroundColor(foregroundColor); - textStyle.setBackgroundColor(backgroundColor); - - Rectangle rect = new Rectangle() - .LLX(100.) - .LLY(100.) - .URX(200.) - .URY(200.); - - List flags = new ArrayList<>(); - flags.add(AnnotationFlags.DEFAULT); - - FreeTextAnnotation freeTextAnnotation = new FreeTextAnnotation(); - freeTextAnnotation.setName("Test Free Text"); - freeTextAnnotation.setTextStyle(textStyle); - freeTextAnnotation.setRect(rect); - freeTextAnnotation.setFlags(flags); - freeTextAnnotation.setHorizontalAlignment(HorizontalAlignment.CENTER); - freeTextAnnotation.setIntent(FreeTextIntent.FREETEXTTYPEWRITER); - freeTextAnnotation.setRichText("Rich Text"); - freeTextAnnotation.setSubject("Text Box Subj"); - freeTextAnnotation.setZindex(1); - freeTextAnnotation.setJustification(Justification.CENTER); - freeTextAnnotation.setTitle("Title"); - - List annotations = new ArrayList<>(); - annotations.add(freeTextAnnotation); - - AsposeResponse response = pdfApi.postPageFreeTextAnnotations(name, pageNumber, annotations, null, tempFolder); - assertEquals(201, (int)response.getCode()); - } - - - /** - * PutFreeTextAnnotationTest - * @throws ApiException - * if the Api call fails - */ - @Test - public void putFreeTextAnnotationTest()throws ApiException - { - String name = "PdfWithAnnotations.pdf"; - uploadFile(name); - - - Color foregroundColor = new Color(); - foregroundColor.setA(0x00); - foregroundColor.setR(0x00); - foregroundColor.setG(0xFF); - foregroundColor.setB(0x00); - - Color backgroundColor = new Color(); - backgroundColor.setA(0x00); - backgroundColor.setR(0xFF); - backgroundColor.setG(0x00); - backgroundColor.setB(0x00); - - TextStyle textStyle = new TextStyle(); - textStyle.setFont("Arial"); - textStyle.setFontSize(12.); - textStyle.setForegroundColor(foregroundColor); - textStyle.setBackgroundColor(backgroundColor); - - Rectangle rect = new Rectangle() - .LLX(100.) - .LLY(100.) - .URX(200.) - .URY(200.); - - List flags = new ArrayList<>(); - flags.add(AnnotationFlags.DEFAULT); - - FreeTextAnnotation freeTextAnnotation = new FreeTextAnnotation(); - freeTextAnnotation.setName("Test Free Text"); - freeTextAnnotation.setTextStyle(textStyle); - freeTextAnnotation.setRect(rect); - freeTextAnnotation.setFlags(flags); - freeTextAnnotation.setHorizontalAlignment(HorizontalAlignment.CENTER); - freeTextAnnotation.setIntent(FreeTextIntent.FREETEXTTYPEWRITER); - freeTextAnnotation.setRichText("Rich Text"); - freeTextAnnotation.setSubject("Text Box Subj"); - freeTextAnnotation.setZindex(1); - freeTextAnnotation.setJustification(Justification.CENTER); - freeTextAnnotation.setTitle("Title"); - - FreeTextAnnotationsResponse responseAnnotations = pdfApi.getDocumentFreeTextAnnotations(name, null, tempFolder); - assertEquals(200, (int)responseAnnotations.getCode()); - String annotationId = responseAnnotations.getAnnotations().getList().get(0).getId(); - - AsposeResponse response = pdfApi.putFreeTextAnnotation(name, annotationId, freeTextAnnotation, null, tempFolder); - assertEquals(201, (int)response.getCode()); - } - - - // Text Annotations - - /** - * GetDocumentTextAnnotationsTest - * @throws ApiException - * if the Api call fails - */ - @Test - public void getDocumentTextAnnotationsTest()throws ApiException - { - String name = "PdfWithAnnotations.pdf"; - uploadFile(name); - - TextAnnotationsResponse response = pdfApi.getDocumentTextAnnotations(name, null, tempFolder); - assertEquals(200, (int)response.getCode()); - } - - /** - * GetPageTextAnnotationsTest - * @throws ApiException - * if the Api call fails - */ - @Test - public void getPageTextAnnotationsTest()throws ApiException - { - String name = "PdfWithAnnotations.pdf"; - uploadFile(name); - - int pageNumber = 2; - - TextAnnotationsResponse response = pdfApi.getPageTextAnnotations(name, pageNumber, null, tempFolder); - assertEquals(200, (int)response.getCode()); - } - - - /** - * GetTextAnnotationTest - * @throws ApiException - * if the Api call fails - */ - @Test - public void getTextAnnotationTest()throws ApiException - { - String name = "PdfWithAnnotations.pdf"; - uploadFile(name); - - TextAnnotationsResponse responseAnnotations = pdfApi.getDocumentTextAnnotations(name, null, tempFolder); - assertEquals(200, (int)responseAnnotations.getCode()); - String annotationId = responseAnnotations.getAnnotations().getList().get(0).getId(); - - TextAnnotationResponse response = pdfApi.getTextAnnotation(name, annotationId, null, tempFolder); - assertEquals(200, (int)response.getCode()); - } - - /** - * PostPageTextAnnotationsTest - * @throws ApiException - * if the Api call fails - */ - @Test - public void postPageTextAnnotationsTest()throws ApiException - { - String name = "PdfWithAnnotations.pdf"; - uploadFile(name); - - int pageNumber = 1; - - Rectangle rect = new Rectangle() - .LLX(100.) - .LLY(100.) - .URX(200.) - .URY(200.); - - List flags = new ArrayList<>(); - flags.add(AnnotationFlags.DEFAULT); - - TextAnnotation textAnnotation = new TextAnnotation(); - textAnnotation.setName("Test Free Text"); - textAnnotation.setRect(rect); - textAnnotation.setFlags(flags); - textAnnotation.setHorizontalAlignment(HorizontalAlignment.CENTER); - textAnnotation.setRichText("Rich Text"); - textAnnotation.setSubject("Text Box Subj"); - textAnnotation.setZindex(1); - textAnnotation.setState(AnnotationState.UNDEFINED); - - List annotations = new ArrayList<>(); - annotations.add(textAnnotation); - - AsposeResponse response = pdfApi.postPageTextAnnotations(name, pageNumber, annotations, null, tempFolder); - assertEquals(201, (int)response.getCode()); - } - - - /** - * PutTextAnnotationTest - * @throws ApiException - * if the Api call fails - */ - @Test - public void putTextAnnotationTest()throws ApiException - { - String name = "PdfWithAnnotations.pdf"; - uploadFile(name); - - - Rectangle rect = new Rectangle() - .LLX(100.) - .LLY(100.) - .URX(200.) - .URY(200.); - - List flags = new ArrayList<>(); - flags.add(AnnotationFlags.DEFAULT); - - TextAnnotation textAnnotation = new TextAnnotation(); - textAnnotation.setName("Test Free Text"); - textAnnotation.setRect(rect); - textAnnotation.setFlags(flags); - textAnnotation.setHorizontalAlignment(HorizontalAlignment.CENTER); - textAnnotation.setRichText("Rich Text"); - textAnnotation.setSubject("Text Box Subj"); - textAnnotation.setZindex(1); - textAnnotation.setState(AnnotationState.UNDEFINED); - - TextAnnotationsResponse responseAnnotations = pdfApi.getDocumentTextAnnotations(name, null, tempFolder); - assertEquals(200, (int)responseAnnotations.getCode()); - String annotationId = responseAnnotations.getAnnotations().getList().get(0).getId(); - - AsposeResponse response = pdfApi.putTextAnnotation(name, annotationId, textAnnotation, null, tempFolder); - assertEquals(201, (int)response.getCode()); - } - - - // Highlight Annotations - - /** - * GetDocumentHighlightAnnotationsTest - * @throws ApiException - * if the Api call fails - */ - @Test - public void getDocumentHighlightAnnotationsTest()throws ApiException - { - String name = "PdfWithAnnotations.pdf"; - uploadFile(name); - - HighlightAnnotationsResponse response = pdfApi.getDocumentHighlightAnnotations(name, null, tempFolder); - assertEquals(200, (int)response.getCode()); - } - - /** - * GetPageHighlightAnnotationsTest - * @throws ApiException - * if the Api call fails - */ - @Test - public void getPageHighlightAnnotationsTest()throws ApiException - { - String name = "PdfWithAnnotations.pdf"; - uploadFile(name); - - int pageNumber = 2; - - HighlightAnnotationsResponse response = pdfApi.getPageHighlightAnnotations(name, pageNumber, null, tempFolder); - assertEquals(200, (int)response.getCode()); - } - - - /** - * GetHighlightAnnotationTest - * @throws ApiException - * if the Api call fails - */ - @Test - public void getHighlightAnnotationTest()throws ApiException - { - String name = "PdfWithAnnotations.pdf"; - uploadFile(name); - - HighlightAnnotationsResponse responseAnnotations = pdfApi.getDocumentHighlightAnnotations(name, null, tempFolder); - assertEquals(200, (int)responseAnnotations.getCode()); - String annotationId = responseAnnotations.getAnnotations().getList().get(0).getId(); - - HighlightAnnotationResponse response = pdfApi.getHighlightAnnotation(name, annotationId, null, tempFolder); - assertEquals(200, (int)response.getCode()); - } - - /** - * PostPageHighlightAnnotationsTest - * @throws ApiException - * if the Api call fails - */ - @Test - public void postPageHighlightAnnotationsTest()throws ApiException - { - String name = "PdfWithAnnotations.pdf"; - uploadFile(name); - - int pageNumber = 1; - - Rectangle rect = new Rectangle() - .LLX(100.) - .LLY(100.) - .URX(200.) - .URY(200.); - - List flags = new ArrayList<>(); - flags.add(AnnotationFlags.DEFAULT); - - List points = new ArrayList<>(); - points.add(new Point().X(10.).Y(10.)); - points.add(new Point().X(20.).Y(10.)); - points.add(new Point().X(10.).Y(20.)); - points.add(new Point().X(10.).Y(10.)); - - HighlightAnnotation annotation = new HighlightAnnotation(); - annotation.setName("Name"); - annotation.setRect(rect); - annotation.setFlags(flags); - annotation.setHorizontalAlignment(HorizontalAlignment.CENTER); - annotation.setRichText("Rich Text"); - annotation.setSubject("Subj"); - annotation.setZindex(1); - annotation.setTitle("Title"); - annotation.setQuadPoints(points); - annotation.setModified("02/02/2018 00:00:00.000 AM"); - - List annotations = new ArrayList<>(); - annotations.add(annotation); - - AsposeResponse response = pdfApi.postPageHighlightAnnotations(name, pageNumber, annotations, null, tempFolder); - assertEquals(201, (int)response.getCode()); - } - - - /** - * PutHighlightAnnotationTest - * @throws ApiException - * if the Api call fails - */ - @Test - public void putHighlightAnnotationTest()throws ApiException - { - String name = "PdfWithAnnotations.pdf"; - uploadFile(name); - - Rectangle rect = new Rectangle() - .LLX(100.) - .LLY(100.) - .URX(200.) - .URY(200.); - - List flags = new ArrayList<>(); - flags.add(AnnotationFlags.DEFAULT); - - List points = new ArrayList<>(); - points.add(new Point().X(10.).Y(10.)); - points.add(new Point().X(20.).Y(10.)); - points.add(new Point().X(10.).Y(20.)); - points.add(new Point().X(10.).Y(10.)); - - HighlightAnnotation annotation = new HighlightAnnotation(); - annotation.setName("Name Updated"); - annotation.setRect(rect); - annotation.setFlags(flags); - annotation.setHorizontalAlignment(HorizontalAlignment.CENTER); - annotation.setRichText("Rich Text Updated"); - annotation.setSubject("Subj Updated"); - annotation.setZindex(1); - annotation.setTitle("Title Updated"); - annotation.setQuadPoints(points); - annotation.setModified("02/02/2018 00:00:00.000 AM"); - - HighlightAnnotationsResponse responseAnnotations = pdfApi.getDocumentHighlightAnnotations(name, null, tempFolder); - assertEquals(200, (int)responseAnnotations.getCode()); - String annotationId = responseAnnotations.getAnnotations().getList().get(0).getId(); - - AsposeResponse response = pdfApi.putHighlightAnnotation(name, annotationId, annotation, null, tempFolder); - assertEquals(201, (int)response.getCode()); - } - - // Underline Annotations - - /** - * GetDocumentUnderlineAnnotationsTest - * @throws ApiException - * if the Api call fails - */ - @Test - public void getDocumentUnderlineAnnotationsTest()throws ApiException - { - String name = "PdfWithAnnotations.pdf"; - uploadFile(name); - - UnderlineAnnotationsResponse response = pdfApi.getDocumentUnderlineAnnotations(name, null, tempFolder); - assertEquals(200, (int)response.getCode()); - } - - /** - * GetPageUnderlineAnnotationsTest - * @throws ApiException - * if the Api call fails - */ - @Test - public void getPageUnderlineAnnotationsTest()throws ApiException - { - String name = "PdfWithAnnotations.pdf"; - uploadFile(name); - - int pageNumber = 2; - - UnderlineAnnotationsResponse response = pdfApi.getPageUnderlineAnnotations(name, pageNumber, null, tempFolder); - assertEquals(200, (int)response.getCode()); - } - - - /** - * GetUnderlineAnnotationTest - * @throws ApiException - * if the Api call fails - */ - @Test - public void getUnderlineAnnotationTest()throws ApiException - { - String name = "PdfWithAnnotations.pdf"; - uploadFile(name); - - UnderlineAnnotationsResponse responseAnnotations = pdfApi.getDocumentUnderlineAnnotations(name, null, tempFolder); - assertEquals(200, (int)responseAnnotations.getCode()); - String annotationId = responseAnnotations.getAnnotations().getList().get(0).getId(); - - UnderlineAnnotationResponse response = pdfApi.getUnderlineAnnotation(name, annotationId, null, tempFolder); - assertEquals(200, (int)response.getCode()); - } - - /** - * PostPageUnderlineAnnotationsTest - * @throws ApiException - * if the Api call fails - */ - @Test - public void postPageUnderlineAnnotationsTest()throws ApiException - { - String name = "PdfWithAnnotations.pdf"; - uploadFile(name); - - int pageNumber = 1; - - Rectangle rect = new Rectangle() - .LLX(100.) - .LLY(100.) - .URX(200.) - .URY(200.); - - List flags = new ArrayList<>(); - flags.add(AnnotationFlags.DEFAULT); - - List points = new ArrayList<>(); - points.add(new Point().X(10.).Y(10.)); - points.add(new Point().X(20.).Y(10.)); - points.add(new Point().X(10.).Y(20.)); - points.add(new Point().X(10.).Y(10.)); - - UnderlineAnnotation annotation = new UnderlineAnnotation(); - annotation.setName("Name"); - annotation.setRect(rect); - annotation.setFlags(flags); - annotation.setHorizontalAlignment(HorizontalAlignment.CENTER); - annotation.setRichText("Rich Text"); - annotation.setSubject("Subj"); - annotation.setZindex(1); - annotation.setTitle("Title"); - annotation.setQuadPoints(points); - annotation.setModified("02/02/2018 00:00:00.000 AM"); - - List annotations = new ArrayList<>(); - annotations.add(annotation); - - AsposeResponse response = pdfApi.postPageUnderlineAnnotations(name, pageNumber, annotations, null, tempFolder); - assertEquals(201, (int)response.getCode()); - } - - - /** - * PutUnderlineAnnotationTest - * @throws ApiException - * if the Api call fails - */ - @Test - public void putUnderlineAnnotationTest()throws ApiException - { - String name = "PdfWithAnnotations.pdf"; - uploadFile(name); - - Rectangle rect = new Rectangle() - .LLX(100.) - .LLY(100.) - .URX(200.) - .URY(200.); - - List flags = new ArrayList<>(); - flags.add(AnnotationFlags.DEFAULT); - - List points = new ArrayList<>(); - points.add(new Point().X(10.).Y(10.)); - points.add(new Point().X(20.).Y(10.)); - points.add(new Point().X(10.).Y(20.)); - points.add(new Point().X(10.).Y(10.)); - - UnderlineAnnotation annotation = new UnderlineAnnotation(); - annotation.setName("Name Updated"); - annotation.setRect(rect); - annotation.setFlags(flags); - annotation.setHorizontalAlignment(HorizontalAlignment.CENTER); - annotation.setRichText("Rich Text Updated"); - annotation.setSubject("Subj Updated"); - annotation.setZindex(1); - annotation.setTitle("Title Updated"); - annotation.setQuadPoints(points); - annotation.setModified("02/02/2018 00:00:00.000 AM"); - - UnderlineAnnotationsResponse responseAnnotations = pdfApi.getDocumentUnderlineAnnotations(name, null, tempFolder); - assertEquals(200, (int)responseAnnotations.getCode()); - String annotationId = responseAnnotations.getAnnotations().getList().get(0).getId(); - - AsposeResponse response = pdfApi.putUnderlineAnnotation(name, annotationId, annotation, null, tempFolder); - assertEquals(201, (int)response.getCode()); - } - - // Squiggly Annotations - - /** - * GetDocumentSquigglyAnnotationsTest - * @throws ApiException - * if the Api call fails - */ - @Test - public void getDocumentSquigglyAnnotationsTest()throws ApiException - { - String name = "PdfWithAnnotations.pdf"; - uploadFile(name); - - SquigglyAnnotationsResponse response = pdfApi.getDocumentSquigglyAnnotations(name, null, tempFolder); - assertEquals(200, (int)response.getCode()); - } - - /** - * GetPageSquigglyAnnotationsTest - * @throws ApiException - * if the Api call fails - */ - @Test - public void getPageSquigglyAnnotationsTest()throws ApiException - { - String name = "PdfWithAnnotations.pdf"; - uploadFile(name); - - int pageNumber = 2; - - SquigglyAnnotationsResponse response = pdfApi.getPageSquigglyAnnotations(name, pageNumber, null, tempFolder); - assertEquals(200, (int)response.getCode()); - } - - - /** - * GetSquigglyAnnotationTest - * @throws ApiException - * if the Api call fails - */ - @Test - public void getSquigglyAnnotationTest()throws ApiException - { - String name = "PdfWithAnnotations.pdf"; - uploadFile(name); - - SquigglyAnnotationsResponse responseAnnotations = pdfApi.getDocumentSquigglyAnnotations(name, null, tempFolder); - assertEquals(200, (int)responseAnnotations.getCode()); - String annotationId = responseAnnotations.getAnnotations().getList().get(0).getId(); - - SquigglyAnnotationResponse response = pdfApi.getSquigglyAnnotation(name, annotationId, null, tempFolder); - assertEquals(200, (int)response.getCode()); - } - - /** - * PostPageSquigglyAnnotationsTest - * @throws ApiException - * if the Api call fails - */ - @Test - public void postPageSquigglyAnnotationsTest()throws ApiException - { - String name = "PdfWithAnnotations.pdf"; - uploadFile(name); - - int pageNumber = 1; - - Rectangle rect = new Rectangle() - .LLX(100.) - .LLY(100.) - .URX(200.) - .URY(200.); - - List flags = new ArrayList<>(); - flags.add(AnnotationFlags.DEFAULT); - - List points = new ArrayList<>(); - points.add(new Point().X(10.).Y(10.)); - points.add(new Point().X(20.).Y(10.)); - points.add(new Point().X(10.).Y(20.)); - points.add(new Point().X(10.).Y(10.)); - - SquigglyAnnotation annotation = new SquigglyAnnotation(); - annotation.setName("Name"); - annotation.setRect(rect); - annotation.setFlags(flags); - annotation.setHorizontalAlignment(HorizontalAlignment.CENTER); - annotation.setRichText("Rich Text"); - annotation.setSubject("Subj"); - annotation.setZindex(1); - annotation.setTitle("Title"); - annotation.setQuadPoints(points); - annotation.setModified("02/02/2018 00:00:00.000 AM"); - - List annotations = new ArrayList<>(); - annotations.add(annotation); - - AsposeResponse response = pdfApi.postPageSquigglyAnnotations(name, pageNumber, annotations, null, tempFolder); - assertEquals(201, (int)response.getCode()); - } - - - /** - * PutSquigglyAnnotationTest - * @throws ApiException - * if the Api call fails - */ - @Test - public void putSquigglyAnnotationTest()throws ApiException - { - String name = "PdfWithAnnotations.pdf"; - uploadFile(name); - - Rectangle rect = new Rectangle() - .LLX(100.) - .LLY(100.) - .URX(200.) - .URY(200.); - - List flags = new ArrayList<>(); - flags.add(AnnotationFlags.DEFAULT); - - List points = new ArrayList<>(); - points.add(new Point().X(10.).Y(10.)); - points.add(new Point().X(20.).Y(10.)); - points.add(new Point().X(10.).Y(20.)); - points.add(new Point().X(10.).Y(10.)); - - SquigglyAnnotation annotation = new SquigglyAnnotation(); - annotation.setName("Name Updated"); - annotation.setRect(rect); - annotation.setFlags(flags); - annotation.setHorizontalAlignment(HorizontalAlignment.CENTER); - annotation.setRichText("Rich Text Updated"); - annotation.setSubject("Subj Updated"); - annotation.setZindex(1); - annotation.setTitle("Title Updated"); - annotation.setQuadPoints(points); - annotation.setModified("02/02/2018 00:00:00.000 AM"); - - SquigglyAnnotationsResponse responseAnnotations = pdfApi.getDocumentSquigglyAnnotations(name, null, tempFolder); - assertEquals(200, (int)responseAnnotations.getCode()); - String annotationId = responseAnnotations.getAnnotations().getList().get(0).getId(); - - AsposeResponse response = pdfApi.putSquigglyAnnotation(name, annotationId, annotation, null, tempFolder); - assertEquals(201, (int)response.getCode()); - } - - // StrikeOut Annotations - - /** - * GetDocumentStrikeOutAnnotationsTest - * @throws ApiException - * if the Api call fails - */ - @Test - public void getDocumentStrikeOutAnnotationsTest()throws ApiException - { - String name = "PdfWithAnnotations.pdf"; - uploadFile(name); - - StrikeOutAnnotationsResponse response = pdfApi.getDocumentStrikeOutAnnotations(name, null, tempFolder); - assertEquals(200, (int)response.getCode()); - } - - /** - * GetPageStrikeOutAnnotationsTest - * @throws ApiException - * if the Api call fails - */ - @Test - public void getPageStrikeOutAnnotationsTest()throws ApiException - { - String name = "PdfWithAnnotations.pdf"; - uploadFile(name); - - int pageNumber = 2; - - StrikeOutAnnotationsResponse response = pdfApi.getPageStrikeOutAnnotations(name, pageNumber, null, tempFolder); - assertEquals(200, (int)response.getCode()); - } - - - /** - * GetStrikeOutAnnotationTest - * @throws ApiException - * if the Api call fails - */ - @Test - public void getStrikeOutAnnotationTest()throws ApiException - { - String name = "PdfWithAnnotations.pdf"; - uploadFile(name); - - StrikeOutAnnotationsResponse responseAnnotations = pdfApi.getDocumentStrikeOutAnnotations(name, null, tempFolder); - assertEquals(200, (int)responseAnnotations.getCode()); - String annotationId = responseAnnotations.getAnnotations().getList().get(0).getId(); - - StrikeOutAnnotationResponse response = pdfApi.getStrikeOutAnnotation(name, annotationId, null, tempFolder); - assertEquals(200, (int)response.getCode()); - } - - /** - * PostPageStrikeOutAnnotationsTest - * @throws ApiException - * if the Api call fails - */ - @Test - public void postPageStrikeOutAnnotationsTest()throws ApiException - { - String name = "PdfWithAnnotations.pdf"; - uploadFile(name); - - int pageNumber = 1; - - Rectangle rect = new Rectangle() - .LLX(100.) - .LLY(100.) - .URX(200.) - .URY(200.); - - List flags = new ArrayList<>(); - flags.add(AnnotationFlags.DEFAULT); - - List points = new ArrayList<>(); - points.add(new Point().X(10.).Y(10.)); - points.add(new Point().X(20.).Y(10.)); - points.add(new Point().X(10.).Y(20.)); - points.add(new Point().X(10.).Y(10.)); - - StrikeOutAnnotation annotation = new StrikeOutAnnotation(); - annotation.setName("Name"); - annotation.setRect(rect); - annotation.setFlags(flags); - annotation.setHorizontalAlignment(HorizontalAlignment.CENTER); - annotation.setRichText("Rich Text"); - annotation.setSubject("Subj"); - annotation.setZindex(1); - annotation.setTitle("Title"); - annotation.setQuadPoints(points); - annotation.setModified("02/02/2018 00:00:00.000 AM"); - - List annotations = new ArrayList<>(); - annotations.add(annotation); - - AsposeResponse response = pdfApi.postPageStrikeOutAnnotations(name, pageNumber, annotations, null, tempFolder); - assertEquals(201, (int)response.getCode()); - } - - - /** - * PutStrikeOutAnnotationTest - * @throws ApiException - * if the Api call fails - */ - @Test - public void putStrikeOutAnnotationTest()throws ApiException - { - String name = "PdfWithAnnotations.pdf"; - uploadFile(name); - - Rectangle rect = new Rectangle() - .LLX(100.) - .LLY(100.) - .URX(200.) - .URY(200.); - - List flags = new ArrayList<>(); - flags.add(AnnotationFlags.DEFAULT); - - List points = new ArrayList<>(); - points.add(new Point().X(10.).Y(10.)); - points.add(new Point().X(20.).Y(10.)); - points.add(new Point().X(10.).Y(20.)); - points.add(new Point().X(10.).Y(10.)); - - StrikeOutAnnotation annotation = new StrikeOutAnnotation(); - annotation.setName("Name Updated"); - annotation.setRect(rect); - annotation.setFlags(flags); - annotation.setHorizontalAlignment(HorizontalAlignment.CENTER); - annotation.setRichText("Rich Text Updated"); - annotation.setSubject("Subj Updated"); - annotation.setZindex(1); - annotation.setTitle("Title Updated"); - annotation.setQuadPoints(points); - annotation.setModified("02/02/2018 00:00:00.000 AM"); - - StrikeOutAnnotationsResponse responseAnnotations = pdfApi.getDocumentStrikeOutAnnotations(name, null, tempFolder); - assertEquals(200, (int)responseAnnotations.getCode()); - String annotationId = responseAnnotations.getAnnotations().getList().get(0).getId(); - - AsposeResponse response = pdfApi.putStrikeOutAnnotation(name, annotationId, annotation, null, tempFolder); - assertEquals(201, (int)response.getCode()); - } - - // Caret Annotations - - /** - * GetDocumentCaretAnnotationsTest - * @throws ApiException - * if the Api call fails - */ - @Test - public void getDocumentCaretAnnotationsTest()throws ApiException - { - String name = "PdfWithAnnotations.pdf"; - uploadFile(name); - - CaretAnnotationsResponse response = pdfApi.getDocumentCaretAnnotations(name, null, tempFolder); - assertEquals(200, (int)response.getCode()); - } - - /** - * GetPageCaretAnnotationsTest - * @throws ApiException - * if the Api call fails - */ - @Test - public void getPageCaretAnnotationsTest()throws ApiException - { - String name = "PdfWithAnnotations.pdf"; - uploadFile(name); - - int pageNumber = 2; - - CaretAnnotationsResponse response = pdfApi.getPageCaretAnnotations(name, pageNumber, null, tempFolder); - assertEquals(200, (int)response.getCode()); - } - - - /** - * GetCaretAnnotationTest - * @throws ApiException - * if the Api call fails - */ - @Test - public void getCaretAnnotationTest()throws ApiException - { - String name = "PdfWithAnnotations.pdf"; - uploadFile(name); - - CaretAnnotationsResponse responseAnnotations = pdfApi.getDocumentCaretAnnotations(name, null, tempFolder); - assertEquals(200, (int)responseAnnotations.getCode()); - String annotationId = responseAnnotations.getAnnotations().getList().get(0).getId(); - - CaretAnnotationResponse response = pdfApi.getCaretAnnotation(name, annotationId, null, tempFolder); - assertEquals(200, (int)response.getCode()); - } - - /** - * PostPageCaretAnnotationsTest - * @throws ApiException - * if the Api call fails - */ - @Test - public void postPageCaretAnnotationsTest()throws ApiException - { - String name = "PdfWithAnnotations.pdf"; - uploadFile(name); - - int pageNumber = 1; - - Rectangle rect = new Rectangle() - .LLX(100.) - .LLY(100.) - .URX(200.) - .URY(200.); - - List flags = new ArrayList<>(); - flags.add(AnnotationFlags.DEFAULT); - - CaretAnnotation annotation = new CaretAnnotation(); - annotation.setName("Name"); - annotation.setRect(rect); - annotation.setFlags(flags); - annotation.setHorizontalAlignment(HorizontalAlignment.CENTER); - annotation.setRichText("Rich Text"); - annotation.setSubject("Subj"); - annotation.setZindex(1); - annotation.setTitle("Title"); - annotation.setFrame(rect); - annotation.setModified("02/02/2018 00:00:00.000 AM"); - - List annotations = new ArrayList<>(); - annotations.add(annotation); - - AsposeResponse response = pdfApi.postPageCaretAnnotations(name, pageNumber, annotations, null, tempFolder); - assertEquals(201, (int)response.getCode()); - } - - - /** - * PutCaretAnnotationTest - * @throws ApiException - * if the Api call fails - */ - @Test - public void putCaretAnnotationTest()throws ApiException - { - String name = "PdfWithAnnotations.pdf"; - uploadFile(name); - - Rectangle rect = new Rectangle() - .LLX(100.) - .LLY(100.) - .URX(200.) - .URY(200.); - - List flags = new ArrayList<>(); - flags.add(AnnotationFlags.DEFAULT); - - - CaretAnnotation annotation = new CaretAnnotation(); - annotation.setName("Name Updated"); - annotation.setRect(rect); - annotation.setFlags(flags); - annotation.setHorizontalAlignment(HorizontalAlignment.CENTER); - annotation.setRichText("Rich Text Updated"); - annotation.setSubject("Subj Updated"); - annotation.setZindex(1); - annotation.setTitle("Title Updated"); - annotation.setFrame(rect); - annotation.setModified("02/02/2018 00:00:00.000 AM"); - - CaretAnnotationsResponse responseAnnotations = pdfApi.getDocumentCaretAnnotations(name, null, tempFolder); - assertEquals(200, (int)responseAnnotations.getCode()); - String annotationId = responseAnnotations.getAnnotations().getList().get(0).getId(); - - AsposeResponse response = pdfApi.putCaretAnnotation(name, annotationId, annotation, null, tempFolder); - assertEquals(201, (int)response.getCode()); - } - - - // Ink Annotations - - /** - * GetDocumentInkAnnotationsTest - * @throws ApiException - * if the Api call fails - */ - @Test - public void getDocumentInkAnnotationsTest()throws ApiException - { - String name = "PdfWithAnnotations.pdf"; - uploadFile(name); - - InkAnnotationsResponse response = pdfApi.getDocumentInkAnnotations(name, null, tempFolder); - assertEquals(200, (int)response.getCode()); - } - - /** - * GetPageInkAnnotationsTest - * @throws ApiException - * if the Api call fails - */ - @Test - public void getPageInkAnnotationsTest()throws ApiException - { - String name = "PdfWithAnnotations.pdf"; - uploadFile(name); - - int pageNumber = 2; - - InkAnnotationsResponse response = pdfApi.getPageInkAnnotations(name, pageNumber, null, tempFolder); - assertEquals(200, (int)response.getCode()); - } - - - /** - * GetInkAnnotationTest - * @throws ApiException - * if the Api call fails - */ - @Test - public void getInkAnnotationTest()throws ApiException - { - String name = "PdfWithAnnotations.pdf"; - uploadFile(name); - - InkAnnotationsResponse responseAnnotations = pdfApi.getDocumentInkAnnotations(name, null, tempFolder); - assertEquals(200, (int)responseAnnotations.getCode()); - String annotationId = responseAnnotations.getAnnotations().getList().get(0).getId(); - - InkAnnotationResponse response = pdfApi.getInkAnnotation(name, annotationId, null, tempFolder); - assertEquals(200, (int)response.getCode()); - } - - /** - * PostPageInkAnnotationsTest - * @throws ApiException - * if the Api call fails - */ - @Test - public void postPageInkAnnotationsTest()throws ApiException - { - String name = "PdfWithAnnotations.pdf"; - uploadFile(name); - - int pageNumber = 1; - - Rectangle rect = new Rectangle() - .LLX(100.) - .LLY(100.) - .URX(200.) - .URY(200.); - - List> inkList = new ArrayList<>(); - - List inks1 = new ArrayList<>(); - inks1.add(new Point().X(10.).Y(40.)); - inks1.add(new Point().X(30.).Y(40.)); - - List inks2 = new ArrayList<>(); - inks2.add(new Point().X(10.).Y(20.)); - inks2.add(new Point().X(20.).Y(20.)); - inks2.add(new Point().X(30.).Y(20.)); - - inkList.add(inks1); - inkList.add(inks2); - - List flags = new ArrayList<>(); - flags.add(AnnotationFlags.DEFAULT); - - InkAnnotation annotation = new InkAnnotation(); - annotation.setName("Name"); - annotation.setRect(rect); - annotation.setFlags(flags); - annotation.setHorizontalAlignment(HorizontalAlignment.CENTER); - annotation.setRichText("Rich Text"); - annotation.setSubject("Subj"); - annotation.setZindex(1); - annotation.setTitle("Title"); - annotation.setInkList(inkList); - annotation.setCapStyle(CapStyle.ROUNDED); - annotation.setModified("02/02/2018 00:00:00.000 AM"); - - List annotations = new ArrayList<>(); - annotations.add(annotation); - - AsposeResponse response = pdfApi.postPageInkAnnotations(name, pageNumber, annotations, null, tempFolder); - assertEquals(201, (int)response.getCode()); - } - - - /** - * PutInkAnnotationTest - * @throws ApiException - * if the Api call fails - */ - @Test - public void putInkAnnotationTest()throws ApiException - { - String name = "PdfWithAnnotations.pdf"; - uploadFile(name); - - Rectangle rect = new Rectangle() - .LLX(100.) - .LLY(100.) - .URX(200.) - .URY(200.); - - List> inkList = new ArrayList<>(); - - List inks1 = new ArrayList<>(); - inks1.add(new Point().X(10.).Y(40.)); - inks1.add(new Point().X(30.).Y(40.)); - - List inks2 = new ArrayList<>(); - inks2.add(new Point().X(10.).Y(20.)); - inks2.add(new Point().X(20.).Y(20.)); - inks2.add(new Point().X(30.).Y(20.)); - - inkList.add(inks1); - inkList.add(inks2); - - List flags = new ArrayList<>(); - flags.add(AnnotationFlags.DEFAULT); - - - InkAnnotation annotation = new InkAnnotation(); - annotation.setName("Name Updated"); - annotation.setRect(rect); - annotation.setFlags(flags); - annotation.setHorizontalAlignment(HorizontalAlignment.CENTER); - annotation.setRichText("Rich Text Updated"); - annotation.setSubject("Subj Updated"); - annotation.setZindex(1); - annotation.setTitle("Title Updated"); - annotation.setInkList(inkList); - annotation.setCapStyle(CapStyle.ROUNDED); - annotation.setModified("02/02/2018 00:00:00.000 AM"); - - InkAnnotationsResponse responseAnnotations = pdfApi.getDocumentInkAnnotations(name, null, tempFolder); - assertEquals(200, (int)responseAnnotations.getCode()); - String annotationId = responseAnnotations.getAnnotations().getList().get(0).getId(); - - AsposeResponse response = pdfApi.putInkAnnotation(name, annotationId, annotation, null, tempFolder); - assertEquals(201, (int)response.getCode()); - } - - // Popup Annotations - - /** - * GetDocumentPopupAnnotationsTest - * @throws ApiException - * if the Api call fails - */ - @Test - public void getDocumentPopupAnnotationsTest()throws ApiException - { - String name = "PdfWithAnnotations.pdf"; - uploadFile(name); - - PopupAnnotationsResponse response = pdfApi.getDocumentPopupAnnotations(name, null, tempFolder); - assertEquals(200, (int)response.getCode()); - } - - /** - * GetDocumentPopupAnnotationsByParentTest - * @throws ApiException - * if the Api call fails - */ - @Test - public void getDocumentPopupAnnotationsByParentTest()throws ApiException - { - String name = "PdfWithAnnotations.pdf"; - uploadFile(name); - - String parentId = "GI5TAOZRGU3CYNZSGEWDCNZWFQ3TGOI"; - - PopupAnnotationsResponse response = pdfApi.getDocumentPopupAnnotationsByParent(name, parentId, null, tempFolder); - assertEquals(200, (int)response.getCode()); - } - - /** - * GetPagePopupAnnotationsTest - * @throws ApiException - * if the Api call fails - */ - @Test - public void getPagePopupAnnotationsTest()throws ApiException - { - String name = "PdfWithAnnotations.pdf"; - uploadFile(name); - - int pageNumber = 2; - - PopupAnnotationsResponse response = pdfApi.getPagePopupAnnotations(name, pageNumber, null, tempFolder); - assertEquals(200, (int)response.getCode()); - } - - /** - * GetPopupAnnotationTest - * @throws ApiException - * if the Api call fails - */ - @Test - public void getPopupAnnotationTest()throws ApiException - { - String name = "PdfWithAnnotations.pdf"; - uploadFile(name); - - PopupAnnotationsResponse responseAnnotations = pdfApi.getDocumentPopupAnnotations(name, null, tempFolder); - assertEquals(200, (int)responseAnnotations.getCode()); - String annotationId = responseAnnotations.getAnnotations().getList().get(0).getId(); - - PopupAnnotationResponse response = pdfApi.getPopupAnnotation(name, annotationId, null, tempFolder); - assertEquals(200, (int)response.getCode()); - } - - /** - * PostPopupAnnotationTest - * @throws ApiException - * if the Api call fails - */ - @Test - public void postPopupAnnotationTest()throws ApiException - { - String name = "PdfWithAnnotations.pdf"; - uploadFile(name); - - String parentId = "GI5TCMR3GE2TQLBSGM3CYMJYGUWDENRV"; - - Rectangle rect = new Rectangle() - .LLX(100.) - .LLY(100.) - .URX(200.) - .URY(200.); - - List flags = new ArrayList<>(); - flags.add(AnnotationFlags.DEFAULT); - - PopupAnnotation annotation = new PopupAnnotation(); - annotation.setName("Name"); - annotation.setRect(rect); - annotation.setFlags(flags); - annotation.setHorizontalAlignment(HorizontalAlignment.CENTER); - annotation.setZindex(1); - annotation.setModified("02/02/2018 00:00:00.000 AM"); - - - AsposeResponse response = pdfApi.postPopupAnnotation(name, parentId, annotation, null, tempFolder); - assertEquals(201, (int)response.getCode()); - } - - - /** - * PutPopupAnnotationTest - * @throws ApiException - * if the Api call fails - */ - @Test - public void putPopupAnnotationTest()throws ApiException - { - String name = "PdfWithAnnotations.pdf"; - uploadFile(name); - - Rectangle rect = new Rectangle() - .LLX(100.) - .LLY(100.) - .URX(200.) - .URY(200.); - - List flags = new ArrayList<>(); - flags.add(AnnotationFlags.DEFAULT); - - - PopupAnnotation annotation = new PopupAnnotation(); - annotation.setName("Name Updated"); - annotation.setRect(rect); - annotation.setFlags(flags); - annotation.setHorizontalAlignment(HorizontalAlignment.CENTER); - annotation.setZindex(1); - annotation.setModified("02/02/2018 00:00:00.000 AM"); - - PopupAnnotationsResponse responseAnnotations = pdfApi.getDocumentPopupAnnotations(name, null, tempFolder); - assertEquals(200, (int)responseAnnotations.getCode()); - String annotationId = responseAnnotations.getAnnotations().getList().get(0).getId(); - - AsposeResponse response = pdfApi.putPopupAnnotation(name, annotationId, annotation, null, tempFolder); - assertEquals(201, (int)response.getCode()); - } - - //Append Tests - - /** - * PostAppendDocumentUsingQueryParams Test - * @throws ApiException - * if the Api call fails - */ - - @Test - public void postAppendDocumentUsingQueryParamsTest() throws ApiException - { - String name = "PdfWithImages2.pdf"; - String appendFileName = "4pages.pdf"; - - this.uploadFile(name); - this.uploadFile(appendFileName); - - int startPage = 2; - int endPage = 4; - - DocumentResponse response = this.pdfApi.postAppendDocument(name, null, this.tempFolder + '/' + appendFileName, startPage, endPage, null, this.tempFolder); - assertEquals(200, (int)response.getCode()); - } - - /** - * PostAppendDocumentUsingBodyParams Test - * @throws ApiException - * if the Api call fails - */ - - @Test - public void postAppendDocumentUsingBodyParamsTest() throws ApiException - { - String name = "PdfWithImages2.pdf"; - String appendFileName = "4pages.pdf"; - - this.uploadFile(name); - this.uploadFile(appendFileName); - - AppendDocument appendDocument = new AppendDocument(); - appendDocument.setDocument(this.tempFolder + '/' + appendFileName); - appendDocument.setStartPage(2); - appendDocument.setEndPage(4); - - DocumentResponse response = this.pdfApi.postAppendDocument(name, appendDocument, null, null, null, null, this.tempFolder); - assertEquals(200, (int)response.getCode()); - } - - - //Attachments Tests - - /** - * GetDocumentAttachmentByIndex Test - * @throws ApiException - * if the Api call fails - */ - - @Test - public void getDocumentAttachmentByIndexTest() throws ApiException - { - String name = "PdfWithEmbeddedFiles.pdf"; - this.uploadFile(name); - - int attachmentIndex = 1; - - AttachmentResponse response = this.pdfApi.getDocumentAttachmentByIndex(name, attachmentIndex, null, this.tempFolder); - assertEquals(200, (int)response.getCode()); - } - - /** - * GetDocumentAttachments Test - * @throws ApiException - * if the Api call fails - */ - - @Test - public void getDocumentAttachmentsTest() throws ApiException - { - String name = "PdfWithEmbeddedFiles.pdf"; - this.uploadFile(name); - - AttachmentsResponse response = this.pdfApi.getDocumentAttachments(name, null, this.tempFolder); - assertEquals(200, (int)response.getCode()); - } - - /** - * GetDownloadDocumentAttachmentByIndex Test - * @throws ApiException - * if the Api call fails - */ - - @Test - public void getDownloadDocumentAttachmentByIndexTest() throws ApiException - { - String name = "PdfWithEmbeddedFiles.pdf"; - this.uploadFile(name); - - int attachmentIndex = 1; - - File response = this.pdfApi.getDownloadDocumentAttachmentByIndex(name, attachmentIndex, null, this.tempFolder); - assertNotNull(response); - } - - // Convert Tests - - /** - * GetPdfInStorageToDoc Test - * @throws ApiException - * if the Api call fails - */ - - @Test - public void getPdfInStorageToDocTest() throws ApiException - { - String name = "4pages.pdf"; - this.uploadFile(name); - String folder = this.tempFolder; - - File response = this.pdfApi.getPdfInStorageToDoc(name, null, null, null, null, null, null, null, null, folder, null); - assertNotNull(response); - } - - /** - * PutPdfInStorageToDoc Test - * @throws ApiException - * if the Api call fails - */ - - @Test - public void putPdfInStorageToDocTest() throws ApiException - { - String name = "4pages.pdf"; - this.uploadFile(name); - String folder = this.tempFolder; - String resFileName = "result.doc"; - - AsposeResponse response = this.pdfApi.putPdfInStorageToDoc(name, this.tempFolder + '/' + resFileName, null, null, null, null, null, null, null, null, folder, null); - assertEquals(201, (int)response.getCode()); - } - - /** - * PutPdfInRequestToDoc Test - * @throws ApiException - * if the Api call fails - */ - - @Test - public void putPdfInRequestToDocTest() throws ApiException - { - String name = "4pages.pdf"; - File file = new File(testDataFolder + "/" + name); - String resFileName = "result.doc"; - - AsposeResponse response = this.pdfApi.putPdfInRequestToDoc(this.tempFolder + '/' + resFileName, null, null, null, null, null, null, null, null, null, file); - assertEquals(201, (int)response.getCode()); - } - - /** - * GetPdfInStorageToPdfA Test - * @throws ApiException - * if the Api call fails - */ - - @Test - public void getPdfInStorageToPdfATest() throws ApiException - { - String name = "4pages.pdf"; - this.uploadFile(name); - - String type = PdfAType.PDFA1A.toString(); - String folder = this.tempFolder; - - - File response = this.pdfApi.getPdfInStorageToPdfA(name, type, folder, null); - assertNotNull(response); - } - - /** - * PutPdfInStorageToPdfA Test - * @throws ApiException - * if the Api call fails - */ - - @Test - public void putPdfInStorageToPdfATest() throws ApiException - { - String name = "4pages.pdf"; - this.uploadFile(name); - - String type = PdfAType.PDFA1A.toString(); - String folder = this.tempFolder; - String resFileName = "result.pdf"; - - AsposeResponse response = this.pdfApi.putPdfInStorageToPdfA(name, this.tempFolder + '/' + resFileName, type, folder, null); - assertEquals(201, (int)response.getCode()); - } - - /** - * PutPdfInRequestToPdfA Test - * @throws ApiException - * if the Api call fails - */ - - @Test - public void putPdfInRequestToPdfATest() throws ApiException - { - String name = "4pages.pdf"; - File file = new File(testDataFolder + "/" + name); - String type = PdfAType.PDFA1A.toString(); - String resFileName = "result.pdf"; - - AsposeResponse response = this.pdfApi.putPdfInRequestToPdfA(this.tempFolder + '/' + resFileName, type, null, file); - assertEquals(201, (int)response.getCode()); - } - - /** - * GetPdfInStorageToTiff Test - * @throws ApiException - * if the Api call fails - */ - - @Test - public void getPdfInStorageToTiffTest() throws ApiException - { - String name = "4pages.pdf"; - this.uploadFile(name); - - String folder = this.tempFolder; - - - File response = this.pdfApi.getPdfInStorageToTiff(name, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, folder, null); - assertNotNull(response); - } - - /** - * PutPdfInStorageToTiff Test - * @throws ApiException - * if the Api call fails - */ - - @Test - public void putPdfInStorageToTiffTest() throws ApiException - { - String name = "4pages.pdf"; - this.uploadFile(name); - - String folder = this.tempFolder; - String resFileName = "result.tiff"; - - AsposeResponse response = this.pdfApi.putPdfInStorageToTiff(name, this.tempFolder + '/' + resFileName, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, folder, null); - assertEquals(201, (int)response.getCode()); - } - - /** - * PutPdfInRequestToTiff Test - * @throws ApiException - * if the Api call fails - */ - - @Test - public void putPdfInRequestToTiffTest() throws ApiException - { - String name = "4pages.pdf"; - File file = new File(testDataFolder + "/" + name); - String resFileName = "result.tiff"; - - AsposeResponse response = this.pdfApi.putPdfInRequestToTiff(this.tempFolder + '/' + resFileName, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, file); - assertEquals(201, (int)response.getCode()); - } - - /** - * GetPdfInStorageToSvg Test - * @throws ApiException - * if the Api call fails - */ - - @Test - public void getPdfInStorageToSvgTest() throws ApiException - { - String name = "4pages.pdf"; - this.uploadFile(name); - - String folder = this.tempFolder; - - - File response = this.pdfApi.getPdfInStorageToSvg(name, null, folder, null); - assertNotNull(response); - } - - /** - * PutPdfInStorageToSvg Test - * @throws ApiException - * if the Api call fails - */ - - @Test - public void putPdfInStorageToSvgTest() throws ApiException - { - String name = "4pages.pdf"; - this.uploadFile(name); - - String folder = this.tempFolder; - String resFileName = "result.svg"; - - AsposeResponse response = this.pdfApi.putPdfInStorageToSvg(name, this.tempFolder + '/' + resFileName, folder, null); - assertEquals(201, (int)response.getCode()); - } - - /** - * PutPdfInRequestToSvg Test - * @throws ApiException - * if the Api call fails - */ - - @Test - public void putPdfInRequestToSvgTest() throws ApiException - { - String name = "4pages.pdf"; - File file = new File(testDataFolder + "/" + name); - String resFileName = "result.svg"; - - AsposeResponse response = this.pdfApi.putPdfInRequestToSvg(this.tempFolder + '/' + resFileName, null, file); - assertEquals(201, (int)response.getCode()); - } - - /** - * GetPdfInStorageToXps Test - * @throws ApiException - * if the Api call fails - */ - - @Test - public void getPdfInStorageToXpsTest() throws ApiException - { - String name = "4pages.pdf"; - this.uploadFile(name); - - String folder = this.tempFolder; - - - File response = this.pdfApi.getPdfInStorageToXps(name, folder, null); - assertNotNull(response); - } - - /** - * PutPdfInStorageToXps Test - * @throws ApiException - * if the Api call fails - */ - - @Test - public void putPdfInStorageToXpsTest() throws ApiException - { - String name = "4pages.pdf"; - this.uploadFile(name); - - String folder = this.tempFolder; - String resFileName = "result.xps"; - - AsposeResponse response = this.pdfApi.putPdfInStorageToXps(name, this.tempFolder + '/' + resFileName, folder, null); - assertEquals(201, (int)response.getCode()); - } - - /** - * PutPdfInRequestToXps Test - * @throws ApiException - * if the Api call fails - */ - - @Test - public void putPdfInRequestToXpsTest() throws ApiException - { - String name = "4pages.pdf"; - File file = new File(testDataFolder + "/" + name); - String resFileName = "result.xps"; - - AsposeResponse response = this.pdfApi.putPdfInRequestToXps(this.tempFolder + '/' + resFileName, null , file); - assertEquals(201, (int)response.getCode()); - } - - /** - * GetPdfInStorageToXls Test - * @throws ApiException - * if the Api call fails - */ - - @Test - public void getPdfInStorageToXlsTest() throws ApiException - { - String name = "4pages.pdf"; - this.uploadFile(name); - - String folder = this.tempFolder; - - - File response = this.pdfApi.getPdfInStorageToXls(name, null, null, null, null, folder, null); - assertNotNull(response); - } - - /** - * PutPdfInStorageToXls Test - * @throws ApiException - * if the Api call fails - */ - - @Test - public void putPdfInStorageToXlsTest() throws ApiException - { - String name = "4pages.pdf"; - this.uploadFile(name); - - String folder = this.tempFolder; - String resFileName = "result.xls"; - - AsposeResponse response = this.pdfApi.putPdfInStorageToXls(name, this.tempFolder + '/' + resFileName, null, null, null, null, folder, null); - assertEquals(201, (int)response.getCode()); - } - - /** - * PutPdfInRequestToXls Test - * @throws ApiException - * if the Api call fails - */ - - @Test - public void putPdfInRequestToXlsTest() throws ApiException - { - String name = "4pages.pdf"; - File file = new File(testDataFolder + "/" + name); - String resFileName = "result.xls"; - - AsposeResponse response = this.pdfApi.putPdfInRequestToXls(this.tempFolder + '/' + resFileName, null, null, null, null, null , file); - assertEquals(201, (int)response.getCode()); - } - - /** - * GetPdfInStorageToXlsx Test - * @throws ApiException - * if the Api call fails - */ - - @Test - public void getPdfInStorageToXlsxTest() throws ApiException - { - String name = "4pages.pdf"; - this.uploadFile(name); - - String folder = this.tempFolder; - - - File response = this.pdfApi.getPdfInStorageToXlsx(name, null, null, null, null, folder, null); - assertNotNull(response); - } - - /** - * PutPdfInStorageToXlsx Test - * @throws ApiException - * if the Api call fails - */ - - @Test - public void putPdfInStorageToXlsxTest() throws ApiException - { - String name = "4pages.pdf"; - this.uploadFile(name); - - String folder = this.tempFolder; - String resFileName = "result.xlsx"; - - AsposeResponse response = this.pdfApi.putPdfInStorageToXlsx(name, this.tempFolder + '/' + resFileName, null, null, null, null, folder, null); - assertEquals(201, (int)response.getCode()); - } - - /** - * PutPdfInRequestToXlsx Test - * @throws ApiException - * if the Api call fails - */ - - @Test - public void putPdfInRequestToXlsxTest() throws ApiException - { - String name = "4pages.pdf"; - File file = new File(testDataFolder + "/" + name); - String resFileName = "result.xlsx"; - - AsposeResponse response = this.pdfApi.putPdfInRequestToXlsx(this.tempFolder + '/' + resFileName, null, null, null, null, null , file); - assertEquals(201, (int)response.getCode()); - } - - - /** - * GetPdfInStorageToHtml Test - * @throws ApiException - * if the Api call fails - */ - - @Test - public void getPdfInStorageToHtmlTest() throws ApiException - { - String name = "4pages.pdf"; - this.uploadFile(name); - - String folder = this.tempFolder; - - - File response = this.pdfApi.getPdfInStorageToHtml(name, null, null, null, null, null, null, null, null, - null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, folder, null); - assertNotNull(response); - } - - /** - * PutPdfInStorageToHtml Test - * @throws ApiException - * if the Api call fails - */ - - @Test - public void putPdfInStorageToHtmlTest() throws ApiException - { - String name = "4pages.pdf"; - this.uploadFile(name); - - String folder = this.tempFolder; - String resFileName = "result.zip"; - - AsposeResponse response = this.pdfApi.putPdfInStorageToHtml( - name, - this.tempFolder + '/' + resFileName, - null, - null, - null, - null, - null, - null, - null, - null, - null, - null, - null, - null, - null, - null, - null, - null, - null, - null, - null, - null, - null, - null, - null, - null, - null, - null, - null, - null, - folder, - null); - assertEquals(201, (int)response.getCode()); - } - - /** - * PutPdfInRequestToHtml Test - * @throws ApiException - * if the Api call fails - */ - - @Test - public void putPdfInRequestToHtmlTest() throws ApiException - { - String name = "4pages.pdf"; - File file = new File(testDataFolder + "/" + name); - String resFileName = "result.zip"; - - AsposeResponse response = this.pdfApi.putPdfInRequestToHtml( - this.tempFolder + '/' + resFileName, - null, - null, - null, - null, - null, - null, - null, - null, - null, - null, - null, - null, - null, - null, - null, - null, - null, - null, - null, - null, - null, - null, - null, - null, - null, - null, - null, - null, - null, - file); - assertEquals(201, (int)response.getCode()); - } - - /** - * GetPdfInStorageToEpub Test - * @throws ApiException - * if the Api call fails - */ - - @Test - public void getPdfInStorageToEpubTest() throws ApiException - { - String name = "4pages.pdf"; - this.uploadFile(name); - - String folder = this.tempFolder; - - - File response = this.pdfApi.getPdfInStorageToEpub(name, null, folder, null); - assertNotNull(response); - } - - /** - * PutPdfInStorageToEpub Test - * @throws ApiException - * if the Api call fails - */ - - @Test - public void putPdfInStorageToEpubTest() throws ApiException - { - String name = "4pages.pdf"; - this.uploadFile(name); - - String folder = this.tempFolder; - String resFileName = "result.epub"; - - AsposeResponse response = this.pdfApi.putPdfInStorageToEpub(name, this.tempFolder + '/' + resFileName, null, folder, null); - assertEquals(201, (int)response.getCode()); - } - - /** - * PutPdfInRequestToEpub Test - * @throws ApiException - * if the Api call fails - */ - - @Test - public void putPdfInRequestToEpubTest() throws ApiException - { - String name = "4pages.pdf"; - File file = new File(testDataFolder + "/" + name); - String resFileName = "result.epub"; - - AsposeResponse response = this.pdfApi.putPdfInRequestToEpub(this.tempFolder + '/' + resFileName, null, null, file); - assertEquals(201, (int)response.getCode()); - } - - - /** - * GetPdfInStorageToPptx Test - * @throws ApiException - * if the Api call fails - */ - - @Test - public void getPdfInStorageToPptxTest() throws ApiException - { - String name = "4pages.pdf"; - this.uploadFile(name); - - String folder = this.tempFolder; - - - File response = this.pdfApi.getPdfInStorageToPptx(name, null, null, folder, null); - assertNotNull(response); - } - - /** - * PutPdfInStorageToPptx Test - * @throws ApiException - * if the Api call fails - */ - - @Test - public void putPdfInStorageToPptxTest() throws ApiException - { - String name = "4pages.pdf"; - this.uploadFile(name); - - String folder = this.tempFolder; - String resFileName = "result.pptx"; - - AsposeResponse response = this.pdfApi.putPdfInStorageToPptx(name, this.tempFolder + '/' + resFileName, null, null, folder, null); - assertEquals(201, (int)response.getCode()); - } - - /** - * PutPdfInRequestToPptx Test - * @throws ApiException - * if the Api call fails - */ - - @Test - public void putPdfInRequestToPptxTest() throws ApiException - { - String name = "4pages.pdf"; - File file = new File(testDataFolder + "/" + name); - String resFileName = "result.pptx"; - - AsposeResponse response = this.pdfApi.putPdfInRequestToPptx(this.tempFolder + '/' + resFileName, null, null, null, file); - assertEquals(201, (int)response.getCode()); - } - - - /** - * GetPdfInStorageToLaTeX Test - * @throws ApiException - * if the Api call fails - */ - - @Test - public void getPdfInStorageToLaTeXTest() throws ApiException - { - String name = "4pages.pdf"; - this.uploadFile(name); - - String folder = this.tempFolder; - - - File response = this.pdfApi.getPdfInStorageToLaTeX(name, null, folder, null); - assertNotNull(response); - } - - /** - * PutPdfInStorageToLaTeX Test - * @throws ApiException - * if the Api call fails - */ - - @Test - public void putPdfInStorageToLaTeXTest() throws ApiException - { - String name = "4pages.pdf"; - this.uploadFile(name); - - String folder = this.tempFolder; - String resFileName = "result.latex"; - - AsposeResponse response = this.pdfApi.putPdfInStorageToLaTeX(name, this.tempFolder + '/' + resFileName, null, folder, null); - assertEquals(201, (int)response.getCode()); - } - - /** - * PutPdfInRequestToLaTeX Test - * @throws ApiException - * if the Api call fails - */ - - @Test - public void putPdfInRequestToLaTeXTest() throws ApiException - { - String name = "4pages.pdf"; - File file = new File(testDataFolder + "/" + name); - String resFileName = "result.latex"; - - AsposeResponse response = this.pdfApi.putPdfInRequestToLaTeX(this.tempFolder + '/' + resFileName, null, null, file); - assertEquals(201, (int)response.getCode()); - } - - - /** - * GetPdfInStorageToMobiXml Test - * @throws ApiException - * if the Api call fails - */ - - @Test - public void getPdfInStorageToMobiXmlTest() throws ApiException - { - String name = "4pages.pdf"; - this.uploadFile(name); - - String folder = this.tempFolder; - - - File response = this.pdfApi.getPdfInStorageToMobiXml(name, folder, null); - assertNotNull(response); - } - - - /** - * PutPdfInStorageToMobiXml Test - * @throws ApiException - * if the Api call fails - */ - - @Test - public void putPdfInStorageToMobiXmlTest() throws ApiException - { - String name = "4pages.pdf"; - this.uploadFile(name); - - String folder = this.tempFolder; - String resFileName = "result.mobi"; - - AsposeResponse response = this.pdfApi.putPdfInStorageToMobiXml(name, this.tempFolder + '/' + resFileName, folder, null); - assertEquals(201, (int)response.getCode()); - } - - - /** - * PutPdfInRequestToMobiXml Test - * @throws ApiException - * if the Api call fails - */ - - @Test - public void putPdfInRequestToMobiXmlTest() throws ApiException - { - String name = "4pages.pdf"; - File file = new File(testDataFolder + "/" + name); - String resFileName = "result.mobi"; - - AsposeResponse response = this.pdfApi.putPdfInRequestToMobiXml(this.tempFolder + '/' + resFileName, null, file); - assertEquals(201, (int)response.getCode()); - } - - - /** - * GetXfaPdfInStorageToAcroForm Test - * @throws ApiException - * if the Api call fails - */ - - @Test - public void getXfaPdfInStorageToAcroFormTest() throws ApiException - { - String name = "PdfWithXfaForm.pdf"; - this.uploadFile(name); - - String folder = this.tempFolder; - - - File response = this.pdfApi.getXfaPdfInStorageToAcroForm(name, folder, null); - assertNotNull(response); - } - - /** - * PutXfaPdfInStorageToAcroForm Test - * @throws ApiException - * if the Api call fails - */ - - @Test - public void putXfaPdfInStorageToAcroFormTest() throws ApiException - { - String name = "PdfWithXfaForm.pdf"; - this.uploadFile(name); - - String folder = this.tempFolder; - String resFileName = "result.pdf"; - - AsposeResponse response = this.pdfApi.putXfaPdfInStorageToAcroForm(name, this.tempFolder + '/' + resFileName, folder, null); - assertEquals(201, (int)response.getCode()); - } - - /** - * PutXfaPdfInRequestToAcroForm Test - * @throws ApiException - * if the Api call fails - */ - - @Test - public void putXfaPdfInRequestToAcroFormTest() throws ApiException - { - String name = "PdfWithXfaForm.pdf"; - File file = new File(testDataFolder + "/" + name); - String resFileName = "result.pdf"; - - AsposeResponse response = this.pdfApi.putXfaPdfInRequestToAcroForm(this.tempFolder + '/' + resFileName, null, file); - assertEquals(201, (int)response.getCode()); - } - - - /** - * GetPdfInStorageToXml Test - * @throws ApiException - * if the Api call fails - */ - - @Test - public void getPdfInStorageToXmlTest() throws ApiException - { - String name = "4pages.pdf"; - this.uploadFile(name); - - String folder = this.tempFolder; - - - File response = this.pdfApi.getPdfInStorageToXml(name, folder, null); - assertNotNull(response); - } - - /** - * PutPdfInStorageToXml Test - * @throws ApiException - * if the Api call fails - */ - - @Test - public void putPdfInStorageToXmlTest() throws ApiException - { - String name = "4pages.pdf"; - this.uploadFile(name); - - String folder = this.tempFolder; - String resFileName = "result.xml"; - - AsposeResponse response = this.pdfApi.putPdfInStorageToXml(name, this.tempFolder + '/' + resFileName, folder, null); - assertEquals(201, (int)response.getCode()); - } - - /** - * PutPdfInRequestToXml Test - * @throws ApiException - * if the Api call fails - */ - - @Test - public void putPdfInRequestToXmlTest() throws ApiException - { - String name = "4pages.pdf"; - File file = new File(testDataFolder + "/" + name); - String resFileName = "result.xml"; - - AsposeResponse response = this.pdfApi.putPdfInRequestToXml(this.tempFolder + '/' + resFileName, null, file); - assertEquals(201, (int)response.getCode()); - } - - // Convert To PDF Tests - - /** - * GetEpubInStorageToPdf Test - * @throws ApiException - * if the Api call fails - */ - - @Test - public void getEpubInStorageToPdfTest() throws ApiException - { - String name = "4pages.epub"; - this.uploadFile(name); - - - String srcPath = this.tempFolder + '/' + name; - - File response = this.pdfApi.getEpubInStorageToPdf(srcPath, null); - assertNotNull(response); - } - - - /** - * PutEpubInStorageToPdf Test - * @throws ApiException - * if the Api call fails - */ - - @Test - public void putEpubInStorageToPdfTest() throws ApiException - { - String name = "4pages.epub"; - this.uploadFile(name); - - - String srcPath = this.tempFolder + '/' + name; - String resultName = "fromEpub.pdf"; - - AsposeResponse response = this.pdfApi.putEpubInStorageToPdf(resultName, srcPath, null, this.tempFolder); - assertEquals(201, (int)response.getCode()); - } - - /** - * GetWebInStorageToPdf Test - * @throws ApiException - * if the Api call fails - */ - - @Test - public void getWebInStorageToPdfTest() throws ApiException - { - String sourceUrl = "http://google.com"; - - File response = this.pdfApi.getWebInStorageToPdf(sourceUrl, null, null , null, - null, null, null, null, null); - assertNotNull(response); - } - - - /** - * PutWebInStorageToPdf Test - * @throws ApiException - * if the Api call fails - */ - - @Test - public void putWebInStorageToPdfTest() throws ApiException - { - String sourceUrl = "http://google.com"; - String resultName = "fromWeb.pdf"; - - AsposeResponse response = this.pdfApi.putWebInStorageToPdf(resultName, sourceUrl, null, - null, null, null, null, null, - null, this.tempFolder, null); - assertEquals(201, (int)response.getCode()); - } - - - /** - * GetLaTeXInStorageToPdf Test - * @throws ApiException - * if the Api call fails - */ - - @Test - public void getLaTeXInStorageToPdfTest() throws ApiException - { - String name = "TexExample.tex"; - this.uploadFile(name); - - - String srcPath = this.tempFolder + '/' + name; - - File response = this.pdfApi.getLaTeXInStorageToPdf(srcPath, null); - assertNotNull(response); - } - - - /** - * PutLaTeXInStorageToPdf Test - * @throws ApiException - * if the Api call fails - */ - - @Test - public void putLaTeXInStorageToPdfTest() throws ApiException - { - String name = "TexExample.tex"; - this.uploadFile(name); - - - String srcPath = this.tempFolder + '/' + name; - String resultName = "fromTex.pdf"; - - AsposeResponse response = this.pdfApi.putLaTeXInStorageToPdf(resultName, srcPath, this.tempFolder, null); - assertEquals(201, (int)response.getCode()); - } - - - /** - * GetMhtInStorageToPdf Test - * @throws ApiException - * if the Api call fails - */ - - @Test - public void getMhtInStorageToPdfTest() throws ApiException - { - String name = "MhtExample.mht"; - this.uploadFile(name); - - - String srcPath = this.tempFolder + '/' + name; - - File response = this.pdfApi.getMhtInStorageToPdf(srcPath, null); - assertNotNull(response); - } - - - /** - * PutMhtInStorageToPdf Test - * @throws ApiException - * if the Api call fails - */ - - @Test - public void putMhtInStorageToPdfTest() throws ApiException - { - String name = "MhtExample.mht"; - this.uploadFile(name); - - - String srcPath = this.tempFolder + '/' + name; - String resultName = "fromMht.pdf"; - - AsposeResponse response = this.pdfApi.putMhtInStorageToPdf(resultName, srcPath, this.tempFolder, null); - assertEquals(201, (int)response.getCode()); - } - - - /** - * GetHtmlInStorageToPdf Test - * @throws ApiException - * if the Api call fails - */ - - @Test - public void getHtmlInStorageToPdfTest() throws ApiException - { - String name = "HtmlWithImage.zip"; - this.uploadFile(name); - - String htmlFileName = "HtmlWithImage.html"; - double height = 650; - double width = 250; - String srcPath = this.tempFolder + '/' + name; - - File response = this.pdfApi.getHtmlInStorageToPdf(srcPath, htmlFileName, height, width, - null, null, null, null, null, null); - assertNotNull(response); - } - - - /** - * PutHtmlInStorageToPdf Test - * @throws ApiException - * if the Api call fails - */ - - @Test - public void putHtmlInStorageToPdfTest() throws ApiException - { - String name = "HtmlWithImage.zip"; - this.uploadFile(name); - - String htmlFileName = "HtmlWithImage.html"; - double height = 650; - double width = 250; - String resultName = "fromHtml.pdf"; - String srcPath = this.tempFolder + '/' + name; - - - AsposeResponse response = this.pdfApi.putHtmlInStorageToPdf(name, srcPath, htmlFileName, - height, width, null, null, null, - null, null, null, null); - assertEquals(201, (int)response.getCode()); - } - - /** - * GetXslFoInStorageToPdf Test - * @throws ApiException - * if the Api call fails - */ - - @Test - public void getXslFoInStorageToPdfTest() throws ApiException - { - String name = "XslfoExample.xslfo"; - this.uploadFile(name); - - - String srcPath = this.tempFolder + '/' + name; - - File response = this.pdfApi.getXslFoInStorageToPdf(srcPath, null); - assertNotNull(response); - } - - - /** - * PutXslFoInStorageToPdf Test - * @throws ApiException - * if the Api call fails - */ - - @Test - public void putXslFoInStorageToPdfTest() throws ApiException - { - String name = "XslfoExample.xslfo"; - this.uploadFile(name); - - - String srcPath = this.tempFolder + '/' + name; - String resultName = "fromXlsFo.pdf"; - - AsposeResponse response = this.pdfApi.putXslFoInStorageToPdf(resultName, srcPath, this.tempFolder, null); - assertEquals(201, (int)response.getCode()); - } - - - /** - * GetXpsInStorageToPdf Test - * @throws ApiException - * if the Api call fails - */ - - @Test - public void getXpsInStorageToPdfTest() throws ApiException - { - String name = "Simple.xps"; - this.uploadFile(name); - - - String srcPath = this.tempFolder + '/' + name; - - File response = this.pdfApi.getXpsInStorageToPdf(srcPath, null); - assertNotNull(response); - } - - - /** - * PutXpsInStorageToPdf Test - * @throws ApiException - * if the Api call fails - */ - - @Test - public void putXpsInStorageToPdfTest() throws ApiException - { - String name = "Simple.xps"; - this.uploadFile(name); - - - String srcPath = this.tempFolder + '/' + name; - String resultName = "fromXps.pdf"; - - AsposeResponse response = this.pdfApi.putXpsInStorageToPdf(resultName, srcPath, this.tempFolder, null); - assertEquals(201, (int)response.getCode()); - } - - - /** - * GetSvgInStorageToPdf Test - * @throws ApiException - * if the Api call fails - */ - - @Test - public void getSvgInStorageToPdfTest() throws ApiException - { - String name = "Simple.svg"; - this.uploadFile(name); - - - String srcPath = this.tempFolder + '/' + name; - - File response = this.pdfApi.getSvgInStorageToPdf(srcPath, null, null, null, - null, null, null, null, null, null); - assertNotNull(response); - } - - - /** - * PutSvgInStorageToPdf Test - * @throws ApiException - * if the Api call fails - */ - - @Test - public void putSvgInStorageToPdfTest() throws ApiException - { - String name = "Simple.svg"; - this.uploadFile(name); - - - String srcPath = this.tempFolder + '/' + name; - String resultName = "fromSvg.pdf"; - - AsposeResponse response = this.pdfApi.putSvgInStorageToPdf(resultName, srcPath, null, - null, null, null, null, null, - null, null, this.tempFolder, null); - assertEquals(201, (int)response.getCode()); - } - - /** - * GetPclInStorageToPdf Test - * @throws ApiException - * if the Api call fails - */ - - @Test - public void getPclInStorageToPdfTest() throws ApiException - { - String name = "template.pcl"; - this.uploadFile(name); - - - String srcPath = this.tempFolder + '/' + name; - - File response = this.pdfApi.getPclInStorageToPdf(srcPath, null); - assertNotNull(response); - } - - - /** - * PutPclInStorageToPdf Test - * @throws ApiException - * if the Api call fails - */ - - @Test - public void putPclInStorageToPdfTest() throws ApiException - { - String name = "template.pcl"; - this.uploadFile(name); - - - String srcPath = this.tempFolder + '/' + name; - String resultName = "fromPcl.pdf"; - - AsposeResponse response = this.pdfApi.putPclInStorageToPdf(resultName, srcPath, this.tempFolder, null); - assertEquals(201, (int)response.getCode()); - } - - - /** - * GetXmlInStorageToPdf Test - * @throws ApiException - * if the Api call fails - */ - - @Test - public void getXmlInStorageToPdfTest() throws ApiException - { - String name = "template.xml"; - this.uploadFile(name); - - - String srcPath = this.tempFolder + '/' + name; - - File response = this.pdfApi.getXmlInStorageToPdf(srcPath, null, null); - assertNotNull(response); - } - - - /** - * PutXmlInStorageToPdf Test - * @throws ApiException - * if the Api call fails - */ - - @Test - public void putXmlInStorageToPdfTest() throws ApiException - { - String name = "template.xml"; - this.uploadFile(name); - - - String srcPath = this.tempFolder + '/' + name; - String resultName = "fromXml.pdf"; - - AsposeResponse response = this.pdfApi.putXmlInStorageToPdf(resultName, srcPath, null, this.tempFolder, null); - assertEquals(201, (int)response.getCode()); - } - - - /** - * GetPsInStorageToPdf Test - * @throws ApiException - * if the Api call fails - */ - - @Test - public void getPsInStorageToPdfTest() throws ApiException - { - String name = "Typography.PS"; - this.uploadFile(name); - - - String srcPath = this.tempFolder + '/' + name; - - File response = this.pdfApi.getPsInStorageToPdf(srcPath, null); - assertNotNull(response); - } - - - /** - * PutPsInStorageToPdf Test - * @throws ApiException - * if the Api call fails - */ - - @Test - public void putPsInStorageToPdfTest() throws ApiException - { - String name = "Typography.PS"; - this.uploadFile(name); - - - String srcPath = this.tempFolder + '/' + name; - String resultName = "fromPs.pdf"; - - AsposeResponse response = this.pdfApi.putPsInStorageToPdf(resultName, srcPath, this.tempFolder, null); - assertEquals(201, (int)response.getCode()); - } - - - /** - * PutImageInStorageToPdf Test - * @throws ApiException - * if the Api call fails - */ - @Test - public void putImageInStorageToPdfTest() throws ApiException - { - final String dataFile1 = "33539.jpg"; - this.uploadFile(dataFile1); - - final String dataFile2 = "44781.jpg"; - this.uploadFile(dataFile2); - - String resultName = "result.pdf"; - - - ImageTemplatesRequest imageTemplatesRequest = new ImageTemplatesRequest() - .isOCR(true) - .ocRLangs("eng") - .imagesList(new ArrayList(){{ - add(new ImageTemplate().imagePath(PdfApiTest.this.tempFolder + '/' + dataFile1).imageSrcType(ImageSrcType.COMMON)); - add(new ImageTemplate().imagePath(PdfApiTest.this.tempFolder + '/' + dataFile2).imageSrcType(ImageSrcType.COMMON)); - }}); - - AsposeResponse response = this.pdfApi.putImageInStorageToPdf(resultName, imageTemplatesRequest, this.tempFolder, null); - assertEquals(201, (int)response.getCode()); - } - - // Document Tests - - /** - * GetDocument Test - * @throws ApiException - * if the Api call fails - */ - - @Test - public void getDocumentTest() throws ApiException - { - String name = "4pages.pdf"; - this.uploadFile(name); - - String folder = this.tempFolder; - - DocumentResponse response = this.pdfApi.getDocument(name, null, folder); - assertEquals(200, (int)response.getCode()); - } - - - /** - * PostOptimizeDocument Test - * @throws ApiException - * if the Api call fails - */ - - @Test - public void postOptimizeDocumentTest() throws ApiException - { - String name = "4pages.pdf"; - this.uploadFile(name); - - OptimizeOptions optimizeOptions = new OptimizeOptions(); - optimizeOptions.setAllowReusePageContent(false); - optimizeOptions.setCompressImages(true); - optimizeOptions.setImageQuality(100); - optimizeOptions.setLinkDuplcateStreams(true); - optimizeOptions.setRemoveUnusedObjects(true); - optimizeOptions.setRemoveUnusedStreams(true); - optimizeOptions.setUnembedFonts(true); - - String folder = this.tempFolder; - - AsposeResponse response = this.pdfApi.postOptimizeDocument(name, optimizeOptions, null, folder); - assertEquals(200, (int)response.getCode()); - } - - /** - * PostSplitDocument Test - * @throws ApiException - * if the Api call fails - */ - - @Test - public void postSplitDocumentTest() throws ApiException - { - String name = "4pages.pdf"; - this.uploadFile(name); - - String folder = this.tempFolder; - - SplitResultResponse response = this.pdfApi.postSplitDocument(name, null, null, null, null, folder); - assertEquals(200, (int)response.getCode()); - } - - - /** - * PutCreateEmptyDocument Test - * @throws ApiException - * if the Api call fails - */ - - @Test - public void putCreateEmptyDocumentTest() throws ApiException - { - String name = "empty.pdf"; - - String folder = this.tempFolder; - - DocumentResponse response = this.pdfApi.putCreateDocument(name, null, folder); - assertEquals(200, (int)response.getCode()); - } - - - // Fields Tests - - /** - * GetField Test - * @throws ApiException - * if the Api call fails - */ - - @Test - public void getFieldTest() throws ApiException - { - String name = "PdfWithAcroForm.pdf"; - this.uploadFile(name); - - String folder = this.tempFolder; - String fieldName = "textField"; - - FieldResponse response = this.pdfApi.getField(name, fieldName, null, folder); - assertEquals(200, (int)response.getCode()); - } - - - /** - * GetFields Test - * @throws ApiException - * if the Api call fails - */ - - @Test - public void getFieldsTest() throws ApiException - { - String name = "PdfWithAcroForm.pdf"; - this.uploadFile(name); - - String folder = this.tempFolder; - - FieldsResponse response = this.pdfApi.getFields(name, null, folder); - assertEquals(200, (int)response.getCode()); - } - - - /** - * PostCreateField Test - * @throws ApiException - * if the Api call fails - */ - - @Test - public void postCreateFieldTest() throws ApiException - { - String name = "Hello world.pdf"; - this.uploadFile(name); - - Rectangle rect = new Rectangle() - .LLX(50.) - .LLY(200.) - .URX(200.) - .URY(400.); - - Field field = new Field(); - field.setName("checkboxfield"); - field.setValues(new ArrayList(){{ add("1");}}); - field.setType(FieldType.BOOLEAN); - field.setRect(rect); - - int pageNumber = 1; - String folder = this.tempFolder; - - AsposeResponse response = this.pdfApi.postCreateField(name, pageNumber, field, null, folder); - assertEquals(200, (int)response.getCode()); - } - - /** - * PutUpdateField Test - * @throws ApiException - * if the Api call fails - */ - - @Test - public void putUpdateFieldTest() throws ApiException - { - String name = "PdfWithAcroForm.pdf"; - this.uploadFile(name); - - String fieldName = "textField"; - - Field field = new Field(); - field.setName(fieldName); - field.setValues(new ArrayList(){{ add("Text field updated value.");}}); - field.setType(FieldType.TEXT); - - String folder = this.tempFolder; - - FieldResponse response = this.pdfApi.putUpdateField(name, fieldName, field, null, folder); - assertEquals(200, (int)response.getCode()); - } - - /** - * PutUpdateField Test - * @throws ApiException - * if the Api call fails - */ - - @Test - public void putUpdateFieldsTest() throws ApiException - { - String name = "PdfWithAcroForm.pdf"; - this.uploadFile(name); - - Field field = new Field(); - field.setName("textField"); - field.setValues(new ArrayList(){{ add("1");}}); - field.setType(FieldType.TEXT); - - ArrayList fieldsList = new ArrayList(); - fieldsList.add(field); - - Fields fields = new Fields().list(fieldsList); - - String folder = this.tempFolder; - - AsposeResponse response = this.pdfApi.putUpdateFields(name, fields,null, folder); - assertEquals(200, (int)response.getCode()); - } - - - /** - * DeleteField Test - * @throws ApiException - * if the Api call fails - */ - - @Test - public void deleteFieldTest() throws ApiException - { - String name = "PdfWithAcroForm.pdf"; - this.uploadFile(name); - - String fieldName = "textField"; - - String folder = this.tempFolder; - - AsposeResponse response = this.pdfApi.deleteField(name, fieldName, null, folder); - assertEquals(200, (int)response.getCode()); - } - - - /** - * PutFieldsFlatten Test - * @throws ApiException - * if the Api call fails - */ - - @Test - public void putFieldsFlattenTest() throws ApiException - { - String name = "PdfWithAcroForm.pdf"; - this.uploadFile(name); - - String folder = this.tempFolder; - - AsposeResponse response = this.pdfApi.putFieldsFlatten(name, null, folder); - 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 - - /** - * GetImage Test - * @throws ApiException - * if the Api call fails - */ - - @Test - public void getImageTest() throws ApiException - { - String name = "PdfWithImages2.pdf"; - this.uploadFile(name); - - int pageNumber = 1; - String folder = this.tempFolder; - - ImagesResponse imagesResponse = this.pdfApi.getImages(name, pageNumber, null, folder); - assertEquals((int)imagesResponse.getCode(), 200); - String imageId = imagesResponse.getImages().getList().get(0).getId(); - - ImageResponse response = this.pdfApi.getImage(name, imageId, null, folder); - assertEquals(200, (int)response.getCode()); - } - - - /** - * DeleteImage Test - * @throws ApiException - * if the Api call fails - */ - - @Test - public void deleteImageTest() throws ApiException - { - String name = "PdfWithImages2.pdf"; - this.uploadFile(name); - - int pageNumber = 1; - String folder = this.tempFolder; - - ImagesResponse imagesResponse = this.pdfApi.getImages(name, pageNumber, null, folder); - assertEquals((int)imagesResponse.getCode(), 200); - String imageId = imagesResponse.getImages().getList().get(0).getId(); - - AsposeResponse response = this.pdfApi.deleteImage(name, imageId, null, folder); - assertEquals(200, (int)response.getCode()); - } - - /** - * GetImages Test - * @throws ApiException - * if the Api call fails - */ - - @Test - public void getImagesTest() throws ApiException - { - String name = "PdfWithImages2.pdf"; - this.uploadFile(name); - - int pageNumber = 1; - String folder = this.tempFolder; - - ImagesResponse response = this.pdfApi.getImages(name, pageNumber, null, folder); - assertEquals(200, (int)response.getCode()); - } - - - /** - * PostReplaceImage Test - * @throws ApiException - * if the Api call fails - */ - - @Test - public void putReplaceImageTest() throws ApiException - { - String name = "PdfWithImages2.pdf"; - this.uploadFile(name); - - String imageFileName = "Koala.jpg"; - this.uploadFile(imageFileName); - - int pageNumber = 1; - String folder = this.tempFolder; - String imageFile = folder + '/' + imageFileName; - - ImagesResponse imagesResponse = this.pdfApi.getImages(name, pageNumber, null, folder); - assertEquals((int)imagesResponse.getCode(), 200); - String imageId = imagesResponse.getImages().getList().get(0).getId(); - - ImageResponse response = this.pdfApi.putReplaceImage(name, imageId, imageFile, null, folder, null); - assertEquals(200, (int)response.getCode()); - } - - - /** - * PostInsertImage Test - * @throws ApiException - * if the Api call fails - */ - - @Test - public void postInsertImageTest() throws ApiException - { - String name = "PdfWithImages2.pdf"; - this.uploadFile(name); - - String imageFileName = "Koala.jpg"; - File file = new File(testDataFolder + "/" + imageFileName); - - int pageNumber = 1; - String folder = this.tempFolder; - String imageFile = folder + '/' + imageFileName; - - double llx = 10; - double lly = 10; - double urx = 100; - double ury = 100; - - AsposeResponse response = this.pdfApi.postInsertImage(name, pageNumber, llx, lly, urx, ury, imageFile, null, folder, null); - assertEquals(201, (int)response.getCode()); - } - - - /** - * PutImagesExtractAsJpeg Test - * @throws ApiException - * if the Api call fails - */ - - @Test - public void putImagesExtractAsJpegTest() throws ApiException - { - final String name = "PdfWithImages2.pdf"; - this.uploadFile(name); - - int pageNumber = 1; - final String destFolder = this.tempFolder + '/' + "extract_jpg"; - - AsposeResponse response = this.pdfApi.putImagesExtractAsJpeg(name, pageNumber, null, null, null, - this.tempFolder, destFolder); - assertEquals(200, (int)response.getCode()); - } - - /** - * PutImagesExtractAsTiff Test - * @throws ApiException - * if the Api call fails - */ - - @Test - public void putImagesExtractAsTiffTest() throws ApiException - { - final String name = "PdfWithImages2.pdf"; - this.uploadFile(name); - - int pageNumber = 1; - final String destFolder = this.tempFolder + '/' + "extract_tiff"; - - AsposeResponse response = this.pdfApi.putImagesExtractAsTiff(name, pageNumber, null, null, null, - this.tempFolder, destFolder); - assertEquals(200, (int)response.getCode()); - } - - /** - * PutImagesExtractAsGif Test - * @throws ApiException - * if the Api call fails - */ - - @Test - public void putImagesExtractAsGifTest() throws ApiException - { - final String name = "PdfWithImages2.pdf"; - this.uploadFile(name); - - int pageNumber = 1; - final String destFolder = this.tempFolder + '/' + "extract_gif"; - - AsposeResponse response = this.pdfApi.putImagesExtractAsGif(name, pageNumber, null, null, null, - this.tempFolder, destFolder); - assertEquals(200, (int)response.getCode()); - } - - /** - * PutImagesExtractAsPng Test - * @throws ApiException - * if the Api call fails - */ - - @Test - public void putImagesExtractAsPngTest() throws ApiException - { - final String name = "PdfWithImages2.pdf"; - this.uploadFile(name); - - int pageNumber = 1; - final String destFolder = this.tempFolder + '/' + "extract_png"; - - AsposeResponse response = this.pdfApi.putImagesExtractAsPng(name, pageNumber, null, null, null, - this.tempFolder, destFolder); - assertEquals(200, (int)response.getCode()); - } - - - /** - * PutImageExtractAsJpeg Test - * @throws ApiException - * if the Api call fails - */ - - @Test - public void putImageExtractAsJpegTest() throws ApiException - { - final String name = "PdfWithImages2.pdf"; - this.uploadFile(name); - - int pageNumber = 1; - - ImagesResponse imagesResponse = this.pdfApi.getImages(name, pageNumber, null, this.tempFolder); - assertEquals(200, (int)imagesResponse.getCode()); - String imageId = imagesResponse.getImages().getList().get(0).getId(); - - final String destFolder = this.tempFolder + '/' + "extract_jpg"; - - AsposeResponse response = this.pdfApi.putImageExtractAsJpeg(name, imageId, null, null, null, - this.tempFolder, destFolder); - assertEquals(200, (int)response.getCode()); - } - - - /** - * GetImageExtractAsJpeg Test - * @throws ApiException - * if the Api call fails - */ - - @Test - public void getImageExtractAsJpegTest() throws ApiException - { - final String name = "PdfWithImages2.pdf"; - this.uploadFile(name); - - int pageNumber = 1; - - ImagesResponse imagesResponse = this.pdfApi.getImages(name, pageNumber, null, this.tempFolder); - assertEquals(200, (int)imagesResponse.getCode()); - String imageId = imagesResponse.getImages().getList().get(0).getId(); - - - File response = this.pdfApi.getImageExtractAsJpeg(name, imageId, null, null, null, - this.tempFolder); - assertNotNull(response); - } - - - /** - * PutImageExtractAsTiff Test - * @throws ApiException - * if the Api call fails - */ - - @Test - public void putImageExtractAsTiffTest() throws ApiException - { - final String name = "PdfWithImages2.pdf"; - this.uploadFile(name); - - int pageNumber = 1; - - ImagesResponse imagesResponse = this.pdfApi.getImages(name, pageNumber, null, this.tempFolder); - assertEquals(200, (int)imagesResponse.getCode()); - String imageId = imagesResponse.getImages().getList().get(0).getId(); - - final String destFolder = this.tempFolder + '/' + "extract_tiff"; - - AsposeResponse response = this.pdfApi.putImageExtractAsTiff(name, imageId, null, null, null, - this.tempFolder, destFolder); - assertEquals(200, (int)response.getCode()); - } - - - /** - * GetImageExtractAsTiff Test - * @throws ApiException - * if the Api call fails - */ - - @Test - public void getImageExtractAsTiffTest() throws ApiException - { - final String name = "PdfWithImages2.pdf"; - this.uploadFile(name); - - int pageNumber = 1; - - ImagesResponse imagesResponse = this.pdfApi.getImages(name, pageNumber, null, this.tempFolder); - assertEquals(200, (int)imagesResponse.getCode()); - String imageId = imagesResponse.getImages().getList().get(0).getId(); - - - File response = this.pdfApi.getImageExtractAsTiff(name, imageId, null, null, null, - this.tempFolder); - assertNotNull(response); - } - - - /** - * PutImageExtractAsGif Test - * @throws ApiException - * if the Api call fails - */ - - @Test - public void putImageExtractAsGifTest() throws ApiException - { - final String name = "PdfWithImages2.pdf"; - this.uploadFile(name); - - int pageNumber = 1; - - ImagesResponse imagesResponse = this.pdfApi.getImages(name, pageNumber, null, this.tempFolder); - assertEquals(200, (int)imagesResponse.getCode()); - String imageId = imagesResponse.getImages().getList().get(0).getId(); - - final String destFolder = this.tempFolder + '/' + "extract_gif"; - - AsposeResponse response = this.pdfApi.putImageExtractAsGif(name, imageId, null, null, null, - this.tempFolder, destFolder); - assertEquals(200, (int)response.getCode()); - } - - - /** - * GetImageExtractAsGif Test - * @throws ApiException - * if the Api call fails - */ - - @Test - public void getImageExtractAsGifTest() throws ApiException - { - final String name = "PdfWithImages2.pdf"; - this.uploadFile(name); - - int pageNumber = 1; - - ImagesResponse imagesResponse = this.pdfApi.getImages(name, pageNumber, null, this.tempFolder); - assertEquals(200, (int)imagesResponse.getCode()); - String imageId = imagesResponse.getImages().getList().get(0).getId(); - - - File response = this.pdfApi.getImageExtractAsGif(name, imageId, null, null, null, - this.tempFolder); - assertNotNull(response); - } - - - /** - * PutImageExtractAsPng Test - * @throws ApiException - * if the Api call fails - */ - - @Test - public void putImageExtractAsPngTest() throws ApiException - { - final String name = "PdfWithImages2.pdf"; - this.uploadFile(name); - - int pageNumber = 1; - - ImagesResponse imagesResponse = this.pdfApi.getImages(name, pageNumber, null, this.tempFolder); - assertEquals(200, (int)imagesResponse.getCode()); - String imageId = imagesResponse.getImages().getList().get(0).getId(); - - final String destFolder = this.tempFolder + '/' + "extract_png"; - - AsposeResponse response = this.pdfApi.putImageExtractAsPng(name, imageId, null, null, null, - this.tempFolder, destFolder); - assertEquals(200, (int)response.getCode()); - } - - - /** - * GetImageExtractAsPng Test - * @throws ApiException - * if the Api call fails - */ - - @Test - public void getImageExtractAsPngTest() throws ApiException - { - final String name = "PdfWithImages2.pdf"; - this.uploadFile(name); - - int pageNumber = 1; - - ImagesResponse imagesResponse = this.pdfApi.getImages(name, pageNumber, null, this.tempFolder); - assertEquals(200, (int)imagesResponse.getCode()); - String imageId = imagesResponse.getImages().getList().get(0).getId(); - - - File response = this.pdfApi.getImageExtractAsPng(name, imageId, null, null, null, - this.tempFolder); - assertNotNull(response); - } - - - // Links Tests - - /** - * GetPageLinkAnnotation Test - * @throws ApiException - * if the Api call fails - */ - - @Test - public void getPageLinkAnnotationTest() throws ApiException - { - String name = "PdfWithLinks.pdf"; - this.uploadFile(name); - - int pageNumber = 1; - String folder = this.tempFolder; - - LinkAnnotationsResponse linksResponse = this.pdfApi.getPageLinkAnnotations(name, pageNumber, null, folder); - assertEquals(200, (int)linksResponse.getCode()); - String linkId = linksResponse.getLinks().getList().get(0).getId(); - - LinkAnnotationResponse response = this.pdfApi.getPageLinkAnnotation(name, pageNumber, linkId, null, folder); - assertEquals(200, (int)response.getCode()); - } - - - /** - * DeleteLinkAnnotation Test - * @throws ApiException - * if the Api call fails - */ - - @Test - public void deleteLinkAnnotationTest() throws ApiException - { - String name = "PdfWithLinks.pdf"; - this.uploadFile(name); - - int pageNumber = 1; - String folder = this.tempFolder; - - LinkAnnotationsResponse linksResponse = this.pdfApi.getPageLinkAnnotations(name, pageNumber, null, folder); - assertEquals(200, (int)linksResponse.getCode()); - String linkId = linksResponse.getLinks().getList().get(0).getId(); - - AsposeResponse response = this.pdfApi.deleteLinkAnnotation(name, linkId, null, folder); - assertEquals(200, (int)response.getCode()); - } - - - /** - * GetPageLinkAnnotations Test - * @throws ApiException - * if the Api call fails - */ - - @Test - public void getPageLinkAnnotationsTest() throws ApiException - { - String name = "PdfWithLinks.pdf"; - this.uploadFile(name); - - int pageNumber = 1; - String folder = this.tempFolder; - - LinkAnnotationsResponse response = this.pdfApi.getPageLinkAnnotations(name, pageNumber, null, folder); - assertEquals(200, (int)response.getCode()); - } - - - /** - * PostPageLinkAnnotations Test - * @throws ApiException - * if the Api call fails - */ - - @Test - public void postPageLinkAnnotationsTest() throws ApiException - { - String name = "PdfWithLinks.pdf"; - this.uploadFile(name); - - int pageNumber = 1; - String folder = this.tempFolder; - - LinkAnnotation link = new LinkAnnotation() - .actionType(LinkActionType.GOTOURIACTION) - .action("https://products.aspose.cloud/pdf") - .rect(new Rectangle().LLX(100.).LLY(100.).URX(500.).URY(500.)); - - ArrayList links = new ArrayList<>(); - links.add(link); - - AsposeResponse response = this.pdfApi.postPageLinkAnnotations(name, pageNumber, links, null, folder); - assertEquals(201, (int)response.getCode()); - } - - - /** - * PutLinkAnnotation Test - * @throws ApiException - * if the Api call fails - */ - - @Test - public void putLinkAnnotationTest() throws ApiException - { - String name = "PdfWithLinks.pdf"; - this.uploadFile(name); - - int pageNumber = 1; - String folder = this.tempFolder; - - LinkAnnotation link = new LinkAnnotation() - .actionType(LinkActionType.GOTOURIACTION) - .action("https://products.aspose.cloud/pdf") - .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()); - String linkId = linksResponse.getLinks().getList().get(0).getId(); - - AsposeResponse response = this.pdfApi.putLinkAnnotation(name, linkId, link, null, folder); - assertEquals(201, (int)response.getCode()); - } - - - /** - * DeletePageLinkAnnotations Test - * @throws ApiException - * if the Api call fails - */ - - @Test - public void deletePageLinkAnnotationsTest() throws ApiException - { - String name = "PdfWithLinks.pdf"; - this.uploadFile(name); - - int pageNumber = 1; - String folder = this.tempFolder; - - AsposeResponse response = this.pdfApi.deletePageLinkAnnotations(name, pageNumber, null, folder); - assertEquals(200, (int)response.getCode()); - } - - - /** - * DeleteDocumentLinkAnnotations Test - * @throws ApiException - * if the Api call fails - */ - - @Test - public void deleteDocumentLinkAnnotationsTest() throws ApiException - { - String name = "PdfWithLinks.pdf"; - this.uploadFile(name); - - String folder = this.tempFolder; - - AsposeResponse response = this.pdfApi.deleteDocumentLinkAnnotations(name, null, folder); - assertEquals(200, (int)response.getCode()); - } - - /** - * GetLinkAnnotation Test - * @throws ApiException - * if the Api call fails - */ - - @Test - public void getLinkAnnotationTest() throws ApiException - { - String name = "PdfWithLinks.pdf"; - this.uploadFile(name); - - int pageNumber = 1; - String folder = this.tempFolder; - - LinkAnnotationsResponse linksResponse = this.pdfApi.getPageLinkAnnotations(name, pageNumber, null, folder); - assertEquals(200, (int)linksResponse.getCode()); - String linkId = linksResponse.getLinks().getList().get(0).getId(); - - AsposeResponse response = this.pdfApi.getLinkAnnotation(name, linkId, null, folder); - assertEquals(200, (int)response.getCode()); - } - - // Merge Tests - - /** - * PutMergeDocuments Test - * @throws ApiException - * if the Api call fails - */ - - @Test - public void putMergeDocumentsTest() throws ApiException - { - ArrayList nameList = new ArrayList(); - nameList.add("4pages.pdf"); - nameList.add("PdfWithImages2.pdf"); - nameList.add("marketing.pdf"); - - for (String name : nameList) - { - this.uploadFile(name); - } - - String resultName = "MergingResult.pdf"; - - MergeDocuments mergeDocuments = new MergeDocuments(); - - for(int i = 0; i < nameList.size(); i++) - { - nameList.set(i, this.tempFolder + '/' + nameList.get(i)); - } - - mergeDocuments.setList(nameList); - - String folder = this.tempFolder; - - DocumentResponse response = this.pdfApi.putMergeDocuments(resultName, mergeDocuments, null, folder); - assertEquals(200, (int)response.getCode()); - } - - - // OCR Tests - - /** - * PutSearchableDocument Test - * @throws ApiException - * if the Api call fails - */ - - @Test - public void putSearchableDocumentTest() throws ApiException - { - String name = "rusdoc.pdf"; - this.uploadFile(name); - - String lang = "rus,eng"; - String folder = this.tempFolder; - - AsposeResponse response = this.pdfApi.putSearchableDocument(name, null, folder, lang); - assertEquals(200, (int)response.getCode()); - } - - /** - * PutSearchableDocumentWithDefaultLang Test - * @throws ApiException - * if the Api call fails - */ - - @Test - public void putSearchableDocumentWithDefaultLangTest() throws ApiException - { - String name = "rusdoc.pdf"; - this.uploadFile(name); - - String folder = this.tempFolder; - - AsposeResponse response = this.pdfApi.putSearchableDocument(name, null, folder, null); - assertEquals(200, (int)response.getCode()); - } - - - // Page Convert To Image Tests - - /** - * GetPageConvertToTiff Test - * @throws ApiException - * if the Api call fails - */ - @Test - public void getPageConvertToTiffTest() throws ApiException - { - final String name = "4pages.pdf"; - this.uploadFile(name); - - int pageNumber = 2; - - File response = this.pdfApi.getPageConvertToTiff(name, pageNumber, null, null, this.tempFolder, null); - assertNotNull(response); - } - - /** - * PutPageConvertToTiff Test - * @throws ApiException - * if the Api call fails - */ - @Test - public void putPageConvertToTiffTest() throws ApiException - { - final String name = "4pages.pdf"; - this.uploadFile(name); - - int pageNumber = 2; - final String resultFile = "page.tiff"; - final String outPath = this.tempFolder + '/' + resultFile; - AsposeResponse response = this.pdfApi.putPageConvertToTiff(name, pageNumber, outPath, - null, null, this.tempFolder, null); - assertEquals(200, (int)response.getCode()); - } - - /** - * GetPageConvertToJpeg Test - * @throws ApiException - * if the Api call fails - */ - @Test - public void getPageConvertToJpegTest() throws ApiException - { - final String name = "4pages.pdf"; - this.uploadFile(name); - - int pageNumber = 2; - - File response = this.pdfApi.getPageConvertToJpeg(name, pageNumber, null, null, this.tempFolder, null); - assertNotNull(response); - } - - /** - * PutPageConvertToJpeg Test - * @throws ApiException - * if the Api call fails - */ - @Test - public void putPageConvertToJpegTest() throws ApiException - { - final String name = "4pages.pdf"; - this.uploadFile(name); - - int pageNumber = 2; - final String resultFile = "page.jpeg"; - final String outPath = this.tempFolder + '/' + resultFile; - AsposeResponse response = this.pdfApi.putPageConvertToJpeg(name, pageNumber, outPath, - null, null, this.tempFolder, null); - assertEquals(200, (int)response.getCode()); - } - - - /** - * GetPageConvertToPng Test - * @throws ApiException - * if the Api call fails - */ - @Test - public void getPageConvertToPngTest() throws ApiException - { - final String name = "4pages.pdf"; - this.uploadFile(name); - - int pageNumber = 2; - - File response = this.pdfApi.getPageConvertToPng(name, pageNumber, null, null, this.tempFolder, null); - assertNotNull(response); - } - - /** - * PutPageConvertToPng Test - * @throws ApiException - * if the Api call fails - */ - @Test - public void putPageConvertToPngTest() throws ApiException - { - final String name = "4pages.pdf"; - this.uploadFile(name); - - int pageNumber = 2; - final String resultFile = "page.png"; - final String outPath = this.tempFolder + '/' + resultFile; - AsposeResponse response = this.pdfApi.putPageConvertToPng(name, pageNumber, outPath, - null, null, this.tempFolder, null); - assertEquals(200, (int)response.getCode()); - } - - - /** - * GetPageConvertToEmf Test - * @throws ApiException - * if the Api call fails - */ - @Test - public void getPageConvertToEmfTest() throws ApiException - { - final String name = "4pages.pdf"; - this.uploadFile(name); - - int pageNumber = 2; - - File response = this.pdfApi.getPageConvertToEmf(name, pageNumber, null, null, this.tempFolder, null); - assertNotNull(response); - } - - /** - * PutPageConvertToEmf Test - * @throws ApiException - * if the Api call fails - */ - @Test - public void putPageConvertToEmfTest() throws ApiException - { - final String name = "4pages.pdf"; - this.uploadFile(name); - - int pageNumber = 2; - final String resultFile = "page.emf"; - final String outPath = this.tempFolder + '/' + resultFile; - AsposeResponse response = this.pdfApi.putPageConvertToEmf(name, pageNumber, outPath, - null, null, this.tempFolder, null); - assertEquals(200, (int)response.getCode()); - } - - /** - * GetPageConvertToBmp Test - * @throws ApiException - * if the Api call fails - */ - @Test - public void getPageConvertToBmpTest() throws ApiException - { - final String name = "4pages.pdf"; - this.uploadFile(name); - - int pageNumber = 2; - - File response = this.pdfApi.getPageConvertToBmp(name, pageNumber, null, null, this.tempFolder, null); - assertNotNull(response); - } - - /** - * PutPageConvertToBmp Test - * @throws ApiException - * if the Api call fails - */ - @Test - public void putPageConvertToBmpTest() throws ApiException - { - final String name = "4pages.pdf"; - this.uploadFile(name); - - int pageNumber = 2; - final String resultFile = "page.bmp"; - final String outPath = this.tempFolder + '/' + resultFile; - AsposeResponse response = this.pdfApi.putPageConvertToBmp(name, pageNumber, outPath, - null, null, this.tempFolder, null); - assertEquals(200, (int)response.getCode()); - } - - - /** - * GetPageConvertToGif Test - * @throws ApiException - * if the Api call fails - */ - @Test - public void getPageConvertToGifTest() throws ApiException - { - final String name = "4pages.pdf"; - this.uploadFile(name); - - int pageNumber = 2; - - File response = this.pdfApi.getPageConvertToGif(name, pageNumber, null, null, this.tempFolder, null); - assertNotNull(response); - } - - /** - * PutPageConvertToGif Test - * @throws ApiException - * if the Api call fails - */ - @Test - public void putPageConvertToGifTest() throws ApiException - { - final String name = "4pages.pdf"; - this.uploadFile(name); - - int pageNumber = 2; - final String resultFile = "page.gif"; - final String outPath = this.tempFolder + '/' + resultFile; - AsposeResponse response = this.pdfApi.putPageConvertToGif(name, pageNumber, outPath, - null, null, this.tempFolder, null); - assertEquals(200, (int)response.getCode()); - } - - - // Pages Tests - - /** - * DeletePage Test - * @throws ApiException - * if the Api call fails - */ - - @Test - public void deletePageTest() throws ApiException - { - String name = "4pages.pdf"; - this.uploadFile(name); - - int pageNumber = 1; - String folder = this.tempFolder; - - AsposeResponse response = this.pdfApi.deletePage(name, pageNumber, null, folder); - assertEquals(200, (int)response.getCode()); - } - - - /** - * GetPage Test - * @throws ApiException - * if the Api call fails - */ - - @Test - public void getPageTest() throws ApiException - { - String name = "4pages.pdf"; - this.uploadFile(name); - - int pageNumber = 3; - String folder = this.tempFolder; - - DocumentPageResponse response = this.pdfApi.getPage(name, pageNumber, null, folder); - assertNotNull(response); - } - - - /** - * GetPages Test - * @throws ApiException - * if the Api call fails - */ - - @Test - public void getPagesTest() throws ApiException - { - String name = "4pages.pdf"; - this.uploadFile(name); - - String folder = this.tempFolder; - - DocumentPagesResponse response = this.pdfApi.getPages(name, null, folder); - assertEquals(200, (int)response.getCode()); - } - - - /** - * GetWordsPerPage Test - * @throws ApiException - * if the Api call fails - */ - - @Test - public void getWordsPerPageTest() throws ApiException - { - String name = "4pages.pdf"; - this.uploadFile(name); - - String folder = this.tempFolder; - - WordCountResponse response = this.pdfApi.getWordsPerPage(name, null, folder); - assertEquals(200, (int)response.getCode()); - } - - - /** - * PostMovePage Test - * @throws ApiException - * if the Api call fails - */ - - @Test - public void postMovePageTest() throws ApiException - { - String name = "4pages.pdf"; - this.uploadFile(name); - - String folder = this.tempFolder; - int pageNumber = 1; - int newIndex = 1; - - AsposeResponse response = this.pdfApi.postMovePage(name, pageNumber, newIndex, null, folder); - assertEquals(200, (int)response.getCode()); - } - - - /** - * PutAddNewPage Test - * @throws ApiException - * if the Api call fails - */ - - @Test - public void putAddNewPageTest() throws ApiException - { - String name = "4pages.pdf"; - this.uploadFile(name); - - String folder = this.tempFolder; - - DocumentPagesResponse response = this.pdfApi.putAddNewPage(name, null, folder); - assertEquals(200, (int)response.getCode()); - } - - - /** - * PutPageAddStamp Test - * @throws ApiException - * if the Api call fails - */ - - @Test - public void putPageAddStampTest() throws ApiException - { - String name = "4pages.pdf"; - this.uploadFile(name); - - String stampFileName = "Penguins.jpg"; - this.uploadFile(stampFileName); - - int pageNumber = 1; - String folder = this.tempFolder; - - - Stamp stamp = new Stamp(); - stamp.setType(StampType.IMAGE); - stamp.setFileName(folder + '/' + stampFileName); - stamp.setBackground(true); - stamp.setWidth(200.); - stamp.setHeight(200.); - stamp.setXindent(100.); - stamp.setYindent(100.); - - AsposeResponse response = this.pdfApi.putPageAddStamp(name, pageNumber, stamp, null, folder); - assertEquals(200, (int)response.getCode()); - } - - - // Privileges Tests - - /** - * PutPrivileges Test - * @throws ApiException - * if the Api call fails - */ - - @Test - public void putPrivilegesTest() throws ApiException - { - String name = "4pages.pdf"; - this.uploadFile(name); - - DocumentPrivilege documentPrivilege = new DocumentPrivilege(); - documentPrivilege.setAllowCopy(false); - documentPrivilege.setAllowPrint(false); - - String folder = this.tempFolder; - - AsposeResponse response = this.pdfApi.putPrivileges(name, documentPrivilege, null, folder); - assertEquals(200, (int)response.getCode()); - } - - - // Properties Tests - - /** - * DeleteProperties Test - * @throws ApiException - * if the Api call fails - */ - - @Test - public void deletePropertiesTest() throws ApiException - { - String name = "PdfWithAcroForm.pdf"; - this.uploadFile(name); - - DocumentProperty property1 = new DocumentProperty(); - property1.setName("prop1"); - property1.setValue("val1"); - - String folder = this.tempFolder; - - DocumentProperty property2 = new DocumentProperty(); - property2.setName("prop2"); - property2.setValue("val2"); - - - this.pdfApi.putSetProperty(name, property1.getName(), property1.getValue(), null, folder); - this.pdfApi.putSetProperty(name, property2.getName(), property2.getValue(), null, folder); - - AsposeResponse response = this.pdfApi.deleteProperties(name, null, folder); - assertEquals(200, (int)response.getCode()); - } - - - /** - * DeleteProperty Test - * @throws ApiException - * if the Api call fails - */ - - @Test - public void deletePropertyTest() throws ApiException - { - String name = "PdfWithAcroForm.pdf"; - this.uploadFile(name); - - DocumentProperty property1 = new DocumentProperty(); - property1.setName("prop1"); - property1.setValue("val1"); - - String folder = this.tempFolder; - - this.pdfApi.putSetProperty(name, property1.getName(), property1.getValue(), null, folder); - - AsposeResponse response = this.pdfApi.deleteProperty(name, property1.getName(), null, folder); - assertEquals(200, (int)response.getCode()); - } - - - /** - * GetDocumentProperties Test - * @throws ApiException - * if the Api call fails - */ - - @Test - public void getDocumentPropertiesTest() throws ApiException - { - String name = "PdfWithAcroForm.pdf"; - this.uploadFile(name); - - DocumentProperty property1 = new DocumentProperty(); - property1.setName("prop1"); - property1.setValue("val1"); - - String folder = this.tempFolder; - - DocumentProperty property2 = new DocumentProperty(); - property2.setName("prop2"); - property2.setValue("val2"); - - this.pdfApi.putSetProperty(name, property1.getName(), property1.getValue(), null, folder); - this.pdfApi.putSetProperty(name, property2.getName(), property2.getValue(), null, folder); - - DocumentPropertiesResponse response = this.pdfApi.getDocumentProperties(name, null, folder); - assertEquals(200, (int)response.getCode()); - } - - - /** - * GetDocumentProperty Test - * @throws ApiException - * if the Api call fails - */ - - @Test - public void getDocumentPropertyTest() throws ApiException - { - String name = "PdfWithAcroForm.pdf"; - this.uploadFile(name); - - DocumentProperty property1 = new DocumentProperty(); - property1.setName("prop1"); - property1.setValue("val1"); - - String folder = this.tempFolder; - - this.pdfApi.putSetProperty(name, property1.getName(), property1.getValue(), null, folder); - - DocumentPropertyResponse response = this.pdfApi.getDocumentProperty(name, property1.getName(), null, folder); - assertEquals(200, (int)response.getCode()); - } - - - /** - * PutSetProperty Test - * @throws ApiException - * if the Api call fails - */ - - @Test - public void putSetPropertyTest() throws ApiException - { - String name = "PdfWithAcroForm.pdf"; - this.uploadFile(name); - - DocumentProperty property1 = new DocumentProperty(); - property1.setName("prop1"); - property1.setValue("val1"); - - String folder = this.tempFolder; - - DocumentPropertyResponse response = this.pdfApi.putSetProperty(name, property1.getName(), property1.getValue(), null, folder); - assertEquals(200, (int)response.getCode()); - } - - - // Sign Tests - - /** - * PostSignDocument Test - * @throws ApiException - * if the Api call fails - */ - - @Test - public void postSignDocumentTest() throws ApiException - { - String name = "BlankWithSignature.pdf"; - this.uploadFile(name); - - String signatureFileName = "test1234.pfx"; - this.uploadFile(signatureFileName); - - Rectangle rectangle = new Rectangle() - .LLX(100.) - .LLY(100.) - .URX(500.) - .URY(200.); - - String folder = this.tempFolder; - - Signature signature = new Signature(); - signature.setAuthority("Sergey Smal"); - signature.setContact("test@mail.ru"); - signature.setDate("08/01/2012 12:15:00.000 PM"); - signature.setFormFieldName("Signature1"); - signature.setLocation("Ukraine"); - signature.setPassword("test1234"); - signature.setRectangle(rectangle); - signature.setSignaturePath(folder + '/' + signatureFileName); - signature.setSignatureType(SignatureType.PKCS7); - signature.setVisible(true); - - AsposeResponse response = this.pdfApi.postSignDocument(name, signature, null, folder); - assertEquals(200, (int)response.getCode()); - } - - - /** - * PostSignPage Test - * @throws ApiException - * if the Api call fails - */ - - @Test - public void postSignPageTest() throws ApiException - { - String name = "BlankWithSignature.pdf"; - this.uploadFile(name); - - String signatureFileName = "test1234.pfx"; - this.uploadFile(signatureFileName); - - int pageNumber = 1; - - Rectangle rectangle = new Rectangle() - .LLX(100.) - .LLY(100.) - .URX(500.) - .URY(200.); - - String folder = this.tempFolder; - - Signature signature = new Signature(); - signature.setAuthority("Sergey Smal"); - signature.setContact("test@mail.ru"); - signature.setDate("08/01/2012 12:15:00.000 PM"); - signature.setFormFieldName("Signature1"); - signature.setLocation("Ukraine"); - signature.setPassword("test1234"); - signature.setRectangle(rectangle); - signature.setSignaturePath(folder + '/' + signatureFileName); - signature.setSignatureType(SignatureType.PKCS7); - signature.setVisible(true); - - AsposeResponse response = this.pdfApi.postSignPage(name, pageNumber, signature, null, folder); - assertEquals(200, (int)response.getCode()); - } - - - /** - * GetVerifySignature Test - * @throws ApiException - * if the Api call fails - */ - - @Test - public void getVerifySignatureTest() throws ApiException - { - String name = "BlankWithSignature.pdf"; - this.uploadFile(name); - - String signatureFileName = "test1234.pfx"; - this.uploadFile(signatureFileName); - - Rectangle rectangle = new Rectangle() - .LLX(100.) - .LLY(100.) - .URX(500.) - .URY(200.); - - String folder = this.tempFolder; - - Signature signature = new Signature(); - signature.setAuthority("Sergey Smal"); - signature.setContact("test@mail.ru"); - signature.setDate("08/01/2012 12:15:00.000 PM"); - signature.setFormFieldName("Signature1"); - signature.setLocation("Ukraine"); - signature.setPassword("test1234"); - signature.setRectangle(rectangle); - signature.setSignaturePath(folder + '/' + signatureFileName); - signature.setSignatureType(SignatureType.PKCS7); - signature.setVisible(true); - - AsposeResponse responseSign = this.pdfApi.postSignDocument(name, signature, null, folder); - assertEquals(200, (int)responseSign.getCode()); - - SignatureVerifyResponse response = this.pdfApi.getVerifySignature(name, signature.getFormFieldName(), null, folder); - assertEquals(200, (int)response.getCode()); - } - - // Encrypt Decrypt Tests - - /** - * PutEncryptDocument Test - * @throws ApiException - * if the Api call fails - */ - - @Test - public void putEncryptDocumentTest() throws ApiException - { - String name = "4pages.pdf"; - File file = new File(testDataFolder + "/" + name); - - String outPath = tempFolder + '/' + name; - String userPasswordBase64encoded = "dXNlciAkXlBhc3N3b3JkISY="; //user $^Password!& - String ownerPasswordBase64encoded = "b3duZXJcLy8/ICQxMl5QYXNzd29yZCEm"; //owner\//? $12^Password!& - - AsposeResponse response = this.pdfApi.putEncryptDocument(outPath, userPasswordBase64encoded, ownerPasswordBase64encoded, - CryptoAlgorithm.AESX128.getValue(), null, null, null, file); - assertEquals(200, (int)response.getCode()); - } - - /** - * PostEncryptDocumentInStorage Test - * @throws ApiException - * if the Api call fails - */ - - @Test - public void postEncryptDocumentInStorageTest() throws ApiException - { - String name = "4pages.pdf"; - this.uploadFile(name); - - String userPasswordBase64encoded = "dXNlciAkXlBhc3N3b3JkISY="; //user $^Password!& - String ownerPasswordBase64encoded = "b3duZXJcLy8/ICQxMl5QYXNzd29yZCEm"; //owner\//? $12^Password!& - - AsposeResponse response = this.pdfApi.postEncryptDocumentInStorage(name, userPasswordBase64encoded, ownerPasswordBase64encoded, - CryptoAlgorithm.AESX128.getValue(), null, null, null, tempFolder); - assertEquals(200, (int)response.getCode()); - } - - /** - * PutDecryptDocument Test - * @throws ApiException - * if the Api call fails - */ - - @Test - public void putDecryptDocumentTest() throws ApiException - { - String name = "4pagesEncrypted.pdf"; - File file = new File(testDataFolder + "/" + name); - - String outPath = tempFolder + '/' + name; - String userPasswordBase64encoded = "dXNlciAkXlBhc3N3b3JkISY="; //user $^Password!& - - AsposeResponse response = this.pdfApi.putDecryptDocument(outPath, userPasswordBase64encoded, null, file); - assertEquals(200, (int)response.getCode()); - } - - /** - * PostDencryptDocumentInStorage Test - * @throws ApiException - * if the Api call fails - */ - - @Test - public void posttDencryptDocumentInStorageTest() throws ApiException - { - String name = "4pagesEncrypted.pdf"; - this.uploadFile(name); - - String userPasswordBase64encoded = "dXNlciAkXlBhc3N3b3JkISY="; //user $^Password!& - - AsposeResponse response = this.pdfApi.postDecryptDocumentInStorage(name, userPasswordBase64encoded, null, tempFolder); - assertEquals(200, (int)response.getCode()); - } - - /** - * PutChangePasswordDocument Test - * @throws ApiException - * if the Api call fails - */ - - @Test - public void putChangePasswordDocumentTest() throws ApiException - { - String name = "4pagesEncrypted.pdf"; - File file = new File(testDataFolder + "/" + name); - - String outPath = tempFolder + '/' + name; - String ownerPasswordBase64Encoded = "b3duZXJcLy8/ICQxMl5QYXNzd29yZCEm"; //owner\//? $12^Password!& - String newUserPasswordBase64Encoded = "dXNlciBuZXcvLz8gJDEyXlBhc3N3b3JkISY="; //user new\//? $12^Password!& - String newOwnerPasswordBase64Encoded = "b3duZXIgbmV3Ly8/ICQxMl5QYXNzd29yZCEm"; //owner new\//? $12^Password!& - - AsposeResponse response = this.pdfApi.putChangePasswordDocument(outPath, ownerPasswordBase64Encoded, - newUserPasswordBase64Encoded, newOwnerPasswordBase64Encoded, null, file); - assertEquals(200, (int)response.getCode()); - } - - /** - * PostChangePasswordDocumentInStorage Test - * @throws ApiException - * if the Api call fails - */ - - @Test - public void postChangePasswordDocumentInStorageTest() throws ApiException - { - String name = "4pagesEncrypted.pdf"; - this.uploadFile(name); - - String ownerPasswordBase64Encoded = "b3duZXJcLy8/ICQxMl5QYXNzd29yZCEm"; //owner\//? $12^Password!& - String newUserPasswordBase64Encoded = "dXNlciBuZXcvLz8gJDEyXlBhc3N3b3JkISY="; //user new\//? $12^Password!& - String newOwnerPasswordBase64Encoded = "b3duZXIgbmV3Ly8/ICQxMl5QYXNzd29yZCEm"; //owner new\//? $12^Password!& - - AsposeResponse response = this.pdfApi.postChangePasswordDocumentInStorage(name, ownerPasswordBase64Encoded, - newUserPasswordBase64Encoded, newOwnerPasswordBase64Encoded, null, tempFolder); - assertEquals(200, (int)response.getCode()); - } - - // Text Replace Tests - - /** - * PostDocumentTextReplace Test - * @throws ApiException - * if the Api call fails - */ - - @Test - public void postDocumentTextReplaceTest() throws ApiException - { - String name = "marketing.pdf"; - this.uploadFile(name); - - Rectangle rect = new Rectangle() - .LLX(100.) - .LLY(100.) - .URX(300.) - .URY(300.); - - final TextReplace textReplace = new TextReplace(); - textReplace.setOldValue("market"); - textReplace.setNewValue("m_a_r_k_e_t"); - textReplace.setRegex(false); - textReplace.setRect(rect); - - TextReplaceListRequest textReplaceList = new TextReplaceListRequest(); - textReplaceList.setTextReplaces(new ArrayList(){{ add(textReplace); }}); - textReplaceList.setStartIndex(0); - textReplaceList.setCountReplace(0); - - String folder = this.tempFolder; - - TextReplaceResponse response = this.pdfApi.postDocumentTextReplace(name, textReplaceList, null, folder); - assertEquals(200, (int)response.getCode()); - } - - - /** - * PostPageTextReplaceByRect Test - * @throws ApiException - * if the Api call fails - */ - - @Test - public void postPageTextReplaceByRectTest() throws ApiException - { - String name = "marketing.pdf"; - this.uploadFile(name); - int pageNumber = 1; - - Rectangle rect = new Rectangle() - .LLX(100.) - .LLY(700.) - .URX(400.) - .URY(1000.); - - final TextReplace textReplace = new TextReplace(); - textReplace.setOldValue("market"); - textReplace.setNewValue("m_a_r_k_e_t"); - textReplace.setRegex(false); - textReplace.setRect(rect); - - TextReplaceListRequest textReplaceList = new TextReplaceListRequest(); - textReplaceList.setTextReplaces(new ArrayList(){{ add(textReplace); }}); - textReplaceList.setStartIndex(0); - textReplaceList.setCountReplace(0); - - String folder = this.tempFolder; - - TextReplaceResponse response = this.pdfApi.postPageTextReplace(name, pageNumber, textReplaceList, null, folder); - assertEquals(200, (int)response.getCode()); - } - - - // Text Tests - - /** - * GetText Test - * @throws ApiException - * if the Api call fails - */ - - @Test - public void getTextTest() throws ApiException - { - String name = "4pages.pdf"; - this.uploadFile(name); - - double llx = 0; - double lly = 0; - double urx = 0; - double ury = 0; - String folder = this.tempFolder; - - TextRectsResponse response = this.pdfApi.getText(name, llx, lly, urx, ury, null, null, null, folder, null); - assertEquals(200, (int)response.getCode()); - } - - - /** - * GetPageTextByTwoTextOnPage Test - * @throws ApiException - * if the Api call fails - */ - - @Test - public void getPageTextByTwoTextOnPageTest() throws ApiException - { - String name = "4pages.pdf"; - this.uploadFile(name); - - int pageNumber = 1; - double llx = 0; - double lly = 0; - double urx = 0; - double ury = 0; - - List format = new ArrayList(){{ add("First Page"); add("Second Page");}}; - String folder = this.tempFolder; - - TextRectsResponse response = this.pdfApi.getPageText(name, pageNumber, llx, lly, urx, ury, format, null, null, folder, null); - assertEquals(200, (int)response.getCode()); - } - - - /** - * PutAddText Test - * @throws ApiException - * if the Api call fails - */ - - @Test - public void putAddTextTest() throws ApiException - { - String name = "4pages.pdf"; - this.uploadFile(name); - - int pageNumber = 1; - String folder = this.tempFolder; - - Rectangle rectangle = new Rectangle(); - rectangle.setLLX(100.); - rectangle.setLLY(100.); - rectangle.setURX(200.); - rectangle.setURY(200.); - - Color foregroundColor = new Color(); - foregroundColor.setA(0x00); - foregroundColor.setR(0x00); - foregroundColor.setG(0xFF); - foregroundColor.setB(0x00); - - Color backgroundColor = new Color(); - backgroundColor.setA(0x00); - backgroundColor.setR(0xFF); - backgroundColor.setG(0x00); - backgroundColor.setB(0x00); - - TextState textState = new TextState(); - textState.setFont("Arial"); - textState.setFontSize(10.); - textState.setForegroundColor(foregroundColor); - textState.setBackgroundColor(backgroundColor); - textState.setFontStyle(FontStyles.BOLD); - - final Segment segment = new Segment(); - segment.setValue("segment 1"); - segment.setTextState(textState); - - final TextLine textLine = new TextLine(); - textLine.setHorizontalAlignment(TextHorizontalAlignment.RIGHT); - textLine.setSegments(new ArrayList(){{ add(segment);}}); - - Paragraph paragraph = new Paragraph(); - paragraph.setRectangle(rectangle); - paragraph.setLeftMargin(10.); - paragraph.setRightMargin(10.); - paragraph.setTopMargin(20.); - paragraph.setBottomMargin(20.); - paragraph.setHorizontalAlignment(TextHorizontalAlignment.FULLJUSTIFY); - paragraph.setLineSpacing(LineSpacing.FONTSIZE); - paragraph.setRotation(10.); - paragraph.setSubsequentLinesIndent(20.); - paragraph.setVerticalAlignment(VerticalAlignment.CENTER); - paragraph.setWrapMode(WrapMode.BYWORDS); - paragraph.setLines(new ArrayList(){{ add(textLine);}}); - - - AsposeResponse response = this.pdfApi.putAddText(name, pageNumber, paragraph, folder, null); - assertEquals(200, (int)response.getCode()); - } - - - // Storage Tests - - /** - * UploadFile Test - * @throws ApiException - * if the Api call fails - */ - - @Test - public void uploadFileTest() throws ApiException - { - String name = "4pages.pdf"; - String path = this.tempFolder + '/' + name; - File file = new File(testDataFolder + "/" + name); - AsposeResponse response = this.pdfApi.putCreate(path, file, null, null); - assertEquals(200, (int)response.getCode()); - } - - /** - * GetDownload Test - * @throws ApiException - * if the Api call fails - */ - - @Test - public void getDownloadTest() throws ApiException - { - String name = "4pages.pdf"; - this.uploadFile(name); - - String path = this.tempFolder + '/' + name; - - File response = this.pdfApi.getDownload(path, null, null); - assertNotNull(response); - } - - /** - * GetListFiles Test - * @throws ApiException - * if the Api call fails - */ - - @Test - 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()); - } -} diff --git a/src/test/java/com/aspose/asposecloudpdf/api/PolyLineAnnotationsTests.java b/src/test/java/com/aspose/asposecloudpdf/api/PolyLineAnnotationsTests.java new file mode 100644 index 0000000..82e21e5 --- /dev/null +++ b/src/test/java/com/aspose/asposecloudpdf/api/PolyLineAnnotationsTests.java @@ -0,0 +1,184 @@ +/** + * + * Copyright (c) 2009 Aspose.PDF Cloud + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of TestHelper.getInstance() 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.api; + +import com.aspose.asposecloudpdf.ApiException; +import com.aspose.asposecloudpdf.model.*; + +import org.junit.Test; + +import java.util.ArrayList; +import java.util.List; + +import static org.junit.Assert.assertEquals; + +public class PolyLineAnnotationsTests { + private TestHelper th; + + public PolyLineAnnotationsTests() throws ApiException { + th = TestHelper.getInstance(); + } + + /** + * GetDocumentPolyLineAnnotationsTest + * @throws ApiException + * if the Api call fails + */ + @Test + public void getDocumentPolyLineAnnotationsTest()throws ApiException + { + String name = "PdfWithAnnotations.pdf"; + th.uploadFile(name); + + PolyLineAnnotationsResponse response = th.pdfApi.getDocumentPolyLineAnnotations(name, null, th.tempFolder); + assertEquals(200, (int)response.getCode()); + } + + /** + * GetPagePolyLineAnnotationsTest + * @throws ApiException + * if the Api call fails + */ + @Test + public void getPagePolyLineAnnotationsTest()throws ApiException + { + String name = "PdfWithAnnotations.pdf"; + th.uploadFile(name); + + int pageNumber = 2; + + PolyLineAnnotationsResponse response = th.pdfApi.getPagePolyLineAnnotations(name, pageNumber, null, th.tempFolder); + assertEquals(200, (int)response.getCode()); + } + + + /** + * GetPolyLineAnnotationTest + * @throws ApiException + * if the Api call fails + */ + @Test + public void getPolyLineAnnotationTest()throws ApiException + { + String name = "PdfWithAnnotations.pdf"; + th.uploadFile(name); + + PolyLineAnnotationsResponse responseAnnotations = th.pdfApi.getDocumentPolyLineAnnotations(name, null, th.tempFolder); + assertEquals(200, (int)responseAnnotations.getCode()); + String annotationId = responseAnnotations.getAnnotations().getList().get(0).getId(); + + PolyLineAnnotationResponse response = th.pdfApi.getPolyLineAnnotation(name, annotationId, null, th.tempFolder); + assertEquals(200, (int)response.getCode()); + } + + /** + * PostPagePolyLineAnnotationsTest + * @throws ApiException + * if the Api call fails + */ + @Test + public void postPagePolyLineAnnotationsTest()throws ApiException + { + String name = "PdfWithAnnotations.pdf"; + th.uploadFile(name); + + int pageNumber = 1; + + Rectangle rect = new Rectangle() + .LLX(100.) + .LLY(100.) + .URX(200.) + .URY(200.); + + List vertices = new ArrayList(); + vertices.add(new Point().X(10.).Y(10.)); + vertices.add(new Point().X(20.).Y(10.)); + vertices.add(new Point().X(10.).Y(20.)); + vertices.add(new Point().X(10.).Y(10.)); + + List flags = new ArrayList<>(); + flags.add(AnnotationFlags.DEFAULT); + + PolyLineAnnotation annotation = new PolyLineAnnotation(); + annotation.setName("Name"); + annotation.setRect(rect); + annotation.setFlags(flags); + annotation.setHorizontalAlignment(HorizontalAlignment.CENTER); + annotation.setRichText("Rich Text"); + annotation.setSubject("Subj"); + annotation.setZindex(1); + annotation.setTitle("Title"); + annotation.setVertices(vertices); + + List annotations = new ArrayList<>(); + annotations.add(annotation); + + AsposeResponse response = th.pdfApi.postPagePolyLineAnnotations(name, pageNumber, annotations, null, th.tempFolder); + assertEquals(200, (int)response.getCode()); + } + + + /** + * PutPolyLineAnnotationTest + * @throws ApiException + * if the Api call fails + */ + @Test + public void putPolyLineAnnotationTest()throws ApiException + { + String name = "PdfWithAnnotations.pdf"; + th.uploadFile(name); + + Rectangle rect = new Rectangle() + .LLX(100.) + .LLY(100.) + .URX(200.) + .URY(200.); + + List vertices = new ArrayList(); + vertices.add(new Point().X(10.).Y(10.)); + vertices.add(new Point().X(20.).Y(10.)); + vertices.add(new Point().X(10.).Y(20.)); + vertices.add(new Point().X(10.).Y(10.)); + + List flags = new ArrayList<>(); + flags.add(AnnotationFlags.DEFAULT); + + PolyLineAnnotation annotation = new PolyLineAnnotation(); + annotation.setName("Name Updated"); + annotation.setRect(rect); + annotation.setFlags(flags); + annotation.setHorizontalAlignment(HorizontalAlignment.CENTER); + annotation.setRichText("Rich Text Updated"); + annotation.setSubject("Subj Updated"); + annotation.setZindex(1); + annotation.setTitle("Title Updated"); + annotation.setVertices(vertices); + + PolyLineAnnotationsResponse responseAnnotations = th.pdfApi.getDocumentPolyLineAnnotations(name, null, th.tempFolder); + assertEquals(200, (int)responseAnnotations.getCode()); + String annotationId = responseAnnotations.getAnnotations().getList().get(0).getId(); + + AsposeResponse response = th.pdfApi.putPolyLineAnnotation(name, annotationId, annotation, null, th.tempFolder); + assertEquals(200, (int)response.getCode()); + } +} diff --git a/src/test/java/com/aspose/asposecloudpdf/api/PolygonAnnotationsTests.java b/src/test/java/com/aspose/asposecloudpdf/api/PolygonAnnotationsTests.java new file mode 100644 index 0000000..ec0ee73 --- /dev/null +++ b/src/test/java/com/aspose/asposecloudpdf/api/PolygonAnnotationsTests.java @@ -0,0 +1,184 @@ +/** + * + * Copyright (c) 2009 Aspose.PDF Cloud + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of TestHelper.getInstance() 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.api; + +import com.aspose.asposecloudpdf.ApiException; +import com.aspose.asposecloudpdf.model.*; + +import org.junit.Test; + +import java.util.ArrayList; +import java.util.List; + +import static org.junit.Assert.assertEquals; + +public class PolygonAnnotationsTests { + private TestHelper th; + + public PolygonAnnotationsTests() throws ApiException { + th = TestHelper.getInstance(); + } + + /** + * GetDocumentPolygonAnnotationsTest + * @throws ApiException + * if the Api call fails + */ + @Test + public void getDocumentPolygonAnnotationsTest()throws ApiException + { + String name = "PdfWithAnnotations.pdf"; + th.uploadFile(name); + + PolygonAnnotationsResponse response = th.pdfApi.getDocumentPolygonAnnotations(name, null, th.tempFolder); + assertEquals(200, (int)response.getCode()); + } + + /** + * GetPagePolygonAnnotationsTest + * @throws ApiException + * if the Api call fails + */ + @Test + public void getPagePolygonAnnotationsTest()throws ApiException + { + String name = "PdfWithAnnotations.pdf"; + th.uploadFile(name); + + int pageNumber = 2; + + PolygonAnnotationsResponse response = th.pdfApi.getPagePolygonAnnotations(name, pageNumber, null, th.tempFolder); + assertEquals(200, (int)response.getCode()); + } + + + /** + * GetPolygonAnnotationTest + * @throws ApiException + * if the Api call fails + */ + @Test + public void getPolygonAnnotationTest()throws ApiException + { + String name = "PdfWithAnnotations.pdf"; + th.uploadFile(name); + + PolygonAnnotationsResponse responseAnnotations = th.pdfApi.getDocumentPolygonAnnotations(name, null, th.tempFolder); + assertEquals(200, (int)responseAnnotations.getCode()); + String annotationId = responseAnnotations.getAnnotations().getList().get(0).getId(); + + PolygonAnnotationResponse response = th.pdfApi.getPolygonAnnotation(name, annotationId, null, th.tempFolder); + assertEquals(200, (int)response.getCode()); + } + + /** + * PostPagePolygonAnnotationsTest + * @throws ApiException + * if the Api call fails + */ + @Test + public void postPagePolygonAnnotationsTest()throws ApiException + { + String name = "PdfWithAnnotations.pdf"; + th.uploadFile(name); + + int pageNumber = 1; + + Rectangle rect = new Rectangle() + .LLX(100.) + .LLY(100.) + .URX(200.) + .URY(200.); + + List vertices = new ArrayList(); + vertices.add(new Point().X(10.).Y(10.)); + vertices.add(new Point().X(20.).Y(10.)); + vertices.add(new Point().X(10.).Y(20.)); + vertices.add(new Point().X(10.).Y(10.)); + + List flags = new ArrayList<>(); + flags.add(AnnotationFlags.DEFAULT); + + PolygonAnnotation annotation = new PolygonAnnotation(); + annotation.setName("Name"); + annotation.setRect(rect); + annotation.setFlags(flags); + annotation.setHorizontalAlignment(HorizontalAlignment.CENTER); + annotation.setRichText("Rich Text"); + annotation.setSubject("Subj"); + annotation.setZindex(1); + annotation.setTitle("Title"); + annotation.setVertices(vertices); + + List annotations = new ArrayList<>(); + annotations.add(annotation); + + AsposeResponse response = th.pdfApi.postPagePolygonAnnotations(name, pageNumber, annotations, null, th.tempFolder); + assertEquals(200, (int)response.getCode()); + } + + + /** + * PutPolygonAnnotationTest + * @throws ApiException + * if the Api call fails + */ + @Test + public void putPolygonAnnotationTest()throws ApiException + { + String name = "PdfWithAnnotations.pdf"; + th.uploadFile(name); + + Rectangle rect = new Rectangle() + .LLX(100.) + .LLY(100.) + .URX(200.) + .URY(200.); + + List vertices = new ArrayList(); + vertices.add(new Point().X(10.).Y(10.)); + vertices.add(new Point().X(20.).Y(10.)); + vertices.add(new Point().X(10.).Y(20.)); + vertices.add(new Point().X(10.).Y(10.)); + + List flags = new ArrayList<>(); + flags.add(AnnotationFlags.DEFAULT); + + PolygonAnnotation annotation = new PolygonAnnotation(); + annotation.setName("Name Updated"); + annotation.setRect(rect); + annotation.setFlags(flags); + annotation.setHorizontalAlignment(HorizontalAlignment.CENTER); + annotation.setRichText("Rich Text Updated"); + annotation.setSubject("Subj Updated"); + annotation.setZindex(1); + annotation.setTitle("Title Updated"); + annotation.setVertices(vertices); + + PolygonAnnotationsResponse responseAnnotations = th.pdfApi.getDocumentPolygonAnnotations(name, null, th.tempFolder); + assertEquals(200, (int)responseAnnotations.getCode()); + String annotationId = responseAnnotations.getAnnotations().getList().get(0).getId(); + + AsposeResponse response = th.pdfApi.putPolygonAnnotation(name, annotationId, annotation, null, th.tempFolder); + assertEquals(200, (int)response.getCode()); + } +} diff --git a/src/test/java/com/aspose/asposecloudpdf/api/PopupAnnotationsTests.java b/src/test/java/com/aspose/asposecloudpdf/api/PopupAnnotationsTests.java new file mode 100644 index 0000000..64001b3 --- /dev/null +++ b/src/test/java/com/aspose/asposecloudpdf/api/PopupAnnotationsTests.java @@ -0,0 +1,181 @@ +/** + * + * Copyright (c) 2009 Aspose.PDF Cloud + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of TestHelper.getInstance() 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.api; + +import com.aspose.asposecloudpdf.ApiException; +import com.aspose.asposecloudpdf.model.*; + +import org.junit.Test; + +import java.util.ArrayList; +import java.util.List; + +import static org.junit.Assert.assertEquals; + +public class PopupAnnotationsTests { + private TestHelper th; + + public PopupAnnotationsTests() throws ApiException { + th = TestHelper.getInstance(); + } + + /** + * GetDocumentPopupAnnotationsTest + * @throws ApiException + * if the Api call fails + */ + @Test + public void getDocumentPopupAnnotationsTest()throws ApiException + { + String name = "PdfWithAnnotations.pdf"; + th.uploadFile(name); + + PopupAnnotationsResponse response = th.pdfApi.getDocumentPopupAnnotations(name, null, th.tempFolder); + assertEquals(200, (int)response.getCode()); + } + + /** + * GetDocumentPopupAnnotationsByParentTest + * @throws ApiException + * if the Api call fails + */ + @Test + public void getDocumentPopupAnnotationsByParentTest()throws ApiException + { + String name = "PdfWithAnnotations.pdf"; + th.uploadFile(name); + + String parentId = "GI5TAOZRGU3CYNZSGEWDCNZWFQ3TGOI"; + + PopupAnnotationsResponse response = th.pdfApi.getDocumentPopupAnnotationsByParent(name, parentId, null, th.tempFolder); + assertEquals(200, (int)response.getCode()); + } + + /** + * GetPagePopupAnnotationsTest + * @throws ApiException + * if the Api call fails + */ + @Test + public void getPagePopupAnnotationsTest()throws ApiException + { + String name = "PdfWithAnnotations.pdf"; + th.uploadFile(name); + + int pageNumber = 2; + + PopupAnnotationsResponse response = th.pdfApi.getPagePopupAnnotations(name, pageNumber, null, th.tempFolder); + assertEquals(200, (int)response.getCode()); + } + + /** + * GetPopupAnnotationTest + * @throws ApiException + * if the Api call fails + */ + @Test + public void getPopupAnnotationTest()throws ApiException + { + String name = "PdfWithAnnotations.pdf"; + th.uploadFile(name); + + PopupAnnotationsResponse responseAnnotations = th.pdfApi.getDocumentPopupAnnotations(name, null, th.tempFolder); + assertEquals(200, (int)responseAnnotations.getCode()); + String annotationId = responseAnnotations.getAnnotations().getList().get(0).getId(); + + PopupAnnotationResponse response = th.pdfApi.getPopupAnnotation(name, annotationId, null, th.tempFolder); + assertEquals(200, (int)response.getCode()); + } + + /** + * PostPopupAnnotationTest + * @throws ApiException + * if the Api call fails + */ + @Test + public void postPopupAnnotationTest()throws ApiException + { + String name = "PdfWithAnnotations.pdf"; + th.uploadFile(name); + + String parentId = "GI5TCMR3GE2TQLBSGM3CYMJYGUWDENRV"; + + Rectangle rect = new Rectangle() + .LLX(100.) + .LLY(100.) + .URX(200.) + .URY(200.); + + List flags = new ArrayList<>(); + flags.add(AnnotationFlags.DEFAULT); + + PopupAnnotation annotation = new PopupAnnotation(); + annotation.setName("Name"); + annotation.setRect(rect); + annotation.setFlags(flags); + annotation.setHorizontalAlignment(HorizontalAlignment.CENTER); + annotation.setZindex(1); + annotation.setModified("02/02/2018 00:00:00.000 AM"); + + + AsposeResponse response = th.pdfApi.postPopupAnnotation(name, parentId, annotation, null, th.tempFolder); + assertEquals(200, (int)response.getCode()); + } + + + /** + * PutPopupAnnotationTest + * @throws ApiException + * if the Api call fails + */ + @Test + public void putPopupAnnotationTest()throws ApiException + { + String name = "PdfWithAnnotations.pdf"; + th.uploadFile(name); + + Rectangle rect = new Rectangle() + .LLX(100.) + .LLY(100.) + .URX(200.) + .URY(200.); + + List flags = new ArrayList<>(); + flags.add(AnnotationFlags.DEFAULT); + + + PopupAnnotation annotation = new PopupAnnotation(); + annotation.setName("Name Updated"); + annotation.setRect(rect); + annotation.setFlags(flags); + annotation.setHorizontalAlignment(HorizontalAlignment.CENTER); + annotation.setZindex(1); + annotation.setModified("02/02/2018 00:00:00.000 AM"); + + PopupAnnotationsResponse responseAnnotations = th.pdfApi.getDocumentPopupAnnotations(name, null, th.tempFolder); + assertEquals(200, (int)responseAnnotations.getCode()); + String annotationId = responseAnnotations.getAnnotations().getList().get(0).getId(); + + AsposeResponse response = th.pdfApi.putPopupAnnotation(name, annotationId, annotation, null, th.tempFolder); + assertEquals(200, (int)response.getCode()); + } +} diff --git a/src/test/java/com/aspose/asposecloudpdf/api/PrivilegesTests.java b/src/test/java/com/aspose/asposecloudpdf/api/PrivilegesTests.java new file mode 100644 index 0000000..6bf9708 --- /dev/null +++ b/src/test/java/com/aspose/asposecloudpdf/api/PrivilegesTests.java @@ -0,0 +1,59 @@ +/** + * + * Copyright (c) 2009 Aspose.PDF Cloud + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of TestHelper.getInstance() 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.api; + +import com.aspose.asposecloudpdf.ApiException; +import com.aspose.asposecloudpdf.model.*; + +import org.junit.Test; + +import static org.junit.Assert.assertEquals; + +public class PrivilegesTests { + private TestHelper th; + + public PrivilegesTests() throws ApiException { + th = TestHelper.getInstance(); + } + + /** + * PutPrivileges Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void putPrivilegesTest() throws ApiException + { + String name = "4pages.pdf"; + th.uploadFile(name); + + DocumentPrivilege documentPrivilege = new DocumentPrivilege(); + documentPrivilege.setAllowCopy(false); + documentPrivilege.setAllowPrint(false); + + String folder = th.tempFolder; + + AsposeResponse response = th.pdfApi.putPrivileges(name, documentPrivilege, null, folder); + assertEquals(200, (int)response.getCode()); + } +} diff --git a/src/test/java/com/aspose/asposecloudpdf/api/PropertiesTests.java b/src/test/java/com/aspose/asposecloudpdf/api/PropertiesTests.java new file mode 100644 index 0000000..3033df7 --- /dev/null +++ b/src/test/java/com/aspose/asposecloudpdf/api/PropertiesTests.java @@ -0,0 +1,171 @@ +/** + * + * Copyright (c) 2009 Aspose.PDF Cloud + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of TestHelper.getInstance() 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.api; + +import com.aspose.asposecloudpdf.ApiException; +import com.aspose.asposecloudpdf.model.*; + +import org.junit.Test; + +import static org.junit.Assert.assertEquals; + +public class PropertiesTests { + private TestHelper th; + + public PropertiesTests() throws ApiException { + th = TestHelper.getInstance(); + } + + /** + * DeleteProperties Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void deletePropertiesTest() throws ApiException + { + String name = "PdfWithAcroForm.pdf"; + th.uploadFile(name); + + DocumentProperty property1 = new DocumentProperty(); + property1.setName("prop1"); + property1.setValue("val1"); + + String folder = th.tempFolder; + + DocumentProperty property2 = new DocumentProperty(); + property2.setName("prop2"); + property2.setValue("val2"); + + + th.pdfApi.putSetProperty(name, property1.getName(), property1.getValue(), null, folder); + th.pdfApi.putSetProperty(name, property2.getName(), property2.getValue(), null, folder); + + AsposeResponse response = th.pdfApi.deleteProperties(name, null, folder); + assertEquals(200, (int)response.getCode()); + } + + + /** + * DeleteProperty Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void deletePropertyTest() throws ApiException + { + String name = "PdfWithAcroForm.pdf"; + th.uploadFile(name); + + DocumentProperty property1 = new DocumentProperty(); + property1.setName("prop1"); + property1.setValue("val1"); + + String folder = th.tempFolder; + + th.pdfApi.putSetProperty(name, property1.getName(), property1.getValue(), null, folder); + + AsposeResponse response = th.pdfApi.deleteProperty(name, property1.getName(), null, folder); + assertEquals(200, (int)response.getCode()); + } + + + /** + * GetDocumentProperties Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void getDocumentPropertiesTest() throws ApiException + { + String name = "PdfWithAcroForm.pdf"; + th.uploadFile(name); + + DocumentProperty property1 = new DocumentProperty(); + property1.setName("prop1"); + property1.setValue("val1"); + + String folder = th.tempFolder; + + DocumentProperty property2 = new DocumentProperty(); + property2.setName("prop2"); + property2.setValue("val2"); + + th.pdfApi.putSetProperty(name, property1.getName(), property1.getValue(), null, folder); + th.pdfApi.putSetProperty(name, property2.getName(), property2.getValue(), null, folder); + + DocumentPropertiesResponse response = th.pdfApi.getDocumentProperties(name, null, folder); + assertEquals(200, (int)response.getCode()); + } + + + /** + * GetDocumentProperty Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void getDocumentPropertyTest() throws ApiException + { + String name = "PdfWithAcroForm.pdf"; + th.uploadFile(name); + + DocumentProperty property1 = new DocumentProperty(); + property1.setName("prop1"); + property1.setValue("val1"); + + String folder = th.tempFolder; + + th.pdfApi.putSetProperty(name, property1.getName(), property1.getValue(), null, folder); + + DocumentPropertyResponse response = th.pdfApi.getDocumentProperty(name, property1.getName(), null, folder); + assertEquals(200, (int)response.getCode()); + } + + + /** + * PutSetProperty Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void putSetPropertyTest() throws ApiException + { + String name = "PdfWithAcroForm.pdf"; + th.uploadFile(name); + + DocumentProperty property1 = new DocumentProperty(); + property1.setName("prop1"); + property1.setValue("val1"); + + String folder = th.tempFolder; + + DocumentPropertyResponse response = th.pdfApi.putSetProperty(name, property1.getName(), property1.getValue(), null, folder); + assertEquals(200, (int)response.getCode()); + } +} + diff --git a/src/test/java/com/aspose/asposecloudpdf/api/RedactionAnnotationsTests.java b/src/test/java/com/aspose/asposecloudpdf/api/RedactionAnnotationsTests.java new file mode 100644 index 0000000..aca5468 --- /dev/null +++ b/src/test/java/com/aspose/asposecloudpdf/api/RedactionAnnotationsTests.java @@ -0,0 +1,174 @@ +/** + * + * Copyright (c) 2009 Aspose.PDF Cloud + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of TestHelper.getInstance() 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.api; + +import com.aspose.asposecloudpdf.ApiException; +import com.aspose.asposecloudpdf.model.*; + +import org.junit.Test; + +import java.util.ArrayList; +import java.util.List; + +import static org.junit.Assert.assertEquals; + +public class RedactionAnnotationsTests { + private TestHelper th; + + public RedactionAnnotationsTests() throws ApiException { + th = TestHelper.getInstance(); + } + + /** + * GetDocumentRedactionAnnotationsTest + * @throws ApiException + * if the Api call fails + */ + @Test + public void getDocumentRedactionAnnotationsTest()throws ApiException + { + String name = "PdfWithAnnotations.pdf"; + th.uploadFile(name); + + RedactionAnnotationsResponse response = th.pdfApi.getDocumentRedactionAnnotations(name, null, th.tempFolder); + assertEquals(200, (int)response.getCode()); + } + + /** + * GetPageRedactionAnnotationsTest + * @throws ApiException + * if the Api call fails + */ + @Test + public void getPageRedactionAnnotationsTest()throws ApiException + { + String name = "PdfWithAnnotations.pdf"; + th.uploadFile(name); + + int pageNumber = 2; + + RedactionAnnotationsResponse response = th.pdfApi.getPageRedactionAnnotations(name, pageNumber, null, th.tempFolder); + assertEquals(200, (int)response.getCode()); + } + + /** + * PostPageRedactionAnnotationsTest + * @throws ApiException + * if the Api call fails + */ + @Test + public void postPageRedactionAnnotationsTest()throws ApiException + { + String name = "PdfWithAnnotations.pdf"; + th.uploadFile(name); + + int pageNumber = 1; + + Rectangle rect = new Rectangle() + .LLX(100.) + .LLY(100.) + .URX(200.) + .URY(200.); + + List flags = new ArrayList<>(); + flags.add(AnnotationFlags.DEFAULT); + + List points = new ArrayList<>(); + points.add(new Point().X(10.).Y(40.)); + points.add(new Point().X(30.).Y(40.)); + + RedactionAnnotation annotation = new RedactionAnnotation(); + annotation.setName("Name"); + annotation.setRect(rect); + annotation.setFlags(flags); + annotation.setHorizontalAlignment(HorizontalAlignment.CENTER); + annotation.setZindex(1); + annotation.setModified("01/01/2018 12:00:00.000 AM"); + annotation.setQuadPoint(points); + + List annotations = new ArrayList<>(); + annotations.add(annotation); + + AsposeResponse response = th.pdfApi.postPageRedactionAnnotations(name, pageNumber, annotations, null, th.tempFolder); + assertEquals(200, (int)response.getCode()); + } + + /** + * GetRedactionAnnotationTest + * @throws ApiException + * if the Api call fails + */ + @Test + public void getRedactionAnnotationTest()throws ApiException + { + String name = "PdfWithAnnotations.pdf"; + th.uploadFile(name); + + RedactionAnnotationsResponse responseAnnotations = th.pdfApi.getDocumentRedactionAnnotations(name, null, th.tempFolder); + assertEquals(200, (int)responseAnnotations.getCode()); + String annotationId = responseAnnotations.getAnnotations().getList().get(0).getId(); + + RedactionAnnotationResponse response = th.pdfApi.getRedactionAnnotation(name, annotationId, null, th.tempFolder); + assertEquals(200, (int)response.getCode()); + } + + /** + * PutRedactionAnnotationTest + * @throws ApiException + * if the Api call fails + */ + @Test + public void putRedactionAnnotationTest()throws ApiException + { + String name = "PdfWithAnnotations.pdf"; + th.uploadFile(name); + + Rectangle rect = new Rectangle() + .LLX(100.) + .LLY(100.) + .URX(200.) + .URY(200.); + + List flags = new ArrayList<>(); + flags.add(AnnotationFlags.DEFAULT); + + List points = new ArrayList<>(); + points.add(new Point().X(10.).Y(40.)); + points.add(new Point().X(30.).Y(40.)); + + RedactionAnnotation annotation = new RedactionAnnotation(); + annotation.setName("Name Updated"); + annotation.setRect(rect); + annotation.setFlags(flags); + annotation.setHorizontalAlignment(HorizontalAlignment.CENTER); + annotation.setZindex(1); + annotation.setModified("01/01/2018 12:02:03.000 AM"); + annotation.setQuadPoint(points); + + RedactionAnnotationsResponse responseAnnotations = th.pdfApi.getDocumentRedactionAnnotations(name, null, th.tempFolder); + assertEquals(200, (int)responseAnnotations.getCode()); + String annotationId = responseAnnotations.getAnnotations().getList().get(0).getId(); + + AsposeResponse response = th.pdfApi.putRedactionAnnotation(name, annotationId, annotation, null, th.tempFolder); + assertEquals(200, (int)response.getCode()); + } +} diff --git a/src/test/java/com/aspose/asposecloudpdf/api/ScreenAnnotationsTests.java b/src/test/java/com/aspose/asposecloudpdf/api/ScreenAnnotationsTests.java new file mode 100644 index 0000000..47c85bf --- /dev/null +++ b/src/test/java/com/aspose/asposecloudpdf/api/ScreenAnnotationsTests.java @@ -0,0 +1,214 @@ +/** + * + * Copyright (c) 2009 Aspose.PDF Cloud + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of TestHelper.getInstance() 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.api; + +import com.aspose.asposecloudpdf.ApiException; +import com.aspose.asposecloudpdf.model.*; + +import org.junit.Test; + +import java.io.File; +import java.util.ArrayList; +import java.util.List; + +import static org.junit.Assert.assertEquals; +import static org.junit.Assert.assertNotNull; + +public class ScreenAnnotationsTests { + private TestHelper th; + + public ScreenAnnotationsTests() throws ApiException { + th = TestHelper.getInstance(); + } + + /** + * GetDocumentScreenAnnotationsTest + * @throws ApiException + * if the Api call fails + */ + @Test + public void getDocumentScreenAnnotationsTest()throws ApiException + { + String name = "PdfWithScreenAnnotations.pdf"; + th.uploadFile(name); + + ScreenAnnotationsResponse response = th.pdfApi.getDocumentScreenAnnotations(name, null, th.tempFolder); + assertEquals(200, (int)response.getCode()); + } + + /** + * GetPageScreenAnnotationsTest + * @throws ApiException + * if the Api call fails + */ + @Test + public void getPageScreenAnnotationsTest()throws ApiException + { + String name = "PdfWithScreenAnnotations.pdf"; + th.uploadFile(name); + + int pageNumber = 2; + + ScreenAnnotationsResponse response = th.pdfApi.getPageScreenAnnotations(name, pageNumber, null, th.tempFolder); + assertEquals(200, (int)response.getCode()); + } + + /** + * PostPageScreenAnnotationsTest + * @throws ApiException + * if the Api call fails + */ + @Test + public void postPageScreenAnnotationsTest()throws ApiException + { + String name = "PdfWithScreenAnnotations.pdf"; + th.uploadFile(name); + + String attachmentFile = "ScreenMovie.swf"; + th.uploadFile(attachmentFile); + + int pageNumber = 1; + + Rectangle rect = new Rectangle() + .LLX(100.) + .LLY(100.) + .URX(200.) + .URY(200.); + + List flags = new ArrayList<>(); + flags.add(AnnotationFlags.DEFAULT); + + ScreenAnnotation annotation = new ScreenAnnotation(); + annotation.setName("Name"); + annotation.setRect(rect); + annotation.setFlags(flags); + annotation.setHorizontalAlignment(HorizontalAlignment.CENTER); + annotation.setZindex(1); + annotation.setTitle("Title"); + annotation.setModified("01/01/2008 12:00:00.000 AM"); + annotation.setFilePath(th.tempFolder + '/' + attachmentFile); + + List annotations = new ArrayList<>(); + annotations.add(annotation); + + AsposeResponse response = th.pdfApi.postPageScreenAnnotations(name, pageNumber, annotations, null, th.tempFolder); + assertEquals(200, (int)response.getCode()); + } + + /** + * GetScreenAnnotationTest + * @throws ApiException + * if the Api call fails + */ + @Test + public void getScreenAnnotationTest()throws ApiException + { + String name = "PdfWithScreenAnnotations.pdf"; + th.uploadFile(name); + + ScreenAnnotationsResponse responseAnnotations = th.pdfApi.getDocumentScreenAnnotations(name, null, th.tempFolder); + assertEquals(200, (int)responseAnnotations.getCode()); + String annotationId = responseAnnotations.getAnnotations().getList().get(0).getId(); + + ScreenAnnotationResponse response = th.pdfApi.getScreenAnnotation(name, annotationId, null, th.tempFolder); + assertEquals(200, (int)response.getCode()); + } + + /** + * PutScreenAnnotationTest + * @throws ApiException + * if the Api call fails + */ + @Test + public void putScreenAnnotationTest()throws ApiException + { + String name = "PdfWithScreenAnnotations.pdf"; + th.uploadFile(name); + + String attachmentFile = "ScreenMovie.swf"; + th.uploadFile(attachmentFile); + + Rectangle rect = new Rectangle() + .LLX(100.) + .LLY(100.) + .URX(200.) + .URY(200.); + + List flags = new ArrayList<>(); + flags.add(AnnotationFlags.DEFAULT); + + ScreenAnnotation annotation = new ScreenAnnotation(); + annotation.setName("Name"); + annotation.setRect(rect); + annotation.setFlags(flags); + annotation.setHorizontalAlignment(HorizontalAlignment.CENTER); + annotation.setZindex(1); + annotation.setTitle("Title"); + annotation.setModified("01/01/2008 12:00:00.000 AM"); + annotation.setFilePath(th.tempFolder + '/' + attachmentFile); + + ScreenAnnotationsResponse responseAnnotations = th.pdfApi.getDocumentScreenAnnotations(name, null, th.tempFolder); + assertEquals(200, (int)responseAnnotations.getCode()); + String annotationId = responseAnnotations.getAnnotations().getList().get(0).getId(); + + AsposeResponse response = th.pdfApi.putScreenAnnotation(name, annotationId, annotation, null, th.tempFolder); + assertEquals(200, (int)response.getCode()); + } + + /** + * GetScreenAnnotationDataTest + * @throws ApiException + * if the Api call fails + */ + @Test + public void getScreenAnnotationDataTest()throws ApiException + { + String name = "PdfWithScreenAnnotations.pdf"; + th.uploadFile(name); + + ScreenAnnotationsResponse responseAnnotations = th.pdfApi.getDocumentScreenAnnotations(name, null, th.tempFolder); + assertEquals(200, (int)responseAnnotations.getCode()); + String annotationId = responseAnnotations.getAnnotations().getList().get(0).getId(); + + File response = th.pdfApi.getScreenAnnotationData(name, annotationId, null, th.tempFolder); + assertNotNull(response); + } + + /** + * PutScreenAnnotationDataExtractTest + * @throws ApiException + * if the Api call fails + */ + @Test + public void putScreenAnnotationDataExtractTest()throws ApiException + { + String name = "PdfWithScreenAnnotations.pdf"; + th.uploadFile(name); + + ScreenAnnotationsResponse responseAnnotations = th.pdfApi.getDocumentScreenAnnotations(name, null, th.tempFolder); + assertEquals(200, (int)responseAnnotations.getCode()); + String annotationId = responseAnnotations.getAnnotations().getList().get(0).getId(); + + AsposeResponse response = th.pdfApi.putScreenAnnotationDataExtract(name, annotationId, "outFile.dat", null, th.tempFolder); + assertEquals(200, (int)response.getCode()); + } +} \ No newline at end of file diff --git a/src/test/java/com/aspose/asposecloudpdf/api/SignTests.java b/src/test/java/com/aspose/asposecloudpdf/api/SignTests.java new file mode 100644 index 0000000..d2884c0 --- /dev/null +++ b/src/test/java/com/aspose/asposecloudpdf/api/SignTests.java @@ -0,0 +1,161 @@ +/** + * + * Copyright (c) 2009 Aspose.PDF Cloud + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of TestHelper.getInstance() 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.api; + +import com.aspose.asposecloudpdf.ApiException; +import com.aspose.asposecloudpdf.model.*; + +import org.junit.Test; + +import static org.junit.Assert.assertEquals; + +public class SignTests { + private TestHelper th; + + public SignTests() throws ApiException { + th = TestHelper.getInstance(); + } + + /** + * PostSignDocument Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void postSignDocumentTest() throws ApiException + { + String name = "BlankWithSignature.pdf"; + th.uploadFile(name); + + String signatureFileName = "test1234.pfx"; + th.uploadFile(signatureFileName); + + Rectangle rectangle = new Rectangle() + .LLX(100.) + .LLY(100.) + .URX(500.) + .URY(200.); + + String folder = th.tempFolder; + + Signature signature = new Signature(); + signature.setAuthority("Sergey Smal"); + signature.setContact("test@mail.ru"); + signature.setDate("08/01/2012 12:15:00.000 PM"); + signature.setFormFieldName("Signature1"); + signature.setLocation("Ukraine"); + signature.setPassword("test1234"); + signature.setRectangle(rectangle); + signature.setSignaturePath(folder + '/' + signatureFileName); + signature.setSignatureType(SignatureType.PKCS7); + signature.setVisible(true); + + AsposeResponse response = th.pdfApi.postSignDocument(name, signature, null, folder); + assertEquals(200, (int)response.getCode()); + } + + + /** + * PostSignPage Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void postSignPageTest() throws ApiException + { + String name = "BlankWithSignature.pdf"; + th.uploadFile(name); + + String signatureFileName = "test1234.pfx"; + th.uploadFile(signatureFileName); + + int pageNumber = 1; + + Rectangle rectangle = new Rectangle() + .LLX(100.) + .LLY(100.) + .URX(500.) + .URY(200.); + + String folder = th.tempFolder; + + Signature signature = new Signature(); + signature.setAuthority("Sergey Smal"); + signature.setContact("test@mail.ru"); + signature.setDate("08/01/2012 12:15:00.000 PM"); + signature.setFormFieldName("Signature1"); + signature.setLocation("Ukraine"); + signature.setPassword("test1234"); + signature.setRectangle(rectangle); + signature.setSignaturePath(folder + '/' + signatureFileName); + signature.setSignatureType(SignatureType.PKCS7); + signature.setVisible(true); + + AsposeResponse response = th.pdfApi.postSignPage(name, pageNumber, signature, null, folder); + assertEquals(200, (int)response.getCode()); + } + + + /** + * GetVerifySignature Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void getVerifySignatureTest() throws ApiException + { + String name = "BlankWithSignature.pdf"; + th.uploadFile(name); + + String signatureFileName = "test1234.pfx"; + th.uploadFile(signatureFileName); + + Rectangle rectangle = new Rectangle() + .LLX(100.) + .LLY(100.) + .URX(500.) + .URY(200.); + + String folder = th.tempFolder; + + Signature signature = new Signature(); + signature.setAuthority("Sergey Smal"); + signature.setContact("test@mail.ru"); + signature.setDate("08/01/2012 12:15:00.000 PM"); + signature.setFormFieldName("Signature1"); + signature.setLocation("Ukraine"); + signature.setPassword("test1234"); + signature.setRectangle(rectangle); + signature.setSignaturePath(folder + '/' + signatureFileName); + signature.setSignatureType(SignatureType.PKCS7); + signature.setVisible(true); + + AsposeResponse responseSign = th.pdfApi.postSignDocument(name, signature, null, folder); + assertEquals(200, (int)responseSign.getCode()); + + SignatureVerifyResponse response = th.pdfApi.getVerifySignature(name, signature.getFormFieldName(), null, folder); + assertEquals(200, (int)response.getCode()); + } +} diff --git a/src/test/java/com/aspose/asposecloudpdf/api/SoundAnnotationsTests.java b/src/test/java/com/aspose/asposecloudpdf/api/SoundAnnotationsTests.java new file mode 100644 index 0000000..ddcd02a --- /dev/null +++ b/src/test/java/com/aspose/asposecloudpdf/api/SoundAnnotationsTests.java @@ -0,0 +1,220 @@ +/** + * + * Copyright (c) 2009 Aspose.PDF Cloud + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of TestHelper.getInstance() 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.api; + +import com.aspose.asposecloudpdf.ApiException; +import com.aspose.asposecloudpdf.model.*; + +import org.junit.Test; + +import java.io.File; +import java.util.ArrayList; +import java.util.List; + +import static org.junit.Assert.assertEquals; +import static org.junit.Assert.assertNotNull; + +public class SoundAnnotationsTests { + private TestHelper th; + + public SoundAnnotationsTests() throws ApiException { + th = TestHelper.getInstance(); + } + + + /** + * GetDocumentSoundAnnotationsTest + * @throws ApiException + * if the Api call fails + */ + @Test + public void getDocumentSoundAnnotationsTest()throws ApiException + { + String name = "PdfWithAnnotations.pdf"; + th.uploadFile(name); + + SoundAnnotationsResponse response = th.pdfApi.getDocumentSoundAnnotations(name, null, th.tempFolder); + assertEquals(200, (int)response.getCode()); + } + + /** + * GetPageSoundAnnotationsTest + * @throws ApiException + * if the Api call fails + */ + @Test + public void getPageSoundAnnotationsTest()throws ApiException + { + String name = "PdfWithAnnotations.pdf"; + th.uploadFile(name); + + int pageNumber = 2; + + SoundAnnotationsResponse response = th.pdfApi.getPageSoundAnnotations(name, pageNumber, null, th.tempFolder); + assertEquals(200, (int)response.getCode()); + } + + /** + * PostPageSoundAnnotationsTest + * @throws ApiException + * if the Api call fails + */ + @Test + public void postPageSoundAnnotationsTest()throws ApiException + { + String name = "PdfWithAnnotations.pdf"; + th.uploadFile(name); + + String attachmentFile = "4pages.pdf"; + th.uploadFile(attachmentFile); + + int pageNumber = 1; + + Rectangle rect = new Rectangle() + .LLX(100.) + .LLY(100.) + .URX(200.) + .URY(200.); + + List flags = new ArrayList<>(); + flags.add(AnnotationFlags.DEFAULT); + + SoundAnnotation annotation = new SoundAnnotation(); + annotation.setName("Name"); + annotation.setRect(rect); + annotation.setFlags(flags); + annotation.setHorizontalAlignment(HorizontalAlignment.CENTER); + annotation.setRichText("Rich Text"); + annotation.setSubject("Subj"); + annotation.setZindex(1); + annotation.setTitle("Title"); + annotation.setModified("01/01/2008 12:00:00.000 AM"); + annotation.setFilePath(th.tempFolder + '/' + attachmentFile); + + List annotations = new ArrayList<>(); + annotations.add(annotation); + + AsposeResponse response = th.pdfApi.postPageSoundAnnotations(name, pageNumber, annotations, null, th.tempFolder); + assertEquals(200, (int)response.getCode()); + } + + /** + * GetSoundAnnotationTest + * @throws ApiException + * if the Api call fails + */ + @Test + public void getSoundAnnotationTest()throws ApiException + { + String name = "PdfWithAnnotations.pdf"; + th.uploadFile(name); + + SoundAnnotationsResponse responseAnnotations = th.pdfApi.getDocumentSoundAnnotations(name, null, th.tempFolder); + assertEquals(200, (int)responseAnnotations.getCode()); + String annotationId = responseAnnotations.getAnnotations().getList().get(0).getId(); + + SoundAnnotationResponse response = th.pdfApi.getSoundAnnotation(name, annotationId, null, th.tempFolder); + assertEquals(200, (int)response.getCode()); + } + + /** + * PutSoundAnnotationTest + * @throws ApiException + * if the Api call fails + */ + @Test + public void putSoundAnnotationTest()throws ApiException + { + String name = "PdfWithAnnotations.pdf"; + th.uploadFile(name); + + String attachmentFile = "4pages.pdf"; + th.uploadFile(attachmentFile); + + Rectangle rect = new Rectangle() + .LLX(100.) + .LLY(100.) + .URX(200.) + .URY(200.); + + List flags = new ArrayList<>(); + flags.add(AnnotationFlags.DEFAULT); + + SoundAnnotation annotation = new SoundAnnotation(); + annotation.setName("Name Updated"); + annotation.setRect(rect); + annotation.setFlags(flags); + annotation.setHorizontalAlignment(HorizontalAlignment.CENTER); + annotation.setRichText("Rich Text Updated"); + annotation.setSubject("Subj Updated"); + annotation.setZindex(1); + annotation.setTitle("Title Updated"); + annotation.setModified("01/01/2008 12:01:02.000 AM"); + annotation.setFilePath(th.tempFolder + '/' + attachmentFile); + + SoundAnnotationsResponse responseAnnotations = th.pdfApi.getDocumentSoundAnnotations(name, null, th.tempFolder); + assertEquals(200, (int)responseAnnotations.getCode()); + String annotationId = responseAnnotations.getAnnotations().getList().get(0).getId(); + + AsposeResponse response = th.pdfApi.putSoundAnnotation(name, annotationId, annotation, null, th.tempFolder); + assertEquals(200, (int)response.getCode()); + } + + /** + * GetSoundAnnotationDataTest + * @throws ApiException + * if the Api call fails + */ + @Test + public void getSoundAnnotationDataTest()throws ApiException + { + String name = "PdfWithAnnotations.pdf"; + th.uploadFile(name); + + SoundAnnotationsResponse responseAnnotations = th.pdfApi.getDocumentSoundAnnotations(name, null, th.tempFolder); + assertEquals(200, (int)responseAnnotations.getCode()); + String annotationId = responseAnnotations.getAnnotations().getList().get(0).getId(); + + File response = th.pdfApi.getSoundAnnotationData(name, annotationId, null, th.tempFolder); + assertNotNull(response); + } + + /** + * PutSoundAnnotationDataExtractTest + * @throws ApiException + * if the Api call fails + */ + @Test + public void putSoundAnnotationDataExtractTest()throws ApiException + { + String name = "PdfWithAnnotations.pdf"; + th.uploadFile(name); + + SoundAnnotationsResponse responseAnnotations = th.pdfApi.getDocumentSoundAnnotations(name, null, th.tempFolder); + assertEquals(200, (int)responseAnnotations.getCode()); + String annotationId = responseAnnotations.getAnnotations().getList().get(0).getId(); + + AsposeResponse response = th.pdfApi.putSoundAnnotationDataExtract(name, annotationId, "outFile.dat", null, th.tempFolder); + assertEquals(200, (int)response.getCode()); + } + +} diff --git a/src/test/java/com/aspose/asposecloudpdf/api/SquareAnnotationsTests.java b/src/test/java/com/aspose/asposecloudpdf/api/SquareAnnotationsTests.java new file mode 100644 index 0000000..a58de64 --- /dev/null +++ b/src/test/java/com/aspose/asposecloudpdf/api/SquareAnnotationsTests.java @@ -0,0 +1,170 @@ +/** + * + * Copyright (c) 2009 Aspose.PDF Cloud + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of TestHelper.getInstance() 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.api; + +import com.aspose.asposecloudpdf.ApiException; +import com.aspose.asposecloudpdf.model.*; + +import org.junit.Test; + +import java.util.ArrayList; +import java.util.List; + +import static org.junit.Assert.assertEquals; + +public class SquareAnnotationsTests { + private TestHelper th; + + public SquareAnnotationsTests() throws ApiException { + th = TestHelper.getInstance(); + } + + /** + * GetDocumentSquareAnnotationsTest + * @throws ApiException + * if the Api call fails + */ + @Test + public void getDocumentSquareAnnotationsTest()throws ApiException + { + String name = "PdfWithAnnotations.pdf"; + th.uploadFile(name); + + SquareAnnotationsResponse response = th.pdfApi.getDocumentSquareAnnotations(name, null, th.tempFolder); + assertEquals(200, (int)response.getCode()); + } + + /** + * GetPageSquareAnnotationsTest + * @throws ApiException + * if the Api call fails + */ + @Test + public void getPageSquareAnnotationsTest()throws ApiException + { + String name = "PdfWithAnnotations.pdf"; + th.uploadFile(name); + + int pageNumber = 2; + + SquareAnnotationsResponse response = th.pdfApi.getPageSquareAnnotations(name, pageNumber, null, th.tempFolder); + assertEquals(200, (int)response.getCode()); + } + + + /** + * GetSquareAnnotationTest + * @throws ApiException + * if the Api call fails + */ + @Test + public void getSquareAnnotationTest()throws ApiException + { + String name = "PdfWithAnnotations.pdf"; + th.uploadFile(name); + + SquareAnnotationsResponse responseAnnotations = th.pdfApi.getDocumentSquareAnnotations(name, null, th.tempFolder); + assertEquals(200, (int)responseAnnotations.getCode()); + String annotationId = responseAnnotations.getAnnotations().getList().get(0).getId(); + + SquareAnnotationResponse response = th.pdfApi.getSquareAnnotation(name, annotationId, null, th.tempFolder); + assertEquals(200, (int)response.getCode()); + } + + /** + * PostPageSquareAnnotationsTest + * @throws ApiException + * if the Api call fails + */ + @Test + public void postPageSquareAnnotationsTest()throws ApiException + { + String name = "PdfWithAnnotations.pdf"; + th.uploadFile(name); + + int pageNumber = 1; + + Rectangle rect = new Rectangle() + .LLX(100.) + .LLY(100.) + .URX(200.) + .URY(200.); + + List flags = new ArrayList<>(); + flags.add(AnnotationFlags.DEFAULT); + + SquareAnnotation annotation = new SquareAnnotation(); + annotation.setName("Name"); + annotation.setRect(rect); + annotation.setFlags(flags); + annotation.setHorizontalAlignment(HorizontalAlignment.CENTER); + annotation.setRichText("Rich Text"); + annotation.setSubject("Subj"); + annotation.setZindex(1); + annotation.setTitle("Title"); + + List annotations = new ArrayList<>(); + annotations.add(annotation); + + AsposeResponse response = th.pdfApi.postPageSquareAnnotations(name, pageNumber, annotations, null, th.tempFolder); + assertEquals(200, (int)response.getCode()); + } + + + /** + * PutSquareAnnotationTest + * @throws ApiException + * if the Api call fails + */ + @Test + public void putSquareAnnotationTest()throws ApiException + { + String name = "PdfWithAnnotations.pdf"; + th.uploadFile(name); + + Rectangle rect = new Rectangle() + .LLX(100.) + .LLY(100.) + .URX(200.) + .URY(200.); + + List flags = new ArrayList<>(); + flags.add(AnnotationFlags.DEFAULT); + + SquareAnnotation annotation = new SquareAnnotation(); + annotation.setName("Name Updated"); + annotation.setRect(rect); + annotation.setFlags(flags); + annotation.setHorizontalAlignment(HorizontalAlignment.CENTER); + annotation.setRichText("Rich Text Updated"); + annotation.setSubject("Subj Updated"); + annotation.setZindex(1); + annotation.setTitle("Title Updated"); + + SquareAnnotationsResponse responseAnnotations = th.pdfApi.getDocumentSquareAnnotations(name, null, th.tempFolder); + assertEquals(200, (int)responseAnnotations.getCode()); + String annotationId = responseAnnotations.getAnnotations().getList().get(0).getId(); + + AsposeResponse response = th.pdfApi.putSquareAnnotation(name, annotationId, annotation, null, th.tempFolder); + assertEquals(200, (int)response.getCode()); + } +} diff --git a/src/test/java/com/aspose/asposecloudpdf/api/SquigglyAnnotationsTests.java b/src/test/java/com/aspose/asposecloudpdf/api/SquigglyAnnotationsTests.java new file mode 100644 index 0000000..ff6c426 --- /dev/null +++ b/src/test/java/com/aspose/asposecloudpdf/api/SquigglyAnnotationsTests.java @@ -0,0 +1,186 @@ +/** + * + * Copyright (c) 2009 Aspose.PDF Cloud + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of TestHelper.getInstance() 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.api; + +import com.aspose.asposecloudpdf.ApiException; +import com.aspose.asposecloudpdf.model.*; + +import org.junit.Test; + +import java.util.ArrayList; +import java.util.List; + +import static org.junit.Assert.assertEquals; + +public class SquigglyAnnotationsTests { + private TestHelper th; + + public SquigglyAnnotationsTests() throws ApiException { + th = TestHelper.getInstance(); + } + + /** + * GetDocumentSquigglyAnnotationsTest + * @throws ApiException + * if the Api call fails + */ + @Test + public void getDocumentSquigglyAnnotationsTest()throws ApiException + { + String name = "PdfWithAnnotations.pdf"; + th.uploadFile(name); + + SquigglyAnnotationsResponse response = th.pdfApi.getDocumentSquigglyAnnotations(name, null, th.tempFolder); + assertEquals(200, (int)response.getCode()); + } + + /** + * GetPageSquigglyAnnotationsTest + * @throws ApiException + * if the Api call fails + */ + @Test + public void getPageSquigglyAnnotationsTest()throws ApiException + { + String name = "PdfWithAnnotations.pdf"; + th.uploadFile(name); + + int pageNumber = 2; + + SquigglyAnnotationsResponse response = th.pdfApi.getPageSquigglyAnnotations(name, pageNumber, null, th.tempFolder); + assertEquals(200, (int)response.getCode()); + } + + + /** + * GetSquigglyAnnotationTest + * @throws ApiException + * if the Api call fails + */ + @Test + public void getSquigglyAnnotationTest()throws ApiException + { + String name = "PdfWithAnnotations.pdf"; + th.uploadFile(name); + + SquigglyAnnotationsResponse responseAnnotations = th.pdfApi.getDocumentSquigglyAnnotations(name, null, th.tempFolder); + assertEquals(200, (int)responseAnnotations.getCode()); + String annotationId = responseAnnotations.getAnnotations().getList().get(0).getId(); + + SquigglyAnnotationResponse response = th.pdfApi.getSquigglyAnnotation(name, annotationId, null, th.tempFolder); + assertEquals(200, (int)response.getCode()); + } + + /** + * PostPageSquigglyAnnotationsTest + * @throws ApiException + * if the Api call fails + */ + @Test + public void postPageSquigglyAnnotationsTest()throws ApiException + { + String name = "PdfWithAnnotations.pdf"; + th.uploadFile(name); + + int pageNumber = 1; + + Rectangle rect = new Rectangle() + .LLX(100.) + .LLY(100.) + .URX(200.) + .URY(200.); + + List flags = new ArrayList<>(); + flags.add(AnnotationFlags.DEFAULT); + + List points = new ArrayList<>(); + points.add(new Point().X(10.).Y(10.)); + points.add(new Point().X(20.).Y(10.)); + points.add(new Point().X(10.).Y(20.)); + points.add(new Point().X(10.).Y(10.)); + + SquigglyAnnotation annotation = new SquigglyAnnotation(); + annotation.setName("Name"); + annotation.setRect(rect); + annotation.setFlags(flags); + annotation.setHorizontalAlignment(HorizontalAlignment.CENTER); + annotation.setRichText("Rich Text"); + annotation.setSubject("Subj"); + annotation.setZindex(1); + annotation.setTitle("Title"); + annotation.setQuadPoints(points); + annotation.setModified("02/02/2018 00:00:00.000 AM"); + + List annotations = new ArrayList<>(); + annotations.add(annotation); + + AsposeResponse response = th.pdfApi.postPageSquigglyAnnotations(name, pageNumber, annotations, null, th.tempFolder); + assertEquals(200, (int)response.getCode()); + } + + + /** + * PutSquigglyAnnotationTest + * @throws ApiException + * if the Api call fails + */ + @Test + public void putSquigglyAnnotationTest()throws ApiException + { + String name = "PdfWithAnnotations.pdf"; + th.uploadFile(name); + + Rectangle rect = new Rectangle() + .LLX(100.) + .LLY(100.) + .URX(200.) + .URY(200.); + + List flags = new ArrayList<>(); + flags.add(AnnotationFlags.DEFAULT); + + List points = new ArrayList<>(); + points.add(new Point().X(10.).Y(10.)); + points.add(new Point().X(20.).Y(10.)); + points.add(new Point().X(10.).Y(20.)); + points.add(new Point().X(10.).Y(10.)); + + SquigglyAnnotation annotation = new SquigglyAnnotation(); + annotation.setName("Name Updated"); + annotation.setRect(rect); + annotation.setFlags(flags); + annotation.setHorizontalAlignment(HorizontalAlignment.CENTER); + annotation.setRichText("Rich Text Updated"); + annotation.setSubject("Subj Updated"); + annotation.setZindex(1); + annotation.setTitle("Title Updated"); + annotation.setQuadPoints(points); + annotation.setModified("02/02/2018 00:00:00.000 AM"); + + SquigglyAnnotationsResponse responseAnnotations = th.pdfApi.getDocumentSquigglyAnnotations(name, null, th.tempFolder); + assertEquals(200, (int)responseAnnotations.getCode()); + String annotationId = responseAnnotations.getAnnotations().getList().get(0).getId(); + + AsposeResponse response = th.pdfApi.putSquigglyAnnotation(name, annotationId, annotation, null, th.tempFolder); + assertEquals(200, (int)response.getCode()); + } +} diff --git a/src/test/java/com/aspose/asposecloudpdf/api/StampAnnotationsTests.java b/src/test/java/com/aspose/asposecloudpdf/api/StampAnnotationsTests.java new file mode 100644 index 0000000..7a535e1 --- /dev/null +++ b/src/test/java/com/aspose/asposecloudpdf/api/StampAnnotationsTests.java @@ -0,0 +1,220 @@ +/** + * + * Copyright (c) 2009 Aspose.PDF Cloud + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of TestHelper.getInstance() 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.api; + +import com.aspose.asposecloudpdf.ApiException; +import com.aspose.asposecloudpdf.model.*; + +import org.junit.Test; + +import java.io.File; +import java.util.ArrayList; +import java.util.List; + +import static org.junit.Assert.assertEquals; +import static org.junit.Assert.assertNull; + +public class StampAnnotationsTests { + private TestHelper th; + + public StampAnnotationsTests() throws ApiException { + th = TestHelper.getInstance(); + } + + /** + * GetDocumentStampAnnotationsTest + * @throws ApiException + * if the Api call fails + */ + @Test + public void getDocumentStampAnnotationsTest()throws ApiException + { + String name = "PdfWithAnnotations.pdf"; + th.uploadFile(name); + + StampAnnotationsResponse response = th.pdfApi.getDocumentStampAnnotations(name, null, th.tempFolder); + assertEquals(200, (int)response.getCode()); + } + + /** + * GetPageStampAnnotationsTest + * @throws ApiException + * if the Api call fails + */ + @Test + public void getPageStampAnnotationsTest()throws ApiException + { + String name = "PdfWithAnnotations.pdf"; + th.uploadFile(name); + + int pageNumber = 2; + + StampAnnotationsResponse response = th.pdfApi.getPageStampAnnotations(name, pageNumber, null, th.tempFolder); + assertEquals(200, (int)response.getCode()); + } + + /** + * PostPageStampAnnotationsTest + * @throws ApiException + * if the Api call fails + */ + @Test + public void postPageStampAnnotationsTest()throws ApiException + { + String name = "PdfWithAnnotations.pdf"; + th.uploadFile(name); + + String attachmentFile = "4pages.pdf"; + th.uploadFile(attachmentFile); + + int pageNumber = 1; + + Rectangle rect = new Rectangle() + .LLX(100.) + .LLY(100.) + .URX(200.) + .URY(200.); + + List flags = new ArrayList<>(); + flags.add(AnnotationFlags.DEFAULT); + + StampAnnotation annotation = new StampAnnotation(); + annotation.setName("Name"); + annotation.setRect(rect); + annotation.setFlags(flags); + annotation.setHorizontalAlignment(HorizontalAlignment.CENTER); + annotation.setRichText("Rich Text"); + annotation.setSubject("Subj"); + annotation.setZindex(1); + annotation.setTitle("Title"); + annotation.setModified("01/01/2008 12:00:00.000 AM"); + annotation.setFilePath(th.tempFolder + '/' + attachmentFile); + + List annotations = new ArrayList<>(); + annotations.add(annotation); + + AsposeResponse response = th.pdfApi.postPageStampAnnotations(name, pageNumber, annotations, null, th.tempFolder); + assertEquals(200, (int)response.getCode()); + } + + /** + * GetStampAnnotationTest + * @throws ApiException + * if the Api call fails + */ + @Test + public void getStampAnnotationTest()throws ApiException + { + String name = "PdfWithAnnotations.pdf"; + th.uploadFile(name); + + StampAnnotationsResponse responseAnnotations = th.pdfApi.getDocumentStampAnnotations(name, null, th.tempFolder); + assertEquals(200, (int)responseAnnotations.getCode()); + String annotationId = responseAnnotations.getAnnotations().getList().get(0).getId(); + + StampAnnotationResponse response = th.pdfApi.getStampAnnotation(name, annotationId, null, th.tempFolder); + assertEquals(200, (int)response.getCode()); + } + + /** + * PutStampAnnotationTest + * @throws ApiException + * if the Api call fails + */ + @Test + public void putStampAnnotationTest()throws ApiException + { + String name = "PdfWithAnnotations.pdf"; + th.uploadFile(name); + + String attachmentFile = "4pages.pdf"; + th.uploadFile(attachmentFile); + + Rectangle rect = new Rectangle() + .LLX(100.) + .LLY(100.) + .URX(200.) + .URY(200.); + + List flags = new ArrayList<>(); + flags.add(AnnotationFlags.DEFAULT); + + StampAnnotation annotation = new StampAnnotation(); + annotation.setName("Name"); + annotation.setRect(rect); + annotation.setFlags(flags); + annotation.setHorizontalAlignment(HorizontalAlignment.CENTER); + annotation.setRichText("Rich Text"); + annotation.setSubject("Subj"); + annotation.setZindex(1); + annotation.setTitle("Title"); + annotation.setModified("01/01/2008 12:00:00.000 AM"); + annotation.setFilePath(th.tempFolder + '/' + attachmentFile); + + StampAnnotationsResponse responseAnnotations = th.pdfApi.getDocumentStampAnnotations(name, null, th.tempFolder); + assertEquals(200, (int)responseAnnotations.getCode()); + String annotationId = responseAnnotations.getAnnotations().getList().get(0).getId(); + + AsposeResponse response = th.pdfApi.putStampAnnotation(name, annotationId, annotation, null, th.tempFolder); + assertEquals(200, (int)response.getCode()); + } + + /** + * GetStampAnnotationDataTest + * @throws ApiException + * if the Api call fails + */ + @Test + public void getStampAnnotationDataTest()throws ApiException + { + String name = "PdfWithAnnotations.pdf"; + th.uploadFile(name); + + StampAnnotationsResponse responseAnnotations = th.pdfApi.getDocumentStampAnnotations(name, null, th.tempFolder); + assertEquals(200, (int)responseAnnotations.getCode()); + String annotationId = responseAnnotations.getAnnotations().getList().get(0).getId(); + + File response = th.pdfApi.getStampAnnotationData(name, annotationId, null, th.tempFolder); + assertNull(response); + } + + /** + * PutStampAnnotationDataExtractTest + * @throws ApiException + * if the Api call fails + */ + @Test + public void putStampAnnotationDataExtractTest()throws ApiException + { + String name = "PdfWithAnnotations.pdf"; + th.uploadFile(name); + + String outFilePath = th.tempFolder + '/' + "stamp.dat"; + + StampAnnotationsResponse responseAnnotations = th.pdfApi.getDocumentStampAnnotations(name, null, th.tempFolder); + assertEquals(200, (int)responseAnnotations.getCode()); + String annotationId = responseAnnotations.getAnnotations().getList().get(0).getId(); + + AsposeResponse response = th.pdfApi.putStampAnnotationDataExtract(name, annotationId, outFilePath, null, th.tempFolder); + assertEquals(200, (int)response.getCode()); + } +} diff --git a/src/test/java/com/aspose/asposecloudpdf/api/StampTests.java b/src/test/java/com/aspose/asposecloudpdf/api/StampTests.java new file mode 100644 index 0000000..49d92d8 --- /dev/null +++ b/src/test/java/com/aspose/asposecloudpdf/api/StampTests.java @@ -0,0 +1,275 @@ +/** + * + * Copyright (c) 2009 Aspose.PDF Cloud + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of TestHelper.getInstance() 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.api; + +import com.aspose.asposecloudpdf.ApiException; +import com.aspose.asposecloudpdf.model.*; + +import org.junit.Test; + +import java.util.ArrayList; +import java.util.List; + +import static org.junit.Assert.assertEquals; + +public class StampTests { + private TestHelper th; + + public StampTests() throws ApiException { + th = TestHelper.getInstance(); + } + + /** + * GetDocumentStampsTest + * @throws ApiException + * if the Api call fails + */ + @Test + public void getDocumentStampsTest()throws ApiException + { + String name = "PageNumberStamp.pdf"; + th.uploadFile(name); + + StampsInfoResponse response = th.pdfApi.getDocumentStamps(name, null, th.tempFolder); + assertEquals(200, (int)response.getCode()); + } + + /** + * DeleteDocumentStampsTest + * @throws ApiException + * if the Api call fails + */ + @Test + public void deleteDocumentStampsTest()throws ApiException + { + String name = "PageNumberStamp.pdf"; + th.uploadFile(name); + + AsposeResponse response = th.pdfApi.deleteDocumentStamps(name, null, th.tempFolder); + assertEquals(200, (int)response.getCode()); + } + + /** + * GetPageStampsTest + * @throws ApiException + * if the Api call fails + */ + @Test + public void getPageStampsTest()throws ApiException + { + String name = "PageNumberStamp.pdf"; + th.uploadFile(name); + int pageNumber = 1; + StampsInfoResponse response = th.pdfApi.getPageStamps(name, pageNumber,null, th.tempFolder); + assertEquals(200, (int)response.getCode()); + } + + /** + * DeletePageStampsTest + * @throws ApiException + * if the Api call fails + */ + @Test + public void deletePageStampsTest()throws ApiException + { + String name = "PageNumberStamp.pdf"; + th.uploadFile(name); + int pageNumber = 1; + AsposeResponse response = th.pdfApi.deletePageStamps(name, pageNumber,null, th.tempFolder); + assertEquals(200, (int)response.getCode()); + } + + /** + * PostPageTextStampsTest + * @throws ApiException + * if the Api call fails + */ + + @Test + public void postPageTextStampsTest()throws ApiException + { + String name = "PageNumberStamp.pdf"; + th.uploadFile(name); + int pageNumber = 1; + + TextState textState = new TextState().fontSize(14.); + + TextStamp stamp = new TextStamp() + .textAlignment(HorizontalAlignment.CENTER) + .value("Text Stamp") + .textState(textState) + .leftMargin(1.) + .rightMargin(2.) + .topMargin(3.) + .bottomMargin(4.) + .verticalAlignment(VerticalAlignment.CENTER); + + stamp.background(true) + .horizontalAlignment(HorizontalAlignment.CENTER) + .opacity(1.) + .rotate(Rotation.NONE) + .rotateAngle(0.) + .xindent(0.) + .yindent(0.) + .zoom(1.); + + List stamps = new ArrayList<>(); + stamps.add(stamp); + + AsposeResponse response = th.pdfApi.postPageTextStamps(name, pageNumber, stamps,null, th.tempFolder); + assertEquals(200, (int)response.getCode()); + } + + /** + * PostPageImageStampsTest + * @throws ApiException + * if the Api call fails + */ + @Test + public void postPageImageStampsTest()throws ApiException + { + String name = "PageNumberStamp.pdf"; + th.uploadFile(name); + + String image = "Koala.jpg"; + th.uploadFile(image); + int pageNumber = 1; + + ImageStamp stamp = new ImageStamp() + .fileName(th.tempFolder + '/' + image) + .leftMargin(1.) + .rightMargin(2.) + .topMargin(3.) + .bottomMargin(4.) + .verticalAlignment(VerticalAlignment.CENTER); + stamp.background(true) + .horizontalAlignment(HorizontalAlignment.CENTER) + .opacity(1.) + .rotate(Rotation.NONE) + .rotateAngle(0.) + .xindent(0.) + .yindent(0.) + .zoom(1.); + + List stamps = new ArrayList<>(); + stamps.add(stamp); + + AsposeResponse response = th.pdfApi.postPageImageStamps(name, pageNumber, stamps,null, th.tempFolder); + assertEquals(200, (int)response.getCode()); + } + + /** + * PostPagePdfPageStampsTest + * @throws ApiException + * if the Api call fails + */ + @Test + public void postPagePdfPageStampsTest()throws ApiException + { + String name = "PageNumberStamp.pdf"; + th.uploadFile(name); + + String pdf = "4pages.pdf"; + th.uploadFile(pdf); + int pageNumber = 1; + + PdfPageStamp stamp = new PdfPageStamp() + .fileName(th.tempFolder + '/' + pdf) + .pageIndex(2) + .leftMargin(1.) + .rightMargin(2.) + .topMargin(3.) + .bottomMargin(4.) + .verticalAlignment(VerticalAlignment.CENTER); + stamp.background(true) + .horizontalAlignment(HorizontalAlignment.CENTER) + .opacity(1.) + .rotate(Rotation.NONE) + .rotateAngle(0.) + .xindent(0.) + .yindent(0.) + .zoom(1.); + + List stamps = new ArrayList<>(); + stamps.add(stamp); + + AsposeResponse response = th.pdfApi.postPagePdfPageStamps(name, pageNumber, stamps,null, th.tempFolder); + assertEquals(200, (int)response.getCode()); + } + + /** + * DeleteStampTest + * @throws ApiException + * if the Api call fails + */ + @Test + public void deleteStampTest()throws ApiException + { + String name = "PageNumberStamp.pdf"; + th.uploadFile(name); + + StampsInfoResponse stampsResponse = th.pdfApi.getDocumentStamps(name, null, th.tempFolder); + assertEquals(200, (int)stampsResponse.getCode()); + String stampId = stampsResponse.getStamps().getList().get(0).getId(); + + AsposeResponse response = th.pdfApi.deleteStamp(name, stampId, null, th.tempFolder); + assertEquals(200, (int)response.getCode()); + } + + /** + * PostDocumentPageNumberStamps Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void postDocumentPageNumberStampsTest()throws ApiException + { + String name = "4pages.pdf"; + th.uploadFile(name); + + PageNumberStamp stamp = new PageNumberStamp() + .value("Page #") + .leftMargin(1.) + .rightMargin(2.) + .topMargin(3.) + .bottomMargin(4.) + .verticalAlignment(VerticalAlignment.BOTTOM) + .startingNumber(3); + + stamp.background(true) + .horizontalAlignment(HorizontalAlignment.CENTER) + .opacity(1.) + .rotate(Rotation.NONE) + .rotateAngle(0.) + .xindent(0.) + .yindent(0.) + .zoom(1.); + + int startPageNumber = 2; + int endPageNumber = 3; + + AsposeResponse response = th.pdfApi.postDocumentPageNumberStamps(name, stamp, startPageNumber, endPageNumber, null, th.tempFolder); + assertEquals(200, (int)response.getCode()); + } +} + diff --git a/src/test/java/com/aspose/asposecloudpdf/api/StorageTests.java b/src/test/java/com/aspose/asposecloudpdf/api/StorageTests.java new file mode 100644 index 0000000..a8217c3 --- /dev/null +++ b/src/test/java/com/aspose/asposecloudpdf/api/StorageTests.java @@ -0,0 +1,232 @@ +/** + * + * Copyright (c) 2019 Aspose.PDF Cloud + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of TestHelper.getInstance() 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.api; + +import com.aspose.asposecloudpdf.ApiException; +import com.aspose.asposecloudpdf.model.*; + +import org.junit.Test; + +import java.io.File; + +import static org.junit.Assert.assertEquals; +import static org.junit.Assert.assertNotNull; +import static org.junit.Assert.assertTrue; + +public class StorageTests +{ + private TestHelper th; + public StorageTests() throws ApiException + { + th = TestHelper.getInstance(); + } + /** + * UploadFile Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void uploadFileTest() throws ApiException + { + String name = "4pages.pdf"; + String path = th.tempFolder + '/' + name; + File file = new File(th.testDataFolder + "/" + name); + FilesUploadResult response = th.pdfApi.uploadFile(path, file, null); + assertEquals(1, response.getUploaded().size()); + } + + /** + * GetDownload Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void downloadFileTest() throws ApiException + { + String name = "4pages.pdf"; + th.uploadFile(name); + + String path = th.tempFolder + '/' + name; + + File response = th.pdfApi.downloadFile(path, null, null); + assertNotNull(response); + } + + /** + * GetListFiles Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void getFilesListTest() throws ApiException + { + FilesList response = th.pdfApi.getFilesList(th.tempFolder, null); + assertTrue(response.getValue().size() > 0); + } + + /** + * PostMoveFile Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void moveFileTest() throws ApiException + { + String name = "4pages.pdf"; + th.uploadFile(name); + + String src = th.tempFolder + '/' + name; + String dest = th.tempFolder + "/4pages_renamed.pdf"; + + th.pdfApi.moveFile(src, dest, null, null, null); + } + + /** + * DeleteFile Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void deleteFileTest() throws ApiException + { + String name = "4pages.pdf"; + th.uploadFile(name); + + String path = th.tempFolder + '/' + name; + + th.pdfApi.deleteFile(path, null, null); + } + + /** + * PutCreateFolder Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void createFolderTest() throws ApiException + { + String path = th.tempFolder + "/testFolder"; + th.pdfApi.createFolder(path, null); + } + + /** + * PostMoveFolder Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void moveFolderTest() throws ApiException + { + String src = th.tempFolder + "/testFolder"; + th.pdfApi.createFolder(src, null); + + String dest = th.tempFolder + "/testFolderRenamed"; + th.pdfApi.moveFolder(src, dest, null, null); + } + + /** + * DeleteFolder Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void deleteFolderTest() throws ApiException + { + String path = th.tempFolder + "/testFolder"; + + th.pdfApi.createFolder(path, null); + th.pdfApi.deleteFolder(path,null, null); + } + + /** + * GetIsStorageExist Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void getIsStorageExistTest() throws ApiException + { + String name = "PDF-CI"; + + StorageExist response = th.pdfApi.storageExists(name); + assertTrue(response.isExists()); + } + + /** + * GetIsExist Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void objectExistsTest() throws ApiException + { + String name = "4pages.pdf"; + th.uploadFile(name); + + String path = th.tempFolder + '/' + name; + + ObjectExist response = th.pdfApi.objectExists(path, null, null); + assertTrue(response.isExists()); + } + + /** + * GetDiscUsage Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void getDiscUsageTest() throws ApiException + { + DiscUsage response = th.pdfApi.getDiscUsage(null); + assertTrue(response.getTotalSize() > 0); + } + + /** + * GetListFileVersions Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void getFileVersionsTest() throws ApiException + { + String name = "4pages.pdf"; + th.uploadFile(name); + + String path = th.tempFolder + '/' + name; + + FileVersions response = th.pdfApi.getFileVersions(path, null); + assertTrue(response.getValue().size() > 0); + } +} + diff --git a/src/test/java/com/aspose/asposecloudpdf/api/StrikeOutAnnotationsTests.java b/src/test/java/com/aspose/asposecloudpdf/api/StrikeOutAnnotationsTests.java new file mode 100644 index 0000000..beb96fa --- /dev/null +++ b/src/test/java/com/aspose/asposecloudpdf/api/StrikeOutAnnotationsTests.java @@ -0,0 +1,186 @@ +/** + * + * Copyright (c) 2009 Aspose.PDF Cloud + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of TestHelper.getInstance() 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.api; + +import com.aspose.asposecloudpdf.ApiException; +import com.aspose.asposecloudpdf.model.*; + +import org.junit.Test; + +import java.util.ArrayList; +import java.util.List; + +import static org.junit.Assert.assertEquals; + +public class StrikeOutAnnotationsTests { + private TestHelper th; + + public StrikeOutAnnotationsTests() throws ApiException { + th = TestHelper.getInstance(); + } + + /** + * GetDocumentStrikeOutAnnotationsTest + * @throws ApiException + * if the Api call fails + */ + @Test + public void getDocumentStrikeOutAnnotationsTest()throws ApiException + { + String name = "PdfWithAnnotations.pdf"; + th.uploadFile(name); + + StrikeOutAnnotationsResponse response = th.pdfApi.getDocumentStrikeOutAnnotations(name, null, th.tempFolder); + assertEquals(200, (int)response.getCode()); + } + + /** + * GetPageStrikeOutAnnotationsTest + * @throws ApiException + * if the Api call fails + */ + @Test + public void getPageStrikeOutAnnotationsTest()throws ApiException + { + String name = "PdfWithAnnotations.pdf"; + th.uploadFile(name); + + int pageNumber = 2; + + StrikeOutAnnotationsResponse response = th.pdfApi.getPageStrikeOutAnnotations(name, pageNumber, null, th.tempFolder); + assertEquals(200, (int)response.getCode()); + } + + + /** + * GetStrikeOutAnnotationTest + * @throws ApiException + * if the Api call fails + */ + @Test + public void getStrikeOutAnnotationTest()throws ApiException + { + String name = "PdfWithAnnotations.pdf"; + th.uploadFile(name); + + StrikeOutAnnotationsResponse responseAnnotations = th.pdfApi.getDocumentStrikeOutAnnotations(name, null, th.tempFolder); + assertEquals(200, (int)responseAnnotations.getCode()); + String annotationId = responseAnnotations.getAnnotations().getList().get(0).getId(); + + StrikeOutAnnotationResponse response = th.pdfApi.getStrikeOutAnnotation(name, annotationId, null, th.tempFolder); + assertEquals(200, (int)response.getCode()); + } + + /** + * PostPageStrikeOutAnnotationsTest + * @throws ApiException + * if the Api call fails + */ + @Test + public void postPageStrikeOutAnnotationsTest()throws ApiException + { + String name = "PdfWithAnnotations.pdf"; + th.uploadFile(name); + + int pageNumber = 1; + + Rectangle rect = new Rectangle() + .LLX(100.) + .LLY(100.) + .URX(200.) + .URY(200.); + + List flags = new ArrayList<>(); + flags.add(AnnotationFlags.DEFAULT); + + List points = new ArrayList<>(); + points.add(new Point().X(10.).Y(10.)); + points.add(new Point().X(20.).Y(10.)); + points.add(new Point().X(10.).Y(20.)); + points.add(new Point().X(10.).Y(10.)); + + StrikeOutAnnotation annotation = new StrikeOutAnnotation(); + annotation.setName("Name"); + annotation.setRect(rect); + annotation.setFlags(flags); + annotation.setHorizontalAlignment(HorizontalAlignment.CENTER); + annotation.setRichText("Rich Text"); + annotation.setSubject("Subj"); + annotation.setZindex(1); + annotation.setTitle("Title"); + annotation.setQuadPoints(points); + annotation.setModified("02/02/2008 00:00:00.000 AM"); + + List annotations = new ArrayList<>(); + annotations.add(annotation); + + AsposeResponse response = th.pdfApi.postPageStrikeOutAnnotations(name, pageNumber, annotations, null, th.tempFolder); + assertEquals(200, (int)response.getCode()); + } + + + /** + * PutStrikeOutAnnotationTest + * @throws ApiException + * if the Api call fails + */ + @Test + public void putStrikeOutAnnotationTest()throws ApiException + { + String name = "PdfWithAnnotations.pdf"; + th.uploadFile(name); + + Rectangle rect = new Rectangle() + .LLX(100.) + .LLY(100.) + .URX(200.) + .URY(200.); + + List flags = new ArrayList<>(); + flags.add(AnnotationFlags.DEFAULT); + + List points = new ArrayList<>(); + points.add(new Point().X(10.).Y(10.)); + points.add(new Point().X(20.).Y(10.)); + points.add(new Point().X(10.).Y(20.)); + points.add(new Point().X(10.).Y(10.)); + + StrikeOutAnnotation annotation = new StrikeOutAnnotation(); + annotation.setName("Name Updated"); + annotation.setRect(rect); + annotation.setFlags(flags); + annotation.setHorizontalAlignment(HorizontalAlignment.CENTER); + annotation.setRichText("Rich Text Updated"); + annotation.setSubject("Subj Updated"); + annotation.setZindex(1); + annotation.setTitle("Title Updated"); + annotation.setQuadPoints(points); + annotation.setModified("02/02/2008 00:00:00.000 AM"); + + StrikeOutAnnotationsResponse responseAnnotations = th.pdfApi.getDocumentStrikeOutAnnotations(name, null, th.tempFolder); + assertEquals(200, (int)responseAnnotations.getCode()); + String annotationId = responseAnnotations.getAnnotations().getList().get(0).getId(); + + AsposeResponse response = th.pdfApi.putStrikeOutAnnotation(name, annotationId, annotation, null, th.tempFolder); + assertEquals(200, (int)response.getCode()); + } +} diff --git a/src/test/java/com/aspose/asposecloudpdf/api/TableTests.java b/src/test/java/com/aspose/asposecloudpdf/api/TableTests.java new file mode 100644 index 0000000..e141892 --- /dev/null +++ b/src/test/java/com/aspose/asposecloudpdf/api/TableTests.java @@ -0,0 +1,268 @@ +/** + * + * Copyright (c) 2009 Aspose.PDF Cloud + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of TestHelper.getInstance() 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.api; + +import com.aspose.asposecloudpdf.ApiException; +import com.aspose.asposecloudpdf.model.*; + +import org.junit.Test; + +import java.util.ArrayList; +import java.util.List; + +import static org.junit.Assert.assertEquals; + +public class TableTests { + private TestHelper th; + + public TableTests() throws ApiException { + th = TestHelper.getInstance(); + } + + + /** + * GetDocumentTablesTest + * @throws ApiException + * if the Api call fails + */ + @Test + public void getDocumentTablesTest()throws ApiException + { + String name = "PdfWithTable.pdf"; + th.uploadFile(name); + + TablesRecognizedResponse response = th.pdfApi.getDocumentTables(name, null, th.tempFolder); + assertEquals(200, (int)response.getCode()); + } + + /** + * DeleteDocumentTablesTest + * @throws ApiException + * if the Api call fails + */ + @Test + public void deleteDocumentTablesTest()throws ApiException + { + String name = "PdfWithTable.pdf"; + th.uploadFile(name); + + AsposeResponse response = th.pdfApi.deleteDocumentTables(name, null, th.tempFolder); + assertEquals(200, (int)response.getCode()); + } + + /** + * GetPageTablesTest + * @throws ApiException + * if the Api call fails + */ + @Test + public void getPageTablesTest()throws ApiException + { + String name = "PdfWithTable.pdf"; + th.uploadFile(name); + int pageNumber = 1; + + TablesRecognizedResponse response = th.pdfApi.getPageTables(name, pageNumber, null, th.tempFolder); + assertEquals(200, (int)response.getCode()); + } + + /** + * DeletePageTablesTest + * @throws ApiException + * if the Api call fails + */ + @Test + public void deletePageTablesTest()throws ApiException + { + String name = "PdfWithTable.pdf"; + th.uploadFile(name); + int pageNumber = 1; + + AsposeResponse response = th.pdfApi.deletePageTables(name, pageNumber, null, th.tempFolder); + assertEquals(200, (int)response.getCode()); + } + + /** + * GetTableTest + * @throws ApiException + * if the Api call fails + */ + @Test + public void getTableTest()throws ApiException + { + String name = "PdfWithTable.pdf"; + th.uploadFile(name); + + TablesRecognizedResponse tablesResponse = th.pdfApi.getDocumentTables(name, null, th.tempFolder); + assertEquals(200, (int)tablesResponse.getCode()); + String tableId = tablesResponse.getTables().getList().get(0).getId(); + + TableRecognizedResponse response = th.pdfApi.getTable(name, tableId, null, th.tempFolder); + assertEquals(200, (int)response.getCode()); + } + + /** + * DeleteTableTest + * @throws ApiException + * if the Api call fails + */ + @Test + public void deleteTableTest()throws ApiException + { + String name = "PdfWithTable.pdf"; + th.uploadFile(name); + + TablesRecognizedResponse tablesResponse = th.pdfApi.getDocumentTables(name, null, th.tempFolder); + assertEquals(200, (int)tablesResponse.getCode()); + String tableId = tablesResponse.getTables().getList().get(0).getId(); + + AsposeResponse response = th.pdfApi.deleteTable(name, tableId, null, th.tempFolder); + assertEquals(200, (int)response.getCode()); + } + + /** + * PostPageTablesTest + * @throws ApiException + * if the Api call fails + */ + @Test + public void postPageTablesTest()throws ApiException + { + String name = "4pages.pdf"; + th.uploadFile(name); + + int pageNumber = 1; + + List
tables = new ArrayList<>(); + tables.add(drawTable()); + + AsposeResponse response = th.pdfApi.postPageTables(name, pageNumber, tables, null, th.tempFolder); + assertEquals(200, (int)response.getCode()); + } + + /** + * PutTableTest + * @throws ApiException + * if the Api call fails + */ + @Test + public void putTableTest()throws ApiException + { + String name = "PdfWithTable.pdf"; + th.uploadFile(name); + + int pageNumber = 1; + + TablesRecognizedResponse tablesResponse = th.pdfApi.getDocumentTables(name, null, th.tempFolder); + assertEquals(200, (int)tablesResponse.getCode()); + String tableId = tablesResponse.getTables().getList().get(0).getId(); + + AsposeResponse response = th.pdfApi.putTable(name, tableId, drawTable(), null, th.tempFolder); + assertEquals(200, (int)response.getCode()); + } + + private Table drawTable() + { + TextState textState = new TextState() + .fontSize(10.) + .backgroundColor(new Color().A(255).R(255)); + + int numOfCols = 5; + int numOfRows = 5; + + Table table = new Table(); + table.setRows(new ArrayList()); + + String colWidths = ""; + for (int c = 0; c < numOfCols; c++) + { + colWidths += " 30"; + } + table.columnWidths(colWidths); + + table.defaultCellTextState(textState); + + GraphInfo borderTableBorder = new GraphInfo(); + borderTableBorder.setColor(new Color().A(255).G(255)); + borderTableBorder.setLineWidth(1.); + + table.setDefaultCellBorder(new BorderInfo() + .top(borderTableBorder) + .right(borderTableBorder) + .bottom(borderTableBorder) + .left(borderTableBorder) + ); + + table.setTop(100.); + + for (int r = 0; r < numOfRows; r++) + { + + Row row = new Row().cells(new ArrayList()); + + for (int c = 0; c < numOfCols; c++) + { + + Cell cell = new Cell(); + cell.setBackgroundColor(new Color().A(255).G(128)); + cell.setDefaultCellTextState(textState); + cell.setParagraphs(new ArrayList()); + cell.getParagraphs().add(new TextRect().text("value")); + + // change properties on cell + if (c == 1) + { + cell.getDefaultCellTextState().setForegroundColor(new Color().A(255).B(255)); + } + + // change properties on cell AFTER first clearing and re-adding paragraphs + else if (c == 2) + { + cell.getParagraphs().clear(); + cell.getParagraphs().add(new TextRect().text("y")); + cell.getDefaultCellTextState().setForegroundColor(new Color().A(255).B(255)); + } + + // change properties on paragraph + else if (c == 3) + { + cell.getParagraphs().get(0).setTextState(textState); + cell.getParagraphs().get(0).getTextState().setForegroundColor(new Color().A(255).G(255)); + } + + // change properties on paragraph AFTER first clearing and re-adding paragraphs + else if (c == 4) + { + cell.getParagraphs().clear(); + cell.getParagraphs().add(new TextRect().text("y")); + cell.getParagraphs().get(0).setTextState(textState); + cell.getParagraphs().get(0).getTextState().setForegroundColor(new Color().A(255).B(255)); + } + row.getCells().add(cell); + + } + table.getRows().add(row); + } + + return table; + } +} diff --git a/src/test/java/com/aspose/asposecloudpdf/api/TestHelper.java b/src/test/java/com/aspose/asposecloudpdf/api/TestHelper.java new file mode 100644 index 0000000..730f1be --- /dev/null +++ b/src/test/java/com/aspose/asposecloudpdf/api/TestHelper.java @@ -0,0 +1,61 @@ +package com.aspose.asposecloudpdf.api; + +import com.aspose.asposecloudpdf.ApiException; +import com.aspose.asposecloudpdf.model.FilesUploadResult; +import com.google.gson.Gson; +import com.google.gson.stream.JsonReader; + +import java.io.File; +import java.io.FileNotFoundException; +import java.io.FileReader; + +import io.swagger.annotations.Api; + +public class TestHelper { + public static PdfApi pdfApi; + public static String tempFolder = "TempPdfCloud"; + public static String testDataFolder = "testData"; + public static String setupFile = "setup.json"; + + class ApiCreds{ + public String app_key; + public String app_sid; + public String product_uri; + } + + private static TestHelper instance; + public static TestHelper getInstance() throws ApiException + { + if (instance == null) + { + instance = new TestHelper(); + } + return instance; + } + + private TestHelper() throws ApiException + { + TestHelper.ApiCreds apiCreds = getApiCreds(); + pdfApi = new PdfApi(apiCreds.app_key, apiCreds.app_sid); + pdfApi.getApiClient().setBasePath(apiCreds.product_uri); + } + + private TestHelper.ApiCreds getApiCreds() throws ApiException + { + Gson gson = new Gson(); + try { + JsonReader reader = new JsonReader(new FileReader(setupFile)); + return gson.fromJson(reader, TestHelper.ApiCreds.class); + } + catch (FileNotFoundException ex){ + throw new ApiException(ex.getMessage()); + } + } + + + public void uploadFile(String name) throws ApiException + { + File file = new File(testDataFolder + "/" + name); + FilesUploadResult response = pdfApi.uploadFile(tempFolder + '/' + name, file, null); + } +} diff --git a/src/test/java/com/aspose/asposecloudpdf/api/TextAnnotationsTests.java b/src/test/java/com/aspose/asposecloudpdf/api/TextAnnotationsTests.java new file mode 100644 index 0000000..e1a51b8 --- /dev/null +++ b/src/test/java/com/aspose/asposecloudpdf/api/TextAnnotationsTests.java @@ -0,0 +1,171 @@ +/** + * + * Copyright (c) 2009 Aspose.PDF Cloud + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of TestHelper.getInstance() 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.api; + +import com.aspose.asposecloudpdf.ApiException; +import com.aspose.asposecloudpdf.model.*; + +import org.junit.Test; + +import java.util.ArrayList; +import java.util.List; + +import static org.junit.Assert.assertEquals; + +public class TextAnnotationsTests { + private TestHelper th; + + public TextAnnotationsTests() throws ApiException { + th = TestHelper.getInstance(); + } + + /** + * GetDocumentTextAnnotationsTest + * @throws ApiException + * if the Api call fails + */ + @Test + public void getDocumentTextAnnotationsTest()throws ApiException + { + String name = "PdfWithAnnotations.pdf"; + th.uploadFile(name); + + TextAnnotationsResponse response = th.pdfApi.getDocumentTextAnnotations(name, null, th.tempFolder); + assertEquals(200, (int)response.getCode()); + } + + /** + * GetPageTextAnnotationsTest + * @throws ApiException + * if the Api call fails + */ + @Test + public void getPageTextAnnotationsTest()throws ApiException + { + String name = "PdfWithAnnotations.pdf"; + th.uploadFile(name); + + int pageNumber = 2; + + TextAnnotationsResponse response = th.pdfApi.getPageTextAnnotations(name, pageNumber, null, th.tempFolder); + assertEquals(200, (int)response.getCode()); + } + + + /** + * GetTextAnnotationTest + * @throws ApiException + * if the Api call fails + */ + @Test + public void getTextAnnotationTest()throws ApiException + { + String name = "PdfWithAnnotations.pdf"; + th.uploadFile(name); + + TextAnnotationsResponse responseAnnotations = th.pdfApi.getDocumentTextAnnotations(name, null, th.tempFolder); + assertEquals(200, (int)responseAnnotations.getCode()); + String annotationId = responseAnnotations.getAnnotations().getList().get(0).getId(); + + TextAnnotationResponse response = th.pdfApi.getTextAnnotation(name, annotationId, null, th.tempFolder); + assertEquals(200, (int)response.getCode()); + } + + /** + * PostPageTextAnnotationsTest + * @throws ApiException + * if the Api call fails + */ + @Test + public void postPageTextAnnotationsTest()throws ApiException + { + String name = "PdfWithAnnotations.pdf"; + th.uploadFile(name); + + int pageNumber = 1; + + Rectangle rect = new Rectangle() + .LLX(100.) + .LLY(100.) + .URX(200.) + .URY(200.); + + List flags = new ArrayList<>(); + flags.add(AnnotationFlags.DEFAULT); + + TextAnnotation textAnnotation = new TextAnnotation(); + textAnnotation.setName("Test Free Text"); + textAnnotation.setRect(rect); + textAnnotation.setFlags(flags); + textAnnotation.setHorizontalAlignment(HorizontalAlignment.CENTER); + textAnnotation.setRichText("Rich Text"); + textAnnotation.setSubject("Text Box Subj"); + textAnnotation.setZindex(1); + textAnnotation.setState(AnnotationState.UNDEFINED); + + List annotations = new ArrayList<>(); + annotations.add(textAnnotation); + + AsposeResponse response = th.pdfApi.postPageTextAnnotations(name, pageNumber, annotations, null, th.tempFolder); + assertEquals(200, (int)response.getCode()); + } + + + /** + * PutTextAnnotationTest + * @throws ApiException + * if the Api call fails + */ + @Test + public void putTextAnnotationTest()throws ApiException + { + String name = "PdfWithAnnotations.pdf"; + th.uploadFile(name); + + + Rectangle rect = new Rectangle() + .LLX(100.) + .LLY(100.) + .URX(200.) + .URY(200.); + + List flags = new ArrayList<>(); + flags.add(AnnotationFlags.DEFAULT); + + TextAnnotation textAnnotation = new TextAnnotation(); + textAnnotation.setName("Test Free Text"); + textAnnotation.setRect(rect); + textAnnotation.setFlags(flags); + textAnnotation.setHorizontalAlignment(HorizontalAlignment.CENTER); + textAnnotation.setRichText("Rich Text"); + textAnnotation.setSubject("Text Box Subj"); + textAnnotation.setZindex(1); + textAnnotation.setState(AnnotationState.UNDEFINED); + + TextAnnotationsResponse responseAnnotations = th.pdfApi.getDocumentTextAnnotations(name, null, th.tempFolder); + assertEquals(200, (int)responseAnnotations.getCode()); + String annotationId = responseAnnotations.getAnnotations().getList().get(0).getId(); + + AsposeResponse response = th.pdfApi.putTextAnnotation(name, annotationId, textAnnotation, null, th.tempFolder); + assertEquals(200, (int)response.getCode()); + } +} diff --git a/src/test/java/com/aspose/asposecloudpdf/api/TextReplaceTests.java b/src/test/java/com/aspose/asposecloudpdf/api/TextReplaceTests.java new file mode 100644 index 0000000..6d4b13a --- /dev/null +++ b/src/test/java/com/aspose/asposecloudpdf/api/TextReplaceTests.java @@ -0,0 +1,111 @@ +/** + * + * Copyright (c) 2009 Aspose.PDF Cloud + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of TestHelper.getInstance() 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.api; + +import com.aspose.asposecloudpdf.ApiException; +import com.aspose.asposecloudpdf.model.*; + +import org.junit.Test; + +import java.util.ArrayList; + +import static org.junit.Assert.assertEquals; + +public class TextReplaceTests { + private TestHelper th; + + public TextReplaceTests() throws ApiException { + th = TestHelper.getInstance(); + } + + /** + * PostDocumentTextReplace Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void postDocumentTextReplaceTest() throws ApiException + { + String name = "marketing.pdf"; + th.uploadFile(name); + + Rectangle rect = new Rectangle() + .LLX(100.) + .LLY(100.) + .URX(300.) + .URY(300.); + + final TextReplace textReplace = new TextReplace(); + textReplace.setOldValue("market"); + textReplace.setNewValue("m_a_r_k_e_t"); + textReplace.setRegex(false); + textReplace.setRect(rect); + + TextReplaceListRequest textReplaceList = new TextReplaceListRequest(); + textReplaceList.setTextReplaces(new ArrayList(){{ add(textReplace); }}); + textReplaceList.setStartIndex(0); + textReplaceList.setCountReplace(0); + + String folder = th.tempFolder; + + TextReplaceResponse response = th.pdfApi.postDocumentTextReplace(name, textReplaceList, null, folder); + assertEquals(200, (int)response.getCode()); + } + + + /** + * PostPageTextReplaceByRect Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void postPageTextReplaceByRectTest() throws ApiException + { + String name = "marketing.pdf"; + th.uploadFile(name); + int pageNumber = 1; + + Rectangle rect = new Rectangle() + .LLX(100.) + .LLY(700.) + .URX(400.) + .URY(1000.); + + final TextReplace textReplace = new TextReplace(); + textReplace.setOldValue("market"); + textReplace.setNewValue("m_a_r_k_e_t"); + textReplace.setRegex(false); + textReplace.setRect(rect); + + TextReplaceListRequest textReplaceList = new TextReplaceListRequest(); + textReplaceList.setTextReplaces(new ArrayList(){{ add(textReplace); }}); + textReplaceList.setStartIndex(0); + textReplaceList.setCountReplace(0); + + String folder = th.tempFolder; + + TextReplaceResponse response = th.pdfApi.postPageTextReplace(name, pageNumber, textReplaceList, null, folder); + assertEquals(200, (int)response.getCode()); + } +} diff --git a/src/test/java/com/aspose/asposecloudpdf/api/TextTests.java b/src/test/java/com/aspose/asposecloudpdf/api/TextTests.java new file mode 100644 index 0000000..7265325 --- /dev/null +++ b/src/test/java/com/aspose/asposecloudpdf/api/TextTests.java @@ -0,0 +1,156 @@ +/** + * + * Copyright (c) 2009 Aspose.PDF Cloud + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of TestHelper.getInstance() 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.api; + +import com.aspose.asposecloudpdf.ApiException; +import com.aspose.asposecloudpdf.model.*; + +import org.junit.Test; + +import java.util.ArrayList; +import java.util.List; + +import static org.junit.Assert.assertEquals; + +public class TextTests { + private TestHelper th; + + public TextTests() throws ApiException { + th = TestHelper.getInstance(); + } + + /** + * GetText Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void getTextTest() throws ApiException + { + String name = "4pages.pdf"; + th.uploadFile(name); + + double llx = 0; + double lly = 0; + double urx = 0; + double ury = 0; + String folder = th.tempFolder; + + TextRectsResponse response = th.pdfApi.getText(name, llx, lly, urx, ury, null, null, null, folder, null); + assertEquals(200, (int)response.getCode()); + } + + + /** + * GetPageTextByTwoTextOnPage Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void getPageTextByTwoTextOnPageTest() throws ApiException + { + String name = "4pages.pdf"; + th.uploadFile(name); + + int pageNumber = 1; + double llx = 0; + double lly = 0; + double urx = 0; + double ury = 0; + + List format = new ArrayList(){{ add("First Page"); add("Second Page");}}; + String folder = th.tempFolder; + + TextRectsResponse response = th.pdfApi.getPageText(name, pageNumber, llx, lly, urx, ury, format, null, null, folder, null); + assertEquals(200, (int)response.getCode()); + } + + + /** + * PutAddText Test + * @throws ApiException + * if the Api call fails + */ + + @Test + public void putAddTextTest() throws ApiException + { + String name = "4pages.pdf"; + th.uploadFile(name); + + int pageNumber = 1; + String folder = th.tempFolder; + + Rectangle rectangle = new Rectangle(); + rectangle.setLLX(100.); + rectangle.setLLY(100.); + rectangle.setURX(200.); + rectangle.setURY(200.); + + Color foregroundColor = new Color(); + foregroundColor.setA(0x00); + foregroundColor.setR(0x00); + foregroundColor.setG(0xFF); + foregroundColor.setB(0x00); + + Color backgroundColor = new Color(); + backgroundColor.setA(0x00); + backgroundColor.setR(0xFF); + backgroundColor.setG(0x00); + backgroundColor.setB(0x00); + + TextState textState = new TextState(); + textState.setFont("Arial"); + textState.setFontSize(10.); + textState.setForegroundColor(foregroundColor); + textState.setBackgroundColor(backgroundColor); + textState.setFontStyle(FontStyles.BOLD); + + final Segment segment = new Segment(); + segment.setValue("segment 1"); + segment.setTextState(textState); + + final TextLine textLine = new TextLine(); + textLine.setHorizontalAlignment(TextHorizontalAlignment.RIGHT); + textLine.setSegments(new ArrayList(){{ add(segment);}}); + + Paragraph paragraph = new Paragraph(); + paragraph.setRectangle(rectangle); + paragraph.setLeftMargin(10.); + paragraph.setRightMargin(10.); + paragraph.setTopMargin(20.); + paragraph.setBottomMargin(20.); + paragraph.setHorizontalAlignment(TextHorizontalAlignment.FULLJUSTIFY); + paragraph.setLineSpacing(LineSpacing.FONTSIZE); + paragraph.setRotation(10.); + paragraph.setSubsequentLinesIndent(20.); + paragraph.setVerticalAlignment(VerticalAlignment.CENTER); + paragraph.setWrapMode(WrapMode.BYWORDS); + paragraph.setLines(new ArrayList(){{ add(textLine);}}); + + + AsposeResponse response = th.pdfApi.putAddText(name, pageNumber, paragraph, folder, null); + assertEquals(200, (int)response.getCode()); + } +} diff --git a/src/test/java/com/aspose/asposecloudpdf/api/UnderlineAnnotationsTests.java b/src/test/java/com/aspose/asposecloudpdf/api/UnderlineAnnotationsTests.java new file mode 100644 index 0000000..4e0a78e --- /dev/null +++ b/src/test/java/com/aspose/asposecloudpdf/api/UnderlineAnnotationsTests.java @@ -0,0 +1,186 @@ +/** + * + * Copyright (c) 2009 Aspose.PDF Cloud + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of TestHelper.getInstance() 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.api; + +import com.aspose.asposecloudpdf.ApiException; +import com.aspose.asposecloudpdf.model.*; + +import org.junit.Test; + +import java.util.ArrayList; +import java.util.List; + +import static org.junit.Assert.assertEquals; + +public class UnderlineAnnotationsTests { + private TestHelper th; + + public UnderlineAnnotationsTests() throws ApiException { + th = TestHelper.getInstance(); + } + + /** + * GetDocumentUnderlineAnnotationsTest + * @throws ApiException + * if the Api call fails + */ + @Test + public void getDocumentUnderlineAnnotationsTest()throws ApiException + { + String name = "PdfWithAnnotations.pdf"; + th.uploadFile(name); + + UnderlineAnnotationsResponse response = th.pdfApi.getDocumentUnderlineAnnotations(name, null, th.tempFolder); + assertEquals(200, (int)response.getCode()); + } + + /** + * GetPageUnderlineAnnotationsTest + * @throws ApiException + * if the Api call fails + */ + @Test + public void getPageUnderlineAnnotationsTest()throws ApiException + { + String name = "PdfWithAnnotations.pdf"; + th.uploadFile(name); + + int pageNumber = 2; + + UnderlineAnnotationsResponse response = th.pdfApi.getPageUnderlineAnnotations(name, pageNumber, null, th.tempFolder); + assertEquals(200, (int)response.getCode()); + } + + + /** + * GetUnderlineAnnotationTest + * @throws ApiException + * if the Api call fails + */ + @Test + public void getUnderlineAnnotationTest()throws ApiException + { + String name = "PdfWithAnnotations.pdf"; + th.uploadFile(name); + + UnderlineAnnotationsResponse responseAnnotations = th.pdfApi.getDocumentUnderlineAnnotations(name, null, th.tempFolder); + assertEquals(200, (int)responseAnnotations.getCode()); + String annotationId = responseAnnotations.getAnnotations().getList().get(0).getId(); + + UnderlineAnnotationResponse response = th.pdfApi.getUnderlineAnnotation(name, annotationId, null, th.tempFolder); + assertEquals(200, (int)response.getCode()); + } + + /** + * PostPageUnderlineAnnotationsTest + * @throws ApiException + * if the Api call fails + */ + @Test + public void postPageUnderlineAnnotationsTest()throws ApiException + { + String name = "PdfWithAnnotations.pdf"; + th.uploadFile(name); + + int pageNumber = 1; + + Rectangle rect = new Rectangle() + .LLX(100.) + .LLY(100.) + .URX(200.) + .URY(200.); + + List flags = new ArrayList<>(); + flags.add(AnnotationFlags.DEFAULT); + + List points = new ArrayList<>(); + points.add(new Point().X(10.).Y(10.)); + points.add(new Point().X(20.).Y(10.)); + points.add(new Point().X(10.).Y(20.)); + points.add(new Point().X(10.).Y(10.)); + + UnderlineAnnotation annotation = new UnderlineAnnotation(); + annotation.setName("Name"); + annotation.setRect(rect); + annotation.setFlags(flags); + annotation.setHorizontalAlignment(HorizontalAlignment.CENTER); + annotation.setRichText("Rich Text"); + annotation.setSubject("Subj"); + annotation.setZindex(1); + annotation.setTitle("Title"); + annotation.setQuadPoints(points); + annotation.setModified("02/02/2018 00:00:00.000 AM"); + + List annotations = new ArrayList<>(); + annotations.add(annotation); + + AsposeResponse response = th.pdfApi.postPageUnderlineAnnotations(name, pageNumber, annotations, null, th.tempFolder); + assertEquals(200, (int)response.getCode()); + } + + + /** + * PutUnderlineAnnotationTest + * @throws ApiException + * if the Api call fails + */ + @Test + public void putUnderlineAnnotationTest()throws ApiException + { + String name = "PdfWithAnnotations.pdf"; + th.uploadFile(name); + + Rectangle rect = new Rectangle() + .LLX(100.) + .LLY(100.) + .URX(200.) + .URY(200.); + + List flags = new ArrayList<>(); + flags.add(AnnotationFlags.DEFAULT); + + List points = new ArrayList<>(); + points.add(new Point().X(10.).Y(10.)); + points.add(new Point().X(20.).Y(10.)); + points.add(new Point().X(10.).Y(20.)); + points.add(new Point().X(10.).Y(10.)); + + UnderlineAnnotation annotation = new UnderlineAnnotation(); + annotation.setName("Name Updated"); + annotation.setRect(rect); + annotation.setFlags(flags); + annotation.setHorizontalAlignment(HorizontalAlignment.CENTER); + annotation.setRichText("Rich Text Updated"); + annotation.setSubject("Subj Updated"); + annotation.setZindex(1); + annotation.setTitle("Title Updated"); + annotation.setQuadPoints(points); + annotation.setModified("02/02/2018 00:00:00.000 AM"); + + UnderlineAnnotationsResponse responseAnnotations = th.pdfApi.getDocumentUnderlineAnnotations(name, null, th.tempFolder); + assertEquals(200, (int)responseAnnotations.getCode()); + String annotationId = responseAnnotations.getAnnotations().getList().get(0).getId(); + + AsposeResponse response = th.pdfApi.putUnderlineAnnotation(name, annotationId, annotation, null, th.tempFolder); + assertEquals(200, (int)response.getCode()); + } +} diff --git a/testData/FormData.fdf b/testData/FormData.fdf new file mode 100644 index 0000000..dbf2680 Binary files /dev/null and b/testData/FormData.fdf differ diff --git a/testData/FormData.pdf b/testData/FormData.pdf new file mode 100644 index 0000000..5dec572 Binary files /dev/null and b/testData/FormData.pdf differ diff --git a/testData/FormDataXfa_in.pdf b/testData/FormDataXfa_in.pdf new file mode 100644 index 0000000..743dbaa Binary files /dev/null and b/testData/FormDataXfa_in.pdf differ diff --git a/testData/FormDataXfa_in.xml b/testData/FormDataXfa_in.xml new file mode 100644 index 0000000..a48467e --- /dev/null +++ b/testData/FormDataXfa_in.xml @@ -0,0 +1,8 @@ + + + + Dou + Jon + 999]]> + + \ No newline at end of file diff --git a/testData/FormDataXfdf_in.pdf b/testData/FormDataXfdf_in.pdf new file mode 100644 index 0000000..0a879ae Binary files /dev/null and b/testData/FormDataXfdf_in.pdf differ diff --git a/testData/FormDataXfdf_in.xfdf b/testData/FormDataXfdf_in.xfdf new file mode 100644 index 0000000..3ca2678 --- /dev/null +++ b/testData/FormDataXfdf_in.xfdf @@ -0,0 +1,21 @@ + + + + + + Deutschland + + + Freie & Hansestadt Hamburg + + + Hamburger + + + dirk.pass@bs-card-service.com + + + Dirk Pass + + + diff --git a/testData/sample.tex b/testData/sample.tex new file mode 100644 index 0000000..637c532 --- /dev/null +++ b/testData/sample.tex @@ -0,0 +1,105 @@ +\documentclass{article} +\usepackage{epsfig} +\renewcommand{\baselinestretch}{1} +\setlength{\textheight}{9in} +\setlength{\textwidth}{6.5in} +\setlength{\headheight}{0in} +\setlength{\headsep}{0in} +\setlength{\topmargin}{0in} +\setlength{\oddsidemargin}{0in} +\setlength{\evensidemargin}{0in} +\setlength{\parindent}{.3in} +\begin{document} + +\leftline{Pat Q.~Student} +\leftline{AME 20231} +\leftline{18 January 2013} + +\medskip +This is a sample file in the text formatter \LaTeX. +I require you to use it for the following reasons: + +\begin{itemize} + +\item{It produces the best output of text, figures, + and equations of any + program I've seen.} + +\item{It is machine-independent. It runs on Linux, Macintosh (see {\tt TeXShop}), and Windows (see {\tt MiKTeX}) machines. + You can e-mail {\tt ASCII} text versions of most relevant files.} + +\item{It is the tool of choice for many research + scientists and engineers. + Many journals accept + \LaTeX~ submissions, and many books + are written in \LaTeX.} + +\end{itemize} +\medskip +Some basic instructions are given next. +Put your text in here. You can be a little sloppy about +spacing. It adjusts the text to look good. +{\small You can make the text smaller.} +{\tiny You can make the text tiny.} + +Skip a line for a new paragraph. +You can use italics ({\em e.g.} {\em Thermodynamics is everywhere}) or {\bf bold}. +Greek letters are a snap: $\Psi$, $\psi$, +$\Phi$, $\phi$. Equations within text are easy--- +A well known Maxwell thermodynamic relation is +$\left.{\partial T \over \partial p}\right|_{s} = +\left.{\partial v \over \partial s}\right|_{p}$. +You can also set aside equations like so: +\begin{eqnarray} +du &=& Tds -p dv, \qquad \mbox{first law}\\ +ds &\ge& {dq \over T}.\qquad \qquad \mbox{second law} \label{ee} +\end{eqnarray} +Eq.~(\ref{ee}) is the second law. +References\footnote{Lamport, L., 1986, {\em \LaTeX: User's Guide \& Reference Manual}, + Addison-Wesley: Reading, Massachusetts.} +are available. +If you have an postscript file, say {\tt sample.figure.eps}, in the same local directory, +you can insert the file as a figure. Figure \ref{sample}, below, plots an isotherm for air modeled as an ideal gas. +\begin{figure}[ht] +\epsfxsize=2.5in +\centerline{\epsffile{sample.figure.eps}} +\caption{Sample figure plotting $T=300~K$ isotherm for air when modeled as an ideal gas.} +\label{sample} +\end{figure} + +\medskip +\leftline{\em Running \LaTeX} +\medskip + +You can create a \LaTeX~ file with any text editor ({\tt vi}, {\tt emacs}, {\tt gedit}, +etc.). +To get a document, you need to run the \LaTeX~ application +on the text file. The text file must have the suffix ``{\tt .tex}'' +On a Linux cluster machine, this is done via the command + +\medskip +{\tt latex file.tex} + +\medskip +\noindent +This generates three files: {\tt file.dvi}, {\tt file.aux}, +and {\tt file.log}. The most important is {\tt file.dvi}. + +\medskip +\noindent +The finished product can be previewed in the following way. +Execute the commands: + +\medskip + +{\tt dvipdf file.dvi}\hspace{1.9in}{\em Linux System} + +\medskip +\noindent +This command generates {\tt file.pdf}. +Alternatively, you can use {\tt TeXShop} on a Macintosh or {\tt MiKTeX} on a Windows-based machine. +The {\tt .tex} file must have a closing statement as +below. + + +\end{document}