diff --git a/README.md b/README.md
index 62bf9316..3e3547c3 100644
--- a/README.md
+++ b/README.md
@@ -67,27 +67,37 @@ Class | Method | HTTP request | Description
*PdfApi* | [**deletePageLinkAnnotations**](docs/PdfApi.md#deletePageLinkAnnotations) | **DELETE** /pdf/\{name}/pages/\{pageNumber}/links | Delete all link annotations from the page
*PdfApi* | [**deleteProperties**](docs/PdfApi.md#deleteProperties) | **DELETE** /pdf/\{name}/documentproperties | Delete custom document properties.
*PdfApi* | [**deleteProperty**](docs/PdfApi.md#deleteProperty) | **DELETE** /pdf/\{name}/documentproperties/\{propertyName} | Delete document property.
+*PdfApi* | [**getCaretAnnotation**](docs/PdfApi.md#getCaretAnnotation) | **GET** /pdf/\{name}/annotations/caret/\{annotationId} | Read document page caret annotation by ID.
*PdfApi* | [**getCircleAnnotation**](docs/PdfApi.md#getCircleAnnotation) | **GET** /pdf/\{name}/annotations/circle/\{annotationId} | Read document page circle annotation by ID.
*PdfApi* | [**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 | Read document bookmark/bookmarks (including children).
+*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* | [**getDocumentFreeTextAnnotations**](docs/PdfApi.md#getDocumentFreeTextAnnotations) | **GET** /pdf/\{name}/annotations/freetext | Read document free text annotations.
+*PdfApi* | [**getDocumentHighlightAnnotations**](docs/PdfApi.md#getDocumentHighlightAnnotations) | **GET** /pdf/\{name}/annotations/highlight | Read document highlight annotations.
+*PdfApi* | [**getDocumentInkAnnotations**](docs/PdfApi.md#getDocumentInkAnnotations) | **GET** /pdf/\{name}/annotations/ink | Read document ink annotations.
*PdfApi* | [**getDocumentLineAnnotations**](docs/PdfApi.md#getDocumentLineAnnotations) | **GET** /pdf/\{name}/annotations/line | Read document line annotations.
*PdfApi* | [**getDocumentPolygonAnnotations**](docs/PdfApi.md#getDocumentPolygonAnnotations) | **GET** /pdf/\{name}/annotations/polygon | Read document polygon annotations.
*PdfApi* | [**getDocumentPolyLineAnnotations**](docs/PdfApi.md#getDocumentPolyLineAnnotations) | **GET** /pdf/\{name}/annotations/polyline | Read document polyline annotations.
+*PdfApi* | [**getDocumentPopupAnnotations**](docs/PdfApi.md#getDocumentPopupAnnotations) | **GET** /pdf/\{name}/annotations/popup | Read document popup annotations.
+*PdfApi* | [**getDocumentPopupAnnotationsByParent**](docs/PdfApi.md#getDocumentPopupAnnotationsByParent) | **GET** /pdf/\{name}/annotations/\{annotationId}/popup | Read document popup annotations by parent id.
*PdfApi* | [**getDocumentProperties**](docs/PdfApi.md#getDocumentProperties) | **GET** /pdf/\{name}/documentproperties | Read document properties.
*PdfApi* | [**getDocumentProperty**](docs/PdfApi.md#getDocumentProperty) | **GET** /pdf/\{name}/documentproperties/\{propertyName} | Read document property by name.
*PdfApi* | [**getDocumentSquareAnnotations**](docs/PdfApi.md#getDocumentSquareAnnotations) | **GET** /pdf/\{name}/annotations/square | Read document square annotations.
+*PdfApi* | [**getDocumentSquigglyAnnotations**](docs/PdfApi.md#getDocumentSquigglyAnnotations) | **GET** /pdf/\{name}/annotations/squiggly | Read document squiggly annotations.
+*PdfApi* | [**getDocumentStrikeOutAnnotations**](docs/PdfApi.md#getDocumentStrikeOutAnnotations) | **GET** /pdf/\{name}/annotations/strikeout | Read document StrikeOut annotations.
*PdfApi* | [**getDocumentTextAnnotations**](docs/PdfApi.md#getDocumentTextAnnotations) | **GET** /pdf/\{name}/annotations/text | Read document text annotations.
+*PdfApi* | [**getDocumentUnderlineAnnotations**](docs/PdfApi.md#getDocumentUnderlineAnnotations) | **GET** /pdf/\{name}/annotations/underline | Read document underline annotations.
*PdfApi* | [**getDownload**](docs/PdfApi.md#getDownload) | **GET** /storage/file | Download a specific file
*PdfApi* | [**getDownloadDocumentAttachmentByIndex**](docs/PdfApi.md#getDownloadDocumentAttachmentByIndex) | **GET** /pdf/\{name}/attachments/\{attachmentIndex}/download | Download document attachment content by its index.
*PdfApi* | [**getEpubInStorageToPdf**](docs/PdfApi.md#getEpubInStorageToPdf) | **GET** /pdf/create/epub | Convert EPUB file (located on storage) to PDF format and return resulting file in response.
*PdfApi* | [**getField**](docs/PdfApi.md#getField) | **GET** /pdf/\{name}/fields/\{fieldName} | Get document field by name.
*PdfApi* | [**getFields**](docs/PdfApi.md#getFields) | **GET** /pdf/\{name}/fields | Get document fields.
*PdfApi* | [**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.
*PdfApi* | [**getImage**](docs/PdfApi.md#getImage) | **GET** /pdf/\{name}/images/\{imageId} | Read document image by ID.
*PdfApi* | [**getImageExtractAsGif**](docs/PdfApi.md#getImageExtractAsGif) | **GET** /pdf/\{name}/images/\{imageId}/extract/gif | Extract document image in GIF format
@@ -95,6 +105,7 @@ 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* | [**getInkAnnotation**](docs/PdfApi.md#getInkAnnotation) | **GET** /pdf/\{name}/annotations/ink/\{annotationId} | Read document page ink annotation by ID.
*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.
@@ -102,6 +113,7 @@ Class | Method | HTTP request | Description
*PdfApi* | [**getMhtInStorageToPdf**](docs/PdfApi.md#getMhtInStorageToPdf) | **GET** /pdf/create/mht | Convert MHT file (located on storage) to PDF format and return resulting file in response.
*PdfApi* | [**getPage**](docs/PdfApi.md#getPage) | **GET** /pdf/\{name}/pages/\{pageNumber} | Read document page info.
*PdfApi* | [**getPageAnnotations**](docs/PdfApi.md#getPageAnnotations) | **GET** /pdf/\{name}/pages/\{pageNumber}/annotations | Read documant page annotations. Returns only FreeTextAnnotations, TextAnnotations, other annotations will implemented next releases.
+*PdfApi* | [**getPageCaretAnnotations**](docs/PdfApi.md#getPageCaretAnnotations) | **GET** /pdf/\{name}/pages/\{pageNumber}/annotations/caret | Read document page caret annotations.
*PdfApi* | [**getPageCircleAnnotations**](docs/PdfApi.md#getPageCircleAnnotations) | **GET** /pdf/\{name}/pages/\{pageNumber}/annotations/circle | Read document page circle annotations.
*PdfApi* | [**getPageConvertToBmp**](docs/PdfApi.md#getPageConvertToBmp) | **GET** /pdf/\{name}/pages/\{pageNumber}/convert/bmp | Convert document page to Bmp image and return resulting file in response.
*PdfApi* | [**getPageConvertToEmf**](docs/PdfApi.md#getPageConvertToEmf) | **GET** /pdf/\{name}/pages/\{pageNumber}/convert/emf | Convert document page to Emf image and return resulting file in response.
@@ -110,15 +122,21 @@ Class | Method | HTTP request | Description
*PdfApi* | [**getPageConvertToPng**](docs/PdfApi.md#getPageConvertToPng) | **GET** /pdf/\{name}/pages/\{pageNumber}/convert/png | Convert document page to Png image and return resulting file in response.
*PdfApi* | [**getPageConvertToTiff**](docs/PdfApi.md#getPageConvertToTiff) | **GET** /pdf/\{name}/pages/\{pageNumber}/convert/tiff | Convert document page to Tiff image and return resulting file in response.
*PdfApi* | [**getPageFreeTextAnnotations**](docs/PdfApi.md#getPageFreeTextAnnotations) | **GET** /pdf/\{name}/pages/\{pageNumber}/annotations/freetext | Read document page free text annotations.
+*PdfApi* | [**getPageHighlightAnnotations**](docs/PdfApi.md#getPageHighlightAnnotations) | **GET** /pdf/\{name}/pages/\{pageNumber}/annotations/highlight | Read document page highlight annotations.
+*PdfApi* | [**getPageInkAnnotations**](docs/PdfApi.md#getPageInkAnnotations) | **GET** /pdf/\{name}/pages/\{pageNumber}/annotations/ink | Read document page ink annotations.
*PdfApi* | [**getPageLineAnnotations**](docs/PdfApi.md#getPageLineAnnotations) | **GET** /pdf/\{name}/pages/\{pageNumber}/annotations/line | Read document page line annotations.
*PdfApi* | [**getPageLinkAnnotation**](docs/PdfApi.md#getPageLinkAnnotation) | **GET** /pdf/\{name}/pages/\{pageNumber}/links/\{linkId} | Read document page link annotation by ID.
*PdfApi* | [**getPageLinkAnnotations**](docs/PdfApi.md#getPageLinkAnnotations) | **GET** /pdf/\{name}/pages/\{pageNumber}/links | Read document page link annotations.
*PdfApi* | [**getPagePolygonAnnotations**](docs/PdfApi.md#getPagePolygonAnnotations) | **GET** /pdf/\{name}/pages/\{pageNumber}/annotations/polygon | Read document page polygon annotations.
*PdfApi* | [**getPagePolyLineAnnotations**](docs/PdfApi.md#getPagePolyLineAnnotations) | **GET** /pdf/\{name}/pages/\{pageNumber}/annotations/polyline | Read document page polyline annotations.
+*PdfApi* | [**getPagePopupAnnotations**](docs/PdfApi.md#getPagePopupAnnotations) | **GET** /pdf/\{name}/pages/\{pageNumber}/annotations/popup | Read document page popup annotations.
*PdfApi* | [**getPages**](docs/PdfApi.md#getPages) | **GET** /pdf/\{name}/pages | Read document pages info.
*PdfApi* | [**getPageSquareAnnotations**](docs/PdfApi.md#getPageSquareAnnotations) | **GET** /pdf/\{name}/pages/\{pageNumber}/annotations/square | Read document page square annotations.
+*PdfApi* | [**getPageSquigglyAnnotations**](docs/PdfApi.md#getPageSquigglyAnnotations) | **GET** /pdf/\{name}/pages/\{pageNumber}/annotations/squiggly | Read document page squiggly annotations.
+*PdfApi* | [**getPageStrikeOutAnnotations**](docs/PdfApi.md#getPageStrikeOutAnnotations) | **GET** /pdf/\{name}/pages/\{pageNumber}/annotations/strikeout | Read document page StrikeOut annotations.
*PdfApi* | [**getPageText**](docs/PdfApi.md#getPageText) | **GET** /pdf/\{name}/pages/\{pageNumber}/text | Read page text items.
*PdfApi* | [**getPageTextAnnotations**](docs/PdfApi.md#getPageTextAnnotations) | **GET** /pdf/\{name}/pages/\{pageNumber}/annotations/text | Read document page text annotations.
+*PdfApi* | [**getPageUnderlineAnnotations**](docs/PdfApi.md#getPageUnderlineAnnotations) | **GET** /pdf/\{name}/pages/\{pageNumber}/annotations/underline | Read document page underline annotations.
*PdfApi* | [**getPclInStorageToPdf**](docs/PdfApi.md#getPclInStorageToPdf) | **GET** /pdf/create/pcl | Convert PCL file (located on storage) to PDF format and return resulting file in response.
*PdfApi* | [**getPdfInStorageToDoc**](docs/PdfApi.md#getPdfInStorageToDoc) | **GET** /pdf/\{name}/convert/doc | Converts PDF document (located on storage) to DOC format and returns resulting file in response content
*PdfApi* | [**getPdfInStorageToEpub**](docs/PdfApi.md#getPdfInStorageToEpub) | **GET** /pdf/\{name}/convert/epub | Converts PDF document (located on storage) to EPUB format and returns resulting file in response content
@@ -134,11 +152,15 @@ Class | Method | HTTP request | Description
*PdfApi* | [**getPdfInStorageToXps**](docs/PdfApi.md#getPdfInStorageToXps) | **GET** /pdf/\{name}/convert/xps | Converts PDF document (located on storage) to XPS format and returns resulting file in response content
*PdfApi* | [**getPolygonAnnotation**](docs/PdfApi.md#getPolygonAnnotation) | **GET** /pdf/\{name}/annotations/polygon/\{annotationId} | Read document page polygon annotation by ID.
*PdfApi* | [**getPolyLineAnnotation**](docs/PdfApi.md#getPolyLineAnnotation) | **GET** /pdf/\{name}/annotations/polyline/\{annotationId} | Read document page polyline annotation by ID.
+*PdfApi* | [**getPopupAnnotation**](docs/PdfApi.md#getPopupAnnotation) | **GET** /pdf/\{name}/annotations/popup/\{annotationId} | Read document page popup annotation by ID.
*PdfApi* | [**getPsInStorageToPdf**](docs/PdfApi.md#getPsInStorageToPdf) | **GET** /pdf/create/ps | Convert PS file (located on storage) to PDF format and return resulting file in response.
*PdfApi* | [**getSquareAnnotation**](docs/PdfApi.md#getSquareAnnotation) | **GET** /pdf/\{name}/annotations/square/\{annotationId} | Read document page square annotation by ID.
+*PdfApi* | [**getSquigglyAnnotation**](docs/PdfApi.md#getSquigglyAnnotation) | **GET** /pdf/\{name}/annotations/squiggly/\{annotationId} | Read document page squiggly annotation by ID.
+*PdfApi* | [**getStrikeOutAnnotation**](docs/PdfApi.md#getStrikeOutAnnotation) | **GET** /pdf/\{name}/annotations/strikeout/\{annotationId} | Read document page StrikeOut annotation by ID.
*PdfApi* | [**getSvgInStorageToPdf**](docs/PdfApi.md#getSvgInStorageToPdf) | **GET** /pdf/create/svg | Convert SVG file (located on storage) to PDF format and return resulting file in response.
*PdfApi* | [**getText**](docs/PdfApi.md#getText) | **GET** /pdf/\{name}/text | Read document text.
*PdfApi* | [**getTextAnnotation**](docs/PdfApi.md#getTextAnnotation) | **GET** /pdf/\{name}/annotations/text/\{annotationId} | Read document page text annotation by ID.
+*PdfApi* | [**getUnderlineAnnotation**](docs/PdfApi.md#getUnderlineAnnotation) | **GET** /pdf/\{name}/annotations/underline/\{annotationId} | Read document page underline annotation by ID.
*PdfApi* | [**getVerifySignature**](docs/PdfApi.md#getVerifySignature) | **GET** /pdf/\{name}/verifySignature | Verify signature document.
*PdfApi* | [**getWebInStorageToPdf**](docs/PdfApi.md#getWebInStorageToPdf) | **GET** /pdf/create/web | Convert web page to PDF format and return resulting file in response.
*PdfApi* | [**getWordsPerPage**](docs/PdfApi.md#getWordsPerPage) | **GET** /pdf/\{name}/pages/wordCount | Get number of words per document page.
@@ -152,26 +174,35 @@ Class | Method | HTTP request | Description
*PdfApi* | [**postInsertImage**](docs/PdfApi.md#postInsertImage) | **POST** /pdf/\{name}/pages/\{pageNumber}/images | Insert image to document page.
*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.
*PdfApi* | [**postPageCircleAnnotations**](docs/PdfApi.md#postPageCircleAnnotations) | **POST** /pdf/\{name}/pages/\{pageNumber}/annotations/circle | Add document page circle annotations.
*PdfApi* | [**postPageFreeTextAnnotations**](docs/PdfApi.md#postPageFreeTextAnnotations) | **POST** /pdf/\{name}/pages/\{pageNumber}/annotations/freetext | Add document page free text annotations.
+*PdfApi* | [**postPageHighlightAnnotations**](docs/PdfApi.md#postPageHighlightAnnotations) | **POST** /pdf/\{name}/pages/\{pageNumber}/annotations/highlight | Add document page highlight annotations.
+*PdfApi* | [**postPageInkAnnotations**](docs/PdfApi.md#postPageInkAnnotations) | **POST** /pdf/\{name}/pages/\{pageNumber}/annotations/ink | Add document page ink annotations.
*PdfApi* | [**postPageLineAnnotations**](docs/PdfApi.md#postPageLineAnnotations) | **POST** /pdf/\{name}/pages/\{pageNumber}/annotations/line | Add document page line annotations.
*PdfApi* | [**postPageLinkAnnotations**](docs/PdfApi.md#postPageLinkAnnotations) | **POST** /pdf/\{name}/pages/\{pageNumber}/links | Add document page link annotations.
*PdfApi* | [**postPagePolygonAnnotations**](docs/PdfApi.md#postPagePolygonAnnotations) | **POST** /pdf/\{name}/pages/\{pageNumber}/annotations/polygon | Add document page polygon annotations.
*PdfApi* | [**postPagePolyLineAnnotations**](docs/PdfApi.md#postPagePolyLineAnnotations) | **POST** /pdf/\{name}/pages/\{pageNumber}/annotations/polyline | Add document page polyline annotations.
*PdfApi* | [**postPageSquareAnnotations**](docs/PdfApi.md#postPageSquareAnnotations) | **POST** /pdf/\{name}/pages/\{pageNumber}/annotations/square | Add document page square annotations.
+*PdfApi* | [**postPageSquigglyAnnotations**](docs/PdfApi.md#postPageSquigglyAnnotations) | **POST** /pdf/\{name}/pages/\{pageNumber}/annotations/squiggly | Add document page squiggly annotations.
+*PdfApi* | [**postPageStrikeOutAnnotations**](docs/PdfApi.md#postPageStrikeOutAnnotations) | **POST** /pdf/\{name}/pages/\{pageNumber}/annotations/strikeout | Add document page StrikeOut annotations.
*PdfApi* | [**postPageTextAnnotations**](docs/PdfApi.md#postPageTextAnnotations) | **POST** /pdf/\{name}/pages/\{pageNumber}/annotations/text | Add document page text annotations.
*PdfApi* | [**postPageTextReplace**](docs/PdfApi.md#postPageTextReplace) | **POST** /pdf/\{name}/pages/\{pageNumber}/text/replace | Page's replace text method.
+*PdfApi* | [**postPageUnderlineAnnotations**](docs/PdfApi.md#postPageUnderlineAnnotations) | **POST** /pdf/\{name}/pages/\{pageNumber}/annotations/underline | Add document page underline annotations.
+*PdfApi* | [**postPopupAnnotation**](docs/PdfApi.md#postPopupAnnotation) | **POST** /pdf/\{name}/annotations/\{annotationId}/popup | Add document popup annotations.
*PdfApi* | [**postSignDocument**](docs/PdfApi.md#postSignDocument) | **POST** /pdf/\{name}/sign | Sign document.
*PdfApi* | [**postSignPage**](docs/PdfApi.md#postSignPage) | **POST** /pdf/\{name}/pages/\{pageNumber}/sign | Sign page.
*PdfApi* | [**postSplitDocument**](docs/PdfApi.md#postSplitDocument) | **POST** /pdf/\{name}/split | Split document to parts.
*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* | [**putCaretAnnotation**](docs/PdfApi.md#putCaretAnnotation) | **PUT** /pdf/\{name}/annotations/caret/\{annotationId} | Replace document caret annotation
*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* | [**putEpubInStorageToPdf**](docs/PdfApi.md#putEpubInStorageToPdf) | **PUT** /pdf/\{name}/create/epub | Convert EPUB file (located on storage) to PDF format and upload resulting file to storage.
*PdfApi* | [**putFieldsFlatten**](docs/PdfApi.md#putFieldsFlatten) | **PUT** /pdf/\{name}/fields/flatten | Flatten form fields in document.
*PdfApi* | [**putFreeTextAnnotation**](docs/PdfApi.md#putFreeTextAnnotation) | **PUT** /pdf/\{name}/annotations/freetext/\{annotationId} | Replace document free text annotation
+*PdfApi* | [**putHighlightAnnotation**](docs/PdfApi.md#putHighlightAnnotation) | **PUT** /pdf/\{name}/annotations/highlight/\{annotationId} | Replace document highlight annotation
*PdfApi* | [**putHtmlInStorageToPdf**](docs/PdfApi.md#putHtmlInStorageToPdf) | **PUT** /pdf/\{name}/create/html | Convert HTML file (located on storage) to PDF format and upload resulting file to storage.
*PdfApi* | [**putImageExtractAsGif**](docs/PdfApi.md#putImageExtractAsGif) | **PUT** /pdf/\{name}/images/\{imageId}/extract/gif | Extract document image in GIF format to folder
*PdfApi* | [**putImageExtractAsJpeg**](docs/PdfApi.md#putImageExtractAsJpeg) | **PUT** /pdf/\{name}/images/\{imageId}/extract/jpeg | Extract document image in JPEG format to folder
@@ -182,6 +213,7 @@ 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* | [**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
*PdfApi* | [**putLinkAnnotation**](docs/PdfApi.md#putLinkAnnotation) | **PUT** /pdf/\{name}/links/\{linkId} | Replace document page link annotations
@@ -221,14 +253,18 @@ Class | Method | HTTP request | Description
*PdfApi* | [**putPdfInStorageToXps**](docs/PdfApi.md#putPdfInStorageToXps) | **PUT** /pdf/\{name}/convert/xps | Converts PDF document (located on storage) to XPS format and uploads resulting file to storage
*PdfApi* | [**putPolygonAnnotation**](docs/PdfApi.md#putPolygonAnnotation) | **PUT** /pdf/\{name}/annotations/polygon/\{annotationId} | Replace document polygon annotation
*PdfApi* | [**putPolyLineAnnotation**](docs/PdfApi.md#putPolyLineAnnotation) | **PUT** /pdf/\{name}/annotations/polyline/\{annotationId} | Replace document polyline annotation
+*PdfApi* | [**putPopupAnnotation**](docs/PdfApi.md#putPopupAnnotation) | **PUT** /pdf/\{name}/annotations/popup/\{annotationId} | Replace document popup annotation
*PdfApi* | [**putPrivileges**](docs/PdfApi.md#putPrivileges) | **PUT** /pdf/\{name}/privileges | Update privilege document.
*PdfApi* | [**putPsInStorageToPdf**](docs/PdfApi.md#putPsInStorageToPdf) | **PUT** /pdf/\{name}/create/ps | Convert PS file (located on storage) to PDF format and upload resulting file to storage.
*PdfApi* | [**putReplaceImage**](docs/PdfApi.md#putReplaceImage) | **PUT** /pdf/\{name}/images/\{imageId} | Replace document image.
*PdfApi* | [**putSearchableDocument**](docs/PdfApi.md#putSearchableDocument) | **PUT** /pdf/\{name}/ocr | Create searchable PDF document. Generate OCR layer for images in input PDF document.
*PdfApi* | [**putSetProperty**](docs/PdfApi.md#putSetProperty) | **PUT** /pdf/\{name}/documentproperties/\{propertyName} | Add/update document property.
*PdfApi* | [**putSquareAnnotation**](docs/PdfApi.md#putSquareAnnotation) | **PUT** /pdf/\{name}/annotations/square/\{annotationId} | Replace document square annotation
+*PdfApi* | [**putSquigglyAnnotation**](docs/PdfApi.md#putSquigglyAnnotation) | **PUT** /pdf/\{name}/annotations/squiggly/\{annotationId} | Replace document squiggly annotation
+*PdfApi* | [**putStrikeOutAnnotation**](docs/PdfApi.md#putStrikeOutAnnotation) | **PUT** /pdf/\{name}/annotations/strikeout/\{annotationId} | Replace document StrikeOut annotation
*PdfApi* | [**putSvgInStorageToPdf**](docs/PdfApi.md#putSvgInStorageToPdf) | **PUT** /pdf/\{name}/create/svg | Convert SVG file (located on storage) to PDF format and upload resulting file to storage.
*PdfApi* | [**putTextAnnotation**](docs/PdfApi.md#putTextAnnotation) | **PUT** /pdf/\{name}/annotations/text/\{annotationId} | Replace document text annotation
+*PdfApi* | [**putUnderlineAnnotation**](docs/PdfApi.md#putUnderlineAnnotation) | **PUT** /pdf/\{name}/annotations/underline/\{annotationId} | Replace document underline annotation
*PdfApi* | [**putUpdateField**](docs/PdfApi.md#putUpdateField) | **PUT** /pdf/\{name}/fields/\{fieldName} | Update field.
*PdfApi* | [**putUpdateFields**](docs/PdfApi.md#putUpdateFields) | **PUT** /pdf/\{name}/fields | Update fields.
*PdfApi* | [**putWebInStorageToPdf**](docs/PdfApi.md#putWebInStorageToPdf) | **PUT** /pdf/\{name}/create/web | Convert web page to PDF format and upload resulting file to storage.
@@ -256,7 +292,13 @@ Class | Description
[**AttachmentResponse**](docs/AttachmentResponse.md) |
[**Attachments**](docs/Attachments.md) | List of attachment.
[**AttachmentsResponse**](docs/AttachmentsResponse.md) |
+[**CapStyle**](docs/CapStyle.md) | Style of line ending of Ink annotation line.
[**CaptionPosition**](docs/CaptionPosition.md) | Enumeration of the annotation?s caption positioning.
+[**CaretAnnotation**](docs/CaretAnnotation.md) | Provides CaretAnnotation.
+[**CaretAnnotationResponse**](docs/CaretAnnotationResponse.md) |
+[**CaretAnnotations**](docs/CaretAnnotations.md) | List of annotations.
+[**CaretAnnotationsResponse**](docs/CaretAnnotationsResponse.md) |
+[**CaretSymbol**](docs/CaretSymbol.md) | A symbol to be associated with the caret.
[**CircleAnnotation**](docs/CircleAnnotation.md) | Provides CircleAnnotation.
[**CircleAnnotationResponse**](docs/CircleAnnotationResponse.md) |
[**CircleAnnotations**](docs/CircleAnnotations.md) | List of annotations.
@@ -292,6 +334,10 @@ Class | Description
[**FreeTextAnnotations**](docs/FreeTextAnnotations.md) | List of annotations.
[**FreeTextAnnotationsResponse**](docs/FreeTextAnnotationsResponse.md) |
[**FreeTextIntent**](docs/FreeTextIntent.md) | Enumerates the intents of the free text annotation.
+[**HighlightAnnotation**](docs/HighlightAnnotation.md) | Provides HighlightAnnotation.
+[**HighlightAnnotationResponse**](docs/HighlightAnnotationResponse.md) |
+[**HighlightAnnotations**](docs/HighlightAnnotations.md) | List of annotations.
+[**HighlightAnnotationsResponse**](docs/HighlightAnnotationsResponse.md) |
[**HorizontalAlignment**](docs/HorizontalAlignment.md) |
[**HtmlDocumentType**](docs/HtmlDocumentType.md) | Represents enumeration of the Html document types.
[**HtmlMarkupGenerationModes**](docs/HtmlMarkupGenerationModes.md) | Sometimes specific reqirments to created HTML are present. This enum defines HTML preparing modes that can be used during conversion of PDF to HTML to match such specific requirments.
@@ -302,6 +348,10 @@ Class | Description
[**ImagesResponse**](docs/ImagesResponse.md) |
[**ImageTemplate**](docs/ImageTemplate.md) | Template of image.
[**ImageTemplatesRequest**](docs/ImageTemplatesRequest.md) | Create document from images request.
+[**InkAnnotation**](docs/InkAnnotation.md) | Provides InkAnnotation.
+[**InkAnnotationResponse**](docs/InkAnnotationResponse.md) |
+[**InkAnnotations**](docs/InkAnnotations.md) | List of annotations.
+[**InkAnnotationsResponse**](docs/InkAnnotationsResponse.md) |
[**Justification**](docs/Justification.md) | Enumerates the forms of quadding (justification) to be used in displaying the annotation?s text.
[**LettersPositioningMethods**](docs/LettersPositioningMethods.md) | It enumerates possible modes of positioning of letters in words in result HTML
[**LineAnnotation**](docs/LineAnnotation.md) | Provides LineAnnotation.
@@ -340,6 +390,11 @@ Class | Description
[**PolyLineAnnotationResponse**](docs/PolyLineAnnotationResponse.md) |
[**PolyLineAnnotations**](docs/PolyLineAnnotations.md) | List of annotations.
[**PolyLineAnnotationsResponse**](docs/PolyLineAnnotationsResponse.md) |
+[**PopupAnnotation**](docs/PopupAnnotation.md) | Provides PopupAnnotation.
+[**PopupAnnotationResponse**](docs/PopupAnnotationResponse.md) |
+[**PopupAnnotations**](docs/PopupAnnotations.md) | List of annotations.
+[**PopupAnnotationsResponse**](docs/PopupAnnotationsResponse.md) |
+[**PopupAnnotationWithParent**](docs/PopupAnnotationWithParent.md) | Provides PopupAnnotation.
[**RasterImagesSavingModes**](docs/RasterImagesSavingModes.md) | Converted PDF can contain raster images(.png, *.jpeg etc.) This enum defines methods of how raster images can be handled during conversion of PDF to HTML
[**RectanglePdf**](docs/RectanglePdf.md) | Represents rectangle DTO.
[**Rotation**](docs/Rotation.md) | Enumeration of possible rotation values.
@@ -355,8 +410,16 @@ Class | Description
[**SquareAnnotationResponse**](docs/SquareAnnotationResponse.md) |
[**SquareAnnotations**](docs/SquareAnnotations.md) | List of annotations.
[**SquareAnnotationsResponse**](docs/SquareAnnotationsResponse.md) |
+[**SquigglyAnnotation**](docs/SquigglyAnnotation.md) | Provides SquigglyAnnotation.
+[**SquigglyAnnotationResponse**](docs/SquigglyAnnotationResponse.md) |
+[**SquigglyAnnotations**](docs/SquigglyAnnotations.md) | List of annotations.
+[**SquigglyAnnotationsResponse**](docs/SquigglyAnnotationsResponse.md) |
[**Stamp**](docs/Stamp.md) | Represents Pdf stamps.
[**StampType**](docs/StampType.md) | Represents enumeration of the stamp types.
+[**StrikeOutAnnotation**](docs/StrikeOutAnnotation.md) | Provides StrikeOutAnnotation.
+[**StrikeOutAnnotationResponse**](docs/StrikeOutAnnotationResponse.md) |
+[**StrikeOutAnnotations**](docs/StrikeOutAnnotations.md) | List of annotations.
+[**StrikeOutAnnotationsResponse**](docs/StrikeOutAnnotationsResponse.md) |
[**TextAnnotation**](docs/TextAnnotation.md) | Provides TextAnnotation.
[**TextAnnotationResponse**](docs/TextAnnotationResponse.md) |
[**TextAnnotations**](docs/TextAnnotations.md) | List of annotations.
@@ -372,6 +435,10 @@ Class | Description
[**TextReplaceResponse**](docs/TextReplaceResponse.md) |
[**TextState**](docs/TextState.md) | Represents a text state of a text
[**TextStyle**](docs/TextStyle.md) | Represents a text style of a text
+[**UnderlineAnnotation**](docs/UnderlineAnnotation.md) | Provides UnderlineAnnotation.
+[**UnderlineAnnotationResponse**](docs/UnderlineAnnotationResponse.md) |
+[**UnderlineAnnotations**](docs/UnderlineAnnotations.md) | List of annotations.
+[**UnderlineAnnotationsResponse**](docs/UnderlineAnnotationsResponse.md) |
[**VerticalAlignment**](docs/VerticalAlignment.md) | Enumeration of possible vertical alignment values.
[**WordCount**](docs/WordCount.md) | Number of words per document pages.
[**WordCountResponse**](docs/WordCountResponse.md) | Number of words per document pages.
diff --git a/docs/Annotation.md b/docs/Annotation.md
index 9395e5b6..4915f743 100644
--- a/docs/Annotation.md
+++ b/docs/Annotation.md
@@ -6,9 +6,6 @@ Provides annotation.
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**contents** | **string** | Get the annotation content. | [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]
**modified** | **string** | The date and time when the annotation was last modified. | [optional]
**id** | **string** | Gets ID of the annotation. | [optional]
**flags** | [**Array<AnnotationFlags>**](AnnotationFlags.md) | Gets Flags of the annotation. | [optional]
diff --git a/docs/AnnotationInfo.md b/docs/AnnotationInfo.md
index 1106bfae..20502b01 100644
--- a/docs/AnnotationInfo.md
+++ b/docs/AnnotationInfo.md
@@ -7,9 +7,6 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**annotationType** | [**AnnotationType**](AnnotationType.md) | Gets annotation type. |
**contents** | **string** | Get the annotation content.
*Inherited from [Annotation](Annotation.md)* | [optional]
-**creationDate** | **string** | The date and time when the annotation was created.
*Inherited from [Annotation](Annotation.md)* | [optional]
-**subject** | **string** | Get the annotation subject.
*Inherited from [Annotation](Annotation.md)* | [optional]
-**title** | **string** | Get the annotation title.
*Inherited from [Annotation](Annotation.md)* | [optional]
**modified** | **string** | The date and time when the annotation was last modified.
*Inherited from [Annotation](Annotation.md)* | [optional]
**id** | **string** | Gets ID of the annotation.
*Inherited from [Annotation](Annotation.md)* | [optional]
**flags** | [**Array<AnnotationFlags>**](AnnotationFlags.md) | Gets Flags of the annotation.
*Inherited from [Annotation](Annotation.md)* | [optional]
diff --git a/docs/CapStyle.md b/docs/CapStyle.md
new file mode 100644
index 00000000..35df2d62
--- /dev/null
+++ b/docs/CapStyle.md
@@ -0,0 +1,11 @@
+# CapStyle
+Style of line ending of Ink annotation line.
+
+## Enum
+Name | Type | Value
+------------ | ------------- | -------------
+**Rectangular** | **string** | 'Rectangular'
+**Rounded** | **string** | 'Rounded'
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) [[View Source]](../src/models/capStyle.ts)
+
diff --git a/docs/CaretAnnotation.md b/docs/CaretAnnotation.md
new file mode 100644
index 00000000..e9ae7196
--- /dev/null
+++ b/docs/CaretAnnotation.md
@@ -0,0 +1,28 @@
+# CaretAnnotation
+Provides CaretAnnotation.
+
+*Inherited from [MarkupAnnotation](MarkupAnnotation.md)*
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**color** | [**Color**](Color.md) | Color of the annotation. | [optional]
+**frame** | [**RectanglePdf**](RectanglePdf.md) | Gets or sets caret rectangle. | [optional]
+**symbol** | [**CaretSymbol**](CaretSymbol.md) | Gets or sets symbol associated with caret. | [optional]
+**creationDate** | **string** | The date and time when the annotation was created.
*Inherited from [MarkupAnnotation](MarkupAnnotation.md)* | [optional]
+**subject** | **string** | Get the annotation subject.
*Inherited from [MarkupAnnotation](MarkupAnnotation.md)* | [optional]
+**title** | **string** | Get the annotation title.
*Inherited from [MarkupAnnotation](MarkupAnnotation.md)* | [optional]
+**richText** | **string** | Get the annotation RichText.
*Inherited from [MarkupAnnotation](MarkupAnnotation.md)* | [optional]
+**contents** | **string** | Get the annotation content.
*Inherited from [Annotation](Annotation.md)* | [optional]
+**modified** | **string** | The date and time when the annotation was last modified.
*Inherited from [Annotation](Annotation.md)* | [optional]
+**id** | **string** | Gets ID of the annotation.
*Inherited from [Annotation](Annotation.md)* | [optional]
+**flags** | [**Array<AnnotationFlags>**](AnnotationFlags.md) | Gets Flags of the annotation.
*Inherited from [Annotation](Annotation.md)* | [optional]
+**name** | **string** | Gets Name of the annotation.
*Inherited from [Annotation](Annotation.md)* | [optional]
+**rect** | [**RectanglePdf**](RectanglePdf.md) | Gets Rect of the annotation.
*Inherited from [Annotation](Annotation.md)* |
+**pageIndex** | **number** | Gets PageIndex of the annotation.
*Inherited from [Annotation](Annotation.md)* | [optional]
+**zIndex** | **number** | Gets ZIndex of the annotation.
*Inherited from [Annotation](Annotation.md)* | [optional]
+**horizontalAlignment** | [**HorizontalAlignment**](HorizontalAlignment.md) | Gets HorizontalAlignment of the annotation.
*Inherited from [Annotation](Annotation.md)* | [optional]
+**verticalAlignment** | [**VerticalAlignment**](VerticalAlignment.md) | Gets VerticalAlignment of the annotation.
*Inherited from [Annotation](Annotation.md)* | [optional]
+**links** | [**Array<Link>**](Link.md) | Link to the document.
*Inherited from [LinkElement](LinkElement.md)* | [optional]
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) [[View Source]](../src/models/caretAnnotation.ts)
+
diff --git a/docs/CaretAnnotationResponse.md b/docs/CaretAnnotationResponse.md
new file mode 100644
index 00000000..1bef8c21
--- /dev/null
+++ b/docs/CaretAnnotationResponse.md
@@ -0,0 +1,13 @@
+# CaretAnnotationResponse
+
+
+*Inherited from [AsposeResponse](AsposeResponse.md)*
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**annotation** | [**CaretAnnotation**](CaretAnnotation.md) | | [optional]
+**code** | **number** | Response status code.
*Inherited from [AsposeResponse](AsposeResponse.md)* |
+**status** | **string** | Response status.
*Inherited from [AsposeResponse](AsposeResponse.md)* | [optional]
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) [[View Source]](../src/models/caretAnnotationResponse.ts)
+
diff --git a/docs/CaretAnnotations.md b/docs/CaretAnnotations.md
new file mode 100644
index 00000000..f760a996
--- /dev/null
+++ b/docs/CaretAnnotations.md
@@ -0,0 +1,12 @@
+# CaretAnnotations
+List of annotations.
+
+*Inherited from [LinkElement](LinkElement.md)*
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**list** | [**Array<CaretAnnotation>**](CaretAnnotation.md) | | [optional]
+**links** | [**Array<Link>**](Link.md) | Link to the document.
*Inherited from [LinkElement](LinkElement.md)* | [optional]
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) [[View Source]](../src/models/caretAnnotations.ts)
+
diff --git a/docs/CaretAnnotationsResponse.md b/docs/CaretAnnotationsResponse.md
new file mode 100644
index 00000000..eca6ea95
--- /dev/null
+++ b/docs/CaretAnnotationsResponse.md
@@ -0,0 +1,13 @@
+# CaretAnnotationsResponse
+
+
+*Inherited from [AsposeResponse](AsposeResponse.md)*
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**annotations** | [**CaretAnnotations**](CaretAnnotations.md) | | [optional]
+**code** | **number** | Response status code.
*Inherited from [AsposeResponse](AsposeResponse.md)* |
+**status** | **string** | Response status.
*Inherited from [AsposeResponse](AsposeResponse.md)* | [optional]
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) [[View Source]](../src/models/caretAnnotationsResponse.ts)
+
diff --git a/docs/CaretSymbol.md b/docs/CaretSymbol.md
new file mode 100644
index 00000000..a93a3674
--- /dev/null
+++ b/docs/CaretSymbol.md
@@ -0,0 +1,11 @@
+# CaretSymbol
+A symbol to be associated with the caret.
+
+## Enum
+Name | Type | Value
+------------ | ------------- | -------------
+**None** | **string** | 'None'
+**Paragraph** | **string** | 'Paragraph'
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) [[View Source]](../src/models/caretSymbol.ts)
+
diff --git a/docs/CircleAnnotation.md b/docs/CircleAnnotation.md
index dd5907ee..c9186162 100644
--- a/docs/CircleAnnotation.md
+++ b/docs/CircleAnnotation.md
@@ -8,11 +8,11 @@ Name | Type | Description | Notes
**color** | [**Color**](Color.md) | Color of the annotation. | [optional]
**interiorColor** | [**Color**](Color.md) | Get the annotation InteriorColor.
*Inherited from [CommonFigureAnnotation](CommonFigureAnnotation.md)* | [optional]
**frame** | [**RectanglePdf**](RectanglePdf.md) | Get or set the annotation Rectangle of frame.
*Inherited from [CommonFigureAnnotation](CommonFigureAnnotation.md)* | [optional]
+**creationDate** | **string** | The date and time when the annotation was created.
*Inherited from [MarkupAnnotation](MarkupAnnotation.md)* | [optional]
+**subject** | **string** | Get the annotation subject.
*Inherited from [MarkupAnnotation](MarkupAnnotation.md)* | [optional]
+**title** | **string** | Get the annotation title.
*Inherited from [MarkupAnnotation](MarkupAnnotation.md)* | [optional]
**richText** | **string** | Get the annotation RichText.
*Inherited from [MarkupAnnotation](MarkupAnnotation.md)* | [optional]
**contents** | **string** | Get the annotation content.
*Inherited from [Annotation](Annotation.md)* | [optional]
-**creationDate** | **string** | The date and time when the annotation was created.
*Inherited from [Annotation](Annotation.md)* | [optional]
-**subject** | **string** | Get the annotation subject.
*Inherited from [Annotation](Annotation.md)* | [optional]
-**title** | **string** | Get the annotation title.
*Inherited from [Annotation](Annotation.md)* | [optional]
**modified** | **string** | The date and time when the annotation was last modified.
*Inherited from [Annotation](Annotation.md)* | [optional]
**id** | **string** | Gets ID of the annotation.
*Inherited from [Annotation](Annotation.md)* | [optional]
**flags** | [**Array<AnnotationFlags>**](AnnotationFlags.md) | Gets Flags of the annotation.
*Inherited from [Annotation](Annotation.md)* | [optional]
diff --git a/docs/CommonFigureAnnotation.md b/docs/CommonFigureAnnotation.md
index 236c9f78..0be1e958 100644
--- a/docs/CommonFigureAnnotation.md
+++ b/docs/CommonFigureAnnotation.md
@@ -7,11 +7,11 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**interiorColor** | [**Color**](Color.md) | Get the annotation InteriorColor. | [optional]
**frame** | [**RectanglePdf**](RectanglePdf.md) | Get or set the annotation Rectangle of frame. | [optional]
+**creationDate** | **string** | The date and time when the annotation was created.
*Inherited from [MarkupAnnotation](MarkupAnnotation.md)* | [optional]
+**subject** | **string** | Get the annotation subject.
*Inherited from [MarkupAnnotation](MarkupAnnotation.md)* | [optional]
+**title** | **string** | Get the annotation title.
*Inherited from [MarkupAnnotation](MarkupAnnotation.md)* | [optional]
**richText** | **string** | Get the annotation RichText.
*Inherited from [MarkupAnnotation](MarkupAnnotation.md)* | [optional]
**contents** | **string** | Get the annotation content.
*Inherited from [Annotation](Annotation.md)* | [optional]
-**creationDate** | **string** | The date and time when the annotation was created.
*Inherited from [Annotation](Annotation.md)* | [optional]
-**subject** | **string** | Get the annotation subject.
*Inherited from [Annotation](Annotation.md)* | [optional]
-**title** | **string** | Get the annotation title.
*Inherited from [Annotation](Annotation.md)* | [optional]
**modified** | **string** | The date and time when the annotation was last modified.
*Inherited from [Annotation](Annotation.md)* | [optional]
**id** | **string** | Gets ID of the annotation.
*Inherited from [Annotation](Annotation.md)* | [optional]
**flags** | [**Array<AnnotationFlags>**](AnnotationFlags.md) | Gets Flags of the annotation.
*Inherited from [Annotation](Annotation.md)* | [optional]
diff --git a/docs/FreeTextAnnotation.md b/docs/FreeTextAnnotation.md
index 3c2df978..01bac7b5 100644
--- a/docs/FreeTextAnnotation.md
+++ b/docs/FreeTextAnnotation.md
@@ -9,11 +9,11 @@ Name | Type | Description | Notes
**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. |
+**creationDate** | **string** | The date and time when the annotation was created.
*Inherited from [MarkupAnnotation](MarkupAnnotation.md)* | [optional]
+**subject** | **string** | Get the annotation subject.
*Inherited from [MarkupAnnotation](MarkupAnnotation.md)* | [optional]
+**title** | **string** | Get the annotation title.
*Inherited from [MarkupAnnotation](MarkupAnnotation.md)* | [optional]
**richText** | **string** | Get the annotation RichText.
*Inherited from [MarkupAnnotation](MarkupAnnotation.md)* | [optional]
**contents** | **string** | Get the annotation content.
*Inherited from [Annotation](Annotation.md)* | [optional]
-**creationDate** | **string** | The date and time when the annotation was created.
*Inherited from [Annotation](Annotation.md)* | [optional]
-**subject** | **string** | Get the annotation subject.
*Inherited from [Annotation](Annotation.md)* | [optional]
-**title** | **string** | Get the annotation title.
*Inherited from [Annotation](Annotation.md)* | [optional]
**modified** | **string** | The date and time when the annotation was last modified.
*Inherited from [Annotation](Annotation.md)* | [optional]
**id** | **string** | Gets ID of the annotation.
*Inherited from [Annotation](Annotation.md)* | [optional]
**flags** | [**Array<AnnotationFlags>**](AnnotationFlags.md) | Gets Flags of the annotation.
*Inherited from [Annotation](Annotation.md)* | [optional]
diff --git a/docs/HighlightAnnotation.md b/docs/HighlightAnnotation.md
new file mode 100644
index 00000000..a0f172c1
--- /dev/null
+++ b/docs/HighlightAnnotation.md
@@ -0,0 +1,27 @@
+# HighlightAnnotation
+Provides HighlightAnnotation.
+
+*Inherited from [MarkupAnnotation](MarkupAnnotation.md)*
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**color** | [**Color**](Color.md) | Color of the annotation. | [optional]
+**quadPoints** | [**Array<Point>**](Point.md) | Gets or sets an array of points specifying the coordinates of n quadrilaterals. Each quadrilateral encompasses a word or group of contiguous words in the text underlying the annotation. | [optional]
+**creationDate** | **string** | The date and time when the annotation was created.
*Inherited from [MarkupAnnotation](MarkupAnnotation.md)* | [optional]
+**subject** | **string** | Get the annotation subject.
*Inherited from [MarkupAnnotation](MarkupAnnotation.md)* | [optional]
+**title** | **string** | Get the annotation title.
*Inherited from [MarkupAnnotation](MarkupAnnotation.md)* | [optional]
+**richText** | **string** | Get the annotation RichText.
*Inherited from [MarkupAnnotation](MarkupAnnotation.md)* | [optional]
+**contents** | **string** | Get the annotation content.
*Inherited from [Annotation](Annotation.md)* | [optional]
+**modified** | **string** | The date and time when the annotation was last modified.
*Inherited from [Annotation](Annotation.md)* | [optional]
+**id** | **string** | Gets ID of the annotation.
*Inherited from [Annotation](Annotation.md)* | [optional]
+**flags** | [**Array<AnnotationFlags>**](AnnotationFlags.md) | Gets Flags of the annotation.
*Inherited from [Annotation](Annotation.md)* | [optional]
+**name** | **string** | Gets Name of the annotation.
*Inherited from [Annotation](Annotation.md)* | [optional]
+**rect** | [**RectanglePdf**](RectanglePdf.md) | Gets Rect of the annotation.
*Inherited from [Annotation](Annotation.md)* |
+**pageIndex** | **number** | Gets PageIndex of the annotation.
*Inherited from [Annotation](Annotation.md)* | [optional]
+**zIndex** | **number** | Gets ZIndex of the annotation.
*Inherited from [Annotation](Annotation.md)* | [optional]
+**horizontalAlignment** | [**HorizontalAlignment**](HorizontalAlignment.md) | Gets HorizontalAlignment of the annotation.
*Inherited from [Annotation](Annotation.md)* | [optional]
+**verticalAlignment** | [**VerticalAlignment**](VerticalAlignment.md) | Gets VerticalAlignment of the annotation.
*Inherited from [Annotation](Annotation.md)* | [optional]
+**links** | [**Array<Link>**](Link.md) | Link to the document.
*Inherited from [LinkElement](LinkElement.md)* | [optional]
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) [[View Source]](../src/models/highlightAnnotation.ts)
+
diff --git a/docs/HighlightAnnotationResponse.md b/docs/HighlightAnnotationResponse.md
new file mode 100644
index 00000000..f1da7006
--- /dev/null
+++ b/docs/HighlightAnnotationResponse.md
@@ -0,0 +1,13 @@
+# HighlightAnnotationResponse
+
+
+*Inherited from [AsposeResponse](AsposeResponse.md)*
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**annotation** | [**HighlightAnnotation**](HighlightAnnotation.md) | | [optional]
+**code** | **number** | Response status code.
*Inherited from [AsposeResponse](AsposeResponse.md)* |
+**status** | **string** | Response status.
*Inherited from [AsposeResponse](AsposeResponse.md)* | [optional]
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) [[View Source]](../src/models/highlightAnnotationResponse.ts)
+
diff --git a/docs/HighlightAnnotations.md b/docs/HighlightAnnotations.md
new file mode 100644
index 00000000..043af75e
--- /dev/null
+++ b/docs/HighlightAnnotations.md
@@ -0,0 +1,12 @@
+# HighlightAnnotations
+List of annotations.
+
+*Inherited from [LinkElement](LinkElement.md)*
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**list** | [**Array<HighlightAnnotation>**](HighlightAnnotation.md) | | [optional]
+**links** | [**Array<Link>**](Link.md) | Link to the document.
*Inherited from [LinkElement](LinkElement.md)* | [optional]
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) [[View Source]](../src/models/highlightAnnotations.ts)
+
diff --git a/docs/HighlightAnnotationsResponse.md b/docs/HighlightAnnotationsResponse.md
new file mode 100644
index 00000000..cd53f88c
--- /dev/null
+++ b/docs/HighlightAnnotationsResponse.md
@@ -0,0 +1,13 @@
+# HighlightAnnotationsResponse
+
+
+*Inherited from [AsposeResponse](AsposeResponse.md)*
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**annotations** | [**HighlightAnnotations**](HighlightAnnotations.md) | | [optional]
+**code** | **number** | Response status code.
*Inherited from [AsposeResponse](AsposeResponse.md)* |
+**status** | **string** | Response status.
*Inherited from [AsposeResponse](AsposeResponse.md)* | [optional]
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) [[View Source]](../src/models/highlightAnnotationsResponse.ts)
+
diff --git a/docs/InkAnnotation.md b/docs/InkAnnotation.md
new file mode 100644
index 00000000..69656c4d
--- /dev/null
+++ b/docs/InkAnnotation.md
@@ -0,0 +1,28 @@
+# InkAnnotation
+Provides InkAnnotation.
+
+*Inherited from [MarkupAnnotation](MarkupAnnotation.md)*
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**color** | [**Color**](Color.md) | Color of the annotation. | [optional]
+**inkList** | **Array<array>** | Gets or sets list of gestures that are independent lines which are represented by Point[] arrays. | [optional]
+**capStyle** | [**CapStyle**](CapStyle.md) | Style of ink annotation line endings. | [optional]
+**creationDate** | **string** | The date and time when the annotation was created.
*Inherited from [MarkupAnnotation](MarkupAnnotation.md)* | [optional]
+**subject** | **string** | Get the annotation subject.
*Inherited from [MarkupAnnotation](MarkupAnnotation.md)* | [optional]
+**title** | **string** | Get the annotation title.
*Inherited from [MarkupAnnotation](MarkupAnnotation.md)* | [optional]
+**richText** | **string** | Get the annotation RichText.
*Inherited from [MarkupAnnotation](MarkupAnnotation.md)* | [optional]
+**contents** | **string** | Get the annotation content.
*Inherited from [Annotation](Annotation.md)* | [optional]
+**modified** | **string** | The date and time when the annotation was last modified.
*Inherited from [Annotation](Annotation.md)* | [optional]
+**id** | **string** | Gets ID of the annotation.
*Inherited from [Annotation](Annotation.md)* | [optional]
+**flags** | [**Array<AnnotationFlags>**](AnnotationFlags.md) | Gets Flags of the annotation.
*Inherited from [Annotation](Annotation.md)* | [optional]
+**name** | **string** | Gets Name of the annotation.
*Inherited from [Annotation](Annotation.md)* | [optional]
+**rect** | [**RectanglePdf**](RectanglePdf.md) | Gets Rect of the annotation.
*Inherited from [Annotation](Annotation.md)* |
+**pageIndex** | **number** | Gets PageIndex of the annotation.
*Inherited from [Annotation](Annotation.md)* | [optional]
+**zIndex** | **number** | Gets ZIndex of the annotation.
*Inherited from [Annotation](Annotation.md)* | [optional]
+**horizontalAlignment** | [**HorizontalAlignment**](HorizontalAlignment.md) | Gets HorizontalAlignment of the annotation.
*Inherited from [Annotation](Annotation.md)* | [optional]
+**verticalAlignment** | [**VerticalAlignment**](VerticalAlignment.md) | Gets VerticalAlignment of the annotation.
*Inherited from [Annotation](Annotation.md)* | [optional]
+**links** | [**Array<Link>**](Link.md) | Link to the document.
*Inherited from [LinkElement](LinkElement.md)* | [optional]
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) [[View Source]](../src/models/inkAnnotation.ts)
+
diff --git a/docs/InkAnnotationResponse.md b/docs/InkAnnotationResponse.md
new file mode 100644
index 00000000..88f85780
--- /dev/null
+++ b/docs/InkAnnotationResponse.md
@@ -0,0 +1,13 @@
+# InkAnnotationResponse
+
+
+*Inherited from [AsposeResponse](AsposeResponse.md)*
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**annotation** | [**InkAnnotation**](InkAnnotation.md) | | [optional]
+**code** | **number** | Response status code.
*Inherited from [AsposeResponse](AsposeResponse.md)* |
+**status** | **string** | Response status.
*Inherited from [AsposeResponse](AsposeResponse.md)* | [optional]
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) [[View Source]](../src/models/inkAnnotationResponse.ts)
+
diff --git a/docs/InkAnnotations.md b/docs/InkAnnotations.md
new file mode 100644
index 00000000..34060728
--- /dev/null
+++ b/docs/InkAnnotations.md
@@ -0,0 +1,12 @@
+# InkAnnotations
+List of annotations.
+
+*Inherited from [LinkElement](LinkElement.md)*
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**list** | [**Array<InkAnnotation>**](InkAnnotation.md) | | [optional]
+**links** | [**Array<Link>**](Link.md) | Link to the document.
*Inherited from [LinkElement](LinkElement.md)* | [optional]
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) [[View Source]](../src/models/inkAnnotations.ts)
+
diff --git a/docs/InkAnnotationsResponse.md b/docs/InkAnnotationsResponse.md
new file mode 100644
index 00000000..863a62d4
--- /dev/null
+++ b/docs/InkAnnotationsResponse.md
@@ -0,0 +1,13 @@
+# InkAnnotationsResponse
+
+
+*Inherited from [AsposeResponse](AsposeResponse.md)*
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**annotations** | [**InkAnnotations**](InkAnnotations.md) | | [optional]
+**code** | **number** | Response status code.
*Inherited from [AsposeResponse](AsposeResponse.md)* |
+**status** | **string** | Response status.
*Inherited from [AsposeResponse](AsposeResponse.md)* | [optional]
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) [[View Source]](../src/models/inkAnnotationsResponse.ts)
+
diff --git a/docs/LineAnnotation.md b/docs/LineAnnotation.md
index 735de361..d6ba7dad 100644
--- a/docs/LineAnnotation.md
+++ b/docs/LineAnnotation.md
@@ -18,11 +18,11 @@ Name | Type | Description | Notes
**captionPosition** | [**CaptionPosition**](CaptionPosition.md) | Gets or sets annotation caption position. | [optional]
**color** | [**Color**](Color.md) | Color of the annotation. | [optional]
**intent** | [**LineIntent**](LineIntent.md) | Gets or sets the intent of the line annotation. | [optional]
+**creationDate** | **string** | The date and time when the annotation was created.
*Inherited from [MarkupAnnotation](MarkupAnnotation.md)* | [optional]
+**subject** | **string** | Get the annotation subject.
*Inherited from [MarkupAnnotation](MarkupAnnotation.md)* | [optional]
+**title** | **string** | Get the annotation title.
*Inherited from [MarkupAnnotation](MarkupAnnotation.md)* | [optional]
**richText** | **string** | Get the annotation RichText.
*Inherited from [MarkupAnnotation](MarkupAnnotation.md)* | [optional]
**contents** | **string** | Get the annotation content.
*Inherited from [Annotation](Annotation.md)* | [optional]
-**creationDate** | **string** | The date and time when the annotation was created.
*Inherited from [Annotation](Annotation.md)* | [optional]
-**subject** | **string** | Get the annotation subject.
*Inherited from [Annotation](Annotation.md)* | [optional]
-**title** | **string** | Get the annotation title.
*Inherited from [Annotation](Annotation.md)* | [optional]
**modified** | **string** | The date and time when the annotation was last modified.
*Inherited from [Annotation](Annotation.md)* | [optional]
**id** | **string** | Gets ID of the annotation.
*Inherited from [Annotation](Annotation.md)* | [optional]
**flags** | [**Array<AnnotationFlags>**](AnnotationFlags.md) | Gets Flags of the annotation.
*Inherited from [Annotation](Annotation.md)* | [optional]
diff --git a/docs/MarkupAnnotation.md b/docs/MarkupAnnotation.md
index 6cb33ec1..aeea9058 100644
--- a/docs/MarkupAnnotation.md
+++ b/docs/MarkupAnnotation.md
@@ -5,11 +5,11 @@ Provides MarkupAnnotation.
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
+**creationDate** | **string** | The date and time when the annotation was created. | [optional]
+**subject** | **string** | Get the annotation subject. | [optional]
+**title** | **string** | Get the annotation title. | [optional]
**richText** | **string** | Get the annotation RichText. | [optional]
**contents** | **string** | Get the annotation content.
*Inherited from [Annotation](Annotation.md)* | [optional]
-**creationDate** | **string** | The date and time when the annotation was created.
*Inherited from [Annotation](Annotation.md)* | [optional]
-**subject** | **string** | Get the annotation subject.
*Inherited from [Annotation](Annotation.md)* | [optional]
-**title** | **string** | Get the annotation title.
*Inherited from [Annotation](Annotation.md)* | [optional]
**modified** | **string** | The date and time when the annotation was last modified.
*Inherited from [Annotation](Annotation.md)* | [optional]
**id** | **string** | Gets ID of the annotation.
*Inherited from [Annotation](Annotation.md)* | [optional]
**flags** | [**Array<AnnotationFlags>**](AnnotationFlags.md) | Gets Flags of the annotation.
*Inherited from [Annotation](Annotation.md)* | [optional]
diff --git a/docs/PdfApi.md b/docs/PdfApi.md
index 33d792d3..479c7172 100644
--- a/docs/PdfApi.md
+++ b/docs/PdfApi.md
@@ -15,27 +15,37 @@ Method | HTTP request | Description
*PdfApi* | [**deletePageLinkAnnotations**](PdfApi.md#deletePageLinkAnnotations) | **DELETE** /pdf/\{name}/pages/\{pageNumber}/links | Delete all link annotations from the page
*PdfApi* | [**deleteProperties**](PdfApi.md#deleteProperties) | **DELETE** /pdf/\{name}/documentproperties | Delete custom document properties.
*PdfApi* | [**deleteProperty**](PdfApi.md#deleteProperty) | **DELETE** /pdf/\{name}/documentproperties/\{propertyName} | Delete document property.
+*PdfApi* | [**getCaretAnnotation**](PdfApi.md#getCaretAnnotation) | **GET** /pdf/\{name}/annotations/caret/\{annotationId} | Read document page caret annotation by ID.
*PdfApi* | [**getCircleAnnotation**](PdfApi.md#getCircleAnnotation) | **GET** /pdf/\{name}/annotations/circle/\{annotationId} | Read document page circle annotation by ID.
*PdfApi* | [**getDocument**](PdfApi.md#getDocument) | **GET** /pdf/\{name} | Read common document info.
*PdfApi* | [**getDocumentAnnotations**](PdfApi.md#getDocumentAnnotations) | **GET** /pdf/\{name}/annotations | Read documant page annotations. Returns only FreeTextAnnotations, TextAnnotations, other annotations will implemented next releases.
*PdfApi* | [**getDocumentAttachmentByIndex**](PdfApi.md#getDocumentAttachmentByIndex) | **GET** /pdf/\{name}/attachments/\{attachmentIndex} | Read document attachment info by its index.
*PdfApi* | [**getDocumentAttachments**](PdfApi.md#getDocumentAttachments) | **GET** /pdf/\{name}/attachments | Read document attachments info.
*PdfApi* | [**getDocumentBookmarks**](PdfApi.md#getDocumentBookmarks) | **GET** /pdf/\{name}/bookmarks | Read document bookmark/bookmarks (including children).
+*PdfApi* | [**getDocumentCaretAnnotations**](PdfApi.md#getDocumentCaretAnnotations) | **GET** /pdf/\{name}/annotations/caret | Read document caret annotations.
*PdfApi* | [**getDocumentCircleAnnotations**](PdfApi.md#getDocumentCircleAnnotations) | **GET** /pdf/\{name}/annotations/circle | Read document circle annotations.
*PdfApi* | [**getDocumentFreeTextAnnotations**](PdfApi.md#getDocumentFreeTextAnnotations) | **GET** /pdf/\{name}/annotations/freetext | Read document free text annotations.
+*PdfApi* | [**getDocumentHighlightAnnotations**](PdfApi.md#getDocumentHighlightAnnotations) | **GET** /pdf/\{name}/annotations/highlight | Read document highlight annotations.
+*PdfApi* | [**getDocumentInkAnnotations**](PdfApi.md#getDocumentInkAnnotations) | **GET** /pdf/\{name}/annotations/ink | Read document ink annotations.
*PdfApi* | [**getDocumentLineAnnotations**](PdfApi.md#getDocumentLineAnnotations) | **GET** /pdf/\{name}/annotations/line | Read document line annotations.
*PdfApi* | [**getDocumentPolygonAnnotations**](PdfApi.md#getDocumentPolygonAnnotations) | **GET** /pdf/\{name}/annotations/polygon | Read document polygon annotations.
*PdfApi* | [**getDocumentPolyLineAnnotations**](PdfApi.md#getDocumentPolyLineAnnotations) | **GET** /pdf/\{name}/annotations/polyline | Read document polyline annotations.
+*PdfApi* | [**getDocumentPopupAnnotations**](PdfApi.md#getDocumentPopupAnnotations) | **GET** /pdf/\{name}/annotations/popup | Read document popup annotations.
+*PdfApi* | [**getDocumentPopupAnnotationsByParent**](PdfApi.md#getDocumentPopupAnnotationsByParent) | **GET** /pdf/\{name}/annotations/\{annotationId}/popup | Read document popup annotations by parent id.
*PdfApi* | [**getDocumentProperties**](PdfApi.md#getDocumentProperties) | **GET** /pdf/\{name}/documentproperties | Read document properties.
*PdfApi* | [**getDocumentProperty**](PdfApi.md#getDocumentProperty) | **GET** /pdf/\{name}/documentproperties/\{propertyName} | Read document property by name.
*PdfApi* | [**getDocumentSquareAnnotations**](PdfApi.md#getDocumentSquareAnnotations) | **GET** /pdf/\{name}/annotations/square | Read document square annotations.
+*PdfApi* | [**getDocumentSquigglyAnnotations**](PdfApi.md#getDocumentSquigglyAnnotations) | **GET** /pdf/\{name}/annotations/squiggly | Read document squiggly annotations.
+*PdfApi* | [**getDocumentStrikeOutAnnotations**](PdfApi.md#getDocumentStrikeOutAnnotations) | **GET** /pdf/\{name}/annotations/strikeout | Read document StrikeOut annotations.
*PdfApi* | [**getDocumentTextAnnotations**](PdfApi.md#getDocumentTextAnnotations) | **GET** /pdf/\{name}/annotations/text | Read document text annotations.
+*PdfApi* | [**getDocumentUnderlineAnnotations**](PdfApi.md#getDocumentUnderlineAnnotations) | **GET** /pdf/\{name}/annotations/underline | Read document underline annotations.
*PdfApi* | [**getDownload**](PdfApi.md#getDownload) | **GET** /storage/file | Download a specific file
*PdfApi* | [**getDownloadDocumentAttachmentByIndex**](PdfApi.md#getDownloadDocumentAttachmentByIndex) | **GET** /pdf/\{name}/attachments/\{attachmentIndex}/download | Download document attachment content by its index.
*PdfApi* | [**getEpubInStorageToPdf**](PdfApi.md#getEpubInStorageToPdf) | **GET** /pdf/create/epub | Convert EPUB file (located on storage) to PDF format and return resulting file in response.
*PdfApi* | [**getField**](PdfApi.md#getField) | **GET** /pdf/\{name}/fields/\{fieldName} | Get document field by name.
*PdfApi* | [**getFields**](PdfApi.md#getFields) | **GET** /pdf/\{name}/fields | Get document fields.
*PdfApi* | [**getFreeTextAnnotation**](PdfApi.md#getFreeTextAnnotation) | **GET** /pdf/\{name}/annotations/freetext/\{annotationId} | Read document page free text annotation by ID.
+*PdfApi* | [**getHighlightAnnotation**](PdfApi.md#getHighlightAnnotation) | **GET** /pdf/\{name}/annotations/highlight/\{annotationId} | Read document page highlight annotation by ID.
*PdfApi* | [**getHtmlInStorageToPdf**](PdfApi.md#getHtmlInStorageToPdf) | **GET** /pdf/create/html | Convert HTML file (located on storage) to PDF format and return resulting file in response.
*PdfApi* | [**getImage**](PdfApi.md#getImage) | **GET** /pdf/\{name}/images/\{imageId} | Read document image by ID.
*PdfApi* | [**getImageExtractAsGif**](PdfApi.md#getImageExtractAsGif) | **GET** /pdf/\{name}/images/\{imageId}/extract/gif | Extract document image in GIF format
@@ -43,6 +53,7 @@ Method | HTTP request | Description
*PdfApi* | [**getImageExtractAsPng**](PdfApi.md#getImageExtractAsPng) | **GET** /pdf/\{name}/images/\{imageId}/extract/png | Extract document image in PNG format
*PdfApi* | [**getImageExtractAsTiff**](PdfApi.md#getImageExtractAsTiff) | **GET** /pdf/\{name}/images/\{imageId}/extract/tiff | Extract document image in TIFF format
*PdfApi* | [**getImages**](PdfApi.md#getImages) | **GET** /pdf/\{name}/pages/\{pageNumber}/images | Read document images.
+*PdfApi* | [**getInkAnnotation**](PdfApi.md#getInkAnnotation) | **GET** /pdf/\{name}/annotations/ink/\{annotationId} | Read document page ink annotation by ID.
*PdfApi* | [**getLaTeXInStorageToPdf**](PdfApi.md#getLaTeXInStorageToPdf) | **GET** /pdf/create/latex | Convert LaTeX file (located on storage) to PDF format and return resulting file in response.
*PdfApi* | [**getLineAnnotation**](PdfApi.md#getLineAnnotation) | **GET** /pdf/\{name}/annotations/line/\{annotationId} | Read document page line annotation by ID.
*PdfApi* | [**getLinkAnnotation**](PdfApi.md#getLinkAnnotation) | **GET** /pdf/\{name}/links/\{linkId} | Read document link annotation by ID.
@@ -50,6 +61,7 @@ Method | HTTP request | Description
*PdfApi* | [**getMhtInStorageToPdf**](PdfApi.md#getMhtInStorageToPdf) | **GET** /pdf/create/mht | Convert MHT file (located on storage) to PDF format and return resulting file in response.
*PdfApi* | [**getPage**](PdfApi.md#getPage) | **GET** /pdf/\{name}/pages/\{pageNumber} | Read document page info.
*PdfApi* | [**getPageAnnotations**](PdfApi.md#getPageAnnotations) | **GET** /pdf/\{name}/pages/\{pageNumber}/annotations | Read documant page annotations. Returns only FreeTextAnnotations, TextAnnotations, other annotations will implemented next releases.
+*PdfApi* | [**getPageCaretAnnotations**](PdfApi.md#getPageCaretAnnotations) | **GET** /pdf/\{name}/pages/\{pageNumber}/annotations/caret | Read document page caret annotations.
*PdfApi* | [**getPageCircleAnnotations**](PdfApi.md#getPageCircleAnnotations) | **GET** /pdf/\{name}/pages/\{pageNumber}/annotations/circle | Read document page circle annotations.
*PdfApi* | [**getPageConvertToBmp**](PdfApi.md#getPageConvertToBmp) | **GET** /pdf/\{name}/pages/\{pageNumber}/convert/bmp | Convert document page to Bmp image and return resulting file in response.
*PdfApi* | [**getPageConvertToEmf**](PdfApi.md#getPageConvertToEmf) | **GET** /pdf/\{name}/pages/\{pageNumber}/convert/emf | Convert document page to Emf image and return resulting file in response.
@@ -58,15 +70,21 @@ Method | HTTP request | Description
*PdfApi* | [**getPageConvertToPng**](PdfApi.md#getPageConvertToPng) | **GET** /pdf/\{name}/pages/\{pageNumber}/convert/png | Convert document page to Png image and return resulting file in response.
*PdfApi* | [**getPageConvertToTiff**](PdfApi.md#getPageConvertToTiff) | **GET** /pdf/\{name}/pages/\{pageNumber}/convert/tiff | Convert document page to Tiff image and return resulting file in response.
*PdfApi* | [**getPageFreeTextAnnotations**](PdfApi.md#getPageFreeTextAnnotations) | **GET** /pdf/\{name}/pages/\{pageNumber}/annotations/freetext | Read document page free text annotations.
+*PdfApi* | [**getPageHighlightAnnotations**](PdfApi.md#getPageHighlightAnnotations) | **GET** /pdf/\{name}/pages/\{pageNumber}/annotations/highlight | Read document page highlight annotations.
+*PdfApi* | [**getPageInkAnnotations**](PdfApi.md#getPageInkAnnotations) | **GET** /pdf/\{name}/pages/\{pageNumber}/annotations/ink | Read document page ink annotations.
*PdfApi* | [**getPageLineAnnotations**](PdfApi.md#getPageLineAnnotations) | **GET** /pdf/\{name}/pages/\{pageNumber}/annotations/line | Read document page line annotations.
*PdfApi* | [**getPageLinkAnnotation**](PdfApi.md#getPageLinkAnnotation) | **GET** /pdf/\{name}/pages/\{pageNumber}/links/\{linkId} | Read document page link annotation by ID.
*PdfApi* | [**getPageLinkAnnotations**](PdfApi.md#getPageLinkAnnotations) | **GET** /pdf/\{name}/pages/\{pageNumber}/links | Read document page link annotations.
*PdfApi* | [**getPagePolygonAnnotations**](PdfApi.md#getPagePolygonAnnotations) | **GET** /pdf/\{name}/pages/\{pageNumber}/annotations/polygon | Read document page polygon annotations.
*PdfApi* | [**getPagePolyLineAnnotations**](PdfApi.md#getPagePolyLineAnnotations) | **GET** /pdf/\{name}/pages/\{pageNumber}/annotations/polyline | Read document page polyline annotations.
+*PdfApi* | [**getPagePopupAnnotations**](PdfApi.md#getPagePopupAnnotations) | **GET** /pdf/\{name}/pages/\{pageNumber}/annotations/popup | Read document page popup annotations.
*PdfApi* | [**getPages**](PdfApi.md#getPages) | **GET** /pdf/\{name}/pages | Read document pages info.
*PdfApi* | [**getPageSquareAnnotations**](PdfApi.md#getPageSquareAnnotations) | **GET** /pdf/\{name}/pages/\{pageNumber}/annotations/square | Read document page square annotations.
+*PdfApi* | [**getPageSquigglyAnnotations**](PdfApi.md#getPageSquigglyAnnotations) | **GET** /pdf/\{name}/pages/\{pageNumber}/annotations/squiggly | Read document page squiggly annotations.
+*PdfApi* | [**getPageStrikeOutAnnotations**](PdfApi.md#getPageStrikeOutAnnotations) | **GET** /pdf/\{name}/pages/\{pageNumber}/annotations/strikeout | Read document page StrikeOut annotations.
*PdfApi* | [**getPageText**](PdfApi.md#getPageText) | **GET** /pdf/\{name}/pages/\{pageNumber}/text | Read page text items.
*PdfApi* | [**getPageTextAnnotations**](PdfApi.md#getPageTextAnnotations) | **GET** /pdf/\{name}/pages/\{pageNumber}/annotations/text | Read document page text annotations.
+*PdfApi* | [**getPageUnderlineAnnotations**](PdfApi.md#getPageUnderlineAnnotations) | **GET** /pdf/\{name}/pages/\{pageNumber}/annotations/underline | Read document page underline annotations.
*PdfApi* | [**getPclInStorageToPdf**](PdfApi.md#getPclInStorageToPdf) | **GET** /pdf/create/pcl | Convert PCL file (located on storage) to PDF format and return resulting file in response.
*PdfApi* | [**getPdfInStorageToDoc**](PdfApi.md#getPdfInStorageToDoc) | **GET** /pdf/\{name}/convert/doc | Converts PDF document (located on storage) to DOC format and returns resulting file in response content
*PdfApi* | [**getPdfInStorageToEpub**](PdfApi.md#getPdfInStorageToEpub) | **GET** /pdf/\{name}/convert/epub | Converts PDF document (located on storage) to EPUB format and returns resulting file in response content
@@ -82,11 +100,15 @@ Method | HTTP request | Description
*PdfApi* | [**getPdfInStorageToXps**](PdfApi.md#getPdfInStorageToXps) | **GET** /pdf/\{name}/convert/xps | Converts PDF document (located on storage) to XPS format and returns resulting file in response content
*PdfApi* | [**getPolygonAnnotation**](PdfApi.md#getPolygonAnnotation) | **GET** /pdf/\{name}/annotations/polygon/\{annotationId} | Read document page polygon annotation by ID.
*PdfApi* | [**getPolyLineAnnotation**](PdfApi.md#getPolyLineAnnotation) | **GET** /pdf/\{name}/annotations/polyline/\{annotationId} | Read document page polyline annotation by ID.
+*PdfApi* | [**getPopupAnnotation**](PdfApi.md#getPopupAnnotation) | **GET** /pdf/\{name}/annotations/popup/\{annotationId} | Read document page popup annotation by ID.
*PdfApi* | [**getPsInStorageToPdf**](PdfApi.md#getPsInStorageToPdf) | **GET** /pdf/create/ps | Convert PS file (located on storage) to PDF format and return resulting file in response.
*PdfApi* | [**getSquareAnnotation**](PdfApi.md#getSquareAnnotation) | **GET** /pdf/\{name}/annotations/square/\{annotationId} | Read document page square annotation by ID.
+*PdfApi* | [**getSquigglyAnnotation**](PdfApi.md#getSquigglyAnnotation) | **GET** /pdf/\{name}/annotations/squiggly/\{annotationId} | Read document page squiggly annotation by ID.
+*PdfApi* | [**getStrikeOutAnnotation**](PdfApi.md#getStrikeOutAnnotation) | **GET** /pdf/\{name}/annotations/strikeout/\{annotationId} | Read document page StrikeOut annotation by ID.
*PdfApi* | [**getSvgInStorageToPdf**](PdfApi.md#getSvgInStorageToPdf) | **GET** /pdf/create/svg | Convert SVG file (located on storage) to PDF format and return resulting file in response.
*PdfApi* | [**getText**](PdfApi.md#getText) | **GET** /pdf/\{name}/text | Read document text.
*PdfApi* | [**getTextAnnotation**](PdfApi.md#getTextAnnotation) | **GET** /pdf/\{name}/annotations/text/\{annotationId} | Read document page text annotation by ID.
+*PdfApi* | [**getUnderlineAnnotation**](PdfApi.md#getUnderlineAnnotation) | **GET** /pdf/\{name}/annotations/underline/\{annotationId} | Read document page underline annotation by ID.
*PdfApi* | [**getVerifySignature**](PdfApi.md#getVerifySignature) | **GET** /pdf/\{name}/verifySignature | Verify signature document.
*PdfApi* | [**getWebInStorageToPdf**](PdfApi.md#getWebInStorageToPdf) | **GET** /pdf/create/web | Convert web page to PDF format and return resulting file in response.
*PdfApi* | [**getWordsPerPage**](PdfApi.md#getWordsPerPage) | **GET** /pdf/\{name}/pages/wordCount | Get number of words per document page.
@@ -100,26 +122,35 @@ Method | HTTP request | Description
*PdfApi* | [**postInsertImage**](PdfApi.md#postInsertImage) | **POST** /pdf/\{name}/pages/\{pageNumber}/images | Insert image to document page.
*PdfApi* | [**postMovePage**](PdfApi.md#postMovePage) | **POST** /pdf/\{name}/pages/\{pageNumber}/movePage | Move page to new position.
*PdfApi* | [**postOptimizeDocument**](PdfApi.md#postOptimizeDocument) | **POST** /pdf/\{name}/optimize | Optimize document.
+*PdfApi* | [**postPageCaretAnnotations**](PdfApi.md#postPageCaretAnnotations) | **POST** /pdf/\{name}/pages/\{pageNumber}/annotations/caret | Add document page caret annotations.
*PdfApi* | [**postPageCircleAnnotations**](PdfApi.md#postPageCircleAnnotations) | **POST** /pdf/\{name}/pages/\{pageNumber}/annotations/circle | Add document page circle annotations.
*PdfApi* | [**postPageFreeTextAnnotations**](PdfApi.md#postPageFreeTextAnnotations) | **POST** /pdf/\{name}/pages/\{pageNumber}/annotations/freetext | Add document page free text annotations.
+*PdfApi* | [**postPageHighlightAnnotations**](PdfApi.md#postPageHighlightAnnotations) | **POST** /pdf/\{name}/pages/\{pageNumber}/annotations/highlight | Add document page highlight annotations.
+*PdfApi* | [**postPageInkAnnotations**](PdfApi.md#postPageInkAnnotations) | **POST** /pdf/\{name}/pages/\{pageNumber}/annotations/ink | Add document page ink annotations.
*PdfApi* | [**postPageLineAnnotations**](PdfApi.md#postPageLineAnnotations) | **POST** /pdf/\{name}/pages/\{pageNumber}/annotations/line | Add document page line annotations.
*PdfApi* | [**postPageLinkAnnotations**](PdfApi.md#postPageLinkAnnotations) | **POST** /pdf/\{name}/pages/\{pageNumber}/links | Add document page link annotations.
*PdfApi* | [**postPagePolygonAnnotations**](PdfApi.md#postPagePolygonAnnotations) | **POST** /pdf/\{name}/pages/\{pageNumber}/annotations/polygon | Add document page polygon annotations.
*PdfApi* | [**postPagePolyLineAnnotations**](PdfApi.md#postPagePolyLineAnnotations) | **POST** /pdf/\{name}/pages/\{pageNumber}/annotations/polyline | Add document page polyline annotations.
*PdfApi* | [**postPageSquareAnnotations**](PdfApi.md#postPageSquareAnnotations) | **POST** /pdf/\{name}/pages/\{pageNumber}/annotations/square | Add document page square annotations.
+*PdfApi* | [**postPageSquigglyAnnotations**](PdfApi.md#postPageSquigglyAnnotations) | **POST** /pdf/\{name}/pages/\{pageNumber}/annotations/squiggly | Add document page squiggly annotations.
+*PdfApi* | [**postPageStrikeOutAnnotations**](PdfApi.md#postPageStrikeOutAnnotations) | **POST** /pdf/\{name}/pages/\{pageNumber}/annotations/strikeout | Add document page StrikeOut annotations.
*PdfApi* | [**postPageTextAnnotations**](PdfApi.md#postPageTextAnnotations) | **POST** /pdf/\{name}/pages/\{pageNumber}/annotations/text | Add document page text annotations.
*PdfApi* | [**postPageTextReplace**](PdfApi.md#postPageTextReplace) | **POST** /pdf/\{name}/pages/\{pageNumber}/text/replace | Page's replace text method.
+*PdfApi* | [**postPageUnderlineAnnotations**](PdfApi.md#postPageUnderlineAnnotations) | **POST** /pdf/\{name}/pages/\{pageNumber}/annotations/underline | Add document page underline annotations.
+*PdfApi* | [**postPopupAnnotation**](PdfApi.md#postPopupAnnotation) | **POST** /pdf/\{name}/annotations/\{annotationId}/popup | Add document popup annotations.
*PdfApi* | [**postSignDocument**](PdfApi.md#postSignDocument) | **POST** /pdf/\{name}/sign | Sign document.
*PdfApi* | [**postSignPage**](PdfApi.md#postSignPage) | **POST** /pdf/\{name}/pages/\{pageNumber}/sign | Sign page.
*PdfApi* | [**postSplitDocument**](PdfApi.md#postSplitDocument) | **POST** /pdf/\{name}/split | Split document to parts.
*PdfApi* | [**putAddNewPage**](PdfApi.md#putAddNewPage) | **PUT** /pdf/\{name}/pages | Add new page to end of the document.
*PdfApi* | [**putAddText**](PdfApi.md#putAddText) | **PUT** /pdf/\{name}/pages/\{pageNumber}/text | Add text to PDF document page.
+*PdfApi* | [**putCaretAnnotation**](PdfApi.md#putCaretAnnotation) | **PUT** /pdf/\{name}/annotations/caret/\{annotationId} | Replace document caret annotation
*PdfApi* | [**putCircleAnnotation**](PdfApi.md#putCircleAnnotation) | **PUT** /pdf/\{name}/annotations/circle/\{annotationId} | Replace document circle annotation
*PdfApi* | [**putCreate**](PdfApi.md#putCreate) | **PUT** /storage/file | Upload a specific file
*PdfApi* | [**putCreateDocument**](PdfApi.md#putCreateDocument) | **PUT** /pdf/\{name} | Create empty document.
*PdfApi* | [**putEpubInStorageToPdf**](PdfApi.md#putEpubInStorageToPdf) | **PUT** /pdf/\{name}/create/epub | Convert EPUB file (located on storage) to PDF format and upload resulting file to storage.
*PdfApi* | [**putFieldsFlatten**](PdfApi.md#putFieldsFlatten) | **PUT** /pdf/\{name}/fields/flatten | Flatten form fields in document.
*PdfApi* | [**putFreeTextAnnotation**](PdfApi.md#putFreeTextAnnotation) | **PUT** /pdf/\{name}/annotations/freetext/\{annotationId} | Replace document free text annotation
+*PdfApi* | [**putHighlightAnnotation**](PdfApi.md#putHighlightAnnotation) | **PUT** /pdf/\{name}/annotations/highlight/\{annotationId} | Replace document highlight annotation
*PdfApi* | [**putHtmlInStorageToPdf**](PdfApi.md#putHtmlInStorageToPdf) | **PUT** /pdf/\{name}/create/html | Convert HTML file (located on storage) to PDF format and upload resulting file to storage.
*PdfApi* | [**putImageExtractAsGif**](PdfApi.md#putImageExtractAsGif) | **PUT** /pdf/\{name}/images/\{imageId}/extract/gif | Extract document image in GIF format to folder
*PdfApi* | [**putImageExtractAsJpeg**](PdfApi.md#putImageExtractAsJpeg) | **PUT** /pdf/\{name}/images/\{imageId}/extract/jpeg | Extract document image in JPEG format to folder
@@ -130,6 +161,7 @@ Method | HTTP request | Description
*PdfApi* | [**putImagesExtractAsJpeg**](PdfApi.md#putImagesExtractAsJpeg) | **PUT** /pdf/\{name}/pages/\{pageNumber}/images/extract/jpeg | Extract document images in JPEG format to folder.
*PdfApi* | [**putImagesExtractAsPng**](PdfApi.md#putImagesExtractAsPng) | **PUT** /pdf/\{name}/pages/\{pageNumber}/images/extract/png | Extract document images in PNG format to folder.
*PdfApi* | [**putImagesExtractAsTiff**](PdfApi.md#putImagesExtractAsTiff) | **PUT** /pdf/\{name}/pages/\{pageNumber}/images/extract/tiff | Extract document images in TIFF format to folder.
+*PdfApi* | [**putInkAnnotation**](PdfApi.md#putInkAnnotation) | **PUT** /pdf/\{name}/annotations/ink/\{annotationId} | Replace document ink annotation
*PdfApi* | [**putLaTeXInStorageToPdf**](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**](PdfApi.md#putLineAnnotation) | **PUT** /pdf/\{name}/annotations/line/\{annotationId} | Replace document line annotation
*PdfApi* | [**putLinkAnnotation**](PdfApi.md#putLinkAnnotation) | **PUT** /pdf/\{name}/links/\{linkId} | Replace document page link annotations
@@ -169,14 +201,18 @@ Method | HTTP request | Description
*PdfApi* | [**putPdfInStorageToXps**](PdfApi.md#putPdfInStorageToXps) | **PUT** /pdf/\{name}/convert/xps | Converts PDF document (located on storage) to XPS format and uploads resulting file to storage
*PdfApi* | [**putPolygonAnnotation**](PdfApi.md#putPolygonAnnotation) | **PUT** /pdf/\{name}/annotations/polygon/\{annotationId} | Replace document polygon annotation
*PdfApi* | [**putPolyLineAnnotation**](PdfApi.md#putPolyLineAnnotation) | **PUT** /pdf/\{name}/annotations/polyline/\{annotationId} | Replace document polyline annotation
+*PdfApi* | [**putPopupAnnotation**](PdfApi.md#putPopupAnnotation) | **PUT** /pdf/\{name}/annotations/popup/\{annotationId} | Replace document popup annotation
*PdfApi* | [**putPrivileges**](PdfApi.md#putPrivileges) | **PUT** /pdf/\{name}/privileges | Update privilege document.
*PdfApi* | [**putPsInStorageToPdf**](PdfApi.md#putPsInStorageToPdf) | **PUT** /pdf/\{name}/create/ps | Convert PS file (located on storage) to PDF format and upload resulting file to storage.
*PdfApi* | [**putReplaceImage**](PdfApi.md#putReplaceImage) | **PUT** /pdf/\{name}/images/\{imageId} | Replace document image.
*PdfApi* | [**putSearchableDocument**](PdfApi.md#putSearchableDocument) | **PUT** /pdf/\{name}/ocr | Create searchable PDF document. Generate OCR layer for images in input PDF document.
*PdfApi* | [**putSetProperty**](PdfApi.md#putSetProperty) | **PUT** /pdf/\{name}/documentproperties/\{propertyName} | Add/update document property.
*PdfApi* | [**putSquareAnnotation**](PdfApi.md#putSquareAnnotation) | **PUT** /pdf/\{name}/annotations/square/\{annotationId} | Replace document square annotation
+*PdfApi* | [**putSquigglyAnnotation**](PdfApi.md#putSquigglyAnnotation) | **PUT** /pdf/\{name}/annotations/squiggly/\{annotationId} | Replace document squiggly annotation
+*PdfApi* | [**putStrikeOutAnnotation**](PdfApi.md#putStrikeOutAnnotation) | **PUT** /pdf/\{name}/annotations/strikeout/\{annotationId} | Replace document StrikeOut annotation
*PdfApi* | [**putSvgInStorageToPdf**](PdfApi.md#putSvgInStorageToPdf) | **PUT** /pdf/\{name}/create/svg | Convert SVG file (located on storage) to PDF format and upload resulting file to storage.
*PdfApi* | [**putTextAnnotation**](PdfApi.md#putTextAnnotation) | **PUT** /pdf/\{name}/annotations/text/\{annotationId} | Replace document text annotation
+*PdfApi* | [**putUnderlineAnnotation**](PdfApi.md#putUnderlineAnnotation) | **PUT** /pdf/\{name}/annotations/underline/\{annotationId} | Replace document underline annotation
*PdfApi* | [**putUpdateField**](PdfApi.md#putUpdateField) | **PUT** /pdf/\{name}/fields/\{fieldName} | Update field.
*PdfApi* | [**putUpdateFields**](PdfApi.md#putUpdateFields) | **PUT** /pdf/\{name}/fields | Update fields.
*PdfApi* | [**putWebInStorageToPdf**](PdfApi.md#putWebInStorageToPdf) | **PUT** /pdf/\{name}/create/web | Convert web page to PDF format and upload resulting file to storage.
@@ -430,6 +466,29 @@ Name | Type | Description | Notes
[**AsposeResponse**](AsposeResponse.md)
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+
+## **getCaretAnnotation**
+> getCaretAnnotation(name, annotationId, storage, folder)
+
+Read document page caret annotation by ID.
+
+### Parameters
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+**name** | **string** | The document name. |
+**annotationId** | **string** | The annotation ID. |
+**storage** | **string** | The document storage. | [optional]
+**folder** | **string** | The document folder. | [optional]
+
+### Return type
+
+[**CaretAnnotationResponse**](CaretAnnotationResponse.md)
+
### HTTP request headers
- **Content-Type**: application/json
@@ -570,6 +629,28 @@ Name | Type | Description | Notes
- **Content-Type**: application/json
- **Accept**: multipart/form-data
+
+## **getDocumentCaretAnnotations**
+> getDocumentCaretAnnotations(name, storage, folder)
+
+Read document caret annotations.
+
+### Parameters
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+**name** | **string** | The document name. |
+**storage** | **string** | The document storage. | [optional]
+**folder** | **string** | The document folder. | [optional]
+
+### Return type
+
+[**CaretAnnotationsResponse**](CaretAnnotationsResponse.md)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
## **getDocumentCircleAnnotations**
> getDocumentCircleAnnotations(name, storage, folder)
@@ -609,6 +690,50 @@ Name | Type | Description | Notes
[**FreeTextAnnotationsResponse**](FreeTextAnnotationsResponse.md)
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+
+## **getDocumentHighlightAnnotations**
+> getDocumentHighlightAnnotations(name, storage, folder)
+
+Read document highlight annotations.
+
+### Parameters
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+**name** | **string** | The document name. |
+**storage** | **string** | The document storage. | [optional]
+**folder** | **string** | The document folder. | [optional]
+
+### Return type
+
+[**HighlightAnnotationsResponse**](HighlightAnnotationsResponse.md)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+
+## **getDocumentInkAnnotations**
+> getDocumentInkAnnotations(name, storage, folder)
+
+Read document ink annotations.
+
+### Parameters
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+**name** | **string** | The document name. |
+**storage** | **string** | The document storage. | [optional]
+**folder** | **string** | The document folder. | [optional]
+
+### Return type
+
+[**InkAnnotationsResponse**](InkAnnotationsResponse.md)
+
### HTTP request headers
- **Content-Type**: application/json
@@ -675,6 +800,51 @@ Name | Type | Description | Notes
[**PolyLineAnnotationsResponse**](PolyLineAnnotationsResponse.md)
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+
+## **getDocumentPopupAnnotations**
+> getDocumentPopupAnnotations(name, storage, folder)
+
+Read document popup annotations.
+
+### Parameters
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+**name** | **string** | The document name. |
+**storage** | **string** | The document storage. | [optional]
+**folder** | **string** | The document folder. | [optional]
+
+### Return type
+
+[**PopupAnnotationsResponse**](PopupAnnotationsResponse.md)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+
+## **getDocumentPopupAnnotationsByParent**
+> getDocumentPopupAnnotationsByParent(name, annotationId, storage, folder)
+
+Read document popup annotations by parent id.
+
+### Parameters
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+**name** | **string** | The document name. |
+**annotationId** | **string** | The parent annotation ID. |
+**storage** | **string** | The document storage. | [optional]
+**folder** | **string** | The document folder. | [optional]
+
+### Return type
+
+[**PopupAnnotationsResponse**](PopupAnnotationsResponse.md)
+
### HTTP request headers
- **Content-Type**: application/json
@@ -742,6 +912,50 @@ Name | Type | Description | Notes
[**SquareAnnotationsResponse**](SquareAnnotationsResponse.md)
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+
+## **getDocumentSquigglyAnnotations**
+> getDocumentSquigglyAnnotations(name, storage, folder)
+
+Read document squiggly annotations.
+
+### Parameters
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+**name** | **string** | The document name. |
+**storage** | **string** | The document storage. | [optional]
+**folder** | **string** | The document folder. | [optional]
+
+### Return type
+
+[**SquigglyAnnotationsResponse**](SquigglyAnnotationsResponse.md)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+
+## **getDocumentStrikeOutAnnotations**
+> getDocumentStrikeOutAnnotations(name, storage, folder)
+
+Read document StrikeOut annotations.
+
+### Parameters
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+**name** | **string** | The document name. |
+**storage** | **string** | The document storage. | [optional]
+**folder** | **string** | The document folder. | [optional]
+
+### Return type
+
+[**StrikeOutAnnotationsResponse**](StrikeOutAnnotationsResponse.md)
+
### HTTP request headers
- **Content-Type**: application/json
@@ -764,6 +978,28 @@ Name | Type | Description | Notes
[**TextAnnotationsResponse**](TextAnnotationsResponse.md)
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+
+## **getDocumentUnderlineAnnotations**
+> getDocumentUnderlineAnnotations(name, storage, folder)
+
+Read document underline annotations.
+
+### Parameters
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+**name** | **string** | The document name. |
+**storage** | **string** | The document storage. | [optional]
+**folder** | **string** | The document folder. | [optional]
+
+### Return type
+
+[**UnderlineAnnotationsResponse**](UnderlineAnnotationsResponse.md)
+
### HTTP request headers
- **Content-Type**: application/json
@@ -898,6 +1134,29 @@ Name | Type | Description | Notes
[**FreeTextAnnotationResponse**](FreeTextAnnotationResponse.md)
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+
+## **getHighlightAnnotation**
+> getHighlightAnnotation(name, annotationId, storage, folder)
+
+Read document page highlight annotation by ID.
+
+### Parameters
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+**name** | **string** | The document name. |
+**annotationId** | **string** | The annotation ID. |
+**storage** | **string** | The document storage. | [optional]
+**folder** | **string** | The document folder. | [optional]
+
+### Return type
+
+[**HighlightAnnotationResponse**](HighlightAnnotationResponse.md)
+
### HTTP request headers
- **Content-Type**: application/json
@@ -913,7 +1172,7 @@ Convert HTML file (located on storage) to PDF format and return resulting file i
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**srcPath** | **string** | Full source filename (ex. /folder1/folder2/template.zip) |
-**htmlFileName** | **string** | Name of HTML file in ZIP. |
+**htmlFileName** | **string** | Name of HTML file in ZIP. | [optional]
**height** | **number** | Page height | [optional]
**width** | **number** | Page width | [optional]
**isLandscape** | **boolean** | Is page landscaped | [optional]
@@ -1073,6 +1332,29 @@ Name | Type | Description | Notes
[**ImagesResponse**](ImagesResponse.md)
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+
+## **getInkAnnotation**
+> getInkAnnotation(name, annotationId, storage, folder)
+
+Read document page ink annotation by ID.
+
+### Parameters
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+**name** | **string** | The document name. |
+**annotationId** | **string** | The annotation ID. |
+**storage** | **string** | The document storage. | [optional]
+**folder** | **string** | The document folder. | [optional]
+
+### Return type
+
+[**InkAnnotationResponse**](InkAnnotationResponse.md)
+
### HTTP request headers
- **Content-Type**: application/json
@@ -1228,6 +1510,29 @@ Name | Type | Description | Notes
[**AnnotationsInfoResponse**](AnnotationsInfoResponse.md)
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+
+## **getPageCaretAnnotations**
+> getPageCaretAnnotations(name, pageNumber, storage, folder)
+
+Read document page caret annotations.
+
+### Parameters
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+**name** | **string** | The document name. |
+**pageNumber** | **number** | The page number. |
+**storage** | **string** | The document storage. | [optional]
+**folder** | **string** | The document folder. | [optional]
+
+### Return type
+
+[**CaretAnnotationsResponse**](CaretAnnotationsResponse.md)
+
### HTTP request headers
- **Content-Type**: application/json
@@ -1424,6 +1729,52 @@ Name | Type | Description | Notes
[**FreeTextAnnotationsResponse**](FreeTextAnnotationsResponse.md)
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+
+## **getPageHighlightAnnotations**
+> getPageHighlightAnnotations(name, pageNumber, storage, folder)
+
+Read document page highlight annotations.
+
+### Parameters
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+**name** | **string** | The document name. |
+**pageNumber** | **number** | The page number. |
+**storage** | **string** | The document storage. | [optional]
+**folder** | **string** | The document folder. | [optional]
+
+### Return type
+
+[**HighlightAnnotationsResponse**](HighlightAnnotationsResponse.md)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+
+## **getPageInkAnnotations**
+> getPageInkAnnotations(name, pageNumber, storage, folder)
+
+Read document page ink annotations.
+
+### Parameters
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+**name** | **string** | The document name. |
+**pageNumber** | **number** | The page number. |
+**storage** | **string** | The document storage. | [optional]
+**folder** | **string** | The document folder. | [optional]
+
+### Return type
+
+[**InkAnnotationsResponse**](InkAnnotationsResponse.md)
+
### HTTP request headers
- **Content-Type**: application/json
@@ -1540,6 +1891,29 @@ Name | Type | Description | Notes
[**PolyLineAnnotationsResponse**](PolyLineAnnotationsResponse.md)
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+
+## **getPagePopupAnnotations**
+> getPagePopupAnnotations(name, pageNumber, storage, folder)
+
+Read document page popup annotations.
+
+### Parameters
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+**name** | **string** | The document name. |
+**pageNumber** | **number** | The page number. |
+**storage** | **string** | The document storage. | [optional]
+**folder** | **string** | The document folder. | [optional]
+
+### Return type
+
+[**PopupAnnotationsResponse**](PopupAnnotationsResponse.md)
+
### HTTP request headers
- **Content-Type**: application/json
@@ -1585,6 +1959,52 @@ Name | Type | Description | Notes
[**SquareAnnotationsResponse**](SquareAnnotationsResponse.md)
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+
+## **getPageSquigglyAnnotations**
+> getPageSquigglyAnnotations(name, pageNumber, storage, folder)
+
+Read document page squiggly annotations.
+
+### Parameters
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+**name** | **string** | The document name. |
+**pageNumber** | **number** | The page number. |
+**storage** | **string** | The document storage. | [optional]
+**folder** | **string** | The document folder. | [optional]
+
+### Return type
+
+[**SquigglyAnnotationsResponse**](SquigglyAnnotationsResponse.md)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+
+## **getPageStrikeOutAnnotations**
+> getPageStrikeOutAnnotations(name, pageNumber, storage, folder)
+
+Read document page StrikeOut annotations.
+
+### Parameters
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+**name** | **string** | The document name. |
+**pageNumber** | **number** | The page number. |
+**storage** | **string** | The document storage. | [optional]
+**folder** | **string** | The document folder. | [optional]
+
+### Return type
+
+[**StrikeOutAnnotationsResponse**](StrikeOutAnnotationsResponse.md)
+
### HTTP request headers
- **Content-Type**: application/json
@@ -1638,6 +2058,29 @@ Name | Type | Description | Notes
[**TextAnnotationsResponse**](TextAnnotationsResponse.md)
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+
+## **getPageUnderlineAnnotations**
+> getPageUnderlineAnnotations(name, pageNumber, storage, folder)
+
+Read document page underline annotations.
+
+### Parameters
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+**name** | **string** | The document name. |
+**pageNumber** | **number** | The page number. |
+**storage** | **string** | The document storage. | [optional]
+**folder** | **string** | The document folder. | [optional]
+
+### Return type
+
+[**UnderlineAnnotationsResponse**](UnderlineAnnotationsResponse.md)
+
### HTTP request headers
- **Content-Type**: application/json
@@ -2030,6 +2473,29 @@ Name | Type | Description | Notes
[**PolyLineAnnotationResponse**](PolyLineAnnotationResponse.md)
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+
+## **getPopupAnnotation**
+> getPopupAnnotation(name, annotationId, storage, folder)
+
+Read document page popup annotation by ID.
+
+### Parameters
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+**name** | **string** | The document name. |
+**annotationId** | **string** | The annotation ID. |
+**storage** | **string** | The document storage. | [optional]
+**folder** | **string** | The document folder. | [optional]
+
+### Return type
+
+[**PopupAnnotationResponse**](PopupAnnotationResponse.md)
+
### HTTP request headers
- **Content-Type**: application/json
@@ -2074,6 +2540,52 @@ Name | Type | Description | Notes
[**SquareAnnotationResponse**](SquareAnnotationResponse.md)
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+
+## **getSquigglyAnnotation**
+> getSquigglyAnnotation(name, annotationId, storage, folder)
+
+Read document page squiggly annotation by ID.
+
+### Parameters
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+**name** | **string** | The document name. |
+**annotationId** | **string** | The annotation ID. |
+**storage** | **string** | The document storage. | [optional]
+**folder** | **string** | The document folder. | [optional]
+
+### Return type
+
+[**SquigglyAnnotationResponse**](SquigglyAnnotationResponse.md)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+
+## **getStrikeOutAnnotation**
+> getStrikeOutAnnotation(name, annotationId, storage, folder)
+
+Read document page StrikeOut annotation by ID.
+
+### Parameters
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+**name** | **string** | The document name. |
+**annotationId** | **string** | The annotation ID. |
+**storage** | **string** | The document storage. | [optional]
+**folder** | **string** | The document folder. | [optional]
+
+### Return type
+
+[**StrikeOutAnnotationResponse**](StrikeOutAnnotationResponse.md)
+
### HTTP request headers
- **Content-Type**: application/json
@@ -2155,6 +2667,29 @@ Name | Type | Description | Notes
[**TextAnnotationResponse**](TextAnnotationResponse.md)
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+
+## **getUnderlineAnnotation**
+> getUnderlineAnnotation(name, annotationId, storage, folder)
+
+Read document page underline annotation by ID.
+
+### Parameters
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+**name** | **string** | The document name. |
+**annotationId** | **string** | The annotation ID. |
+**storage** | **string** | The document storage. | [optional]
+**folder** | **string** | The document folder. | [optional]
+
+### Return type
+
+[**UnderlineAnnotationResponse**](UnderlineAnnotationResponse.md)
+
### HTTP request headers
- **Content-Type**: application/json
@@ -2373,44 +2908,115 @@ Name | Type | Description | Notes
## **postDocumentTextReplace**
> postDocumentTextReplace(name, textReplace, storage, folder)
-Document's replace text method.
+Document's replace text method.
+
+### Parameters
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+**name** | **string** | |
+**textReplace** | [**TextReplaceListRequest**](TextReplaceListRequest.md) | |
+**storage** | **string** | | [optional]
+**folder** | **string** | | [optional]
+
+### Return type
+
+[**TextReplaceResponse**](TextReplaceResponse.md)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+
+## **postInsertImage**
+> postInsertImage(name, pageNumber, llx, lly, urx, ury, imageFilePath, storage, folder, image)
+
+Insert image to document page.
+
+### Parameters
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+**name** | **string** | The document name. |
+**pageNumber** | **number** | The page number. |
+**llx** | **number** | Coordinate lower left X. |
+**lly** | **number** | Coordinate lower left Y. |
+**urx** | **number** | Coordinate upper right X. |
+**ury** | **number** | 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** | **Buffer** | Image file. | [optional]
+
+### Return type
+
+[**AsposeResponse**](AsposeResponse.md)
+
+### HTTP request headers
+
+ - **Content-Type**: multipart/form-data
+ - **Accept**: application/json
+
+
+## **postMovePage**
+> postMovePage(name, pageNumber, newIndex, storage, folder)
+
+Move page to new position.
+
+### Parameters
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+**name** | **string** | The document name. |
+**pageNumber** | **number** | The page number. |
+**newIndex** | **number** | The new page position/index. |
+**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
+
+
+## **postOptimizeDocument**
+> postOptimizeDocument(name, options, storage, folder)
+
+Optimize document.
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**name** | **string** | |
-**textReplace** | [**TextReplaceListRequest**](TextReplaceListRequest.md) | |
-**storage** | **string** | | [optional]
-**folder** | **string** | | [optional]
+**name** | **string** | The document name. |
+**options** | [**OptimizeOptions**](OptimizeOptions.md) | The optimization options. | [optional]
+**storage** | **string** | The document storage. | [optional]
+**folder** | **string** | The document folder. | [optional]
### Return type
-[**TextReplaceResponse**](TextReplaceResponse.md)
+[**AsposeResponse**](AsposeResponse.md)
### HTTP request headers
- **Content-Type**: application/json
- **Accept**: application/json
-
-## **postInsertImage**
-> postInsertImage(name, pageNumber, llx, lly, urx, ury, imageFilePath, storage, folder, image)
+
+## **postPageCaretAnnotations**
+> postPageCaretAnnotations(name, pageNumber, annotations, storage, folder)
-Insert image to document page.
+Add document page caret annotations.
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**name** | **string** | The document name. |
**pageNumber** | **number** | The page number. |
-**llx** | **number** | Coordinate lower left X. |
-**lly** | **number** | Coordinate lower left Y. |
-**urx** | **number** | Coordinate upper right X. |
-**ury** | **number** | Coordinate upper right Y. |
-**imageFilePath** | **string** | Path to image file if specified. Request content is used otherwise. | [optional]
+**annotations** | [**Array<CaretAnnotation>**](CaretAnnotation.md) | The array of annotation. |
**storage** | **string** | The document storage. | [optional]
**folder** | **string** | The document folder. | [optional]
-**image** | **Buffer** | Image file. | [optional]
### Return type
@@ -2418,21 +3024,21 @@ Name | Type | Description | Notes
### HTTP request headers
- - **Content-Type**: multipart/form-data
+ - **Content-Type**: application/json
- **Accept**: application/json
-
-## **postMovePage**
-> postMovePage(name, pageNumber, newIndex, storage, folder)
+
+## **postPageCircleAnnotations**
+> postPageCircleAnnotations(name, pageNumber, annotations, storage, folder)
-Move page to new position.
+Add document page circle annotations.
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**name** | **string** | The document name. |
**pageNumber** | **number** | The page number. |
-**newIndex** | **number** | The new page position/index. |
+**annotations** | [**Array<CircleAnnotation>**](CircleAnnotation.md) | The array of annotation. |
**storage** | **string** | The document storage. | [optional]
**folder** | **string** | The document folder. | [optional]
@@ -2445,17 +3051,18 @@ Name | Type | Description | Notes
- **Content-Type**: application/json
- **Accept**: application/json
-
-## **postOptimizeDocument**
-> postOptimizeDocument(name, options, storage, folder)
+
+## **postPageFreeTextAnnotations**
+> postPageFreeTextAnnotations(name, pageNumber, annotations, storage, folder)
-Optimize document.
+Add document page free text annotations.
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**name** | **string** | The document name. |
-**options** | [**OptimizeOptions**](OptimizeOptions.md) | The optimization options. | [optional]
+**pageNumber** | **number** | The page number. |
+**annotations** | [**Array<FreeTextAnnotation>**](FreeTextAnnotation.md) | The array of annotation. |
**storage** | **string** | The document storage. | [optional]
**folder** | **string** | The document folder. | [optional]
@@ -2468,18 +3075,18 @@ Name | Type | Description | Notes
- **Content-Type**: application/json
- **Accept**: application/json
-
-## **postPageCircleAnnotations**
-> postPageCircleAnnotations(name, pageNumber, annotations, storage, folder)
+
+## **postPageHighlightAnnotations**
+> postPageHighlightAnnotations(name, pageNumber, annotations, storage, folder)
-Add document page circle annotations.
+Add document page highlight annotations.
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**name** | **string** | The document name. |
**pageNumber** | **number** | The page number. |
-**annotations** | [**Array<CircleAnnotation>**](CircleAnnotation.md) | The array of annotation. |
+**annotations** | [**Array<HighlightAnnotation>**](HighlightAnnotation.md) | The array of annotation. |
**storage** | **string** | The document storage. | [optional]
**folder** | **string** | The document folder. | [optional]
@@ -2492,18 +3099,18 @@ Name | Type | Description | Notes
- **Content-Type**: application/json
- **Accept**: application/json
-
-## **postPageFreeTextAnnotations**
-> postPageFreeTextAnnotations(name, pageNumber, annotations, storage, folder)
+
+## **postPageInkAnnotations**
+> postPageInkAnnotations(name, pageNumber, annotations, storage, folder)
-Add document page free text annotations.
+Add document page ink annotations.
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**name** | **string** | The document name. |
**pageNumber** | **number** | The page number. |
-**annotations** | [**Array<FreeTextAnnotation>**](FreeTextAnnotation.md) | The array of annotation. |
+**annotations** | [**Array<InkAnnotation>**](InkAnnotation.md) | The array of annotation. |
**storage** | **string** | The document storage. | [optional]
**folder** | **string** | The document folder. | [optional]
@@ -2631,6 +3238,54 @@ Name | Type | Description | Notes
[**AsposeResponse**](AsposeResponse.md)
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+
+## **postPageSquigglyAnnotations**
+> postPageSquigglyAnnotations(name, pageNumber, annotations, storage, folder)
+
+Add document page squiggly annotations.
+
+### Parameters
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+**name** | **string** | The document name. |
+**pageNumber** | **number** | The page number. |
+**annotations** | [**Array<SquigglyAnnotation>**](SquigglyAnnotation.md) | The array of annotation. |
+**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
+
+
+## **postPageStrikeOutAnnotations**
+> postPageStrikeOutAnnotations(name, pageNumber, annotations, storage, folder)
+
+Add document page StrikeOut annotations.
+
+### Parameters
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+**name** | **string** | The document name. |
+**pageNumber** | **number** | The page number. |
+**annotations** | [**Array<StrikeOutAnnotation>**](StrikeOutAnnotation.md) | The array of annotation. |
+**storage** | **string** | The document storage. | [optional]
+**folder** | **string** | The document folder. | [optional]
+
+### Return type
+
+[**AsposeResponse**](AsposeResponse.md)
+
### HTTP request headers
- **Content-Type**: application/json
@@ -2679,6 +3334,54 @@ Name | Type | Description | Notes
[**TextReplaceResponse**](TextReplaceResponse.md)
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+
+## **postPageUnderlineAnnotations**
+> postPageUnderlineAnnotations(name, pageNumber, annotations, storage, folder)
+
+Add document page underline annotations.
+
+### Parameters
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+**name** | **string** | The document name. |
+**pageNumber** | **number** | The page number. |
+**annotations** | [**Array<UnderlineAnnotation>**](UnderlineAnnotation.md) | The array of annotation. |
+**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
+
+
+## **postPopupAnnotation**
+> postPopupAnnotation(name, annotationId, annotation, storage, folder)
+
+Add document popup annotations.
+
+### Parameters
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+**name** | **string** | The document name. |
+**annotationId** | **string** | The parent annotation ID. |
+**annotation** | [**PopupAnnotation**](PopupAnnotation.md) | The annotation. |
+**storage** | **string** | The document storage. | [optional]
+**folder** | **string** | The document folder. | [optional]
+
+### Return type
+
+[**AsposeResponse**](AsposeResponse.md)
+
### HTTP request headers
- **Content-Type**: application/json
@@ -2797,6 +3500,30 @@ Name | Type | Description | Notes
[**AsposeResponse**](AsposeResponse.md)
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+
+## **putCaretAnnotation**
+> putCaretAnnotation(name, annotationId, annotation, storage, folder)
+
+Replace document caret annotation
+
+### Parameters
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+**name** | **string** | The document name. |
+**annotationId** | **string** | The annotation ID. |
+**annotation** | [**CaretAnnotation**](CaretAnnotation.md) | Annotation. |
+**storage** | **string** | The document storage. | [optional]
+**folder** | **string** | The document folder. | [optional]
+
+### Return type
+
+[**CaretAnnotationResponse**](CaretAnnotationResponse.md)
+
### HTTP request headers
- **Content-Type**: application/json
@@ -2935,6 +3662,30 @@ Name | Type | Description | Notes
[**FreeTextAnnotationResponse**](FreeTextAnnotationResponse.md)
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+
+## **putHighlightAnnotation**
+> putHighlightAnnotation(name, annotationId, annotation, storage, folder)
+
+Replace document highlight annotation
+
+### Parameters
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+**name** | **string** | The document name. |
+**annotationId** | **string** | The annotation ID. |
+**annotation** | [**HighlightAnnotation**](HighlightAnnotation.md) | Annotation. |
+**storage** | **string** | The document storage. | [optional]
+**folder** | **string** | The document folder. | [optional]
+
+### Return type
+
+[**HighlightAnnotationResponse**](HighlightAnnotationResponse.md)
+
### HTTP request headers
- **Content-Type**: application/json
@@ -2951,7 +3702,7 @@ Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**name** | **string** | The document name. |
**srcPath** | **string** | Full source filename (ex. /folder1/folder2/template.zip) |
-**htmlFileName** | **string** | Name of HTML file in ZIP. |
+**htmlFileName** | **string** | Name of HTML file in ZIP. | [optional]
**height** | **number** | Page height | [optional]
**width** | **number** | Page width | [optional]
**isLandscape** | **boolean** | Is page landscaped | [optional]
@@ -3197,6 +3948,30 @@ Name | Type | Description | Notes
[**AsposeResponse**](AsposeResponse.md)
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+
+## **putInkAnnotation**
+> putInkAnnotation(name, annotationId, annotation, storage, folder)
+
+Replace document ink annotation
+
+### Parameters
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+**name** | **string** | The document name. |
+**annotationId** | **string** | The annotation ID. |
+**annotation** | [**InkAnnotation**](InkAnnotation.md) | Annotation. |
+**storage** | **string** | The document storage. | [optional]
+**folder** | **string** | The document folder. | [optional]
+
+### Return type
+
+[**InkAnnotationResponse**](InkAnnotationResponse.md)
+
### HTTP request headers
- **Content-Type**: application/json
@@ -4225,6 +5000,30 @@ Name | Type | Description | Notes
[**PolyLineAnnotationResponse**](PolyLineAnnotationResponse.md)
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+
+## **putPopupAnnotation**
+> putPopupAnnotation(name, annotationId, annotation, storage, folder)
+
+Replace document popup annotation
+
+### Parameters
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+**name** | **string** | The document name. |
+**annotationId** | **string** | The annotation ID. |
+**annotation** | [**PopupAnnotation**](PopupAnnotation.md) | Annotation. |
+**storage** | **string** | The document storage. | [optional]
+**folder** | **string** | The document folder. | [optional]
+
+### Return type
+
+[**PopupAnnotationResponse**](PopupAnnotationResponse.md)
+
### HTTP request headers
- **Content-Type**: application/json
@@ -4367,6 +5166,54 @@ Name | Type | Description | Notes
[**SquareAnnotationResponse**](SquareAnnotationResponse.md)
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+
+## **putSquigglyAnnotation**
+> putSquigglyAnnotation(name, annotationId, annotation, storage, folder)
+
+Replace document squiggly annotation
+
+### Parameters
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+**name** | **string** | The document name. |
+**annotationId** | **string** | The annotation ID. |
+**annotation** | [**SquigglyAnnotation**](SquigglyAnnotation.md) | Annotation. |
+**storage** | **string** | The document storage. | [optional]
+**folder** | **string** | The document folder. | [optional]
+
+### Return type
+
+[**SquigglyAnnotationResponse**](SquigglyAnnotationResponse.md)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+
+## **putStrikeOutAnnotation**
+> putStrikeOutAnnotation(name, annotationId, annotation, storage, folder)
+
+Replace document StrikeOut annotation
+
+### Parameters
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+**name** | **string** | The document name. |
+**annotationId** | **string** | The annotation ID. |
+**annotation** | [**StrikeOutAnnotation**](StrikeOutAnnotation.md) | Annotation. |
+**storage** | **string** | The document storage. | [optional]
+**folder** | **string** | The document folder. | [optional]
+
+### Return type
+
+[**StrikeOutAnnotationResponse**](StrikeOutAnnotationResponse.md)
+
### HTTP request headers
- **Content-Type**: application/json
@@ -4422,6 +5269,30 @@ Name | Type | Description | Notes
[**TextAnnotationResponse**](TextAnnotationResponse.md)
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+
+## **putUnderlineAnnotation**
+> putUnderlineAnnotation(name, annotationId, annotation, storage, folder)
+
+Replace document underline annotation
+
+### Parameters
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+**name** | **string** | The document name. |
+**annotationId** | **string** | The annotation ID. |
+**annotation** | [**UnderlineAnnotation**](UnderlineAnnotation.md) | Annotation. |
+**storage** | **string** | The document storage. | [optional]
+**folder** | **string** | The document folder. | [optional]
+
+### Return type
+
+[**UnderlineAnnotationResponse**](UnderlineAnnotationResponse.md)
+
### HTTP request headers
- **Content-Type**: application/json
diff --git a/docs/PolyAnnotation.md b/docs/PolyAnnotation.md
index 0c07aae0..acfebb38 100644
--- a/docs/PolyAnnotation.md
+++ b/docs/PolyAnnotation.md
@@ -10,11 +10,11 @@ Name | Type | Description | Notes
**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** | [**Array<Point>**](Point.md) | Gets or sets an array of points representing the horizontal and vertical coordinates of each vertex. |
+**creationDate** | **string** | The date and time when the annotation was created.
*Inherited from [MarkupAnnotation](MarkupAnnotation.md)* | [optional]
+**subject** | **string** | Get the annotation subject.
*Inherited from [MarkupAnnotation](MarkupAnnotation.md)* | [optional]
+**title** | **string** | Get the annotation title.
*Inherited from [MarkupAnnotation](MarkupAnnotation.md)* | [optional]
**richText** | **string** | Get the annotation RichText.
*Inherited from [MarkupAnnotation](MarkupAnnotation.md)* | [optional]
**contents** | **string** | Get the annotation content.
*Inherited from [Annotation](Annotation.md)* | [optional]
-**creationDate** | **string** | The date and time when the annotation was created.
*Inherited from [Annotation](Annotation.md)* | [optional]
-**subject** | **string** | Get the annotation subject.
*Inherited from [Annotation](Annotation.md)* | [optional]
-**title** | **string** | Get the annotation title.
*Inherited from [Annotation](Annotation.md)* | [optional]
**modified** | **string** | The date and time when the annotation was last modified.
*Inherited from [Annotation](Annotation.md)* | [optional]
**id** | **string** | Gets ID of the annotation.
*Inherited from [Annotation](Annotation.md)* | [optional]
**flags** | [**Array<AnnotationFlags>**](AnnotationFlags.md) | Gets Flags of the annotation.
*Inherited from [Annotation](Annotation.md)* | [optional]
diff --git a/docs/PolyLineAnnotation.md b/docs/PolyLineAnnotation.md
index 01bc0497..0943d790 100644
--- a/docs/PolyLineAnnotation.md
+++ b/docs/PolyLineAnnotation.md
@@ -11,11 +11,11 @@ Name | Type | Description | Notes
**endingStyle** | [**LineEnding**](LineEnding.md) | Gets or sets the style of second line ending.
*Inherited from [PolyAnnotation](PolyAnnotation.md)* | [optional]
**intent** | [**PolyIntent**](PolyIntent.md) | Gets or sets the intent of the polygon or polyline annotation.
*Inherited from [PolyAnnotation](PolyAnnotation.md)* | [optional]
**vertices** | [**Array<Point>**](Point.md) | Gets or sets an array of points representing the horizontal and vertical coordinates of each vertex.
*Inherited from [PolyAnnotation](PolyAnnotation.md)* |
+**creationDate** | **string** | The date and time when the annotation was created.
*Inherited from [MarkupAnnotation](MarkupAnnotation.md)* | [optional]
+**subject** | **string** | Get the annotation subject.
*Inherited from [MarkupAnnotation](MarkupAnnotation.md)* | [optional]
+**title** | **string** | Get the annotation title.
*Inherited from [MarkupAnnotation](MarkupAnnotation.md)* | [optional]
**richText** | **string** | Get the annotation RichText.
*Inherited from [MarkupAnnotation](MarkupAnnotation.md)* | [optional]
**contents** | **string** | Get the annotation content.
*Inherited from [Annotation](Annotation.md)* | [optional]
-**creationDate** | **string** | The date and time when the annotation was created.
*Inherited from [Annotation](Annotation.md)* | [optional]
-**subject** | **string** | Get the annotation subject.
*Inherited from [Annotation](Annotation.md)* | [optional]
-**title** | **string** | Get the annotation title.
*Inherited from [Annotation](Annotation.md)* | [optional]
**modified** | **string** | The date and time when the annotation was last modified.
*Inherited from [Annotation](Annotation.md)* | [optional]
**id** | **string** | Gets ID of the annotation.
*Inherited from [Annotation](Annotation.md)* | [optional]
**flags** | [**Array<AnnotationFlags>**](AnnotationFlags.md) | Gets Flags of the annotation.
*Inherited from [Annotation](Annotation.md)* | [optional]
diff --git a/docs/PolygonAnnotation.md b/docs/PolygonAnnotation.md
index 74533d95..720fe4de 100644
--- a/docs/PolygonAnnotation.md
+++ b/docs/PolygonAnnotation.md
@@ -11,11 +11,11 @@ Name | Type | Description | Notes
**endingStyle** | [**LineEnding**](LineEnding.md) | Gets or sets the style of second line ending.
*Inherited from [PolyAnnotation](PolyAnnotation.md)* | [optional]
**intent** | [**PolyIntent**](PolyIntent.md) | Gets or sets the intent of the polygon or polyline annotation.
*Inherited from [PolyAnnotation](PolyAnnotation.md)* | [optional]
**vertices** | [**Array<Point>**](Point.md) | Gets or sets an array of points representing the horizontal and vertical coordinates of each vertex.
*Inherited from [PolyAnnotation](PolyAnnotation.md)* |
+**creationDate** | **string** | The date and time when the annotation was created.
*Inherited from [MarkupAnnotation](MarkupAnnotation.md)* | [optional]
+**subject** | **string** | Get the annotation subject.
*Inherited from [MarkupAnnotation](MarkupAnnotation.md)* | [optional]
+**title** | **string** | Get the annotation title.
*Inherited from [MarkupAnnotation](MarkupAnnotation.md)* | [optional]
**richText** | **string** | Get the annotation RichText.
*Inherited from [MarkupAnnotation](MarkupAnnotation.md)* | [optional]
**contents** | **string** | Get the annotation content.
*Inherited from [Annotation](Annotation.md)* | [optional]
-**creationDate** | **string** | The date and time when the annotation was created.
*Inherited from [Annotation](Annotation.md)* | [optional]
-**subject** | **string** | Get the annotation subject.
*Inherited from [Annotation](Annotation.md)* | [optional]
-**title** | **string** | Get the annotation title.
*Inherited from [Annotation](Annotation.md)* | [optional]
**modified** | **string** | The date and time when the annotation was last modified.
*Inherited from [Annotation](Annotation.md)* | [optional]
**id** | **string** | Gets ID of the annotation.
*Inherited from [Annotation](Annotation.md)* | [optional]
**flags** | [**Array<AnnotationFlags>**](AnnotationFlags.md) | Gets Flags of the annotation.
*Inherited from [Annotation](Annotation.md)* | [optional]
diff --git a/docs/PopupAnnotation.md b/docs/PopupAnnotation.md
new file mode 100644
index 00000000..e4fdc4a2
--- /dev/null
+++ b/docs/PopupAnnotation.md
@@ -0,0 +1,23 @@
+# PopupAnnotation
+Provides PopupAnnotation.
+
+*Inherited from [Annotation](Annotation.md)*
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**color** | [**Color**](Color.md) | Color of the annotation. | [optional]
+**open** | **boolean** | Gets or sets a flag specifying whether the pop-up annotation should initially be displayed open. | [optional]
+**contents** | **string** | Get the annotation content.
*Inherited from [Annotation](Annotation.md)* | [optional]
+**modified** | **string** | The date and time when the annotation was last modified.
*Inherited from [Annotation](Annotation.md)* | [optional]
+**id** | **string** | Gets ID of the annotation.
*Inherited from [Annotation](Annotation.md)* | [optional]
+**flags** | [**Array<AnnotationFlags>**](AnnotationFlags.md) | Gets Flags of the annotation.
*Inherited from [Annotation](Annotation.md)* | [optional]
+**name** | **string** | Gets Name of the annotation.
*Inherited from [Annotation](Annotation.md)* | [optional]
+**rect** | [**RectanglePdf**](RectanglePdf.md) | Gets Rect of the annotation.
*Inherited from [Annotation](Annotation.md)* |
+**pageIndex** | **number** | Gets PageIndex of the annotation.
*Inherited from [Annotation](Annotation.md)* | [optional]
+**zIndex** | **number** | Gets ZIndex of the annotation.
*Inherited from [Annotation](Annotation.md)* | [optional]
+**horizontalAlignment** | [**HorizontalAlignment**](HorizontalAlignment.md) | Gets HorizontalAlignment of the annotation.
*Inherited from [Annotation](Annotation.md)* | [optional]
+**verticalAlignment** | [**VerticalAlignment**](VerticalAlignment.md) | Gets VerticalAlignment of the annotation.
*Inherited from [Annotation](Annotation.md)* | [optional]
+**links** | [**Array<Link>**](Link.md) | Link to the document.
*Inherited from [LinkElement](LinkElement.md)* | [optional]
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) [[View Source]](../src/models/popupAnnotation.ts)
+
diff --git a/docs/PopupAnnotationResponse.md b/docs/PopupAnnotationResponse.md
new file mode 100644
index 00000000..e45b14ff
--- /dev/null
+++ b/docs/PopupAnnotationResponse.md
@@ -0,0 +1,13 @@
+# PopupAnnotationResponse
+
+
+*Inherited from [AsposeResponse](AsposeResponse.md)*
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**annotation** | [**PopupAnnotationWithParent**](PopupAnnotationWithParent.md) | | [optional]
+**code** | **number** | Response status code.
*Inherited from [AsposeResponse](AsposeResponse.md)* |
+**status** | **string** | Response status.
*Inherited from [AsposeResponse](AsposeResponse.md)* | [optional]
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) [[View Source]](../src/models/popupAnnotationResponse.ts)
+
diff --git a/docs/PopupAnnotationWithParent.md b/docs/PopupAnnotationWithParent.md
new file mode 100644
index 00000000..d3e17b7b
--- /dev/null
+++ b/docs/PopupAnnotationWithParent.md
@@ -0,0 +1,24 @@
+# PopupAnnotationWithParent
+Provides PopupAnnotation.
+
+*Inherited from [PopupAnnotation](PopupAnnotation.md)*
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**parent** | [**AnnotationInfo**](AnnotationInfo.md) | Parent of annotation. | [optional]
+**color** | [**Color**](Color.md) | Color of the annotation.
*Inherited from [PopupAnnotation](PopupAnnotation.md)* | [optional]
+**open** | **boolean** | Gets or sets a flag specifying whether the pop-up annotation should initially be displayed open.
*Inherited from [PopupAnnotation](PopupAnnotation.md)* | [optional]
+**contents** | **string** | Get the annotation content.
*Inherited from [Annotation](Annotation.md)* | [optional]
+**modified** | **string** | The date and time when the annotation was last modified.
*Inherited from [Annotation](Annotation.md)* | [optional]
+**id** | **string** | Gets ID of the annotation.
*Inherited from [Annotation](Annotation.md)* | [optional]
+**flags** | [**Array<AnnotationFlags>**](AnnotationFlags.md) | Gets Flags of the annotation.
*Inherited from [Annotation](Annotation.md)* | [optional]
+**name** | **string** | Gets Name of the annotation.
*Inherited from [Annotation](Annotation.md)* | [optional]
+**rect** | [**RectanglePdf**](RectanglePdf.md) | Gets Rect of the annotation.
*Inherited from [Annotation](Annotation.md)* |
+**pageIndex** | **number** | Gets PageIndex of the annotation.
*Inherited from [Annotation](Annotation.md)* | [optional]
+**zIndex** | **number** | Gets ZIndex of the annotation.
*Inherited from [Annotation](Annotation.md)* | [optional]
+**horizontalAlignment** | [**HorizontalAlignment**](HorizontalAlignment.md) | Gets HorizontalAlignment of the annotation.
*Inherited from [Annotation](Annotation.md)* | [optional]
+**verticalAlignment** | [**VerticalAlignment**](VerticalAlignment.md) | Gets VerticalAlignment of the annotation.
*Inherited from [Annotation](Annotation.md)* | [optional]
+**links** | [**Array<Link>**](Link.md) | Link to the document.
*Inherited from [LinkElement](LinkElement.md)* | [optional]
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) [[View Source]](../src/models/popupAnnotationWithParent.ts)
+
diff --git a/docs/PopupAnnotations.md b/docs/PopupAnnotations.md
new file mode 100644
index 00000000..7c3caab9
--- /dev/null
+++ b/docs/PopupAnnotations.md
@@ -0,0 +1,12 @@
+# PopupAnnotations
+List of annotations.
+
+*Inherited from [LinkElement](LinkElement.md)*
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**list** | [**Array<PopupAnnotationWithParent>**](PopupAnnotationWithParent.md) | | [optional]
+**links** | [**Array<Link>**](Link.md) | Link to the document.
*Inherited from [LinkElement](LinkElement.md)* | [optional]
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) [[View Source]](../src/models/popupAnnotations.ts)
+
diff --git a/docs/PopupAnnotationsResponse.md b/docs/PopupAnnotationsResponse.md
new file mode 100644
index 00000000..1c3b00e0
--- /dev/null
+++ b/docs/PopupAnnotationsResponse.md
@@ -0,0 +1,13 @@
+# PopupAnnotationsResponse
+
+
+*Inherited from [AsposeResponse](AsposeResponse.md)*
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**annotations** | [**PopupAnnotations**](PopupAnnotations.md) | | [optional]
+**code** | **number** | Response status code.
*Inherited from [AsposeResponse](AsposeResponse.md)* |
+**status** | **string** | Response status.
*Inherited from [AsposeResponse](AsposeResponse.md)* | [optional]
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) [[View Source]](../src/models/popupAnnotationsResponse.ts)
+
diff --git a/docs/SquareAnnotation.md b/docs/SquareAnnotation.md
index bc6fcc98..91d79066 100644
--- a/docs/SquareAnnotation.md
+++ b/docs/SquareAnnotation.md
@@ -8,11 +8,11 @@ Name | Type | Description | Notes
**color** | [**Color**](Color.md) | Color of the annotation. | [optional]
**interiorColor** | [**Color**](Color.md) | Get the annotation InteriorColor.
*Inherited from [CommonFigureAnnotation](CommonFigureAnnotation.md)* | [optional]
**frame** | [**RectanglePdf**](RectanglePdf.md) | Get or set the annotation Rectangle of frame.
*Inherited from [CommonFigureAnnotation](CommonFigureAnnotation.md)* | [optional]
+**creationDate** | **string** | The date and time when the annotation was created.
*Inherited from [MarkupAnnotation](MarkupAnnotation.md)* | [optional]
+**subject** | **string** | Get the annotation subject.
*Inherited from [MarkupAnnotation](MarkupAnnotation.md)* | [optional]
+**title** | **string** | Get the annotation title.
*Inherited from [MarkupAnnotation](MarkupAnnotation.md)* | [optional]
**richText** | **string** | Get the annotation RichText.
*Inherited from [MarkupAnnotation](MarkupAnnotation.md)* | [optional]
**contents** | **string** | Get the annotation content.
*Inherited from [Annotation](Annotation.md)* | [optional]
-**creationDate** | **string** | The date and time when the annotation was created.
*Inherited from [Annotation](Annotation.md)* | [optional]
-**subject** | **string** | Get the annotation subject.
*Inherited from [Annotation](Annotation.md)* | [optional]
-**title** | **string** | Get the annotation title.
*Inherited from [Annotation](Annotation.md)* | [optional]
**modified** | **string** | The date and time when the annotation was last modified.
*Inherited from [Annotation](Annotation.md)* | [optional]
**id** | **string** | Gets ID of the annotation.
*Inherited from [Annotation](Annotation.md)* | [optional]
**flags** | [**Array<AnnotationFlags>**](AnnotationFlags.md) | Gets Flags of the annotation.
*Inherited from [Annotation](Annotation.md)* | [optional]
diff --git a/docs/SquigglyAnnotation.md b/docs/SquigglyAnnotation.md
new file mode 100644
index 00000000..341e09bc
--- /dev/null
+++ b/docs/SquigglyAnnotation.md
@@ -0,0 +1,27 @@
+# SquigglyAnnotation
+Provides SquigglyAnnotation.
+
+*Inherited from [MarkupAnnotation](MarkupAnnotation.md)*
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**color** | [**Color**](Color.md) | Color of the annotation. | [optional]
+**quadPoints** | [**Array<Point>**](Point.md) | Gets or sets an array of points specifying the coordinates of n quadrilaterals. Each quadrilateral encompasses a word or group of contiguous words in the text underlying the annotation. | [optional]
+**creationDate** | **string** | The date and time when the annotation was created.
*Inherited from [MarkupAnnotation](MarkupAnnotation.md)* | [optional]
+**subject** | **string** | Get the annotation subject.
*Inherited from [MarkupAnnotation](MarkupAnnotation.md)* | [optional]
+**title** | **string** | Get the annotation title.
*Inherited from [MarkupAnnotation](MarkupAnnotation.md)* | [optional]
+**richText** | **string** | Get the annotation RichText.
*Inherited from [MarkupAnnotation](MarkupAnnotation.md)* | [optional]
+**contents** | **string** | Get the annotation content.
*Inherited from [Annotation](Annotation.md)* | [optional]
+**modified** | **string** | The date and time when the annotation was last modified.
*Inherited from [Annotation](Annotation.md)* | [optional]
+**id** | **string** | Gets ID of the annotation.
*Inherited from [Annotation](Annotation.md)* | [optional]
+**flags** | [**Array<AnnotationFlags>**](AnnotationFlags.md) | Gets Flags of the annotation.
*Inherited from [Annotation](Annotation.md)* | [optional]
+**name** | **string** | Gets Name of the annotation.
*Inherited from [Annotation](Annotation.md)* | [optional]
+**rect** | [**RectanglePdf**](RectanglePdf.md) | Gets Rect of the annotation.
*Inherited from [Annotation](Annotation.md)* |
+**pageIndex** | **number** | Gets PageIndex of the annotation.
*Inherited from [Annotation](Annotation.md)* | [optional]
+**zIndex** | **number** | Gets ZIndex of the annotation.
*Inherited from [Annotation](Annotation.md)* | [optional]
+**horizontalAlignment** | [**HorizontalAlignment**](HorizontalAlignment.md) | Gets HorizontalAlignment of the annotation.
*Inherited from [Annotation](Annotation.md)* | [optional]
+**verticalAlignment** | [**VerticalAlignment**](VerticalAlignment.md) | Gets VerticalAlignment of the annotation.
*Inherited from [Annotation](Annotation.md)* | [optional]
+**links** | [**Array<Link>**](Link.md) | Link to the document.
*Inherited from [LinkElement](LinkElement.md)* | [optional]
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) [[View Source]](../src/models/squigglyAnnotation.ts)
+
diff --git a/docs/SquigglyAnnotationResponse.md b/docs/SquigglyAnnotationResponse.md
new file mode 100644
index 00000000..cd2bb4be
--- /dev/null
+++ b/docs/SquigglyAnnotationResponse.md
@@ -0,0 +1,13 @@
+# SquigglyAnnotationResponse
+
+
+*Inherited from [AsposeResponse](AsposeResponse.md)*
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**annotation** | [**SquigglyAnnotation**](SquigglyAnnotation.md) | | [optional]
+**code** | **number** | Response status code.
*Inherited from [AsposeResponse](AsposeResponse.md)* |
+**status** | **string** | Response status.
*Inherited from [AsposeResponse](AsposeResponse.md)* | [optional]
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) [[View Source]](../src/models/squigglyAnnotationResponse.ts)
+
diff --git a/docs/SquigglyAnnotations.md b/docs/SquigglyAnnotations.md
new file mode 100644
index 00000000..062534fd
--- /dev/null
+++ b/docs/SquigglyAnnotations.md
@@ -0,0 +1,12 @@
+# SquigglyAnnotations
+List of annotations.
+
+*Inherited from [LinkElement](LinkElement.md)*
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**list** | [**Array<SquigglyAnnotation>**](SquigglyAnnotation.md) | | [optional]
+**links** | [**Array<Link>**](Link.md) | Link to the document.
*Inherited from [LinkElement](LinkElement.md)* | [optional]
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) [[View Source]](../src/models/squigglyAnnotations.ts)
+
diff --git a/docs/SquigglyAnnotationsResponse.md b/docs/SquigglyAnnotationsResponse.md
new file mode 100644
index 00000000..cbba50bc
--- /dev/null
+++ b/docs/SquigglyAnnotationsResponse.md
@@ -0,0 +1,13 @@
+# SquigglyAnnotationsResponse
+
+
+*Inherited from [AsposeResponse](AsposeResponse.md)*
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**annotations** | [**SquigglyAnnotations**](SquigglyAnnotations.md) | | [optional]
+**code** | **number** | Response status code.
*Inherited from [AsposeResponse](AsposeResponse.md)* |
+**status** | **string** | Response status.
*Inherited from [AsposeResponse](AsposeResponse.md)* | [optional]
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) [[View Source]](../src/models/squigglyAnnotationsResponse.ts)
+
diff --git a/docs/StrikeOutAnnotation.md b/docs/StrikeOutAnnotation.md
new file mode 100644
index 00000000..2023bea5
--- /dev/null
+++ b/docs/StrikeOutAnnotation.md
@@ -0,0 +1,27 @@
+# StrikeOutAnnotation
+Provides StrikeOutAnnotation.
+
+*Inherited from [MarkupAnnotation](MarkupAnnotation.md)*
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**color** | [**Color**](Color.md) | Color of the annotation. | [optional]
+**quadPoints** | [**Array<Point>**](Point.md) | Gets or sets an array of points specifying the coordinates of n quadrilaterals. Each quadrilateral encompasses a word or group of contiguous words in the text underlying the annotation. | [optional]
+**creationDate** | **string** | The date and time when the annotation was created.
*Inherited from [MarkupAnnotation](MarkupAnnotation.md)* | [optional]
+**subject** | **string** | Get the annotation subject.
*Inherited from [MarkupAnnotation](MarkupAnnotation.md)* | [optional]
+**title** | **string** | Get the annotation title.
*Inherited from [MarkupAnnotation](MarkupAnnotation.md)* | [optional]
+**richText** | **string** | Get the annotation RichText.
*Inherited from [MarkupAnnotation](MarkupAnnotation.md)* | [optional]
+**contents** | **string** | Get the annotation content.
*Inherited from [Annotation](Annotation.md)* | [optional]
+**modified** | **string** | The date and time when the annotation was last modified.
*Inherited from [Annotation](Annotation.md)* | [optional]
+**id** | **string** | Gets ID of the annotation.
*Inherited from [Annotation](Annotation.md)* | [optional]
+**flags** | [**Array<AnnotationFlags>**](AnnotationFlags.md) | Gets Flags of the annotation.
*Inherited from [Annotation](Annotation.md)* | [optional]
+**name** | **string** | Gets Name of the annotation.
*Inherited from [Annotation](Annotation.md)* | [optional]
+**rect** | [**RectanglePdf**](RectanglePdf.md) | Gets Rect of the annotation.
*Inherited from [Annotation](Annotation.md)* |
+**pageIndex** | **number** | Gets PageIndex of the annotation.
*Inherited from [Annotation](Annotation.md)* | [optional]
+**zIndex** | **number** | Gets ZIndex of the annotation.
*Inherited from [Annotation](Annotation.md)* | [optional]
+**horizontalAlignment** | [**HorizontalAlignment**](HorizontalAlignment.md) | Gets HorizontalAlignment of the annotation.
*Inherited from [Annotation](Annotation.md)* | [optional]
+**verticalAlignment** | [**VerticalAlignment**](VerticalAlignment.md) | Gets VerticalAlignment of the annotation.
*Inherited from [Annotation](Annotation.md)* | [optional]
+**links** | [**Array<Link>**](Link.md) | Link to the document.
*Inherited from [LinkElement](LinkElement.md)* | [optional]
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) [[View Source]](../src/models/strikeOutAnnotation.ts)
+
diff --git a/docs/StrikeOutAnnotationResponse.md b/docs/StrikeOutAnnotationResponse.md
new file mode 100644
index 00000000..2ad1d0cc
--- /dev/null
+++ b/docs/StrikeOutAnnotationResponse.md
@@ -0,0 +1,13 @@
+# StrikeOutAnnotationResponse
+
+
+*Inherited from [AsposeResponse](AsposeResponse.md)*
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**annotation** | [**StrikeOutAnnotation**](StrikeOutAnnotation.md) | | [optional]
+**code** | **number** | Response status code.
*Inherited from [AsposeResponse](AsposeResponse.md)* |
+**status** | **string** | Response status.
*Inherited from [AsposeResponse](AsposeResponse.md)* | [optional]
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) [[View Source]](../src/models/strikeOutAnnotationResponse.ts)
+
diff --git a/docs/StrikeOutAnnotations.md b/docs/StrikeOutAnnotations.md
new file mode 100644
index 00000000..956fa047
--- /dev/null
+++ b/docs/StrikeOutAnnotations.md
@@ -0,0 +1,12 @@
+# StrikeOutAnnotations
+List of annotations.
+
+*Inherited from [LinkElement](LinkElement.md)*
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**list** | [**Array<StrikeOutAnnotation>**](StrikeOutAnnotation.md) | | [optional]
+**links** | [**Array<Link>**](Link.md) | Link to the document.
*Inherited from [LinkElement](LinkElement.md)* | [optional]
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) [[View Source]](../src/models/strikeOutAnnotations.ts)
+
diff --git a/docs/StrikeOutAnnotationsResponse.md b/docs/StrikeOutAnnotationsResponse.md
new file mode 100644
index 00000000..e304c815
--- /dev/null
+++ b/docs/StrikeOutAnnotationsResponse.md
@@ -0,0 +1,13 @@
+# StrikeOutAnnotationsResponse
+
+
+*Inherited from [AsposeResponse](AsposeResponse.md)*
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**annotations** | [**StrikeOutAnnotations**](StrikeOutAnnotations.md) | | [optional]
+**code** | **number** | Response status code.
*Inherited from [AsposeResponse](AsposeResponse.md)* |
+**status** | **string** | Response status.
*Inherited from [AsposeResponse](AsposeResponse.md)* | [optional]
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) [[View Source]](../src/models/strikeOutAnnotationsResponse.ts)
+
diff --git a/docs/TextAnnotation.md b/docs/TextAnnotation.md
index 160fb895..b2ef0f52 100644
--- a/docs/TextAnnotation.md
+++ b/docs/TextAnnotation.md
@@ -9,11 +9,11 @@ Name | Type | Description | Notes
**open** | **boolean** | Gets or sets is the annotation open. | [optional]
**color** | [**Color**](Color.md) | Color of the annotation. | [optional]
**icon** | [**TextIcon**](TextIcon.md) | Gets or sets an icon to be used in displaying the annotation. | [optional]
+**creationDate** | **string** | The date and time when the annotation was created.
*Inherited from [MarkupAnnotation](MarkupAnnotation.md)* | [optional]
+**subject** | **string** | Get the annotation subject.
*Inherited from [MarkupAnnotation](MarkupAnnotation.md)* | [optional]
+**title** | **string** | Get the annotation title.
*Inherited from [MarkupAnnotation](MarkupAnnotation.md)* | [optional]
**richText** | **string** | Get the annotation RichText.
*Inherited from [MarkupAnnotation](MarkupAnnotation.md)* | [optional]
**contents** | **string** | Get the annotation content.
*Inherited from [Annotation](Annotation.md)* | [optional]
-**creationDate** | **string** | The date and time when the annotation was created.
*Inherited from [Annotation](Annotation.md)* | [optional]
-**subject** | **string** | Get the annotation subject.
*Inherited from [Annotation](Annotation.md)* | [optional]
-**title** | **string** | Get the annotation title.
*Inherited from [Annotation](Annotation.md)* | [optional]
**modified** | **string** | The date and time when the annotation was last modified.
*Inherited from [Annotation](Annotation.md)* | [optional]
**id** | **string** | Gets ID of the annotation.
*Inherited from [Annotation](Annotation.md)* | [optional]
**flags** | [**Array<AnnotationFlags>**](AnnotationFlags.md) | Gets Flags of the annotation.
*Inherited from [Annotation](Annotation.md)* | [optional]
diff --git a/docs/UnderlineAnnotation.md b/docs/UnderlineAnnotation.md
new file mode 100644
index 00000000..686d3a33
--- /dev/null
+++ b/docs/UnderlineAnnotation.md
@@ -0,0 +1,27 @@
+# UnderlineAnnotation
+Provides UnderlineAnnotation.
+
+*Inherited from [MarkupAnnotation](MarkupAnnotation.md)*
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**color** | [**Color**](Color.md) | Color of the annotation. | [optional]
+**quadPoints** | [**Array<Point>**](Point.md) | Gets or sets an array of points specifying the coordinates of n quadrilaterals. Each quadrilateral encompasses a word or group of contiguous words in the text underlying the annotation. | [optional]
+**creationDate** | **string** | The date and time when the annotation was created.
*Inherited from [MarkupAnnotation](MarkupAnnotation.md)* | [optional]
+**subject** | **string** | Get the annotation subject.
*Inherited from [MarkupAnnotation](MarkupAnnotation.md)* | [optional]
+**title** | **string** | Get the annotation title.
*Inherited from [MarkupAnnotation](MarkupAnnotation.md)* | [optional]
+**richText** | **string** | Get the annotation RichText.
*Inherited from [MarkupAnnotation](MarkupAnnotation.md)* | [optional]
+**contents** | **string** | Get the annotation content.
*Inherited from [Annotation](Annotation.md)* | [optional]
+**modified** | **string** | The date and time when the annotation was last modified.
*Inherited from [Annotation](Annotation.md)* | [optional]
+**id** | **string** | Gets ID of the annotation.
*Inherited from [Annotation](Annotation.md)* | [optional]
+**flags** | [**Array<AnnotationFlags>**](AnnotationFlags.md) | Gets Flags of the annotation.
*Inherited from [Annotation](Annotation.md)* | [optional]
+**name** | **string** | Gets Name of the annotation.
*Inherited from [Annotation](Annotation.md)* | [optional]
+**rect** | [**RectanglePdf**](RectanglePdf.md) | Gets Rect of the annotation.
*Inherited from [Annotation](Annotation.md)* |
+**pageIndex** | **number** | Gets PageIndex of the annotation.
*Inherited from [Annotation](Annotation.md)* | [optional]
+**zIndex** | **number** | Gets ZIndex of the annotation.
*Inherited from [Annotation](Annotation.md)* | [optional]
+**horizontalAlignment** | [**HorizontalAlignment**](HorizontalAlignment.md) | Gets HorizontalAlignment of the annotation.
*Inherited from [Annotation](Annotation.md)* | [optional]
+**verticalAlignment** | [**VerticalAlignment**](VerticalAlignment.md) | Gets VerticalAlignment of the annotation.
*Inherited from [Annotation](Annotation.md)* | [optional]
+**links** | [**Array<Link>**](Link.md) | Link to the document.
*Inherited from [LinkElement](LinkElement.md)* | [optional]
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) [[View Source]](../src/models/underlineAnnotation.ts)
+
diff --git a/docs/UnderlineAnnotationResponse.md b/docs/UnderlineAnnotationResponse.md
new file mode 100644
index 00000000..5328b094
--- /dev/null
+++ b/docs/UnderlineAnnotationResponse.md
@@ -0,0 +1,13 @@
+# UnderlineAnnotationResponse
+
+
+*Inherited from [AsposeResponse](AsposeResponse.md)*
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**annotation** | [**UnderlineAnnotation**](UnderlineAnnotation.md) | | [optional]
+**code** | **number** | Response status code.
*Inherited from [AsposeResponse](AsposeResponse.md)* |
+**status** | **string** | Response status.
*Inherited from [AsposeResponse](AsposeResponse.md)* | [optional]
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) [[View Source]](../src/models/underlineAnnotationResponse.ts)
+
diff --git a/docs/UnderlineAnnotations.md b/docs/UnderlineAnnotations.md
new file mode 100644
index 00000000..17f45604
--- /dev/null
+++ b/docs/UnderlineAnnotations.md
@@ -0,0 +1,12 @@
+# UnderlineAnnotations
+List of annotations.
+
+*Inherited from [LinkElement](LinkElement.md)*
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**list** | [**Array<UnderlineAnnotation>**](UnderlineAnnotation.md) | | [optional]
+**links** | [**Array<Link>**](Link.md) | Link to the document.
*Inherited from [LinkElement](LinkElement.md)* | [optional]
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) [[View Source]](../src/models/underlineAnnotations.ts)
+
diff --git a/docs/UnderlineAnnotationsResponse.md b/docs/UnderlineAnnotationsResponse.md
new file mode 100644
index 00000000..65314b20
--- /dev/null
+++ b/docs/UnderlineAnnotationsResponse.md
@@ -0,0 +1,13 @@
+# UnderlineAnnotationsResponse
+
+
+*Inherited from [AsposeResponse](AsposeResponse.md)*
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**annotations** | [**UnderlineAnnotations**](UnderlineAnnotations.md) | | [optional]
+**code** | **number** | Response status code.
*Inherited from [AsposeResponse](AsposeResponse.md)* |
+**status** | **string** | Response status.
*Inherited from [AsposeResponse](AsposeResponse.md)* | [optional]
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) [[View Source]](../src/models/underlineAnnotationsResponse.ts)
+
diff --git a/package-lock.json b/package-lock.json
index e0b87a3a..7998d404 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,13 +1,13 @@
{
"name": "asposepdfcloud",
- "version": "18.10.0",
+ "version": "18.11.0",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
"@types/bluebird": {
- "version": "3.5.22",
- "resolved": "https://registry.npmjs.org/@types/bluebird/-/bluebird-3.5.22.tgz",
- "integrity": "sha512-wQamz3CYZCz9QVxhPOF+Odu2jZifcXkGJDff7580sx/TCR6/9Zsgv+iGe2/o4Upcs0RDFLVJuEtYSEFeAqDTSA=="
+ "version": "3.5.24",
+ "resolved": "https://registry.npmjs.org/@types/bluebird/-/bluebird-3.5.24.tgz",
+ "integrity": "sha512-YeQoDpq4Lm8ppSBqAnAeF/xy1cYp/dMTif2JFcvmAbETMRlvKHT2iLcWu+WyYiJO3b3Ivokwo7EQca/xfLVJmg=="
},
"@types/caseless": {
"version": "0.12.1",
@@ -29,14 +29,14 @@
"dev": true
},
"@types/node": {
- "version": "10.5.2",
- "resolved": "https://registry.npmjs.org/@types/node/-/node-10.5.2.tgz",
- "integrity": "sha512-m9zXmifkZsMHZBOyxZWilMwmTlpC8x5Ty360JKTiXvlXZfBWYpsg9ZZvP/Ye+iZUh+Q+MxDLjItVTWIsfwz+8Q=="
+ "version": "10.12.11",
+ "resolved": "https://registry.npmjs.org/@types/node/-/node-10.12.11.tgz",
+ "integrity": "sha512-3iIOhNiPGTdcUNVCv9e5G7GotfvJJe2pc9w2UgDXlUwnxSZ3RgcUocIU+xYm+rTU54jIKih998QE4dMOyMN1NQ=="
},
"@types/request": {
- "version": "2.47.1",
- "resolved": "https://registry.npmjs.org/@types/request/-/request-2.47.1.tgz",
- "integrity": "sha512-TV3XLvDjQbIeVxJ1Z3oCTDk/KuYwwcNKVwz2YaT0F5u86Prgc4syDAp6P96rkTQQ4bIdh+VswQIC9zS6NjY7/g==",
+ "version": "2.48.1",
+ "resolved": "https://registry.npmjs.org/@types/request/-/request-2.48.1.tgz",
+ "integrity": "sha512-ZgEZ1TiD+KGA9LiAAPPJL68Id2UWfeSO62ijSXZjFJArVV+2pKcsVHmrcu+1oiE3q6eDGiFiSolRc4JHoerBBg==",
"requires": {
"@types/caseless": "*",
"@types/form-data": "*",
@@ -45,19 +45,19 @@
}
},
"@types/tough-cookie": {
- "version": "2.3.3",
- "resolved": "https://registry.npmjs.org/@types/tough-cookie/-/tough-cookie-2.3.3.tgz",
- "integrity": "sha512-MDQLxNFRLasqS4UlkWMSACMKeSm1x4Q3TxzUC7KQUsh6RK1ZrQ0VEyE3yzXcBu+K8ejVj4wuX32eUG02yNp+YQ=="
+ "version": "2.3.4",
+ "resolved": "https://registry.npmjs.org/@types/tough-cookie/-/tough-cookie-2.3.4.tgz",
+ "integrity": "sha512-Set5ZdrAaKI/qHdFlVMgm/GsAv/wkXhSTuZFkJ+JI7HK+wIkIlOaUXSXieIvJ0+OvGIqtREFoE+NHJtEq0gtEw=="
},
"ajv": {
- "version": "5.5.2",
- "resolved": "https://registry.npmjs.org/ajv/-/ajv-5.5.2.tgz",
- "integrity": "sha1-c7Xuyj+rZT49P5Qis0GtQiBdyWU=",
+ "version": "6.6.1",
+ "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.6.1.tgz",
+ "integrity": "sha512-ZoJjft5B+EJBjUyu9C9Hc0OZyPZSSlOF+plzouTrg6UlA8f+e/n8NIgBFG/9tppJtpPWfthHakK7juJdNDODww==",
"requires": {
- "co": "^4.6.0",
- "fast-deep-equal": "^1.0.0",
+ "fast-deep-equal": "^2.0.1",
"fast-json-stable-stringify": "^2.0.0",
- "json-schema-traverse": "^0.3.0"
+ "json-schema-traverse": "^0.4.1",
+ "uri-js": "^4.2.2"
}
},
"arrify": {
@@ -67,9 +67,12 @@
"dev": true
},
"asn1": {
- "version": "0.2.3",
- "resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.3.tgz",
- "integrity": "sha1-2sh4dxPJlmhJ/IGAd36+nB3fO4Y="
+ "version": "0.2.4",
+ "resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.4.tgz",
+ "integrity": "sha512-jxwzQpLQjSmWXgwaCZE9Nz+glAG01yF1QnWgbhGwHI5A6FRIEY6IVqtHhIepHqI7/kyEyQEagBC5mBEFlIYvdg==",
+ "requires": {
+ "safer-buffer": "~2.1.0"
+ }
},
"assert-plus": {
"version": "1.0.0",
@@ -87,9 +90,9 @@
"integrity": "sha1-tG6JCTSpWR8tL2+G1+ap8bP+dqg="
},
"aws4": {
- "version": "1.7.0",
- "resolved": "https://registry.npmjs.org/aws4/-/aws4-1.7.0.tgz",
- "integrity": "sha512-32NDda82rhwD9/JBCCkB+MRYDp0oSvlo2IL6rQWA10PQi7tDUM3eqMSltXmY+Oyl/7N3P3qNtAlv7X0d9bI28w=="
+ "version": "1.8.0",
+ "resolved": "https://registry.npmjs.org/aws4/-/aws4-1.8.0.tgz",
+ "integrity": "sha512-ReZxvNHIOv88FlT7rxcXIIC0fPt4KZqZbOlivyWtXLt8ESx84zd3kMC6iK5jVeS2qt+g7ftS7ye4fi06X5rtRQ=="
},
"balanced-match": {
"version": "1.0.0",
@@ -101,15 +104,14 @@
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.2.tgz",
"integrity": "sha1-pDAdOJtqQ/m2f/PKEaP2Y342Dp4=",
- "optional": true,
"requires": {
"tweetnacl": "^0.14.3"
}
},
"bluebird": {
- "version": "3.5.1",
- "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.5.1.tgz",
- "integrity": "sha512-MKiLiV+I1AA596t9w1sQJ8jkiSr5+ZKi0WKrYGUn6d1Fx+Ij4tIj+m2WMQSGczs5jZVxV339chE8iwk6F64wjA=="
+ "version": "3.5.3",
+ "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.5.3.tgz",
+ "integrity": "sha512-/qKPUQlaW1OyR51WeCPBvRnAlnZFUJkCSG5HzGnuIqhgyJtF+T94lFnn33eiazjRm2LAHVy2guNnaq48X9SJuw=="
},
"brace-expansion": {
"version": "1.1.11",
@@ -128,9 +130,9 @@
"dev": true
},
"buffer-from": {
- "version": "1.1.0",
- "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.0.tgz",
- "integrity": "sha512-c5mRlguI/Pe2dSZmpER62rSCu0ryKmWddzRYsuXc50U2/g8jMOulc31VZMa4mYx31U5xsmSOpDCgH88Vl9cDGQ==",
+ "version": "1.1.1",
+ "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.1.tgz",
+ "integrity": "sha512-MQcXEUbCKtEo7bhqEs6560Hyd4XaovZlO/k9V3hjVUF/zwW7KBVdSK4gIt/bzwS9MbR5qob+F5jusZsb0YQK2A==",
"dev": true
},
"caseless": {
@@ -138,22 +140,17 @@
"resolved": "https://registry.npmjs.org/caseless/-/caseless-0.12.0.tgz",
"integrity": "sha1-G2gcIf+EAzyCZUMJBolCDRhxUdw="
},
- "co": {
- "version": "4.6.0",
- "resolved": "https://registry.npmjs.org/co/-/co-4.6.0.tgz",
- "integrity": "sha1-bqa989hTrlTMuOR7+gvz+QMfsYQ="
- },
"combined-stream": {
- "version": "1.0.6",
- "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.6.tgz",
- "integrity": "sha1-cj599ugBrFYTETp+RFqbactjKBg=",
+ "version": "1.0.7",
+ "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.7.tgz",
+ "integrity": "sha512-brWl9y6vOB1xYPZcpZde3N9zDByXTosAeMDo4p1wzo6UMOX4vumB+TP1RZ76sfE6Md68Q0NJSrE/gbezd4Ul+w==",
"requires": {
"delayed-stream": "~1.0.0"
}
},
"commander": {
"version": "2.15.1",
- "resolved": "https://registry.npmjs.org/commander/-/commander-2.15.1.tgz",
+ "resolved": "http://registry.npmjs.org/commander/-/commander-2.15.1.tgz",
"integrity": "sha512-VlfT9F3V0v+jr4yxPc5gg9s62/fIVWsd2Bk2iD435um1NlGMYdVCq+MjcXnhYq2icNOizHr1kK+5TI6H0Hy0ag==",
"dev": true
},
@@ -187,11 +184,11 @@
}
},
"debug": {
- "version": "3.1.0",
- "resolved": "https://registry.npmjs.org/debug/-/debug-3.1.0.tgz",
- "integrity": "sha512-OX8XqP7/1a9cqkxYw2yXss15f26NKWBpDXQd0/uK/KPqdQhxbPa994hnzjcE2VqQpDslf55723cKPUOGSmMY3g==",
+ "version": "3.2.6",
+ "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.6.tgz",
+ "integrity": "sha512-mel+jf7nrtEl5Pn1Qx46zARXKDpBbvzezse7p7LqINmdoIk8PYP5SySaxEmYv6TZ0JyEKA1hsCId6DIhgITtWQ==",
"requires": {
- "ms": "2.0.0"
+ "ms": "^2.1.1"
}
},
"delayed-stream": {
@@ -206,12 +203,12 @@
"dev": true
},
"ecc-jsbn": {
- "version": "0.1.1",
- "resolved": "https://registry.npmjs.org/ecc-jsbn/-/ecc-jsbn-0.1.1.tgz",
- "integrity": "sha1-D8c6ntXw1Tw4GTOYUj735UN3dQU=",
- "optional": true,
+ "version": "0.1.2",
+ "resolved": "https://registry.npmjs.org/ecc-jsbn/-/ecc-jsbn-0.1.2.tgz",
+ "integrity": "sha1-OoOpBOVDUyh4dMVkt1SThoSamMk=",
"requires": {
- "jsbn": "~0.1.0"
+ "jsbn": "~0.1.0",
+ "safer-buffer": "^2.1.0"
}
},
"escape-string-regexp": {
@@ -231,9 +228,9 @@
"integrity": "sha1-lpGEQOMEGnpBT4xS48V06zw+HgU="
},
"fast-deep-equal": {
- "version": "1.1.0",
- "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-1.1.0.tgz",
- "integrity": "sha1-wFNHeBfIa1HaqFPIHgWbcz0CNhQ="
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-2.0.1.tgz",
+ "integrity": "sha1-ewUhjd+WZ79/Nwv3/bLLFf3Qqkk="
},
"fast-json-stable-stringify": {
"version": "2.0.0",
@@ -246,12 +243,12 @@
"integrity": "sha1-+8cfDEGt6zf5bFd60e1C2P2sypE="
},
"form-data": {
- "version": "2.3.2",
- "resolved": "https://registry.npmjs.org/form-data/-/form-data-2.3.2.tgz",
- "integrity": "sha1-SXBJi+YEwgwAXU9cI67NIda0kJk=",
+ "version": "2.3.3",
+ "resolved": "https://registry.npmjs.org/form-data/-/form-data-2.3.3.tgz",
+ "integrity": "sha512-1lLKB2Mu3aGP1Q/2eCOx0fNbRMe7XdwktwOruhfqqd0rIJWwN4Dh+E3hrPSlDCXnSR7UtZ1N38rVXm+6+MEhJQ==",
"requires": {
"asynckit": "^0.4.0",
- "combined-stream": "1.0.6",
+ "combined-stream": "^1.0.6",
"mime-types": "^2.1.12"
}
},
@@ -300,11 +297,11 @@
"integrity": "sha1-qUwiJOvKwEeCoNkDVSHyRzW37JI="
},
"har-validator": {
- "version": "5.0.3",
- "resolved": "https://registry.npmjs.org/har-validator/-/har-validator-5.0.3.tgz",
- "integrity": "sha1-ukAsJmGU8VlW7xXg/PJCmT9qff0=",
+ "version": "5.1.3",
+ "resolved": "https://registry.npmjs.org/har-validator/-/har-validator-5.1.3.tgz",
+ "integrity": "sha512-sNvOCzEQNr/qrvJgc3UG/kD4QtlHycrzwS+6mfTrrSq97BvaYcPZZI1ZSqGSPR73Cxn4LKTD4PttRwfU7jWq5g==",
"requires": {
- "ajv": "^5.1.0",
+ "ajv": "^6.5.5",
"har-schema": "^2.0.0"
}
},
@@ -363,8 +360,7 @@
"jsbn": {
"version": "0.1.1",
"resolved": "https://registry.npmjs.org/jsbn/-/jsbn-0.1.1.tgz",
- "integrity": "sha1-peZUwuWi3rXyAdls77yoDA7y9RM=",
- "optional": true
+ "integrity": "sha1-peZUwuWi3rXyAdls77yoDA7y9RM="
},
"json-schema": {
"version": "0.2.3",
@@ -372,9 +368,9 @@
"integrity": "sha1-tIDIkuWaLwWVTOcnvT8qTogvnhM="
},
"json-schema-traverse": {
- "version": "0.3.1",
- "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.3.1.tgz",
- "integrity": "sha1-NJptRMU6Ud6JtAgFxdXlm0F9M0A="
+ "version": "0.4.1",
+ "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz",
+ "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg=="
},
"json-stringify-safe": {
"version": "5.0.1",
@@ -393,9 +389,9 @@
}
},
"make-error": {
- "version": "1.3.4",
- "resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.4.tgz",
- "integrity": "sha512-0Dab5btKVPhibSalc9QGXb559ED7G7iLjFXBaj9Wq8O3vorueR5K5jaE3hkG6ZQINyhA/JgG6Qk4qdFQjsYV6g==",
+ "version": "1.3.5",
+ "resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.5.tgz",
+ "integrity": "sha512-c3sIjNUow0+8swNwVpqoH4YCShKNFkMaw6oH1mNS2haDZQqkeZFlHS3dhoeEbKKmJB4vXpJucU6oH75aDYeE9g==",
"dev": true
},
"methods": {
@@ -409,16 +405,16 @@
"integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg=="
},
"mime-db": {
- "version": "1.35.0",
- "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.35.0.tgz",
- "integrity": "sha512-JWT/IcCTsB0Io3AhWUMjRqucrHSPsSf2xKLaRldJVULioggvkJvggZ3VXNNSRkCddE6D+BUI4HEIZIA2OjwIvg=="
+ "version": "1.37.0",
+ "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.37.0.tgz",
+ "integrity": "sha512-R3C4db6bgQhlIhPU48fUtdVmKnflq+hRdad7IyKhtFj06VPNVdk2RhiYL3UjQIlso8L+YxAtFkobT0VK+S/ybg=="
},
"mime-types": {
- "version": "2.1.19",
- "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.19.tgz",
- "integrity": "sha512-P1tKYHVSZ6uFo26mtnve4HQFE3koh1UWVkp8YUC+ESBHe945xWSoXuHHiGarDqcEZ+whpCDnlNw5LON0kLo+sw==",
+ "version": "2.1.21",
+ "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.21.tgz",
+ "integrity": "sha512-3iL6DbwpyLzjR3xHSFNFeb9Nz/M8WDkX33t1GFQnFOllWk8pOrh/LSrB5OXlnlW5P9LH73X6loW/eogc+F5lJg==",
"requires": {
- "mime-db": "~1.35.0"
+ "mime-db": "~1.37.0"
}
},
"minimatch": {
@@ -432,13 +428,13 @@
},
"minimist": {
"version": "0.0.8",
- "resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz",
+ "resolved": "http://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz",
"integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=",
"dev": true
},
"mkdirp": {
"version": "0.5.1",
- "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz",
+ "resolved": "http://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz",
"integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=",
"dev": true,
"requires": {
@@ -462,17 +458,34 @@
"minimatch": "3.0.4",
"mkdirp": "0.5.1",
"supports-color": "5.4.0"
+ },
+ "dependencies": {
+ "debug": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmjs.org/debug/-/debug-3.1.0.tgz",
+ "integrity": "sha512-OX8XqP7/1a9cqkxYw2yXss15f26NKWBpDXQd0/uK/KPqdQhxbPa994hnzjcE2VqQpDslf55723cKPUOGSmMY3g==",
+ "dev": true,
+ "requires": {
+ "ms": "2.0.0"
+ }
+ },
+ "ms": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz",
+ "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=",
+ "dev": true
+ }
}
},
"ms": {
- "version": "2.0.0",
- "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz",
- "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g="
+ "version": "2.1.1",
+ "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.1.tgz",
+ "integrity": "sha512-tgp+dl5cGk28utYktBsrFqA7HKgrhgPsg6Z/EfhWI4gl1Hwq8B/GmY/0oXZ6nF8hDVesS/FpnYaD/kOWhYQvyg=="
},
"oauth-sign": {
- "version": "0.8.2",
- "resolved": "https://registry.npmjs.org/oauth-sign/-/oauth-sign-0.8.2.tgz",
- "integrity": "sha1-Rqarfwrq2N6unsBWV4C31O/rnUM="
+ "version": "0.9.0",
+ "resolved": "https://registry.npmjs.org/oauth-sign/-/oauth-sign-0.9.0.tgz",
+ "integrity": "sha512-fexhUFFPTGV8ybAtSIGbV6gOkSv8UtRbDBnAyLQw4QPKkgNlsH2ByPGtMUqdWkos6YCRmAqViwgZrJc/mRDzZQ=="
},
"once": {
"version": "1.4.0",
@@ -485,7 +498,7 @@
},
"path-is-absolute": {
"version": "1.0.1",
- "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz",
+ "resolved": "http://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz",
"integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=",
"dev": true
},
@@ -499,10 +512,15 @@
"resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.0.tgz",
"integrity": "sha512-MtEC1TqN0EU5nephaJ4rAtThHtC86dNN9qCuEhtshvpVBkAW5ZO7BASN9REnF9eoXGcRub+pFuKEpOHE+HbEMw=="
},
+ "psl": {
+ "version": "1.1.29",
+ "resolved": "https://registry.npmjs.org/psl/-/psl-1.1.29.tgz",
+ "integrity": "sha512-AeUmQ0oLN02flVHXWh9sSJF7mcdFq0ppid/JkErufc3hGIV/AMa8Fo9VgDo/cT2jFdOWoFvHp90qqBH54W+gjQ=="
+ },
"punycode": {
- "version": "1.4.1",
- "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.4.1.tgz",
- "integrity": "sha1-wNWmOycYgArY4esPpSachN1BhF4="
+ "version": "2.1.1",
+ "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz",
+ "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A=="
},
"qs": {
"version": "6.5.2",
@@ -511,7 +529,7 @@
},
"readable-stream": {
"version": "2.3.6",
- "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.6.tgz",
+ "resolved": "http://registry.npmjs.org/readable-stream/-/readable-stream-2.3.6.tgz",
"integrity": "sha512-tQtKA9WIAhBF3+VLAseyMqZeBjW0AHJoxOtYqSUZNJxauErmLbVm2FW1y+J/YA9dUrAC39ITejlZWhVIwawkKw==",
"requires": {
"core-util-is": "~1.0.0",
@@ -524,30 +542,30 @@
}
},
"request": {
- "version": "2.87.0",
- "resolved": "https://registry.npmjs.org/request/-/request-2.87.0.tgz",
- "integrity": "sha512-fcogkm7Az5bsS6Sl0sibkbhcKsnyon/jV1kF3ajGmF0c8HrttdKTPRT9hieOaQHA5HEq6r8OyWOo/o781C1tNw==",
+ "version": "2.88.0",
+ "resolved": "https://registry.npmjs.org/request/-/request-2.88.0.tgz",
+ "integrity": "sha512-NAqBSrijGLZdM0WZNsInLJpkJokL72XYjUpnB0iwsRgxh7dB6COrHnTBNwN0E+lHDAJzu7kLAkDeY08z2/A0hg==",
"requires": {
"aws-sign2": "~0.7.0",
- "aws4": "^1.6.0",
+ "aws4": "^1.8.0",
"caseless": "~0.12.0",
- "combined-stream": "~1.0.5",
- "extend": "~3.0.1",
+ "combined-stream": "~1.0.6",
+ "extend": "~3.0.2",
"forever-agent": "~0.6.1",
- "form-data": "~2.3.1",
- "har-validator": "~5.0.3",
+ "form-data": "~2.3.2",
+ "har-validator": "~5.1.0",
"http-signature": "~1.2.0",
"is-typedarray": "~1.0.0",
"isstream": "~0.1.2",
"json-stringify-safe": "~5.0.1",
- "mime-types": "~2.1.17",
- "oauth-sign": "~0.8.2",
+ "mime-types": "~2.1.19",
+ "oauth-sign": "~0.9.0",
"performance-now": "^2.1.0",
- "qs": "~6.5.1",
- "safe-buffer": "^5.1.1",
- "tough-cookie": "~2.3.3",
+ "qs": "~6.5.2",
+ "safe-buffer": "^5.1.2",
+ "tough-cookie": "~2.4.3",
"tunnel-agent": "^0.6.0",
- "uuid": "^3.1.0"
+ "uuid": "^3.3.2"
}
},
"request-debug": {
@@ -575,9 +593,9 @@
"dev": true
},
"source-map-support": {
- "version": "0.5.6",
- "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.6.tgz",
- "integrity": "sha512-N4KXEz7jcKqPf2b2vZF11lQIz9W5ZMuUcIOGj243lduidkf2fjkVKJS9vNxVWn3u/uxX38AcE8U9nnH9FPcq+g==",
+ "version": "0.5.9",
+ "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.9.tgz",
+ "integrity": "sha512-gR6Rw4MvUlYy83vP0vxoVNzM6t8MUXqNuRsuBmBHQDu1Fh6X015FrLdgoDKcNdkwGubozq0P4N0Q37UyFVr1EA==",
"dev": true,
"requires": {
"buffer-from": "^1.0.0",
@@ -585,9 +603,9 @@
}
},
"sshpk": {
- "version": "1.14.2",
- "resolved": "https://registry.npmjs.org/sshpk/-/sshpk-1.14.2.tgz",
- "integrity": "sha1-xvxhZIo9nE52T9P8306hBeSSupg=",
+ "version": "1.15.2",
+ "resolved": "https://registry.npmjs.org/sshpk/-/sshpk-1.15.2.tgz",
+ "integrity": "sha512-Ra/OXQtuh0/enyl4ETZAfTaeksa6BXks5ZcjpSUNrjBr0DvrJKX+1fsKDPpT9TBXgHAFsa4510aNVgI8g/+SzA==",
"requires": {
"asn1": "~0.2.3",
"assert-plus": "^1.0.0",
@@ -602,7 +620,7 @@
},
"string_decoder": {
"version": "1.1.1",
- "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz",
+ "resolved": "http://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz",
"integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==",
"requires": {
"safe-buffer": "~5.1.0"
@@ -610,7 +628,7 @@
},
"stringify-clone": {
"version": "1.1.1",
- "resolved": "https://registry.npmjs.org/stringify-clone/-/stringify-clone-1.1.1.tgz",
+ "resolved": "http://registry.npmjs.org/stringify-clone/-/stringify-clone-1.1.1.tgz",
"integrity": "sha1-MJojX7Ts/M19OI2+GLqQT6yvQzs="
},
"superagent": {
@@ -640,17 +658,25 @@
}
},
"tough-cookie": {
- "version": "2.3.4",
- "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-2.3.4.tgz",
- "integrity": "sha512-TZ6TTfI5NtZnuyy/Kecv+CnoROnyXn2DN97LontgQpCwsX2XyLYCC0ENhYkehSOwAp8rTQKc/NUIF7BkQ5rKLA==",
+ "version": "2.4.3",
+ "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-2.4.3.tgz",
+ "integrity": "sha512-Q5srk/4vDM54WJsJio3XNn6K2sCG+CQ8G5Wz6bZhRZoAe/+TxjWB/GlFAnYEbkYVlON9FMk/fE3h2RLpPXo4lQ==",
"requires": {
+ "psl": "^1.1.24",
"punycode": "^1.4.1"
+ },
+ "dependencies": {
+ "punycode": {
+ "version": "1.4.1",
+ "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.4.1.tgz",
+ "integrity": "sha1-wNWmOycYgArY4esPpSachN1BhF4="
+ }
}
},
"ts-node": {
- "version": "7.0.0",
- "resolved": "https://registry.npmjs.org/ts-node/-/ts-node-7.0.0.tgz",
- "integrity": "sha512-klJsfswHP0FuOLsvBZ/zzCfUvakOSSxds78mVeK7I+qP76YWtxf16hEZsp3U+b0kIo82R5UatGFeblYMqabb2Q==",
+ "version": "7.0.1",
+ "resolved": "https://registry.npmjs.org/ts-node/-/ts-node-7.0.1.tgz",
+ "integrity": "sha512-BVwVbPJRspzNh2yfslyT1PSbl5uIk03EZlb493RKHN4qej/D06n1cEhjlOJG69oFsE7OT8XjpTUcYf6pKTLMhw==",
"dev": true,
"requires": {
"arrify": "^1.0.0",
@@ -665,7 +691,7 @@
"dependencies": {
"minimist": {
"version": "1.2.0",
- "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz",
+ "resolved": "http://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz",
"integrity": "sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ=",
"dev": true
}
@@ -682,8 +708,7 @@
"tweetnacl": {
"version": "0.14.5",
"resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-0.14.5.tgz",
- "integrity": "sha1-WuaBd/GS1EViadEIr6k/+HQ/T2Q=",
- "optional": true
+ "integrity": "sha1-WuaBd/GS1EViadEIr6k/+HQ/T2Q="
},
"typescript": {
"version": "2.9.2",
@@ -691,6 +716,14 @@
"integrity": "sha512-Gr4p6nFNaoufRIY4NMdpQRNmgxVIGMs4Fcu/ujdYk3nAZqk7supzBE9idmvfZIlH/Cuj//dvi+019qEue9lV0w==",
"dev": true
},
+ "uri-js": {
+ "version": "4.2.2",
+ "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.2.2.tgz",
+ "integrity": "sha512-KY9Frmirql91X2Qgjry0Wd4Y+YTdrdZheS8TFwvkbLWf/G5KNJDCh6pKL5OZctEW4+0Baa5idK2ZQuELRwPznQ==",
+ "requires": {
+ "punycode": "^2.1.0"
+ }
+ },
"util-deprecate": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz",
diff --git a/package.json b/package.json
index 3fa4d7ca..caa439b3 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "asposepdfcloud",
- "version": "18.10.0",
+ "version": "18.11.0",
"description": "Aspose.PDF Cloud SDK",
"homepage": "https://products.aspose.cloud/pdf/cloud",
"author": {
diff --git a/src/api/api.ts b/src/api/api.ts
index e8c14765..f3d02687 100644
--- a/src/api/api.ts
+++ b/src/api/api.ts
@@ -25,7 +25,9 @@ import { AnnotationType } from "../models/annotationType";
import { AntialiasingProcessingType } from "../models/antialiasingProcessingType";
import { AppendDocument } from "../models/appendDocument";
import { AsposeResponse } from "../models/asposeResponse";
+import { CapStyle } from "../models/capStyle";
import { CaptionPosition } from "../models/captionPosition";
+import { CaretSymbol } from "../models/caretSymbol";
import { Color } from "../models/color";
import { ColorDepth } from "../models/colorDepth";
import { CompressionType } from "../models/compressionType";
@@ -92,6 +94,9 @@ import { Attachment } from "../models/attachment";
import { AttachmentResponse } from "../models/attachmentResponse";
import { Attachments } from "../models/attachments";
import { AttachmentsResponse } from "../models/attachmentsResponse";
+import { CaretAnnotationResponse } from "../models/caretAnnotationResponse";
+import { CaretAnnotations } from "../models/caretAnnotations";
+import { CaretAnnotationsResponse } from "../models/caretAnnotationsResponse";
import { CircleAnnotationResponse } from "../models/circleAnnotationResponse";
import { CircleAnnotations } from "../models/circleAnnotations";
import { CircleAnnotationsResponse } from "../models/circleAnnotationsResponse";
@@ -111,10 +116,16 @@ import { FilesResponse } from "../models/filesResponse";
import { FreeTextAnnotationResponse } from "../models/freeTextAnnotationResponse";
import { FreeTextAnnotations } from "../models/freeTextAnnotations";
import { FreeTextAnnotationsResponse } from "../models/freeTextAnnotationsResponse";
+import { HighlightAnnotationResponse } from "../models/highlightAnnotationResponse";
+import { HighlightAnnotations } from "../models/highlightAnnotations";
+import { HighlightAnnotationsResponse } from "../models/highlightAnnotationsResponse";
import { Image } from "../models/image";
import { ImageResponse } from "../models/imageResponse";
import { Images } from "../models/images";
import { ImagesResponse } from "../models/imagesResponse";
+import { InkAnnotationResponse } from "../models/inkAnnotationResponse";
+import { InkAnnotations } from "../models/inkAnnotations";
+import { InkAnnotationsResponse } from "../models/inkAnnotationsResponse";
import { LineAnnotationResponse } from "../models/lineAnnotationResponse";
import { LineAnnotations } from "../models/lineAnnotations";
import { LineAnnotationsResponse } from "../models/lineAnnotationsResponse";
@@ -130,25 +141,45 @@ import { PolyLineAnnotationsResponse } from "../models/polyLineAnnotationsRespon
import { PolygonAnnotationResponse } from "../models/polygonAnnotationResponse";
import { PolygonAnnotations } from "../models/polygonAnnotations";
import { PolygonAnnotationsResponse } from "../models/polygonAnnotationsResponse";
+import { PopupAnnotationResponse } from "../models/popupAnnotationResponse";
+import { PopupAnnotations } from "../models/popupAnnotations";
+import { PopupAnnotationsResponse } from "../models/popupAnnotationsResponse";
import { SignatureVerifyResponse } from "../models/signatureVerifyResponse";
import { SplitResultDocument } from "../models/splitResultDocument";
import { SplitResultResponse } from "../models/splitResultResponse";
import { SquareAnnotationResponse } from "../models/squareAnnotationResponse";
import { SquareAnnotations } from "../models/squareAnnotations";
import { SquareAnnotationsResponse } from "../models/squareAnnotationsResponse";
+import { SquigglyAnnotationResponse } from "../models/squigglyAnnotationResponse";
+import { SquigglyAnnotations } from "../models/squigglyAnnotations";
+import { SquigglyAnnotationsResponse } from "../models/squigglyAnnotationsResponse";
+import { StrikeOutAnnotationResponse } from "../models/strikeOutAnnotationResponse";
+import { StrikeOutAnnotations } from "../models/strikeOutAnnotations";
+import { StrikeOutAnnotationsResponse } from "../models/strikeOutAnnotationsResponse";
import { TextAnnotationResponse } from "../models/textAnnotationResponse";
import { TextAnnotations } from "../models/textAnnotations";
import { TextAnnotationsResponse } from "../models/textAnnotationsResponse";
import { TextRectsResponse } from "../models/textRectsResponse";
import { TextReplaceResponse } from "../models/textReplaceResponse";
+import { UnderlineAnnotationResponse } from "../models/underlineAnnotationResponse";
+import { UnderlineAnnotations } from "../models/underlineAnnotations";
+import { UnderlineAnnotationsResponse } from "../models/underlineAnnotationsResponse";
import { WordCountResponse } from "../models/wordCountResponse";
import { AnnotationInfo } from "../models/annotationInfo";
import { MarkupAnnotation } from "../models/markupAnnotation";
+import { PopupAnnotation } from "../models/popupAnnotation";
+import { CaretAnnotation } from "../models/caretAnnotation";
import { CommonFigureAnnotation } from "../models/commonFigureAnnotation";
import { FreeTextAnnotation } from "../models/freeTextAnnotation";
+import { HighlightAnnotation } from "../models/highlightAnnotation";
+import { InkAnnotation } from "../models/inkAnnotation";
import { LineAnnotation } from "../models/lineAnnotation";
import { PolyAnnotation } from "../models/polyAnnotation";
+import { PopupAnnotationWithParent } from "../models/popupAnnotationWithParent";
+import { SquigglyAnnotation } from "../models/squigglyAnnotation";
+import { StrikeOutAnnotation } from "../models/strikeOutAnnotation";
import { TextAnnotation } from "../models/textAnnotation";
+import { UnderlineAnnotation } from "../models/underlineAnnotation";
import { CircleAnnotation } from "../models/circleAnnotation";
import { PolyLineAnnotation } from "../models/polyLineAnnotation";
import { PolygonAnnotation } from "../models/polygonAnnotation";
@@ -211,7 +242,7 @@ export class PdfApi {
* @param storage The document storage.
* @param folder The document folder.
*/
- public async deleteAnnotation (name: string, annotationId: string, storage?: string, folder?: string) : Promise<{ response: http.ClientResponse; body: AsposeResponse; }> {
+ public async deleteAnnotation (name: string, annotationId: string, storage?: string, folder?: string) : Promise<{ response: http.IncomingMessage; body: AsposeResponse; }> {
const localVarPath = this.basePath + '/pdf/{name}/annotations/{annotationId}'
.replace('{' + 'name' + '}', encodeURIComponent(String(name)))
.replace('{' + 'annotationId' + '}', encodeURIComponent(String(annotationId)));
@@ -269,7 +300,7 @@ export class PdfApi {
* @param storage The document storage.
* @param folder The document folder.
*/
- public async deleteDocumentAnnotations (name: string, storage?: string, folder?: string) : Promise<{ response: http.ClientResponse; body: AsposeResponse; }> {
+ public async deleteDocumentAnnotations (name: string, storage?: string, folder?: string) : Promise<{ response: http.IncomingMessage; body: AsposeResponse; }> {
const localVarPath = this.basePath + '/pdf/{name}/annotations'
.replace('{' + 'name' + '}', encodeURIComponent(String(name)));
let localVarQueryParameters: any = {};
@@ -321,7 +352,7 @@ export class PdfApi {
* @param storage The document storage.
* @param folder The document folder.
*/
- public async deleteDocumentLinkAnnotations (name: string, storage?: string, folder?: string) : Promise<{ response: http.ClientResponse; body: AsposeResponse; }> {
+ public async deleteDocumentLinkAnnotations (name: string, storage?: string, folder?: string) : Promise<{ response: http.IncomingMessage; body: AsposeResponse; }> {
const localVarPath = this.basePath + '/pdf/{name}/links'
.replace('{' + 'name' + '}', encodeURIComponent(String(name)));
let localVarQueryParameters: any = {};
@@ -374,7 +405,7 @@ export class PdfApi {
* @param storage The document storage.
* @param folder The document folder.
*/
- public async deleteField (name: string, fieldName: string, storage?: string, folder?: string) : Promise<{ response: http.ClientResponse; body: AsposeResponse; }> {
+ public async deleteField (name: string, fieldName: string, storage?: string, folder?: string) : Promise<{ response: http.IncomingMessage; body: AsposeResponse; }> {
const localVarPath = this.basePath + '/pdf/{name}/fields/{fieldName}'
.replace('{' + 'name' + '}', encodeURIComponent(String(name)))
.replace('{' + 'fieldName' + '}', encodeURIComponent(String(fieldName)));
@@ -433,7 +464,7 @@ export class PdfApi {
* @param storage The document storage.
* @param folder The document folder.
*/
- public async deleteImage (name: string, imageId: string, storage?: string, folder?: string) : Promise<{ response: http.ClientResponse; body: AsposeResponse; }> {
+ public async deleteImage (name: string, imageId: string, storage?: string, folder?: string) : Promise<{ response: http.IncomingMessage; body: AsposeResponse; }> {
const localVarPath = this.basePath + '/pdf/{name}/images/{imageId}'
.replace('{' + 'name' + '}', encodeURIComponent(String(name)))
.replace('{' + 'imageId' + '}', encodeURIComponent(String(imageId)));
@@ -492,7 +523,7 @@ export class PdfApi {
* @param storage The document storage.
* @param folder The document folder.
*/
- public async deleteLinkAnnotation (name: string, linkId: string, storage?: string, folder?: string) : Promise<{ response: http.ClientResponse; body: AsposeResponse; }> {
+ public async deleteLinkAnnotation (name: string, linkId: string, storage?: string, folder?: string) : Promise<{ response: http.IncomingMessage; body: AsposeResponse; }> {
const localVarPath = this.basePath + '/pdf/{name}/links/{linkId}'
.replace('{' + 'name' + '}', encodeURIComponent(String(name)))
.replace('{' + 'linkId' + '}', encodeURIComponent(String(linkId)));
@@ -551,7 +582,7 @@ export class PdfApi {
* @param storage The document storage.
* @param folder The document folder.
*/
- public async deletePage (name: string, pageNumber: number, storage?: string, folder?: string) : Promise<{ response: http.ClientResponse; body: AsposeResponse; }> {
+ public async deletePage (name: string, pageNumber: number, storage?: string, folder?: string) : Promise<{ response: http.IncomingMessage; body: AsposeResponse; }> {
const localVarPath = this.basePath + '/pdf/{name}/pages/{pageNumber}'
.replace('{' + 'name' + '}', encodeURIComponent(String(name)))
.replace('{' + 'pageNumber' + '}', encodeURIComponent(String(pageNumber)));
@@ -610,7 +641,7 @@ export class PdfApi {
* @param storage The document storage.
* @param folder The document folder.
*/
- public async deletePageAnnotations (name: string, pageNumber: number, storage?: string, folder?: string) : Promise<{ response: http.ClientResponse; body: AsposeResponse; }> {
+ public async deletePageAnnotations (name: string, pageNumber: number, storage?: string, folder?: string) : Promise<{ response: http.IncomingMessage; body: AsposeResponse; }> {
const localVarPath = this.basePath + '/pdf/{name}/pages/{pageNumber}/annotations'
.replace('{' + 'name' + '}', encodeURIComponent(String(name)))
.replace('{' + 'pageNumber' + '}', encodeURIComponent(String(pageNumber)));
@@ -669,7 +700,7 @@ export class PdfApi {
* @param storage The document storage.
* @param folder The document folder.
*/
- public async deletePageLinkAnnotations (name: string, pageNumber: number, storage?: string, folder?: string) : Promise<{ response: http.ClientResponse; body: AsposeResponse; }> {
+ public async deletePageLinkAnnotations (name: string, pageNumber: number, storage?: string, folder?: string) : Promise<{ response: http.IncomingMessage; body: AsposeResponse; }> {
const localVarPath = this.basePath + '/pdf/{name}/pages/{pageNumber}/links'
.replace('{' + 'name' + '}', encodeURIComponent(String(name)))
.replace('{' + 'pageNumber' + '}', encodeURIComponent(String(pageNumber)));
@@ -727,7 +758,7 @@ export class PdfApi {
* @param storage
* @param folder
*/
- public async deleteProperties (name: string, storage?: string, folder?: string) : Promise<{ response: http.ClientResponse; body: AsposeResponse; }> {
+ public async deleteProperties (name: string, storage?: string, folder?: string) : Promise<{ response: http.IncomingMessage; body: AsposeResponse; }> {
const localVarPath = this.basePath + '/pdf/{name}/documentproperties'
.replace('{' + 'name' + '}', encodeURIComponent(String(name)));
let localVarQueryParameters: any = {};
@@ -780,7 +811,7 @@ export class PdfApi {
* @param storage
* @param folder
*/
- public async deleteProperty (name: string, propertyName: string, storage?: string, folder?: string) : Promise<{ response: http.ClientResponse; body: AsposeResponse; }> {
+ public async deleteProperty (name: string, propertyName: string, storage?: string, folder?: string) : Promise<{ response: http.IncomingMessage; body: AsposeResponse; }> {
const localVarPath = this.basePath + '/pdf/{name}/documentproperties/{propertyName}'
.replace('{' + 'name' + '}', encodeURIComponent(String(name)))
.replace('{' + 'propertyName' + '}', encodeURIComponent(String(propertyName)));
@@ -831,6 +862,65 @@ export class PdfApi {
}
+ /**
+ *
+ * @summary Read document page caret annotation by ID.
+ * @param name The document name.
+ * @param annotationId The annotation ID.
+ * @param storage The document storage.
+ * @param folder The document folder.
+ */
+ public async getCaretAnnotation (name: string, annotationId: string, storage?: string, folder?: string) : Promise<{ response: http.IncomingMessage; body: CaretAnnotationResponse; }> {
+ const localVarPath = this.basePath + '/pdf/{name}/annotations/caret/{annotationId}'
+ .replace('{' + 'name' + '}', encodeURIComponent(String(name)))
+ .replace('{' + 'annotationId' + '}', encodeURIComponent(String(annotationId)));
+ let localVarQueryParameters: any = {};
+ let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders);
+ let localVarFormParams: any = {};
+
+ // verify required parameter 'name' is not null or undefined
+ if (name === null || name === undefined) {
+ throw new Error('Required parameter name was null or undefined when calling getCaretAnnotation.');
+ }
+
+ // verify required parameter 'annotationId' is not null or undefined
+ if (annotationId === null || annotationId === undefined) {
+ throw new Error('Required parameter annotationId was null or undefined when calling getCaretAnnotation.');
+ }
+
+ if (storage !== undefined && null !== storage) {
+ localVarQueryParameters['storage'] = ObjectSerializer.serialize(storage, "string");
+ }
+
+ if (folder !== undefined && null !== folder) {
+ localVarQueryParameters['folder'] = ObjectSerializer.serialize(folder, "string");
+ }
+
+
+ let localVarUseFormData = false;
+ let fileData = null;
+ let localVarRequestOptions: localVarRequest.Options = {
+ method: 'GET',
+ qs: localVarQueryParameters,
+ headers: localVarHeaderParams,
+ uri: localVarPath,
+ useQuerystring: this._useQuerystring,
+ json: true,
+ };
+
+ if (Object.keys(localVarFormParams).length) {
+ if (localVarUseFormData) {
+ (localVarRequestOptions).formData = localVarFormParams;
+ } else {
+ localVarRequestOptions.form = localVarFormParams;
+ }
+ }
+ const response = await invokeApiMethod(localVarRequestOptions, this.configuration, false, fileData);
+ const result = ObjectSerializer.deserialize(response.body, "CaretAnnotationResponse");
+ return Promise.resolve({body: result, response});
+ }
+
+
/**
*
* @summary Read document page circle annotation by ID.
@@ -839,7 +929,7 @@ export class PdfApi {
* @param storage The document storage.
* @param folder The document folder.
*/
- public async getCircleAnnotation (name: string, annotationId: string, storage?: string, folder?: string) : Promise<{ response: http.ClientResponse; body: CircleAnnotationResponse; }> {
+ public async getCircleAnnotation (name: string, annotationId: string, storage?: string, folder?: string) : Promise<{ response: http.IncomingMessage; body: CircleAnnotationResponse; }> {
const localVarPath = this.basePath + '/pdf/{name}/annotations/circle/{annotationId}'
.replace('{' + 'name' + '}', encodeURIComponent(String(name)))
.replace('{' + 'annotationId' + '}', encodeURIComponent(String(annotationId)));
@@ -897,7 +987,7 @@ export class PdfApi {
* @param storage The document storage.
* @param folder The document folder.
*/
- public async getDocument (name: string, storage?: string, folder?: string) : Promise<{ response: http.ClientResponse; body: DocumentResponse; }> {
+ public async getDocument (name: string, storage?: string, folder?: string) : Promise<{ response: http.IncomingMessage; body: DocumentResponse; }> {
const localVarPath = this.basePath + '/pdf/{name}'
.replace('{' + 'name' + '}', encodeURIComponent(String(name)));
let localVarQueryParameters: any = {};
@@ -949,7 +1039,7 @@ export class PdfApi {
* @param storage The document storage.
* @param folder The document folder.
*/
- public async getDocumentAnnotations (name: string, storage?: string, folder?: string) : Promise<{ response: http.ClientResponse; body: AnnotationsInfoResponse; }> {
+ public async getDocumentAnnotations (name: string, storage?: string, folder?: string) : Promise<{ response: http.IncomingMessage; body: AnnotationsInfoResponse; }> {
const localVarPath = this.basePath + '/pdf/{name}/annotations'
.replace('{' + 'name' + '}', encodeURIComponent(String(name)));
let localVarQueryParameters: any = {};
@@ -1002,7 +1092,7 @@ export class PdfApi {
* @param storage The document storage.
* @param folder The document folder.
*/
- public async getDocumentAttachmentByIndex (name: string, attachmentIndex: number, storage?: string, folder?: string) : Promise<{ response: http.ClientResponse; body: AttachmentResponse; }> {
+ public async getDocumentAttachmentByIndex (name: string, attachmentIndex: number, storage?: string, folder?: string) : Promise<{ response: http.IncomingMessage; body: AttachmentResponse; }> {
const localVarPath = this.basePath + '/pdf/{name}/attachments/{attachmentIndex}'
.replace('{' + 'name' + '}', encodeURIComponent(String(name)))
.replace('{' + 'attachmentIndex' + '}', encodeURIComponent(String(attachmentIndex)));
@@ -1060,7 +1150,7 @@ export class PdfApi {
* @param storage The document storage.
* @param folder The document folder.
*/
- public async getDocumentAttachments (name: string, storage?: string, folder?: string) : Promise<{ response: http.ClientResponse; body: AttachmentsResponse; }> {
+ public async getDocumentAttachments (name: string, storage?: string, folder?: string) : Promise<{ response: http.IncomingMessage; body: AttachmentsResponse; }> {
const localVarPath = this.basePath + '/pdf/{name}/attachments'
.replace('{' + 'name' + '}', encodeURIComponent(String(name)));
let localVarQueryParameters: any = {};
@@ -1113,7 +1203,7 @@ export class PdfApi {
* @param storage The document storage.
* @param folder The document folder.
*/
- public async getDocumentBookmarks (name: string, bookmarkPath?: string, storage?: string, folder?: string) : Promise<{ response: http.ClientResponse; body: Buffer; }> {
+ public async getDocumentBookmarks (name: string, bookmarkPath?: string, storage?: string, folder?: string) : Promise<{ response: http.IncomingMessage; body: Buffer; }> {
const localVarPath = this.basePath + '/pdf/{name}/bookmarks'
.replace('{' + 'name' + '}', encodeURIComponent(String(name)));
let localVarQueryParameters: any = {};
@@ -1164,13 +1254,13 @@ export class PdfApi {
/**
*
- * @summary Read document circle annotations.
+ * @summary Read document caret annotations.
* @param name The document name.
* @param storage The document storage.
* @param folder The document folder.
*/
- public async getDocumentCircleAnnotations (name: string, storage?: string, folder?: string) : Promise<{ response: http.ClientResponse; body: CircleAnnotationsResponse; }> {
- const localVarPath = this.basePath + '/pdf/{name}/annotations/circle'
+ public async getDocumentCaretAnnotations (name: string, storage?: string, folder?: string) : Promise<{ response: http.IncomingMessage; body: CaretAnnotationsResponse; }> {
+ const localVarPath = this.basePath + '/pdf/{name}/annotations/caret'
.replace('{' + 'name' + '}', encodeURIComponent(String(name)));
let localVarQueryParameters: any = {};
let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders);
@@ -1178,7 +1268,7 @@ export class PdfApi {
// verify required parameter 'name' is not null or undefined
if (name === null || name === undefined) {
- throw new Error('Required parameter name was null or undefined when calling getDocumentCircleAnnotations.');
+ throw new Error('Required parameter name was null or undefined when calling getDocumentCaretAnnotations.');
}
if (storage !== undefined && null !== storage) {
@@ -1209,20 +1299,20 @@ export class PdfApi {
}
}
const response = await invokeApiMethod(localVarRequestOptions, this.configuration, false, fileData);
- const result = ObjectSerializer.deserialize(response.body, "CircleAnnotationsResponse");
+ const result = ObjectSerializer.deserialize(response.body, "CaretAnnotationsResponse");
return Promise.resolve({body: result, response});
}
/**
*
- * @summary Read document free text annotations.
+ * @summary Read document circle annotations.
* @param name The document name.
* @param storage The document storage.
* @param folder The document folder.
*/
- public async getDocumentFreeTextAnnotations (name: string, storage?: string, folder?: string) : Promise<{ response: http.ClientResponse; body: FreeTextAnnotationsResponse; }> {
- const localVarPath = this.basePath + '/pdf/{name}/annotations/freetext'
+ public async getDocumentCircleAnnotations (name: string, storage?: string, folder?: string) : Promise<{ response: http.IncomingMessage; body: CircleAnnotationsResponse; }> {
+ const localVarPath = this.basePath + '/pdf/{name}/annotations/circle'
.replace('{' + 'name' + '}', encodeURIComponent(String(name)));
let localVarQueryParameters: any = {};
let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders);
@@ -1230,7 +1320,7 @@ export class PdfApi {
// verify required parameter 'name' is not null or undefined
if (name === null || name === undefined) {
- throw new Error('Required parameter name was null or undefined when calling getDocumentFreeTextAnnotations.');
+ throw new Error('Required parameter name was null or undefined when calling getDocumentCircleAnnotations.');
}
if (storage !== undefined && null !== storage) {
@@ -1261,20 +1351,20 @@ export class PdfApi {
}
}
const response = await invokeApiMethod(localVarRequestOptions, this.configuration, false, fileData);
- const result = ObjectSerializer.deserialize(response.body, "FreeTextAnnotationsResponse");
+ const result = ObjectSerializer.deserialize(response.body, "CircleAnnotationsResponse");
return Promise.resolve({body: result, response});
}
/**
*
- * @summary Read document line annotations.
+ * @summary Read document free text annotations.
* @param name The document name.
* @param storage The document storage.
* @param folder The document folder.
*/
- public async getDocumentLineAnnotations (name: string, storage?: string, folder?: string) : Promise<{ response: http.ClientResponse; body: LineAnnotationsResponse; }> {
- const localVarPath = this.basePath + '/pdf/{name}/annotations/line'
+ public async getDocumentFreeTextAnnotations (name: string, storage?: string, folder?: string) : Promise<{ response: http.IncomingMessage; body: FreeTextAnnotationsResponse; }> {
+ const localVarPath = this.basePath + '/pdf/{name}/annotations/freetext'
.replace('{' + 'name' + '}', encodeURIComponent(String(name)));
let localVarQueryParameters: any = {};
let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders);
@@ -1282,7 +1372,7 @@ export class PdfApi {
// verify required parameter 'name' is not null or undefined
if (name === null || name === undefined) {
- throw new Error('Required parameter name was null or undefined when calling getDocumentLineAnnotations.');
+ throw new Error('Required parameter name was null or undefined when calling getDocumentFreeTextAnnotations.');
}
if (storage !== undefined && null !== storage) {
@@ -1313,20 +1403,20 @@ export class PdfApi {
}
}
const response = await invokeApiMethod(localVarRequestOptions, this.configuration, false, fileData);
- const result = ObjectSerializer.deserialize(response.body, "LineAnnotationsResponse");
+ const result = ObjectSerializer.deserialize(response.body, "FreeTextAnnotationsResponse");
return Promise.resolve({body: result, response});
}
/**
*
- * @summary Read document polyline annotations.
+ * @summary Read document highlight annotations.
* @param name The document name.
* @param storage The document storage.
* @param folder The document folder.
*/
- public async getDocumentPolyLineAnnotations (name: string, storage?: string, folder?: string) : Promise<{ response: http.ClientResponse; body: PolyLineAnnotationsResponse; }> {
- const localVarPath = this.basePath + '/pdf/{name}/annotations/polyline'
+ public async getDocumentHighlightAnnotations (name: string, storage?: string, folder?: string) : Promise<{ response: http.IncomingMessage; body: HighlightAnnotationsResponse; }> {
+ const localVarPath = this.basePath + '/pdf/{name}/annotations/highlight'
.replace('{' + 'name' + '}', encodeURIComponent(String(name)));
let localVarQueryParameters: any = {};
let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders);
@@ -1334,7 +1424,7 @@ export class PdfApi {
// verify required parameter 'name' is not null or undefined
if (name === null || name === undefined) {
- throw new Error('Required parameter name was null or undefined when calling getDocumentPolyLineAnnotations.');
+ throw new Error('Required parameter name was null or undefined when calling getDocumentHighlightAnnotations.');
}
if (storage !== undefined && null !== storage) {
@@ -1365,20 +1455,20 @@ export class PdfApi {
}
}
const response = await invokeApiMethod(localVarRequestOptions, this.configuration, false, fileData);
- const result = ObjectSerializer.deserialize(response.body, "PolyLineAnnotationsResponse");
+ const result = ObjectSerializer.deserialize(response.body, "HighlightAnnotationsResponse");
return Promise.resolve({body: result, response});
}
/**
*
- * @summary Read document polygon annotations.
+ * @summary Read document ink annotations.
* @param name The document name.
* @param storage The document storage.
* @param folder The document folder.
*/
- public async getDocumentPolygonAnnotations (name: string, storage?: string, folder?: string) : Promise<{ response: http.ClientResponse; body: PolygonAnnotationsResponse; }> {
- const localVarPath = this.basePath + '/pdf/{name}/annotations/polygon'
+ public async getDocumentInkAnnotations (name: string, storage?: string, folder?: string) : Promise<{ response: http.IncomingMessage; body: InkAnnotationsResponse; }> {
+ const localVarPath = this.basePath + '/pdf/{name}/annotations/ink'
.replace('{' + 'name' + '}', encodeURIComponent(String(name)));
let localVarQueryParameters: any = {};
let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders);
@@ -1386,7 +1476,7 @@ export class PdfApi {
// verify required parameter 'name' is not null or undefined
if (name === null || name === undefined) {
- throw new Error('Required parameter name was null or undefined when calling getDocumentPolygonAnnotations.');
+ throw new Error('Required parameter name was null or undefined when calling getDocumentInkAnnotations.');
}
if (storage !== undefined && null !== storage) {
@@ -1417,20 +1507,20 @@ export class PdfApi {
}
}
const response = await invokeApiMethod(localVarRequestOptions, this.configuration, false, fileData);
- const result = ObjectSerializer.deserialize(response.body, "PolygonAnnotationsResponse");
+ const result = ObjectSerializer.deserialize(response.body, "InkAnnotationsResponse");
return Promise.resolve({body: result, response});
}
/**
*
- * @summary Read document properties.
- * @param name
- * @param storage
- * @param folder
+ * @summary Read document line annotations.
+ * @param name The document name.
+ * @param storage The document storage.
+ * @param folder The document folder.
*/
- public async getDocumentProperties (name: string, storage?: string, folder?: string) : Promise<{ response: http.ClientResponse; body: DocumentPropertiesResponse; }> {
- const localVarPath = this.basePath + '/pdf/{name}/documentproperties'
+ public async getDocumentLineAnnotations (name: string, storage?: string, folder?: string) : Promise<{ response: http.IncomingMessage; body: LineAnnotationsResponse; }> {
+ const localVarPath = this.basePath + '/pdf/{name}/annotations/line'
.replace('{' + 'name' + '}', encodeURIComponent(String(name)));
let localVarQueryParameters: any = {};
let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders);
@@ -1438,7 +1528,7 @@ export class PdfApi {
// verify required parameter 'name' is not null or undefined
if (name === null || name === undefined) {
- throw new Error('Required parameter name was null or undefined when calling getDocumentProperties.');
+ throw new Error('Required parameter name was null or undefined when calling getDocumentLineAnnotations.');
}
if (storage !== undefined && null !== storage) {
@@ -1469,35 +1559,28 @@ export class PdfApi {
}
}
const response = await invokeApiMethod(localVarRequestOptions, this.configuration, false, fileData);
- const result = ObjectSerializer.deserialize(response.body, "DocumentPropertiesResponse");
+ const result = ObjectSerializer.deserialize(response.body, "LineAnnotationsResponse");
return Promise.resolve({body: result, response});
}
/**
*
- * @summary Read document property by name.
- * @param name
- * @param propertyName
- * @param storage
- * @param folder
+ * @summary Read document polyline annotations.
+ * @param name The document name.
+ * @param storage The document storage.
+ * @param folder The document folder.
*/
- public async getDocumentProperty (name: string, propertyName: string, storage?: string, folder?: string) : Promise<{ response: http.ClientResponse; body: DocumentPropertyResponse; }> {
- const localVarPath = this.basePath + '/pdf/{name}/documentproperties/{propertyName}'
- .replace('{' + 'name' + '}', encodeURIComponent(String(name)))
- .replace('{' + 'propertyName' + '}', encodeURIComponent(String(propertyName)));
+ public async getDocumentPolyLineAnnotations (name: string, storage?: string, folder?: string) : Promise<{ response: http.IncomingMessage; body: PolyLineAnnotationsResponse; }> {
+ const localVarPath = this.basePath + '/pdf/{name}/annotations/polyline'
+ .replace('{' + 'name' + '}', encodeURIComponent(String(name)));
let localVarQueryParameters: any = {};
let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders);
let localVarFormParams: any = {};
// verify required parameter 'name' is not null or undefined
if (name === null || name === undefined) {
- throw new Error('Required parameter name was null or undefined when calling getDocumentProperty.');
- }
-
- // verify required parameter 'propertyName' is not null or undefined
- if (propertyName === null || propertyName === undefined) {
- throw new Error('Required parameter propertyName was null or undefined when calling getDocumentProperty.');
+ throw new Error('Required parameter name was null or undefined when calling getDocumentPolyLineAnnotations.');
}
if (storage !== undefined && null !== storage) {
@@ -1528,20 +1611,20 @@ export class PdfApi {
}
}
const response = await invokeApiMethod(localVarRequestOptions, this.configuration, false, fileData);
- const result = ObjectSerializer.deserialize(response.body, "DocumentPropertyResponse");
+ const result = ObjectSerializer.deserialize(response.body, "PolyLineAnnotationsResponse");
return Promise.resolve({body: result, response});
}
/**
*
- * @summary Read document square annotations.
+ * @summary Read document polygon annotations.
* @param name The document name.
* @param storage The document storage.
* @param folder The document folder.
*/
- public async getDocumentSquareAnnotations (name: string, storage?: string, folder?: string) : Promise<{ response: http.ClientResponse; body: SquareAnnotationsResponse; }> {
- const localVarPath = this.basePath + '/pdf/{name}/annotations/square'
+ public async getDocumentPolygonAnnotations (name: string, storage?: string, folder?: string) : Promise<{ response: http.IncomingMessage; body: PolygonAnnotationsResponse; }> {
+ const localVarPath = this.basePath + '/pdf/{name}/annotations/polygon'
.replace('{' + 'name' + '}', encodeURIComponent(String(name)));
let localVarQueryParameters: any = {};
let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders);
@@ -1549,7 +1632,7 @@ export class PdfApi {
// verify required parameter 'name' is not null or undefined
if (name === null || name === undefined) {
- throw new Error('Required parameter name was null or undefined when calling getDocumentSquareAnnotations.');
+ throw new Error('Required parameter name was null or undefined when calling getDocumentPolygonAnnotations.');
}
if (storage !== undefined && null !== storage) {
@@ -1580,20 +1663,20 @@ export class PdfApi {
}
}
const response = await invokeApiMethod(localVarRequestOptions, this.configuration, false, fileData);
- const result = ObjectSerializer.deserialize(response.body, "SquareAnnotationsResponse");
+ const result = ObjectSerializer.deserialize(response.body, "PolygonAnnotationsResponse");
return Promise.resolve({body: result, response});
}
/**
*
- * @summary Read document text annotations.
+ * @summary Read document popup annotations.
* @param name The document name.
* @param storage The document storage.
* @param folder The document folder.
*/
- public async getDocumentTextAnnotations (name: string, storage?: string, folder?: string) : Promise<{ response: http.ClientResponse; body: TextAnnotationsResponse; }> {
- const localVarPath = this.basePath + '/pdf/{name}/annotations/text'
+ public async getDocumentPopupAnnotations (name: string, storage?: string, folder?: string) : Promise<{ response: http.IncomingMessage; body: PopupAnnotationsResponse; }> {
+ const localVarPath = this.basePath + '/pdf/{name}/annotations/popup'
.replace('{' + 'name' + '}', encodeURIComponent(String(name)));
let localVarQueryParameters: any = {};
let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders);
@@ -1601,7 +1684,7 @@ export class PdfApi {
// verify required parameter 'name' is not null or undefined
if (name === null || name === undefined) {
- throw new Error('Required parameter name was null or undefined when calling getDocumentTextAnnotations.');
+ throw new Error('Required parameter name was null or undefined when calling getDocumentPopupAnnotations.');
}
if (storage !== undefined && null !== storage) {
@@ -1632,41 +1715,45 @@ export class PdfApi {
}
}
const response = await invokeApiMethod(localVarRequestOptions, this.configuration, false, fileData);
- const result = ObjectSerializer.deserialize(response.body, "TextAnnotationsResponse");
+ const result = ObjectSerializer.deserialize(response.body, "PopupAnnotationsResponse");
return Promise.resolve({body: result, response});
}
/**
*
- * @summary Download a specific file
- * @param path Path of the file including the file name and extension e.g. /file.ext
- * @param versionId File's version
- * @param storage User's storage name
+ * @summary Read document popup annotations by parent id.
+ * @param name The document name.
+ * @param annotationId The parent annotation ID.
+ * @param storage The document storage.
+ * @param folder The document folder.
*/
- public async getDownload (path: string, versionId?: string, storage?: string) : Promise<{ response: http.ClientResponse; body: Buffer; }> {
- const localVarPath = this.basePath + '/storage/file';
+ public async getDocumentPopupAnnotationsByParent (name: string, annotationId: string, storage?: string, folder?: string) : Promise<{ response: http.IncomingMessage; body: PopupAnnotationsResponse; }> {
+ const localVarPath = this.basePath + '/pdf/{name}/annotations/{annotationId}/popup'
+ .replace('{' + 'name' + '}', encodeURIComponent(String(name)))
+ .replace('{' + 'annotationId' + '}', encodeURIComponent(String(annotationId)));
let localVarQueryParameters: any = {};
let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders);
let localVarFormParams: any = {};
- // verify required parameter 'path' is not null or undefined
- if (path === null || path === undefined) {
- throw new Error('Required parameter path was null or undefined when calling getDownload.');
- }
-
- if (path !== undefined && null !== path) {
- localVarQueryParameters['path'] = ObjectSerializer.serialize(path, "string");
+ // verify required parameter 'name' is not null or undefined
+ if (name === null || name === undefined) {
+ throw new Error('Required parameter name was null or undefined when calling getDocumentPopupAnnotationsByParent.');
}
- if (versionId !== undefined && null !== versionId) {
- localVarQueryParameters['versionId'] = ObjectSerializer.serialize(versionId, "string");
+ // verify required parameter 'annotationId' is not null or undefined
+ if (annotationId === null || annotationId === undefined) {
+ throw new Error('Required parameter annotationId was null or undefined when calling getDocumentPopupAnnotationsByParent.');
}
if (storage !== undefined && null !== storage) {
localVarQueryParameters['storage'] = ObjectSerializer.serialize(storage, "string");
}
+ if (folder !== undefined && null !== folder) {
+ localVarQueryParameters['folder'] = ObjectSerializer.serialize(folder, "string");
+ }
+
let localVarUseFormData = false;
let fileData = null;
@@ -1676,7 +1763,7 @@ export class PdfApi {
headers: localVarHeaderParams,
uri: localVarPath,
useQuerystring: this._useQuerystring,
- encoding: null,
+ json: true,
};
if (Object.keys(localVarFormParams).length) {
@@ -1687,35 +1774,28 @@ export class PdfApi {
}
}
const response = await invokeApiMethod(localVarRequestOptions, this.configuration, false, fileData);
- const result = ObjectSerializer.deserialize(response.body, "Buffer");
+ const result = ObjectSerializer.deserialize(response.body, "PopupAnnotationsResponse");
return Promise.resolve({body: result, response});
}
/**
*
- * @summary Download document attachment content by its index.
- * @param name The document name.
- * @param attachmentIndex The attachment index.
- * @param storage The document storage.
- * @param folder The document folder.
+ * @summary Read document properties.
+ * @param name
+ * @param storage
+ * @param folder
*/
- public async getDownloadDocumentAttachmentByIndex (name: string, attachmentIndex: number, storage?: string, folder?: string) : Promise<{ response: http.ClientResponse; body: Buffer; }> {
- const localVarPath = this.basePath + '/pdf/{name}/attachments/{attachmentIndex}/download'
- .replace('{' + 'name' + '}', encodeURIComponent(String(name)))
- .replace('{' + 'attachmentIndex' + '}', encodeURIComponent(String(attachmentIndex)));
+ public async getDocumentProperties (name: string, storage?: string, folder?: string) : Promise<{ response: http.IncomingMessage; body: DocumentPropertiesResponse; }> {
+ const localVarPath = this.basePath + '/pdf/{name}/documentproperties'
+ .replace('{' + 'name' + '}', encodeURIComponent(String(name)));
let localVarQueryParameters: any = {};
let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders);
let localVarFormParams: any = {};
// verify required parameter 'name' is not null or undefined
if (name === null || name === undefined) {
- throw new Error('Required parameter name was null or undefined when calling getDownloadDocumentAttachmentByIndex.');
- }
-
- // verify required parameter 'attachmentIndex' is not null or undefined
- if (attachmentIndex === null || attachmentIndex === undefined) {
- throw new Error('Required parameter attachmentIndex was null or undefined when calling getDownloadDocumentAttachmentByIndex.');
+ throw new Error('Required parameter name was null or undefined when calling getDocumentProperties.');
}
if (storage !== undefined && null !== storage) {
@@ -1735,7 +1815,7 @@ export class PdfApi {
headers: localVarHeaderParams,
uri: localVarPath,
useQuerystring: this._useQuerystring,
- encoding: null,
+ json: true,
};
if (Object.keys(localVarFormParams).length) {
@@ -1746,36 +1826,45 @@ export class PdfApi {
}
}
const response = await invokeApiMethod(localVarRequestOptions, this.configuration, false, fileData);
- const result = ObjectSerializer.deserialize(response.body, "Buffer");
+ const result = ObjectSerializer.deserialize(response.body, "DocumentPropertiesResponse");
return Promise.resolve({body: result, response});
}
/**
*
- * @summary Convert EPUB file (located on storage) to PDF format and return resulting file in response.
- * @param srcPath Full source filename (ex. /folder1/folder2/template.epub)
- * @param storage The document storage.
+ * @summary Read document property by name.
+ * @param name
+ * @param propertyName
+ * @param storage
+ * @param folder
*/
- public async getEpubInStorageToPdf (srcPath: string, storage?: string) : Promise<{ response: http.ClientResponse; body: Buffer; }> {
- const localVarPath = this.basePath + '/pdf/create/epub';
+ public async getDocumentProperty (name: string, propertyName: string, storage?: string, folder?: string) : Promise<{ response: http.IncomingMessage; body: DocumentPropertyResponse; }> {
+ const localVarPath = this.basePath + '/pdf/{name}/documentproperties/{propertyName}'
+ .replace('{' + 'name' + '}', encodeURIComponent(String(name)))
+ .replace('{' + 'propertyName' + '}', encodeURIComponent(String(propertyName)));
let localVarQueryParameters: any = {};
let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders);
let localVarFormParams: any = {};
- // verify required parameter 'srcPath' is not null or undefined
- if (srcPath === null || srcPath === undefined) {
- throw new Error('Required parameter srcPath was null or undefined when calling getEpubInStorageToPdf.');
+ // verify required parameter 'name' is not null or undefined
+ if (name === null || name === undefined) {
+ throw new Error('Required parameter name was null or undefined when calling getDocumentProperty.');
}
- if (srcPath !== undefined && null !== srcPath) {
- localVarQueryParameters['srcPath'] = ObjectSerializer.serialize(srcPath, "string");
+ // verify required parameter 'propertyName' is not null or undefined
+ if (propertyName === null || propertyName === undefined) {
+ throw new Error('Required parameter propertyName was null or undefined when calling getDocumentProperty.');
}
if (storage !== undefined && null !== storage) {
localVarQueryParameters['storage'] = ObjectSerializer.serialize(storage, "string");
}
+ if (folder !== undefined && null !== folder) {
+ localVarQueryParameters['folder'] = ObjectSerializer.serialize(folder, "string");
+ }
+
let localVarUseFormData = false;
let fileData = null;
@@ -1785,7 +1874,7 @@ export class PdfApi {
headers: localVarHeaderParams,
uri: localVarPath,
useQuerystring: this._useQuerystring,
- encoding: null,
+ json: true,
};
if (Object.keys(localVarFormParams).length) {
@@ -1796,35 +1885,28 @@ export class PdfApi {
}
}
const response = await invokeApiMethod(localVarRequestOptions, this.configuration, false, fileData);
- const result = ObjectSerializer.deserialize(response.body, "Buffer");
+ const result = ObjectSerializer.deserialize(response.body, "DocumentPropertyResponse");
return Promise.resolve({body: result, response});
}
/**
*
- * @summary Get document field by name.
+ * @summary Read document square annotations.
* @param name The document name.
- * @param fieldName The field name/
* @param storage The document storage.
* @param folder The document folder.
*/
- public async getField (name: string, fieldName: string, storage?: string, folder?: string) : Promise<{ response: http.ClientResponse; body: FieldResponse; }> {
- const localVarPath = this.basePath + '/pdf/{name}/fields/{fieldName}'
- .replace('{' + 'name' + '}', encodeURIComponent(String(name)))
- .replace('{' + 'fieldName' + '}', encodeURIComponent(String(fieldName)));
+ public async getDocumentSquareAnnotations (name: string, storage?: string, folder?: string) : Promise<{ response: http.IncomingMessage; body: SquareAnnotationsResponse; }> {
+ const localVarPath = this.basePath + '/pdf/{name}/annotations/square'
+ .replace('{' + 'name' + '}', encodeURIComponent(String(name)));
let localVarQueryParameters: any = {};
let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders);
let localVarFormParams: any = {};
// verify required parameter 'name' is not null or undefined
if (name === null || name === undefined) {
- throw new Error('Required parameter name was null or undefined when calling getField.');
- }
-
- // verify required parameter 'fieldName' is not null or undefined
- if (fieldName === null || fieldName === undefined) {
- throw new Error('Required parameter fieldName was null or undefined when calling getField.');
+ throw new Error('Required parameter name was null or undefined when calling getDocumentSquareAnnotations.');
}
if (storage !== undefined && null !== storage) {
@@ -1855,20 +1937,20 @@ export class PdfApi {
}
}
const response = await invokeApiMethod(localVarRequestOptions, this.configuration, false, fileData);
- const result = ObjectSerializer.deserialize(response.body, "FieldResponse");
+ const result = ObjectSerializer.deserialize(response.body, "SquareAnnotationsResponse");
return Promise.resolve({body: result, response});
}
/**
*
- * @summary Get document fields.
+ * @summary Read document squiggly annotations.
* @param name The document name.
* @param storage The document storage.
* @param folder The document folder.
*/
- public async getFields (name: string, storage?: string, folder?: string) : Promise<{ response: http.ClientResponse; body: FieldsResponse; }> {
- const localVarPath = this.basePath + '/pdf/{name}/fields'
+ public async getDocumentSquigglyAnnotations (name: string, storage?: string, folder?: string) : Promise<{ response: http.IncomingMessage; body: SquigglyAnnotationsResponse; }> {
+ const localVarPath = this.basePath + '/pdf/{name}/annotations/squiggly'
.replace('{' + 'name' + '}', encodeURIComponent(String(name)));
let localVarQueryParameters: any = {};
let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders);
@@ -1876,7 +1958,7 @@ export class PdfApi {
// verify required parameter 'name' is not null or undefined
if (name === null || name === undefined) {
- throw new Error('Required parameter name was null or undefined when calling getFields.');
+ throw new Error('Required parameter name was null or undefined when calling getDocumentSquigglyAnnotations.');
}
if (storage !== undefined && null !== storage) {
@@ -1907,35 +1989,28 @@ export class PdfApi {
}
}
const response = await invokeApiMethod(localVarRequestOptions, this.configuration, false, fileData);
- const result = ObjectSerializer.deserialize(response.body, "FieldsResponse");
+ const result = ObjectSerializer.deserialize(response.body, "SquigglyAnnotationsResponse");
return Promise.resolve({body: result, response});
}
/**
*
- * @summary Read document page free text annotation by ID.
+ * @summary Read document StrikeOut annotations.
* @param name The document name.
- * @param annotationId The annotation ID.
* @param storage The document storage.
* @param folder The document folder.
*/
- public async getFreeTextAnnotation (name: string, annotationId: string, storage?: string, folder?: string) : Promise<{ response: http.ClientResponse; body: FreeTextAnnotationResponse; }> {
- const localVarPath = this.basePath + '/pdf/{name}/annotations/freetext/{annotationId}'
- .replace('{' + 'name' + '}', encodeURIComponent(String(name)))
- .replace('{' + 'annotationId' + '}', encodeURIComponent(String(annotationId)));
+ public async getDocumentStrikeOutAnnotations (name: string, storage?: string, folder?: string) : Promise<{ response: http.IncomingMessage; body: StrikeOutAnnotationsResponse; }> {
+ const localVarPath = this.basePath + '/pdf/{name}/annotations/strikeout'
+ .replace('{' + 'name' + '}', encodeURIComponent(String(name)));
let localVarQueryParameters: any = {};
let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders);
let localVarFormParams: any = {};
// verify required parameter 'name' is not null or undefined
if (name === null || name === undefined) {
- throw new Error('Required parameter name was null or undefined when calling getFreeTextAnnotation.');
- }
-
- // verify required parameter 'annotationId' is not null or undefined
- if (annotationId === null || annotationId === undefined) {
- throw new Error('Required parameter annotationId was null or undefined when calling getFreeTextAnnotation.');
+ throw new Error('Required parameter name was null or undefined when calling getDocumentStrikeOutAnnotations.');
}
if (storage !== undefined && null !== storage) {
@@ -1966,81 +2041,38 @@ export class PdfApi {
}
}
const response = await invokeApiMethod(localVarRequestOptions, this.configuration, false, fileData);
- const result = ObjectSerializer.deserialize(response.body, "FreeTextAnnotationResponse");
+ const result = ObjectSerializer.deserialize(response.body, "StrikeOutAnnotationsResponse");
return Promise.resolve({body: result, response});
}
/**
*
- * @summary Convert HTML file (located on storage) to PDF format and return resulting file in response.
- * @param srcPath Full source filename (ex. /folder1/folder2/template.zip)
- * @param htmlFileName Name of HTML file in ZIP.
- * @param height Page height
- * @param width Page width
- * @param isLandscape Is page landscaped
- * @param marginLeft Page margin left
- * @param marginBottom Page margin bottom
- * @param marginRight Page margin right
- * @param marginTop Page margin top
+ * @summary Read document text annotations.
+ * @param name The document name.
* @param storage The document storage.
+ * @param folder The document folder.
*/
- public async getHtmlInStorageToPdf (srcPath: string, htmlFileName: string, height?: number, width?: number, isLandscape?: boolean, marginLeft?: number, marginBottom?: number, marginRight?: number, marginTop?: number, storage?: string) : Promise<{ response: http.ClientResponse; body: Buffer; }> {
- const localVarPath = this.basePath + '/pdf/create/html';
+ public async getDocumentTextAnnotations (name: string, storage?: string, folder?: string) : Promise<{ response: http.IncomingMessage; body: TextAnnotationsResponse; }> {
+ const localVarPath = this.basePath + '/pdf/{name}/annotations/text'
+ .replace('{' + 'name' + '}', encodeURIComponent(String(name)));
let localVarQueryParameters: any = {};
let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders);
let localVarFormParams: any = {};
- // verify required parameter 'srcPath' is not null or undefined
- if (srcPath === null || srcPath === undefined) {
- throw new Error('Required parameter srcPath was null or undefined when calling getHtmlInStorageToPdf.');
- }
-
- // verify required parameter 'htmlFileName' is not null or undefined
- if (htmlFileName === null || htmlFileName === undefined) {
- throw new Error('Required parameter htmlFileName was null or undefined when calling getHtmlInStorageToPdf.');
- }
-
- if (srcPath !== undefined && null !== srcPath) {
- localVarQueryParameters['srcPath'] = ObjectSerializer.serialize(srcPath, "string");
- }
-
- if (htmlFileName !== undefined && null !== htmlFileName) {
- localVarQueryParameters['htmlFileName'] = ObjectSerializer.serialize(htmlFileName, "string");
- }
-
- if (height !== undefined && null !== height) {
- localVarQueryParameters['height'] = ObjectSerializer.serialize(height, "number");
- }
-
- if (width !== undefined && null !== width) {
- localVarQueryParameters['width'] = ObjectSerializer.serialize(width, "number");
- }
-
- if (isLandscape !== undefined && null !== isLandscape) {
- localVarQueryParameters['isLandscape'] = ObjectSerializer.serialize(isLandscape, "boolean");
- }
-
- if (marginLeft !== undefined && null !== marginLeft) {
- localVarQueryParameters['marginLeft'] = ObjectSerializer.serialize(marginLeft, "number");
- }
-
- if (marginBottom !== undefined && null !== marginBottom) {
- localVarQueryParameters['marginBottom'] = ObjectSerializer.serialize(marginBottom, "number");
- }
-
- if (marginRight !== undefined && null !== marginRight) {
- localVarQueryParameters['marginRight'] = ObjectSerializer.serialize(marginRight, "number");
- }
-
- if (marginTop !== undefined && null !== marginTop) {
- localVarQueryParameters['marginTop'] = ObjectSerializer.serialize(marginTop, "number");
+ // verify required parameter 'name' is not null or undefined
+ if (name === null || name === undefined) {
+ throw new Error('Required parameter name was null or undefined when calling getDocumentTextAnnotations.');
}
if (storage !== undefined && null !== storage) {
localVarQueryParameters['storage'] = ObjectSerializer.serialize(storage, "string");
}
+ if (folder !== undefined && null !== folder) {
+ localVarQueryParameters['folder'] = ObjectSerializer.serialize(folder, "string");
+ }
+
let localVarUseFormData = false;
let fileData = null;
@@ -2050,7 +2082,7 @@ export class PdfApi {
headers: localVarHeaderParams,
uri: localVarPath,
useQuerystring: this._useQuerystring,
- encoding: null,
+ json: true,
};
if (Object.keys(localVarFormParams).length) {
@@ -2061,35 +2093,28 @@ export class PdfApi {
}
}
const response = await invokeApiMethod(localVarRequestOptions, this.configuration, false, fileData);
- const result = ObjectSerializer.deserialize(response.body, "Buffer");
+ const result = ObjectSerializer.deserialize(response.body, "TextAnnotationsResponse");
return Promise.resolve({body: result, response});
}
/**
*
- * @summary Read document image by ID.
+ * @summary Read document underline annotations.
* @param name The document name.
- * @param imageId Image ID.
* @param storage The document storage.
* @param folder The document folder.
*/
- public async getImage (name: string, imageId: string, storage?: string, folder?: string) : Promise<{ response: http.ClientResponse; body: ImageResponse; }> {
- const localVarPath = this.basePath + '/pdf/{name}/images/{imageId}'
- .replace('{' + 'name' + '}', encodeURIComponent(String(name)))
- .replace('{' + 'imageId' + '}', encodeURIComponent(String(imageId)));
+ public async getDocumentUnderlineAnnotations (name: string, storage?: string, folder?: string) : Promise<{ response: http.IncomingMessage; body: UnderlineAnnotationsResponse; }> {
+ const localVarPath = this.basePath + '/pdf/{name}/annotations/underline'
+ .replace('{' + 'name' + '}', encodeURIComponent(String(name)));
let localVarQueryParameters: any = {};
let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders);
let localVarFormParams: any = {};
// verify required parameter 'name' is not null or undefined
if (name === null || name === undefined) {
- throw new Error('Required parameter name was null or undefined when calling getImage.');
- }
-
- // verify required parameter 'imageId' is not null or undefined
- if (imageId === null || imageId === undefined) {
- throw new Error('Required parameter imageId was null or undefined when calling getImage.');
+ throw new Error('Required parameter name was null or undefined when calling getDocumentUnderlineAnnotations.');
}
if (storage !== undefined && null !== storage) {
@@ -2120,55 +2145,41 @@ export class PdfApi {
}
}
const response = await invokeApiMethod(localVarRequestOptions, this.configuration, false, fileData);
- const result = ObjectSerializer.deserialize(response.body, "ImageResponse");
+ const result = ObjectSerializer.deserialize(response.body, "UnderlineAnnotationsResponse");
return Promise.resolve({body: result, response});
}
/**
*
- * @summary Extract document image in GIF format
- * @param name The document name.
- * @param imageId Image ID.
- * @param width The converted image width.
- * @param height The converted image height.
- * @param storage The document storage.
- * @param folder The document folder.
+ * @summary Download a specific file
+ * @param path Path of the file including the file name and extension e.g. /file.ext
+ * @param versionId File's version
+ * @param storage User's storage name
*/
- public async getImageExtractAsGif (name: string, imageId: string, width?: number, height?: number, storage?: string, folder?: string) : Promise<{ response: http.ClientResponse; body: Buffer; }> {
- const localVarPath = this.basePath + '/pdf/{name}/images/{imageId}/extract/gif'
- .replace('{' + 'name' + '}', encodeURIComponent(String(name)))
- .replace('{' + 'imageId' + '}', encodeURIComponent(String(imageId)));
+ public async getDownload (path: string, versionId?: string, storage?: string) : Promise<{ response: http.IncomingMessage; body: Buffer; }> {
+ const localVarPath = this.basePath + '/storage/file';
let localVarQueryParameters: any = {};
let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders);
let localVarFormParams: any = {};
- // verify required parameter 'name' is not null or undefined
- if (name === null || name === undefined) {
- throw new Error('Required parameter name was null or undefined when calling getImageExtractAsGif.');
- }
-
- // verify required parameter 'imageId' is not null or undefined
- if (imageId === null || imageId === undefined) {
- throw new Error('Required parameter imageId was null or undefined when calling getImageExtractAsGif.');
+ // verify required parameter 'path' is not null or undefined
+ if (path === null || path === undefined) {
+ throw new Error('Required parameter path was null or undefined when calling getDownload.');
}
- if (width !== undefined && null !== width) {
- localVarQueryParameters['width'] = ObjectSerializer.serialize(width, "number");
+ if (path !== undefined && null !== path) {
+ localVarQueryParameters['path'] = ObjectSerializer.serialize(path, "string");
}
- if (height !== undefined && null !== height) {
- localVarQueryParameters['height'] = ObjectSerializer.serialize(height, "number");
+ if (versionId !== undefined && null !== versionId) {
+ localVarQueryParameters['versionId'] = ObjectSerializer.serialize(versionId, "string");
}
if (storage !== undefined && null !== storage) {
localVarQueryParameters['storage'] = ObjectSerializer.serialize(storage, "string");
}
- if (folder !== undefined && null !== folder) {
- localVarQueryParameters['folder'] = ObjectSerializer.serialize(folder, "string");
- }
-
let localVarUseFormData = false;
let fileData = null;
@@ -2196,38 +2207,28 @@ export class PdfApi {
/**
*
- * @summary Extract document image in JPEG format
+ * @summary Download document attachment content by its index.
* @param name The document name.
- * @param imageId Image ID.
- * @param width The converted image width.
- * @param height The converted image height.
+ * @param attachmentIndex The attachment index.
* @param storage The document storage.
* @param folder The document folder.
*/
- public async getImageExtractAsJpeg (name: string, imageId: string, width?: number, height?: number, storage?: string, folder?: string) : Promise<{ response: http.ClientResponse; body: Buffer; }> {
- const localVarPath = this.basePath + '/pdf/{name}/images/{imageId}/extract/jpeg'
+ public async getDownloadDocumentAttachmentByIndex (name: string, attachmentIndex: number, storage?: string, folder?: string) : Promise<{ response: http.IncomingMessage; body: Buffer; }> {
+ const localVarPath = this.basePath + '/pdf/{name}/attachments/{attachmentIndex}/download'
.replace('{' + 'name' + '}', encodeURIComponent(String(name)))
- .replace('{' + 'imageId' + '}', encodeURIComponent(String(imageId)));
+ .replace('{' + 'attachmentIndex' + '}', encodeURIComponent(String(attachmentIndex)));
let localVarQueryParameters: any = {};
let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders);
let localVarFormParams: any = {};
// verify required parameter 'name' is not null or undefined
if (name === null || name === undefined) {
- throw new Error('Required parameter name was null or undefined when calling getImageExtractAsJpeg.');
- }
-
- // verify required parameter 'imageId' is not null or undefined
- if (imageId === null || imageId === undefined) {
- throw new Error('Required parameter imageId was null or undefined when calling getImageExtractAsJpeg.');
- }
-
- if (width !== undefined && null !== width) {
- localVarQueryParameters['width'] = ObjectSerializer.serialize(width, "number");
+ throw new Error('Required parameter name was null or undefined when calling getDownloadDocumentAttachmentByIndex.');
}
- if (height !== undefined && null !== height) {
- localVarQueryParameters['height'] = ObjectSerializer.serialize(height, "number");
+ // verify required parameter 'attachmentIndex' is not null or undefined
+ if (attachmentIndex === null || attachmentIndex === undefined) {
+ throw new Error('Required parameter attachmentIndex was null or undefined when calling getDownloadDocumentAttachmentByIndex.');
}
if (storage !== undefined && null !== storage) {
@@ -2265,48 +2266,29 @@ export class PdfApi {
/**
*
- * @summary Extract document image in PNG format
- * @param name The document name.
- * @param imageId Image ID.
- * @param width The converted image width.
- * @param height The converted image height.
+ * @summary Convert EPUB file (located on storage) to PDF format and return resulting file in response.
+ * @param srcPath Full source filename (ex. /folder1/folder2/template.epub)
* @param storage The document storage.
- * @param folder The document folder.
*/
- public async getImageExtractAsPng (name: string, imageId: string, width?: number, height?: number, storage?: string, folder?: string) : Promise<{ response: http.ClientResponse; body: Buffer; }> {
- const localVarPath = this.basePath + '/pdf/{name}/images/{imageId}/extract/png'
- .replace('{' + 'name' + '}', encodeURIComponent(String(name)))
- .replace('{' + 'imageId' + '}', encodeURIComponent(String(imageId)));
+ public async getEpubInStorageToPdf (srcPath: string, storage?: string) : Promise<{ response: http.IncomingMessage; body: Buffer; }> {
+ const localVarPath = this.basePath + '/pdf/create/epub';
let localVarQueryParameters: any = {};
let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders);
let localVarFormParams: any = {};
- // verify required parameter 'name' is not null or undefined
- if (name === null || name === undefined) {
- throw new Error('Required parameter name was null or undefined when calling getImageExtractAsPng.');
- }
-
- // verify required parameter 'imageId' is not null or undefined
- if (imageId === null || imageId === undefined) {
- throw new Error('Required parameter imageId was null or undefined when calling getImageExtractAsPng.');
- }
-
- if (width !== undefined && null !== width) {
- localVarQueryParameters['width'] = ObjectSerializer.serialize(width, "number");
+ // verify required parameter 'srcPath' is not null or undefined
+ if (srcPath === null || srcPath === undefined) {
+ throw new Error('Required parameter srcPath was null or undefined when calling getEpubInStorageToPdf.');
}
- if (height !== undefined && null !== height) {
- localVarQueryParameters['height'] = ObjectSerializer.serialize(height, "number");
+ if (srcPath !== undefined && null !== srcPath) {
+ localVarQueryParameters['srcPath'] = ObjectSerializer.serialize(srcPath, "string");
}
if (storage !== undefined && null !== storage) {
localVarQueryParameters['storage'] = ObjectSerializer.serialize(storage, "string");
}
- if (folder !== undefined && null !== folder) {
- localVarQueryParameters['folder'] = ObjectSerializer.serialize(folder, "string");
- }
-
let localVarUseFormData = false;
let fileData = null;
@@ -2334,38 +2316,28 @@ export class PdfApi {
/**
*
- * @summary Extract document image in TIFF format
+ * @summary Get document field by name.
* @param name The document name.
- * @param imageId Image ID.
- * @param width The converted image width.
- * @param height The converted image height.
+ * @param fieldName The field name/
* @param storage The document storage.
* @param folder The document folder.
*/
- public async getImageExtractAsTiff (name: string, imageId: string, width?: number, height?: number, storage?: string, folder?: string) : Promise<{ response: http.ClientResponse; body: Buffer; }> {
- const localVarPath = this.basePath + '/pdf/{name}/images/{imageId}/extract/tiff'
+ public async getField (name: string, fieldName: string, storage?: string, folder?: string) : Promise<{ response: http.IncomingMessage; body: FieldResponse; }> {
+ const localVarPath = this.basePath + '/pdf/{name}/fields/{fieldName}'
.replace('{' + 'name' + '}', encodeURIComponent(String(name)))
- .replace('{' + 'imageId' + '}', encodeURIComponent(String(imageId)));
+ .replace('{' + 'fieldName' + '}', encodeURIComponent(String(fieldName)));
let localVarQueryParameters: any = {};
let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders);
let localVarFormParams: any = {};
// verify required parameter 'name' is not null or undefined
if (name === null || name === undefined) {
- throw new Error('Required parameter name was null or undefined when calling getImageExtractAsTiff.');
- }
-
- // verify required parameter 'imageId' is not null or undefined
- if (imageId === null || imageId === undefined) {
- throw new Error('Required parameter imageId was null or undefined when calling getImageExtractAsTiff.');
- }
-
- if (width !== undefined && null !== width) {
- localVarQueryParameters['width'] = ObjectSerializer.serialize(width, "number");
+ throw new Error('Required parameter name was null or undefined when calling getField.');
}
- if (height !== undefined && null !== height) {
- localVarQueryParameters['height'] = ObjectSerializer.serialize(height, "number");
+ // verify required parameter 'fieldName' is not null or undefined
+ if (fieldName === null || fieldName === undefined) {
+ throw new Error('Required parameter fieldName was null or undefined when calling getField.');
}
if (storage !== undefined && null !== storage) {
@@ -2385,7 +2357,7 @@ export class PdfApi {
headers: localVarHeaderParams,
uri: localVarPath,
useQuerystring: this._useQuerystring,
- encoding: null,
+ json: true,
};
if (Object.keys(localVarFormParams).length) {
@@ -2396,35 +2368,28 @@ export class PdfApi {
}
}
const response = await invokeApiMethod(localVarRequestOptions, this.configuration, false, fileData);
- const result = ObjectSerializer.deserialize(response.body, "Buffer");
+ const result = ObjectSerializer.deserialize(response.body, "FieldResponse");
return Promise.resolve({body: result, response});
}
/**
*
- * @summary Read document images.
+ * @summary Get document fields.
* @param name The document name.
- * @param pageNumber The page number.
* @param storage The document storage.
* @param folder The document folder.
*/
- public async getImages (name: string, pageNumber: number, storage?: string, folder?: string) : Promise<{ response: http.ClientResponse; body: ImagesResponse; }> {
- const localVarPath = this.basePath + '/pdf/{name}/pages/{pageNumber}/images'
- .replace('{' + 'name' + '}', encodeURIComponent(String(name)))
- .replace('{' + 'pageNumber' + '}', encodeURIComponent(String(pageNumber)));
+ public async getFields (name: string, storage?: string, folder?: string) : Promise<{ response: http.IncomingMessage; body: FieldsResponse; }> {
+ const localVarPath = this.basePath + '/pdf/{name}/fields'
+ .replace('{' + 'name' + '}', encodeURIComponent(String(name)));
let localVarQueryParameters: any = {};
let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders);
let localVarFormParams: any = {};
// verify required parameter 'name' is not null or undefined
if (name === null || name === undefined) {
- throw new Error('Required parameter name was null or undefined when calling getImages.');
- }
-
- // verify required parameter 'pageNumber' is not null or undefined
- if (pageNumber === null || pageNumber === undefined) {
- throw new Error('Required parameter pageNumber was null or undefined when calling getImages.');
+ throw new Error('Required parameter name was null or undefined when calling getFields.');
}
if (storage !== undefined && null !== storage) {
@@ -2455,36 +2420,45 @@ export class PdfApi {
}
}
const response = await invokeApiMethod(localVarRequestOptions, this.configuration, false, fileData);
- const result = ObjectSerializer.deserialize(response.body, "ImagesResponse");
+ const result = ObjectSerializer.deserialize(response.body, "FieldsResponse");
return Promise.resolve({body: result, response});
}
/**
*
- * @summary Convert LaTeX file (located on storage) to PDF format and return resulting file in response.
- * @param srcPath Full source filename (ex. /folder1/folder2/template.tex)
+ * @summary Read document page free text annotation by ID.
+ * @param name The document name.
+ * @param annotationId The annotation ID.
* @param storage The document storage.
+ * @param folder The document folder.
*/
- public async getLaTeXInStorageToPdf (srcPath: string, storage?: string) : Promise<{ response: http.ClientResponse; body: Buffer; }> {
- const localVarPath = this.basePath + '/pdf/create/latex';
+ public async getFreeTextAnnotation (name: string, annotationId: string, storage?: string, folder?: string) : Promise<{ response: http.IncomingMessage; body: FreeTextAnnotationResponse; }> {
+ const localVarPath = this.basePath + '/pdf/{name}/annotations/freetext/{annotationId}'
+ .replace('{' + 'name' + '}', encodeURIComponent(String(name)))
+ .replace('{' + 'annotationId' + '}', encodeURIComponent(String(annotationId)));
let localVarQueryParameters: any = {};
let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders);
let localVarFormParams: any = {};
- // verify required parameter 'srcPath' is not null or undefined
- if (srcPath === null || srcPath === undefined) {
- throw new Error('Required parameter srcPath was null or undefined when calling getLaTeXInStorageToPdf.');
+ // verify required parameter 'name' is not null or undefined
+ if (name === null || name === undefined) {
+ throw new Error('Required parameter name was null or undefined when calling getFreeTextAnnotation.');
}
- if (srcPath !== undefined && null !== srcPath) {
- localVarQueryParameters['srcPath'] = ObjectSerializer.serialize(srcPath, "string");
+ // verify required parameter 'annotationId' is not null or undefined
+ if (annotationId === null || annotationId === undefined) {
+ throw new Error('Required parameter annotationId was null or undefined when calling getFreeTextAnnotation.');
}
if (storage !== undefined && null !== storage) {
localVarQueryParameters['storage'] = ObjectSerializer.serialize(storage, "string");
}
+ if (folder !== undefined && null !== folder) {
+ localVarQueryParameters['folder'] = ObjectSerializer.serialize(folder, "string");
+ }
+
let localVarUseFormData = false;
let fileData = null;
@@ -2494,7 +2468,7 @@ export class PdfApi {
headers: localVarHeaderParams,
uri: localVarPath,
useQuerystring: this._useQuerystring,
- encoding: null,
+ json: true,
};
if (Object.keys(localVarFormParams).length) {
@@ -2505,21 +2479,21 @@ export class PdfApi {
}
}
const response = await invokeApiMethod(localVarRequestOptions, this.configuration, false, fileData);
- const result = ObjectSerializer.deserialize(response.body, "Buffer");
+ const result = ObjectSerializer.deserialize(response.body, "FreeTextAnnotationResponse");
return Promise.resolve({body: result, response});
}
/**
*
- * @summary Read document page line annotation by ID.
+ * @summary Read document page highlight annotation by ID.
* @param name The document name.
* @param annotationId The annotation ID.
* @param storage The document storage.
* @param folder The document folder.
*/
- public async getLineAnnotation (name: string, annotationId: string, storage?: string, folder?: string) : Promise<{ response: http.ClientResponse; body: LineAnnotationResponse; }> {
- const localVarPath = this.basePath + '/pdf/{name}/annotations/line/{annotationId}'
+ public async getHighlightAnnotation (name: string, annotationId: string, storage?: string, folder?: string) : Promise<{ response: http.IncomingMessage; body: HighlightAnnotationResponse; }> {
+ const localVarPath = this.basePath + '/pdf/{name}/annotations/highlight/{annotationId}'
.replace('{' + 'name' + '}', encodeURIComponent(String(name)))
.replace('{' + 'annotationId' + '}', encodeURIComponent(String(annotationId)));
let localVarQueryParameters: any = {};
@@ -2528,12 +2502,12 @@ export class PdfApi {
// verify required parameter 'name' is not null or undefined
if (name === null || name === undefined) {
- throw new Error('Required parameter name was null or undefined when calling getLineAnnotation.');
+ throw new Error('Required parameter name was null or undefined when calling getHighlightAnnotation.');
}
// verify required parameter 'annotationId' is not null or undefined
if (annotationId === null || annotationId === undefined) {
- throw new Error('Required parameter annotationId was null or undefined when calling getLineAnnotation.');
+ throw new Error('Required parameter annotationId was null or undefined when calling getHighlightAnnotation.');
}
if (storage !== undefined && null !== storage) {
@@ -2564,84 +2538,70 @@ export class PdfApi {
}
}
const response = await invokeApiMethod(localVarRequestOptions, this.configuration, false, fileData);
- const result = ObjectSerializer.deserialize(response.body, "LineAnnotationResponse");
+ const result = ObjectSerializer.deserialize(response.body, "HighlightAnnotationResponse");
return Promise.resolve({body: result, response});
}
/**
*
- * @summary Read document link annotation by ID.
- * @param name The document name.
- * @param linkId The link ID.
+ * @summary Convert HTML file (located on storage) to PDF format and return resulting file in response.
+ * @param srcPath Full source filename (ex. /folder1/folder2/template.zip)
+ * @param htmlFileName Name of HTML file in ZIP.
+ * @param height Page height
+ * @param width Page width
+ * @param isLandscape Is page landscaped
+ * @param marginLeft Page margin left
+ * @param marginBottom Page margin bottom
+ * @param marginRight Page margin right
+ * @param marginTop Page margin top
* @param storage The document storage.
- * @param folder The document folder.
*/
- public async getLinkAnnotation (name: string, linkId: string, storage?: string, folder?: string) : Promise<{ response: http.ClientResponse; body: LinkAnnotationResponse; }> {
- const localVarPath = this.basePath + '/pdf/{name}/links/{linkId}'
- .replace('{' + 'name' + '}', encodeURIComponent(String(name)))
- .replace('{' + 'linkId' + '}', encodeURIComponent(String(linkId)));
+ public async getHtmlInStorageToPdf (srcPath: string, htmlFileName?: string, height?: number, width?: number, isLandscape?: boolean, marginLeft?: number, marginBottom?: number, marginRight?: number, marginTop?: number, storage?: string) : Promise<{ response: http.IncomingMessage; body: Buffer; }> {
+ const localVarPath = this.basePath + '/pdf/create/html';
let localVarQueryParameters: any = {};
let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders);
let localVarFormParams: any = {};
- // verify required parameter 'name' is not null or undefined
- if (name === null || name === undefined) {
- throw new Error('Required parameter name was null or undefined when calling getLinkAnnotation.');
+ // verify required parameter 'srcPath' is not null or undefined
+ if (srcPath === null || srcPath === undefined) {
+ throw new Error('Required parameter srcPath was null or undefined when calling getHtmlInStorageToPdf.');
}
- // verify required parameter 'linkId' is not null or undefined
- if (linkId === null || linkId === undefined) {
- throw new Error('Required parameter linkId was null or undefined when calling getLinkAnnotation.');
+ if (srcPath !== undefined && null !== srcPath) {
+ localVarQueryParameters['srcPath'] = ObjectSerializer.serialize(srcPath, "string");
}
- if (storage !== undefined && null !== storage) {
- localVarQueryParameters['storage'] = ObjectSerializer.serialize(storage, "string");
+ if (htmlFileName !== undefined && null !== htmlFileName) {
+ localVarQueryParameters['htmlFileName'] = ObjectSerializer.serialize(htmlFileName, "string");
}
- if (folder !== undefined && null !== folder) {
- localVarQueryParameters['folder'] = ObjectSerializer.serialize(folder, "string");
+ if (height !== undefined && null !== height) {
+ localVarQueryParameters['height'] = ObjectSerializer.serialize(height, "number");
}
+ if (width !== undefined && null !== width) {
+ localVarQueryParameters['width'] = ObjectSerializer.serialize(width, "number");
+ }
- let localVarUseFormData = false;
- let fileData = null;
- let localVarRequestOptions: localVarRequest.Options = {
- method: 'GET',
- qs: localVarQueryParameters,
- headers: localVarHeaderParams,
- uri: localVarPath,
- useQuerystring: this._useQuerystring,
- json: true,
- };
+ if (isLandscape !== undefined && null !== isLandscape) {
+ localVarQueryParameters['isLandscape'] = ObjectSerializer.serialize(isLandscape, "boolean");
+ }
- if (Object.keys(localVarFormParams).length) {
- if (localVarUseFormData) {
- (localVarRequestOptions).formData = localVarFormParams;
- } else {
- localVarRequestOptions.form = localVarFormParams;
- }
+ if (marginLeft !== undefined && null !== marginLeft) {
+ localVarQueryParameters['marginLeft'] = ObjectSerializer.serialize(marginLeft, "number");
}
- const response = await invokeApiMethod(localVarRequestOptions, this.configuration, false, fileData);
- const result = ObjectSerializer.deserialize(response.body, "LinkAnnotationResponse");
- return Promise.resolve({body: result, response});
- }
+ if (marginBottom !== undefined && null !== marginBottom) {
+ localVarQueryParameters['marginBottom'] = ObjectSerializer.serialize(marginBottom, "number");
+ }
- /**
- *
- * @summary Get the file listing of a specific folder
- * @param path Start with name of storage e.g. root folder '/'or some folder '/folder1/..'
- * @param storage User's storage name
- */
- public async getListFiles (path?: string, storage?: string) : Promise<{ response: http.ClientResponse; body: FilesResponse; }> {
- const localVarPath = this.basePath + '/storage/folder';
- let localVarQueryParameters: any = {};
- let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders);
- let localVarFormParams: any = {};
+ if (marginRight !== undefined && null !== marginRight) {
+ localVarQueryParameters['marginRight'] = ObjectSerializer.serialize(marginRight, "number");
+ }
- if (path !== undefined && null !== path) {
- localVarQueryParameters['path'] = ObjectSerializer.serialize(path, "string");
+ if (marginTop !== undefined && null !== marginTop) {
+ localVarQueryParameters['marginTop'] = ObjectSerializer.serialize(marginTop, "number");
}
if (storage !== undefined && null !== storage) {
@@ -2657,7 +2617,7 @@ export class PdfApi {
headers: localVarHeaderParams,
uri: localVarPath,
useQuerystring: this._useQuerystring,
- json: true,
+ encoding: null,
};
if (Object.keys(localVarFormParams).length) {
@@ -2668,36 +2628,45 @@ export class PdfApi {
}
}
const response = await invokeApiMethod(localVarRequestOptions, this.configuration, false, fileData);
- const result = ObjectSerializer.deserialize(response.body, "FilesResponse");
+ const result = ObjectSerializer.deserialize(response.body, "Buffer");
return Promise.resolve({body: result, response});
}
/**
*
- * @summary Convert MHT file (located on storage) to PDF format and return resulting file in response.
- * @param srcPath Full source filename (ex. /folder1/folder2/template.mht)
+ * @summary Read document image by ID.
+ * @param name The document name.
+ * @param imageId Image ID.
* @param storage The document storage.
+ * @param folder The document folder.
*/
- public async getMhtInStorageToPdf (srcPath: string, storage?: string) : Promise<{ response: http.ClientResponse; body: Buffer; }> {
- const localVarPath = this.basePath + '/pdf/create/mht';
+ public async getImage (name: string, imageId: string, storage?: string, folder?: string) : Promise<{ response: http.IncomingMessage; body: ImageResponse; }> {
+ const localVarPath = this.basePath + '/pdf/{name}/images/{imageId}'
+ .replace('{' + 'name' + '}', encodeURIComponent(String(name)))
+ .replace('{' + 'imageId' + '}', encodeURIComponent(String(imageId)));
let localVarQueryParameters: any = {};
let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders);
let localVarFormParams: any = {};
- // verify required parameter 'srcPath' is not null or undefined
- if (srcPath === null || srcPath === undefined) {
- throw new Error('Required parameter srcPath was null or undefined when calling getMhtInStorageToPdf.');
+ // verify required parameter 'name' is not null or undefined
+ if (name === null || name === undefined) {
+ throw new Error('Required parameter name was null or undefined when calling getImage.');
}
- if (srcPath !== undefined && null !== srcPath) {
- localVarQueryParameters['srcPath'] = ObjectSerializer.serialize(srcPath, "string");
+ // verify required parameter 'imageId' is not null or undefined
+ if (imageId === null || imageId === undefined) {
+ throw new Error('Required parameter imageId was null or undefined when calling getImage.');
}
if (storage !== undefined && null !== storage) {
localVarQueryParameters['storage'] = ObjectSerializer.serialize(storage, "string");
}
+ if (folder !== undefined && null !== folder) {
+ localVarQueryParameters['folder'] = ObjectSerializer.serialize(folder, "string");
+ }
+
let localVarUseFormData = false;
let fileData = null;
@@ -2707,7 +2676,7 @@ export class PdfApi {
headers: localVarHeaderParams,
uri: localVarPath,
useQuerystring: this._useQuerystring,
- encoding: null,
+ json: true,
};
if (Object.keys(localVarFormParams).length) {
@@ -2718,35 +2687,45 @@ export class PdfApi {
}
}
const response = await invokeApiMethod(localVarRequestOptions, this.configuration, false, fileData);
- const result = ObjectSerializer.deserialize(response.body, "Buffer");
+ const result = ObjectSerializer.deserialize(response.body, "ImageResponse");
return Promise.resolve({body: result, response});
}
/**
*
- * @summary Read document page info.
+ * @summary Extract document image in GIF format
* @param name The document name.
- * @param pageNumber The page number.
+ * @param imageId Image ID.
+ * @param width The converted image width.
+ * @param height The converted image height.
* @param storage The document storage.
* @param folder The document folder.
*/
- public async getPage (name: string, pageNumber: number, storage?: string, folder?: string) : Promise<{ response: http.ClientResponse; body: DocumentPageResponse; }> {
- const localVarPath = this.basePath + '/pdf/{name}/pages/{pageNumber}'
+ public async getImageExtractAsGif (name: string, imageId: string, width?: number, height?: number, storage?: string, folder?: string) : Promise<{ response: http.IncomingMessage; body: Buffer; }> {
+ const localVarPath = this.basePath + '/pdf/{name}/images/{imageId}/extract/gif'
.replace('{' + 'name' + '}', encodeURIComponent(String(name)))
- .replace('{' + 'pageNumber' + '}', encodeURIComponent(String(pageNumber)));
+ .replace('{' + 'imageId' + '}', encodeURIComponent(String(imageId)));
let localVarQueryParameters: any = {};
let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders);
let localVarFormParams: any = {};
// verify required parameter 'name' is not null or undefined
if (name === null || name === undefined) {
- throw new Error('Required parameter name was null or undefined when calling getPage.');
+ throw new Error('Required parameter name was null or undefined when calling getImageExtractAsGif.');
}
- // verify required parameter 'pageNumber' is not null or undefined
- if (pageNumber === null || pageNumber === undefined) {
- throw new Error('Required parameter pageNumber was null or undefined when calling getPage.');
+ // verify required parameter 'imageId' is not null or undefined
+ if (imageId === null || imageId === undefined) {
+ throw new Error('Required parameter imageId was null or undefined when calling getImageExtractAsGif.');
+ }
+
+ if (width !== undefined && null !== width) {
+ localVarQueryParameters['width'] = ObjectSerializer.serialize(width, "number");
+ }
+
+ if (height !== undefined && null !== height) {
+ localVarQueryParameters['height'] = ObjectSerializer.serialize(height, "number");
}
if (storage !== undefined && null !== storage) {
@@ -2766,7 +2745,7 @@ export class PdfApi {
headers: localVarHeaderParams,
uri: localVarPath,
useQuerystring: this._useQuerystring,
- json: true,
+ encoding: null,
};
if (Object.keys(localVarFormParams).length) {
@@ -2777,35 +2756,45 @@ export class PdfApi {
}
}
const response = await invokeApiMethod(localVarRequestOptions, this.configuration, false, fileData);
- const result = ObjectSerializer.deserialize(response.body, "DocumentPageResponse");
+ const result = ObjectSerializer.deserialize(response.body, "Buffer");
return Promise.resolve({body: result, response});
}
/**
*
- * @summary Read documant page annotations. Returns only FreeTextAnnotations, TextAnnotations, other annotations will implemented next releases.
+ * @summary Extract document image in JPEG format
* @param name The document name.
- * @param pageNumber The page number.
+ * @param imageId Image ID.
+ * @param width The converted image width.
+ * @param height The converted image height.
* @param storage The document storage.
* @param folder The document folder.
*/
- public async getPageAnnotations (name: string, pageNumber: number, storage?: string, folder?: string) : Promise<{ response: http.ClientResponse; body: AnnotationsInfoResponse; }> {
- const localVarPath = this.basePath + '/pdf/{name}/pages/{pageNumber}/annotations'
+ public async getImageExtractAsJpeg (name: string, imageId: string, width?: number, height?: number, storage?: string, folder?: string) : Promise<{ response: http.IncomingMessage; body: Buffer; }> {
+ const localVarPath = this.basePath + '/pdf/{name}/images/{imageId}/extract/jpeg'
.replace('{' + 'name' + '}', encodeURIComponent(String(name)))
- .replace('{' + 'pageNumber' + '}', encodeURIComponent(String(pageNumber)));
+ .replace('{' + 'imageId' + '}', encodeURIComponent(String(imageId)));
let localVarQueryParameters: any = {};
let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders);
let localVarFormParams: any = {};
// verify required parameter 'name' is not null or undefined
if (name === null || name === undefined) {
- throw new Error('Required parameter name was null or undefined when calling getPageAnnotations.');
+ throw new Error('Required parameter name was null or undefined when calling getImageExtractAsJpeg.');
}
- // verify required parameter 'pageNumber' is not null or undefined
- if (pageNumber === null || pageNumber === undefined) {
- throw new Error('Required parameter pageNumber was null or undefined when calling getPageAnnotations.');
+ // verify required parameter 'imageId' is not null or undefined
+ if (imageId === null || imageId === undefined) {
+ throw new Error('Required parameter imageId was null or undefined when calling getImageExtractAsJpeg.');
+ }
+
+ if (width !== undefined && null !== width) {
+ localVarQueryParameters['width'] = ObjectSerializer.serialize(width, "number");
+ }
+
+ if (height !== undefined && null !== height) {
+ localVarQueryParameters['height'] = ObjectSerializer.serialize(height, "number");
}
if (storage !== undefined && null !== storage) {
@@ -2825,7 +2814,7 @@ export class PdfApi {
headers: localVarHeaderParams,
uri: localVarPath,
useQuerystring: this._useQuerystring,
- json: true,
+ encoding: null,
};
if (Object.keys(localVarFormParams).length) {
@@ -2836,35 +2825,45 @@ export class PdfApi {
}
}
const response = await invokeApiMethod(localVarRequestOptions, this.configuration, false, fileData);
- const result = ObjectSerializer.deserialize(response.body, "AnnotationsInfoResponse");
+ const result = ObjectSerializer.deserialize(response.body, "Buffer");
return Promise.resolve({body: result, response});
}
/**
*
- * @summary Read document page circle annotations.
+ * @summary Extract document image in PNG format
* @param name The document name.
- * @param pageNumber The page number.
+ * @param imageId Image ID.
+ * @param width The converted image width.
+ * @param height The converted image height.
* @param storage The document storage.
* @param folder The document folder.
*/
- public async getPageCircleAnnotations (name: string, pageNumber: number, storage?: string, folder?: string) : Promise<{ response: http.ClientResponse; body: CircleAnnotationsResponse; }> {
- const localVarPath = this.basePath + '/pdf/{name}/pages/{pageNumber}/annotations/circle'
+ public async getImageExtractAsPng (name: string, imageId: string, width?: number, height?: number, storage?: string, folder?: string) : Promise<{ response: http.IncomingMessage; body: Buffer; }> {
+ const localVarPath = this.basePath + '/pdf/{name}/images/{imageId}/extract/png'
.replace('{' + 'name' + '}', encodeURIComponent(String(name)))
- .replace('{' + 'pageNumber' + '}', encodeURIComponent(String(pageNumber)));
+ .replace('{' + 'imageId' + '}', encodeURIComponent(String(imageId)));
let localVarQueryParameters: any = {};
let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders);
let localVarFormParams: any = {};
// verify required parameter 'name' is not null or undefined
if (name === null || name === undefined) {
- throw new Error('Required parameter name was null or undefined when calling getPageCircleAnnotations.');
+ throw new Error('Required parameter name was null or undefined when calling getImageExtractAsPng.');
}
- // verify required parameter 'pageNumber' is not null or undefined
- if (pageNumber === null || pageNumber === undefined) {
- throw new Error('Required parameter pageNumber was null or undefined when calling getPageCircleAnnotations.');
+ // verify required parameter 'imageId' is not null or undefined
+ if (imageId === null || imageId === undefined) {
+ throw new Error('Required parameter imageId was null or undefined when calling getImageExtractAsPng.');
+ }
+
+ if (width !== undefined && null !== width) {
+ localVarQueryParameters['width'] = ObjectSerializer.serialize(width, "number");
+ }
+
+ if (height !== undefined && null !== height) {
+ localVarQueryParameters['height'] = ObjectSerializer.serialize(height, "number");
}
if (storage !== undefined && null !== storage) {
@@ -2884,7 +2883,7 @@ export class PdfApi {
headers: localVarHeaderParams,
uri: localVarPath,
useQuerystring: this._useQuerystring,
- json: true,
+ encoding: null,
};
if (Object.keys(localVarFormParams).length) {
@@ -2895,37 +2894,37 @@ export class PdfApi {
}
}
const response = await invokeApiMethod(localVarRequestOptions, this.configuration, false, fileData);
- const result = ObjectSerializer.deserialize(response.body, "CircleAnnotationsResponse");
+ const result = ObjectSerializer.deserialize(response.body, "Buffer");
return Promise.resolve({body: result, response});
}
/**
*
- * @summary Convert document page to Bmp image and return resulting file in response.
+ * @summary Extract document image in TIFF format
* @param name The document name.
- * @param pageNumber The page number.
+ * @param imageId Image ID.
* @param width The converted image width.
* @param height The converted image height.
- * @param folder The document folder.
* @param storage The document storage.
+ * @param folder The document folder.
*/
- public async getPageConvertToBmp (name: string, pageNumber: number, width?: number, height?: number, folder?: string, storage?: string) : Promise<{ response: http.ClientResponse; body: Buffer; }> {
- const localVarPath = this.basePath + '/pdf/{name}/pages/{pageNumber}/convert/bmp'
+ public async getImageExtractAsTiff (name: string, imageId: string, width?: number, height?: number, storage?: string, folder?: string) : Promise<{ response: http.IncomingMessage; body: Buffer; }> {
+ const localVarPath = this.basePath + '/pdf/{name}/images/{imageId}/extract/tiff'
.replace('{' + 'name' + '}', encodeURIComponent(String(name)))
- .replace('{' + 'pageNumber' + '}', encodeURIComponent(String(pageNumber)));
+ .replace('{' + 'imageId' + '}', encodeURIComponent(String(imageId)));
let localVarQueryParameters: any = {};
let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders);
let localVarFormParams: any = {};
// verify required parameter 'name' is not null or undefined
if (name === null || name === undefined) {
- throw new Error('Required parameter name was null or undefined when calling getPageConvertToBmp.');
+ throw new Error('Required parameter name was null or undefined when calling getImageExtractAsTiff.');
}
- // verify required parameter 'pageNumber' is not null or undefined
- if (pageNumber === null || pageNumber === undefined) {
- throw new Error('Required parameter pageNumber was null or undefined when calling getPageConvertToBmp.');
+ // verify required parameter 'imageId' is not null or undefined
+ if (imageId === null || imageId === undefined) {
+ throw new Error('Required parameter imageId was null or undefined when calling getImageExtractAsTiff.');
}
if (width !== undefined && null !== width) {
@@ -2936,14 +2935,14 @@ export class PdfApi {
localVarQueryParameters['height'] = ObjectSerializer.serialize(height, "number");
}
- if (folder !== undefined && null !== folder) {
- localVarQueryParameters['folder'] = ObjectSerializer.serialize(folder, "string");
- }
-
if (storage !== undefined && null !== storage) {
localVarQueryParameters['storage'] = ObjectSerializer.serialize(storage, "string");
}
+ if (folder !== undefined && null !== folder) {
+ localVarQueryParameters['folder'] = ObjectSerializer.serialize(folder, "string");
+ }
+
let localVarUseFormData = false;
let fileData = null;
@@ -2971,16 +2970,14 @@ export class PdfApi {
/**
*
- * @summary Convert document page to Emf image and return resulting file in response.
+ * @summary Read document images.
* @param name The document name.
* @param pageNumber The page number.
- * @param width The converted image width.
- * @param height The converted image height.
- * @param folder The document folder.
* @param storage The document storage.
+ * @param folder The document folder.
*/
- public async getPageConvertToEmf (name: string, pageNumber: number, width?: number, height?: number, folder?: string, storage?: string) : Promise<{ response: http.ClientResponse; body: Buffer; }> {
- const localVarPath = this.basePath + '/pdf/{name}/pages/{pageNumber}/convert/emf'
+ public async getImages (name: string, pageNumber: number, storage?: string, folder?: string) : Promise<{ response: http.IncomingMessage; body: ImagesResponse; }> {
+ const localVarPath = this.basePath + '/pdf/{name}/pages/{pageNumber}/images'
.replace('{' + 'name' + '}', encodeURIComponent(String(name)))
.replace('{' + 'pageNumber' + '}', encodeURIComponent(String(pageNumber)));
let localVarQueryParameters: any = {};
@@ -2989,30 +2986,22 @@ export class PdfApi {
// verify required parameter 'name' is not null or undefined
if (name === null || name === undefined) {
- throw new Error('Required parameter name was null or undefined when calling getPageConvertToEmf.');
+ throw new Error('Required parameter name was null or undefined when calling getImages.');
}
// verify required parameter 'pageNumber' is not null or undefined
if (pageNumber === null || pageNumber === undefined) {
- throw new Error('Required parameter pageNumber was null or undefined when calling getPageConvertToEmf.');
- }
-
- if (width !== undefined && null !== width) {
- localVarQueryParameters['width'] = ObjectSerializer.serialize(width, "number");
+ throw new Error('Required parameter pageNumber was null or undefined when calling getImages.');
}
- if (height !== undefined && null !== height) {
- localVarQueryParameters['height'] = ObjectSerializer.serialize(height, "number");
+ if (storage !== undefined && null !== storage) {
+ localVarQueryParameters['storage'] = ObjectSerializer.serialize(storage, "string");
}
if (folder !== undefined && null !== folder) {
localVarQueryParameters['folder'] = ObjectSerializer.serialize(folder, "string");
}
- if (storage !== undefined && null !== storage) {
- localVarQueryParameters['storage'] = ObjectSerializer.serialize(storage, "string");
- }
-
let localVarUseFormData = false;
let fileData = null;
@@ -3022,7 +3011,7 @@ export class PdfApi {
headers: localVarHeaderParams,
uri: localVarPath,
useQuerystring: this._useQuerystring,
- encoding: null,
+ json: true,
};
if (Object.keys(localVarFormParams).length) {
@@ -3033,55 +3022,45 @@ export class PdfApi {
}
}
const response = await invokeApiMethod(localVarRequestOptions, this.configuration, false, fileData);
- const result = ObjectSerializer.deserialize(response.body, "Buffer");
+ const result = ObjectSerializer.deserialize(response.body, "ImagesResponse");
return Promise.resolve({body: result, response});
}
/**
*
- * @summary Convert document page to Gif image and return resulting file in response.
+ * @summary Read document page ink annotation by ID.
* @param name The document name.
- * @param pageNumber The page number.
- * @param width The converted image width.
- * @param height The converted image height.
- * @param folder The document folder.
+ * @param annotationId The annotation ID.
* @param storage The document storage.
+ * @param folder The document folder.
*/
- public async getPageConvertToGif (name: string, pageNumber: number, width?: number, height?: number, folder?: string, storage?: string) : Promise<{ response: http.ClientResponse; body: Buffer; }> {
- const localVarPath = this.basePath + '/pdf/{name}/pages/{pageNumber}/convert/gif'
+ public async getInkAnnotation (name: string, annotationId: string, storage?: string, folder?: string) : Promise<{ response: http.IncomingMessage; body: InkAnnotationResponse; }> {
+ const localVarPath = this.basePath + '/pdf/{name}/annotations/ink/{annotationId}'
.replace('{' + 'name' + '}', encodeURIComponent(String(name)))
- .replace('{' + 'pageNumber' + '}', encodeURIComponent(String(pageNumber)));
+ .replace('{' + 'annotationId' + '}', encodeURIComponent(String(annotationId)));
let localVarQueryParameters: any = {};
let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders);
let localVarFormParams: any = {};
// verify required parameter 'name' is not null or undefined
if (name === null || name === undefined) {
- throw new Error('Required parameter name was null or undefined when calling getPageConvertToGif.');
+ throw new Error('Required parameter name was null or undefined when calling getInkAnnotation.');
}
- // verify required parameter 'pageNumber' is not null or undefined
- if (pageNumber === null || pageNumber === undefined) {
- throw new Error('Required parameter pageNumber was null or undefined when calling getPageConvertToGif.');
- }
-
- if (width !== undefined && null !== width) {
- localVarQueryParameters['width'] = ObjectSerializer.serialize(width, "number");
+ // verify required parameter 'annotationId' is not null or undefined
+ if (annotationId === null || annotationId === undefined) {
+ throw new Error('Required parameter annotationId was null or undefined when calling getInkAnnotation.');
}
- if (height !== undefined && null !== height) {
- localVarQueryParameters['height'] = ObjectSerializer.serialize(height, "number");
+ if (storage !== undefined && null !== storage) {
+ localVarQueryParameters['storage'] = ObjectSerializer.serialize(storage, "string");
}
if (folder !== undefined && null !== folder) {
localVarQueryParameters['folder'] = ObjectSerializer.serialize(folder, "string");
}
- if (storage !== undefined && null !== storage) {
- localVarQueryParameters['storage'] = ObjectSerializer.serialize(storage, "string");
- }
-
let localVarUseFormData = false;
let fileData = null;
@@ -3091,7 +3070,7 @@ export class PdfApi {
headers: localVarHeaderParams,
uri: localVarPath,
useQuerystring: this._useQuerystring,
- encoding: null,
+ json: true,
};
if (Object.keys(localVarFormParams).length) {
@@ -3102,49 +3081,30 @@ export class PdfApi {
}
}
const response = await invokeApiMethod(localVarRequestOptions, this.configuration, false, fileData);
- const result = ObjectSerializer.deserialize(response.body, "Buffer");
+ const result = ObjectSerializer.deserialize(response.body, "InkAnnotationResponse");
return Promise.resolve({body: result, response});
}
/**
*
- * @summary Convert document page to Jpeg image and return resulting file in response.
- * @param name The document name.
- * @param pageNumber The page number.
- * @param width The converted image width.
- * @param height The converted image height.
- * @param folder The document folder.
+ * @summary Convert LaTeX file (located on storage) to PDF format and return resulting file in response.
+ * @param srcPath Full source filename (ex. /folder1/folder2/template.tex)
* @param storage The document storage.
*/
- public async getPageConvertToJpeg (name: string, pageNumber: number, width?: number, height?: number, folder?: string, storage?: string) : Promise<{ response: http.ClientResponse; body: Buffer; }> {
- const localVarPath = this.basePath + '/pdf/{name}/pages/{pageNumber}/convert/jpeg'
- .replace('{' + 'name' + '}', encodeURIComponent(String(name)))
- .replace('{' + 'pageNumber' + '}', encodeURIComponent(String(pageNumber)));
+ public async getLaTeXInStorageToPdf (srcPath: string, storage?: string) : Promise<{ response: http.IncomingMessage; body: Buffer; }> {
+ const localVarPath = this.basePath + '/pdf/create/latex';
let localVarQueryParameters: any = {};
let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders);
let localVarFormParams: any = {};
- // verify required parameter 'name' is not null or undefined
- if (name === null || name === undefined) {
- throw new Error('Required parameter name was null or undefined when calling getPageConvertToJpeg.');
- }
-
- // verify required parameter 'pageNumber' is not null or undefined
- if (pageNumber === null || pageNumber === undefined) {
- throw new Error('Required parameter pageNumber was null or undefined when calling getPageConvertToJpeg.');
- }
-
- if (width !== undefined && null !== width) {
- localVarQueryParameters['width'] = ObjectSerializer.serialize(width, "number");
- }
-
- if (height !== undefined && null !== height) {
- localVarQueryParameters['height'] = ObjectSerializer.serialize(height, "number");
+ // verify required parameter 'srcPath' is not null or undefined
+ if (srcPath === null || srcPath === undefined) {
+ throw new Error('Required parameter srcPath was null or undefined when calling getLaTeXInStorageToPdf.');
}
- if (folder !== undefined && null !== folder) {
- localVarQueryParameters['folder'] = ObjectSerializer.serialize(folder, "string");
+ if (srcPath !== undefined && null !== srcPath) {
+ localVarQueryParameters['srcPath'] = ObjectSerializer.serialize(srcPath, "string");
}
if (storage !== undefined && null !== storage) {
@@ -3178,48 +3138,38 @@ export class PdfApi {
/**
*
- * @summary Convert document page to Png image and return resulting file in response.
+ * @summary Read document page line annotation by ID.
* @param name The document name.
- * @param pageNumber The page number.
- * @param width The converted image width.
- * @param height The converted image height.
- * @param folder The document folder.
+ * @param annotationId The annotation ID.
* @param storage The document storage.
+ * @param folder The document folder.
*/
- public async getPageConvertToPng (name: string, pageNumber: number, width?: number, height?: number, folder?: string, storage?: string) : Promise<{ response: http.ClientResponse; body: Buffer; }> {
- const localVarPath = this.basePath + '/pdf/{name}/pages/{pageNumber}/convert/png'
+ public async getLineAnnotation (name: string, annotationId: string, storage?: string, folder?: string) : Promise<{ response: http.IncomingMessage; body: LineAnnotationResponse; }> {
+ const localVarPath = this.basePath + '/pdf/{name}/annotations/line/{annotationId}'
.replace('{' + 'name' + '}', encodeURIComponent(String(name)))
- .replace('{' + 'pageNumber' + '}', encodeURIComponent(String(pageNumber)));
+ .replace('{' + 'annotationId' + '}', encodeURIComponent(String(annotationId)));
let localVarQueryParameters: any = {};
let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders);
let localVarFormParams: any = {};
// verify required parameter 'name' is not null or undefined
if (name === null || name === undefined) {
- throw new Error('Required parameter name was null or undefined when calling getPageConvertToPng.');
- }
-
- // verify required parameter 'pageNumber' is not null or undefined
- if (pageNumber === null || pageNumber === undefined) {
- throw new Error('Required parameter pageNumber was null or undefined when calling getPageConvertToPng.');
+ throw new Error('Required parameter name was null or undefined when calling getLineAnnotation.');
}
- if (width !== undefined && null !== width) {
- localVarQueryParameters['width'] = ObjectSerializer.serialize(width, "number");
+ // verify required parameter 'annotationId' is not null or undefined
+ if (annotationId === null || annotationId === undefined) {
+ throw new Error('Required parameter annotationId was null or undefined when calling getLineAnnotation.');
}
- if (height !== undefined && null !== height) {
- localVarQueryParameters['height'] = ObjectSerializer.serialize(height, "number");
+ if (storage !== undefined && null !== storage) {
+ localVarQueryParameters['storage'] = ObjectSerializer.serialize(storage, "string");
}
if (folder !== undefined && null !== folder) {
localVarQueryParameters['folder'] = ObjectSerializer.serialize(folder, "string");
}
- if (storage !== undefined && null !== storage) {
- localVarQueryParameters['storage'] = ObjectSerializer.serialize(storage, "string");
- }
-
let localVarUseFormData = false;
let fileData = null;
@@ -3229,7 +3179,7 @@ export class PdfApi {
headers: localVarHeaderParams,
uri: localVarPath,
useQuerystring: this._useQuerystring,
- encoding: null,
+ json: true,
};
if (Object.keys(localVarFormParams).length) {
@@ -3240,55 +3190,45 @@ export class PdfApi {
}
}
const response = await invokeApiMethod(localVarRequestOptions, this.configuration, false, fileData);
- const result = ObjectSerializer.deserialize(response.body, "Buffer");
+ const result = ObjectSerializer.deserialize(response.body, "LineAnnotationResponse");
return Promise.resolve({body: result, response});
}
/**
*
- * @summary Convert document page to Tiff image and return resulting file in response.
+ * @summary Read document link annotation by ID.
* @param name The document name.
- * @param pageNumber The page number.
- * @param width The converted image width.
- * @param height The converted image height.
- * @param folder The document folder.
+ * @param linkId The link ID.
* @param storage The document storage.
+ * @param folder The document folder.
*/
- public async getPageConvertToTiff (name: string, pageNumber: number, width?: number, height?: number, folder?: string, storage?: string) : Promise<{ response: http.ClientResponse; body: Buffer; }> {
- const localVarPath = this.basePath + '/pdf/{name}/pages/{pageNumber}/convert/tiff'
+ public async getLinkAnnotation (name: string, linkId: string, storage?: string, folder?: string) : Promise<{ response: http.IncomingMessage; body: LinkAnnotationResponse; }> {
+ const localVarPath = this.basePath + '/pdf/{name}/links/{linkId}'
.replace('{' + 'name' + '}', encodeURIComponent(String(name)))
- .replace('{' + 'pageNumber' + '}', encodeURIComponent(String(pageNumber)));
+ .replace('{' + 'linkId' + '}', encodeURIComponent(String(linkId)));
let localVarQueryParameters: any = {};
let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders);
let localVarFormParams: any = {};
// verify required parameter 'name' is not null or undefined
if (name === null || name === undefined) {
- throw new Error('Required parameter name was null or undefined when calling getPageConvertToTiff.');
- }
-
- // verify required parameter 'pageNumber' is not null or undefined
- if (pageNumber === null || pageNumber === undefined) {
- throw new Error('Required parameter pageNumber was null or undefined when calling getPageConvertToTiff.');
+ throw new Error('Required parameter name was null or undefined when calling getLinkAnnotation.');
}
- if (width !== undefined && null !== width) {
- localVarQueryParameters['width'] = ObjectSerializer.serialize(width, "number");
+ // verify required parameter 'linkId' is not null or undefined
+ if (linkId === null || linkId === undefined) {
+ throw new Error('Required parameter linkId was null or undefined when calling getLinkAnnotation.');
}
- if (height !== undefined && null !== height) {
- localVarQueryParameters['height'] = ObjectSerializer.serialize(height, "number");
+ if (storage !== undefined && null !== storage) {
+ localVarQueryParameters['storage'] = ObjectSerializer.serialize(storage, "string");
}
if (folder !== undefined && null !== folder) {
localVarQueryParameters['folder'] = ObjectSerializer.serialize(folder, "string");
}
- if (storage !== undefined && null !== storage) {
- localVarQueryParameters['storage'] = ObjectSerializer.serialize(storage, "string");
- }
-
let localVarUseFormData = false;
let fileData = null;
@@ -3298,7 +3238,7 @@ export class PdfApi {
headers: localVarHeaderParams,
uri: localVarPath,
useQuerystring: this._useQuerystring,
- encoding: null,
+ json: true,
};
if (Object.keys(localVarFormParams).length) {
@@ -3309,45 +3249,31 @@ export class PdfApi {
}
}
const response = await invokeApiMethod(localVarRequestOptions, this.configuration, false, fileData);
- const result = ObjectSerializer.deserialize(response.body, "Buffer");
+ const result = ObjectSerializer.deserialize(response.body, "LinkAnnotationResponse");
return Promise.resolve({body: result, response});
}
/**
*
- * @summary Read document page free text annotations.
- * @param name The document name.
- * @param pageNumber The page number.
- * @param storage The document storage.
- * @param folder The document folder.
+ * @summary Get the file listing of a specific folder
+ * @param path Start with name of storage e.g. root folder '/'or some folder '/folder1/..'
+ * @param storage User's storage name
*/
- public async getPageFreeTextAnnotations (name: string, pageNumber: number, storage?: string, folder?: string) : Promise<{ response: http.ClientResponse; body: FreeTextAnnotationsResponse; }> {
- const localVarPath = this.basePath + '/pdf/{name}/pages/{pageNumber}/annotations/freetext'
- .replace('{' + 'name' + '}', encodeURIComponent(String(name)))
- .replace('{' + 'pageNumber' + '}', encodeURIComponent(String(pageNumber)));
+ public async getListFiles (path?: string, storage?: string) : Promise<{ response: http.IncomingMessage; body: FilesResponse; }> {
+ const localVarPath = this.basePath + '/storage/folder';
let localVarQueryParameters: any = {};
let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders);
let localVarFormParams: any = {};
- // verify required parameter 'name' is not null or undefined
- if (name === null || name === undefined) {
- throw new Error('Required parameter name was null or undefined when calling getPageFreeTextAnnotations.');
- }
-
- // verify required parameter 'pageNumber' is not null or undefined
- if (pageNumber === null || pageNumber === undefined) {
- throw new Error('Required parameter pageNumber was null or undefined when calling getPageFreeTextAnnotations.');
+ if (path !== undefined && null !== path) {
+ localVarQueryParameters['path'] = ObjectSerializer.serialize(path, "string");
}
if (storage !== undefined && null !== storage) {
localVarQueryParameters['storage'] = ObjectSerializer.serialize(storage, "string");
}
- if (folder !== undefined && null !== folder) {
- localVarQueryParameters['folder'] = ObjectSerializer.serialize(folder, "string");
- }
-
let localVarUseFormData = false;
let fileData = null;
@@ -3368,45 +3294,36 @@ export class PdfApi {
}
}
const response = await invokeApiMethod(localVarRequestOptions, this.configuration, false, fileData);
- const result = ObjectSerializer.deserialize(response.body, "FreeTextAnnotationsResponse");
+ const result = ObjectSerializer.deserialize(response.body, "FilesResponse");
return Promise.resolve({body: result, response});
}
/**
*
- * @summary Read document page line annotations.
- * @param name The document name.
- * @param pageNumber The page number.
+ * @summary Convert MHT file (located on storage) to PDF format and return resulting file in response.
+ * @param srcPath Full source filename (ex. /folder1/folder2/template.mht)
* @param storage The document storage.
- * @param folder The document folder.
*/
- public async getPageLineAnnotations (name: string, pageNumber: number, storage?: string, folder?: string) : Promise<{ response: http.ClientResponse; body: LineAnnotationsResponse; }> {
- const localVarPath = this.basePath + '/pdf/{name}/pages/{pageNumber}/annotations/line'
- .replace('{' + 'name' + '}', encodeURIComponent(String(name)))
- .replace('{' + 'pageNumber' + '}', encodeURIComponent(String(pageNumber)));
+ public async getMhtInStorageToPdf (srcPath: string, storage?: string) : Promise<{ response: http.IncomingMessage; body: Buffer; }> {
+ const localVarPath = this.basePath + '/pdf/create/mht';
let localVarQueryParameters: any = {};
let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders);
let localVarFormParams: any = {};
- // verify required parameter 'name' is not null or undefined
- if (name === null || name === undefined) {
- throw new Error('Required parameter name was null or undefined when calling getPageLineAnnotations.');
+ // verify required parameter 'srcPath' is not null or undefined
+ if (srcPath === null || srcPath === undefined) {
+ throw new Error('Required parameter srcPath was null or undefined when calling getMhtInStorageToPdf.');
}
- // verify required parameter 'pageNumber' is not null or undefined
- if (pageNumber === null || pageNumber === undefined) {
- throw new Error('Required parameter pageNumber was null or undefined when calling getPageLineAnnotations.');
+ if (srcPath !== undefined && null !== srcPath) {
+ localVarQueryParameters['srcPath'] = ObjectSerializer.serialize(srcPath, "string");
}
if (storage !== undefined && null !== storage) {
localVarQueryParameters['storage'] = ObjectSerializer.serialize(storage, "string");
}
- if (folder !== undefined && null !== folder) {
- localVarQueryParameters['folder'] = ObjectSerializer.serialize(folder, "string");
- }
-
let localVarUseFormData = false;
let fileData = null;
@@ -3416,7 +3333,7 @@ export class PdfApi {
headers: localVarHeaderParams,
uri: localVarPath,
useQuerystring: this._useQuerystring,
- json: true,
+ encoding: null,
};
if (Object.keys(localVarFormParams).length) {
@@ -3427,42 +3344,35 @@ export class PdfApi {
}
}
const response = await invokeApiMethod(localVarRequestOptions, this.configuration, false, fileData);
- const result = ObjectSerializer.deserialize(response.body, "LineAnnotationsResponse");
+ const result = ObjectSerializer.deserialize(response.body, "Buffer");
return Promise.resolve({body: result, response});
}
/**
*
- * @summary Read document page link annotation by ID.
+ * @summary Read document page info.
* @param name The document name.
* @param pageNumber The page number.
- * @param linkId The link ID.
* @param storage The document storage.
* @param folder The document folder.
*/
- public async getPageLinkAnnotation (name: string, pageNumber: number, linkId: string, storage?: string, folder?: string) : Promise<{ response: http.ClientResponse; body: LinkAnnotationResponse; }> {
- const localVarPath = this.basePath + '/pdf/{name}/pages/{pageNumber}/links/{linkId}'
+ public async getPage (name: string, pageNumber: number, storage?: string, folder?: string) : Promise<{ response: http.IncomingMessage; body: DocumentPageResponse; }> {
+ const localVarPath = this.basePath + '/pdf/{name}/pages/{pageNumber}'
.replace('{' + 'name' + '}', encodeURIComponent(String(name)))
- .replace('{' + 'pageNumber' + '}', encodeURIComponent(String(pageNumber)))
- .replace('{' + 'linkId' + '}', encodeURIComponent(String(linkId)));
+ .replace('{' + 'pageNumber' + '}', encodeURIComponent(String(pageNumber)));
let localVarQueryParameters: any = {};
let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders);
let localVarFormParams: any = {};
// verify required parameter 'name' is not null or undefined
if (name === null || name === undefined) {
- throw new Error('Required parameter name was null or undefined when calling getPageLinkAnnotation.');
+ throw new Error('Required parameter name was null or undefined when calling getPage.');
}
// verify required parameter 'pageNumber' is not null or undefined
if (pageNumber === null || pageNumber === undefined) {
- throw new Error('Required parameter pageNumber was null or undefined when calling getPageLinkAnnotation.');
- }
-
- // verify required parameter 'linkId' is not null or undefined
- if (linkId === null || linkId === undefined) {
- throw new Error('Required parameter linkId was null or undefined when calling getPageLinkAnnotation.');
+ throw new Error('Required parameter pageNumber was null or undefined when calling getPage.');
}
if (storage !== undefined && null !== storage) {
@@ -3493,21 +3403,21 @@ export class PdfApi {
}
}
const response = await invokeApiMethod(localVarRequestOptions, this.configuration, false, fileData);
- const result = ObjectSerializer.deserialize(response.body, "LinkAnnotationResponse");
+ const result = ObjectSerializer.deserialize(response.body, "DocumentPageResponse");
return Promise.resolve({body: result, response});
}
/**
*
- * @summary Read document page link annotations.
+ * @summary Read documant page annotations. Returns only FreeTextAnnotations, TextAnnotations, other annotations will implemented next releases.
* @param name The document name.
* @param pageNumber The page number.
* @param storage The document storage.
* @param folder The document folder.
*/
- public async getPageLinkAnnotations (name: string, pageNumber: number, storage?: string, folder?: string) : Promise<{ response: http.ClientResponse; body: LinkAnnotationsResponse; }> {
- const localVarPath = this.basePath + '/pdf/{name}/pages/{pageNumber}/links'
+ public async getPageAnnotations (name: string, pageNumber: number, storage?: string, folder?: string) : Promise<{ response: http.IncomingMessage; body: AnnotationsInfoResponse; }> {
+ const localVarPath = this.basePath + '/pdf/{name}/pages/{pageNumber}/annotations'
.replace('{' + 'name' + '}', encodeURIComponent(String(name)))
.replace('{' + 'pageNumber' + '}', encodeURIComponent(String(pageNumber)));
let localVarQueryParameters: any = {};
@@ -3516,12 +3426,12 @@ export class PdfApi {
// verify required parameter 'name' is not null or undefined
if (name === null || name === undefined) {
- throw new Error('Required parameter name was null or undefined when calling getPageLinkAnnotations.');
+ throw new Error('Required parameter name was null or undefined when calling getPageAnnotations.');
}
// verify required parameter 'pageNumber' is not null or undefined
if (pageNumber === null || pageNumber === undefined) {
- throw new Error('Required parameter pageNumber was null or undefined when calling getPageLinkAnnotations.');
+ throw new Error('Required parameter pageNumber was null or undefined when calling getPageAnnotations.');
}
if (storage !== undefined && null !== storage) {
@@ -3552,21 +3462,21 @@ export class PdfApi {
}
}
const response = await invokeApiMethod(localVarRequestOptions, this.configuration, false, fileData);
- const result = ObjectSerializer.deserialize(response.body, "LinkAnnotationsResponse");
+ const result = ObjectSerializer.deserialize(response.body, "AnnotationsInfoResponse");
return Promise.resolve({body: result, response});
}
/**
*
- * @summary Read document page polyline annotations.
+ * @summary Read document page caret annotations.
* @param name The document name.
* @param pageNumber The page number.
* @param storage The document storage.
* @param folder The document folder.
*/
- public async getPagePolyLineAnnotations (name: string, pageNumber: number, storage?: string, folder?: string) : Promise<{ response: http.ClientResponse; body: PolyLineAnnotationsResponse; }> {
- const localVarPath = this.basePath + '/pdf/{name}/pages/{pageNumber}/annotations/polyline'
+ public async getPageCaretAnnotations (name: string, pageNumber: number, storage?: string, folder?: string) : Promise<{ response: http.IncomingMessage; body: CaretAnnotationsResponse; }> {
+ const localVarPath = this.basePath + '/pdf/{name}/pages/{pageNumber}/annotations/caret'
.replace('{' + 'name' + '}', encodeURIComponent(String(name)))
.replace('{' + 'pageNumber' + '}', encodeURIComponent(String(pageNumber)));
let localVarQueryParameters: any = {};
@@ -3575,12 +3485,12 @@ export class PdfApi {
// verify required parameter 'name' is not null or undefined
if (name === null || name === undefined) {
- throw new Error('Required parameter name was null or undefined when calling getPagePolyLineAnnotations.');
+ throw new Error('Required parameter name was null or undefined when calling getPageCaretAnnotations.');
}
// verify required parameter 'pageNumber' is not null or undefined
if (pageNumber === null || pageNumber === undefined) {
- throw new Error('Required parameter pageNumber was null or undefined when calling getPagePolyLineAnnotations.');
+ throw new Error('Required parameter pageNumber was null or undefined when calling getPageCaretAnnotations.');
}
if (storage !== undefined && null !== storage) {
@@ -3611,21 +3521,21 @@ export class PdfApi {
}
}
const response = await invokeApiMethod(localVarRequestOptions, this.configuration, false, fileData);
- const result = ObjectSerializer.deserialize(response.body, "PolyLineAnnotationsResponse");
+ const result = ObjectSerializer.deserialize(response.body, "CaretAnnotationsResponse");
return Promise.resolve({body: result, response});
}
/**
*
- * @summary Read document page polygon annotations.
+ * @summary Read document page circle annotations.
* @param name The document name.
* @param pageNumber The page number.
* @param storage The document storage.
* @param folder The document folder.
*/
- public async getPagePolygonAnnotations (name: string, pageNumber: number, storage?: string, folder?: string) : Promise<{ response: http.ClientResponse; body: PolygonAnnotationsResponse; }> {
- const localVarPath = this.basePath + '/pdf/{name}/pages/{pageNumber}/annotations/polygon'
+ public async getPageCircleAnnotations (name: string, pageNumber: number, storage?: string, folder?: string) : Promise<{ response: http.IncomingMessage; body: CircleAnnotationsResponse; }> {
+ const localVarPath = this.basePath + '/pdf/{name}/pages/{pageNumber}/annotations/circle'
.replace('{' + 'name' + '}', encodeURIComponent(String(name)))
.replace('{' + 'pageNumber' + '}', encodeURIComponent(String(pageNumber)));
let localVarQueryParameters: any = {};
@@ -3634,12 +3544,12 @@ export class PdfApi {
// verify required parameter 'name' is not null or undefined
if (name === null || name === undefined) {
- throw new Error('Required parameter name was null or undefined when calling getPagePolygonAnnotations.');
+ throw new Error('Required parameter name was null or undefined when calling getPageCircleAnnotations.');
}
// verify required parameter 'pageNumber' is not null or undefined
if (pageNumber === null || pageNumber === undefined) {
- throw new Error('Required parameter pageNumber was null or undefined when calling getPagePolygonAnnotations.');
+ throw new Error('Required parameter pageNumber was null or undefined when calling getPageCircleAnnotations.');
}
if (storage !== undefined && null !== storage) {
@@ -3670,21 +3580,23 @@ export class PdfApi {
}
}
const response = await invokeApiMethod(localVarRequestOptions, this.configuration, false, fileData);
- const result = ObjectSerializer.deserialize(response.body, "PolygonAnnotationsResponse");
+ const result = ObjectSerializer.deserialize(response.body, "CircleAnnotationsResponse");
return Promise.resolve({body: result, response});
}
/**
*
- * @summary Read document page square annotations.
+ * @summary Convert document page to Bmp image and return resulting file in response.
* @param name The document name.
* @param pageNumber The page number.
- * @param storage The document storage.
+ * @param width The converted image width.
+ * @param height The converted image height.
* @param folder The document folder.
+ * @param storage The document storage.
*/
- public async getPageSquareAnnotations (name: string, pageNumber: number, storage?: string, folder?: string) : Promise<{ response: http.ClientResponse; body: SquareAnnotationsResponse; }> {
- const localVarPath = this.basePath + '/pdf/{name}/pages/{pageNumber}/annotations/square'
+ public async getPageConvertToBmp (name: string, pageNumber: number, width?: number, height?: number, folder?: string, storage?: string) : Promise<{ response: http.IncomingMessage; body: Buffer; }> {
+ const localVarPath = this.basePath + '/pdf/{name}/pages/{pageNumber}/convert/bmp'
.replace('{' + 'name' + '}', encodeURIComponent(String(name)))
.replace('{' + 'pageNumber' + '}', encodeURIComponent(String(pageNumber)));
let localVarQueryParameters: any = {};
@@ -3693,22 +3605,30 @@ export class PdfApi {
// verify required parameter 'name' is not null or undefined
if (name === null || name === undefined) {
- throw new Error('Required parameter name was null or undefined when calling getPageSquareAnnotations.');
+ throw new Error('Required parameter name was null or undefined when calling getPageConvertToBmp.');
}
// verify required parameter 'pageNumber' is not null or undefined
if (pageNumber === null || pageNumber === undefined) {
- throw new Error('Required parameter pageNumber was null or undefined when calling getPageSquareAnnotations.');
+ throw new Error('Required parameter pageNumber was null or undefined when calling getPageConvertToBmp.');
}
- if (storage !== undefined && null !== storage) {
- localVarQueryParameters['storage'] = ObjectSerializer.serialize(storage, "string");
+ if (width !== undefined && null !== width) {
+ localVarQueryParameters['width'] = ObjectSerializer.serialize(width, "number");
+ }
+
+ if (height !== undefined && null !== height) {
+ localVarQueryParameters['height'] = ObjectSerializer.serialize(height, "number");
}
if (folder !== undefined && null !== folder) {
localVarQueryParameters['folder'] = ObjectSerializer.serialize(folder, "string");
}
+ if (storage !== undefined && null !== storage) {
+ localVarQueryParameters['storage'] = ObjectSerializer.serialize(storage, "string");
+ }
+
let localVarUseFormData = false;
let fileData = null;
@@ -3718,7 +3638,7 @@ export class PdfApi {
headers: localVarHeaderParams,
uri: localVarPath,
useQuerystring: this._useQuerystring,
- json: true,
+ encoding: null,
};
if (Object.keys(localVarFormParams).length) {
@@ -3729,28 +3649,23 @@ export class PdfApi {
}
}
const response = await invokeApiMethod(localVarRequestOptions, this.configuration, false, fileData);
- const result = ObjectSerializer.deserialize(response.body, "SquareAnnotationsResponse");
+ const result = ObjectSerializer.deserialize(response.body, "Buffer");
return Promise.resolve({body: result, response});
}
/**
*
- * @summary Read page text items.
+ * @summary Convert document page to Emf image and return resulting file in response.
* @param name The document name.
- * @param pageNumber Number of page (starting from 1).
- * @param LLX
- * @param LLY
- * @param URX
- * @param URY
- * @param format List of formats for search.
- * @param regex Formats are specified as a regular expression.
- * @param splitRects Split result fragments (default is true).
+ * @param pageNumber The page number.
+ * @param width The converted image width.
+ * @param height The converted image height.
* @param folder The document folder.
* @param storage The document storage.
*/
- public async getPageText (name: string, pageNumber: number, LLX: number, LLY: number, URX: number, URY: number, format?: Array, regex?: string, splitRects?: boolean, folder?: string, storage?: string) : Promise<{ response: http.ClientResponse; body: TextRectsResponse; }> {
- const localVarPath = this.basePath + '/pdf/{name}/pages/{pageNumber}/text'
+ public async getPageConvertToEmf (name: string, pageNumber: number, width?: number, height?: number, folder?: string, storage?: string) : Promise<{ response: http.IncomingMessage; body: Buffer; }> {
+ const localVarPath = this.basePath + '/pdf/{name}/pages/{pageNumber}/convert/emf'
.replace('{' + 'name' + '}', encodeURIComponent(String(name)))
.replace('{' + 'pageNumber' + '}', encodeURIComponent(String(pageNumber)));
let localVarQueryParameters: any = {};
@@ -3759,66 +3674,26 @@ export class PdfApi {
// verify required parameter 'name' is not null or undefined
if (name === null || name === undefined) {
- throw new Error('Required parameter name was null or undefined when calling getPageText.');
+ throw new Error('Required parameter name was null or undefined when calling getPageConvertToEmf.');
}
// verify required parameter 'pageNumber' is not null or undefined
if (pageNumber === null || pageNumber === undefined) {
- throw new Error('Required parameter pageNumber was null or undefined when calling getPageText.');
- }
-
- // verify required parameter 'LLX' is not null or undefined
- if (LLX === null || LLX === undefined) {
- throw new Error('Required parameter LLX was null or undefined when calling getPageText.');
- }
-
- // verify required parameter 'LLY' is not null or undefined
- if (LLY === null || LLY === undefined) {
- throw new Error('Required parameter LLY was null or undefined when calling getPageText.');
- }
-
- // verify required parameter 'URX' is not null or undefined
- if (URX === null || URX === undefined) {
- throw new Error('Required parameter URX was null or undefined when calling getPageText.');
- }
-
- // verify required parameter 'URY' is not null or undefined
- if (URY === null || URY === undefined) {
- throw new Error('Required parameter URY was null or undefined when calling getPageText.');
- }
-
- if (format !== undefined && null !== format) {
- localVarQueryParameters['format'] = ObjectSerializer.serialize(format, "Array");
+ throw new Error('Required parameter pageNumber was null or undefined when calling getPageConvertToEmf.');
}
- if (regex !== undefined && null !== regex) {
- localVarQueryParameters['regex'] = ObjectSerializer.serialize(regex, "string");
+ if (width !== undefined && null !== width) {
+ localVarQueryParameters['width'] = ObjectSerializer.serialize(width, "number");
}
- if (splitRects !== undefined && null !== splitRects) {
- localVarQueryParameters['splitRects'] = ObjectSerializer.serialize(splitRects, "boolean");
+ if (height !== undefined && null !== height) {
+ localVarQueryParameters['height'] = ObjectSerializer.serialize(height, "number");
}
if (folder !== undefined && null !== folder) {
localVarQueryParameters['folder'] = ObjectSerializer.serialize(folder, "string");
}
- if (LLX !== undefined && null !== LLX) {
- localVarQueryParameters['LLX'] = ObjectSerializer.serialize(LLX, "number");
- }
-
- if (LLY !== undefined && null !== LLY) {
- localVarQueryParameters['LLY'] = ObjectSerializer.serialize(LLY, "number");
- }
-
- if (URX !== undefined && null !== URX) {
- localVarQueryParameters['URX'] = ObjectSerializer.serialize(URX, "number");
- }
-
- if (URY !== undefined && null !== URY) {
- localVarQueryParameters['URY'] = ObjectSerializer.serialize(URY, "number");
- }
-
if (storage !== undefined && null !== storage) {
localVarQueryParameters['storage'] = ObjectSerializer.serialize(storage, "string");
}
@@ -3832,7 +3707,7 @@ export class PdfApi {
headers: localVarHeaderParams,
uri: localVarPath,
useQuerystring: this._useQuerystring,
- json: true,
+ encoding: null,
};
if (Object.keys(localVarFormParams).length) {
@@ -3843,21 +3718,23 @@ export class PdfApi {
}
}
const response = await invokeApiMethod(localVarRequestOptions, this.configuration, false, fileData);
- const result = ObjectSerializer.deserialize(response.body, "TextRectsResponse");
+ const result = ObjectSerializer.deserialize(response.body, "Buffer");
return Promise.resolve({body: result, response});
}
/**
*
- * @summary Read document page text annotations.
+ * @summary Convert document page to Gif image and return resulting file in response.
* @param name The document name.
* @param pageNumber The page number.
- * @param storage The document storage.
+ * @param width The converted image width.
+ * @param height The converted image height.
* @param folder The document folder.
+ * @param storage The document storage.
*/
- public async getPageTextAnnotations (name: string, pageNumber: number, storage?: string, folder?: string) : Promise<{ response: http.ClientResponse; body: TextAnnotationsResponse; }> {
- const localVarPath = this.basePath + '/pdf/{name}/pages/{pageNumber}/annotations/text'
+ public async getPageConvertToGif (name: string, pageNumber: number, width?: number, height?: number, folder?: string, storage?: string) : Promise<{ response: http.IncomingMessage; body: Buffer; }> {
+ const localVarPath = this.basePath + '/pdf/{name}/pages/{pageNumber}/convert/gif'
.replace('{' + 'name' + '}', encodeURIComponent(String(name)))
.replace('{' + 'pageNumber' + '}', encodeURIComponent(String(pageNumber)));
let localVarQueryParameters: any = {};
@@ -3866,22 +3743,30 @@ export class PdfApi {
// verify required parameter 'name' is not null or undefined
if (name === null || name === undefined) {
- throw new Error('Required parameter name was null or undefined when calling getPageTextAnnotations.');
+ throw new Error('Required parameter name was null or undefined when calling getPageConvertToGif.');
}
// verify required parameter 'pageNumber' is not null or undefined
if (pageNumber === null || pageNumber === undefined) {
- throw new Error('Required parameter pageNumber was null or undefined when calling getPageTextAnnotations.');
+ throw new Error('Required parameter pageNumber was null or undefined when calling getPageConvertToGif.');
}
- if (storage !== undefined && null !== storage) {
- localVarQueryParameters['storage'] = ObjectSerializer.serialize(storage, "string");
+ if (width !== undefined && null !== width) {
+ localVarQueryParameters['width'] = ObjectSerializer.serialize(width, "number");
+ }
+
+ if (height !== undefined && null !== height) {
+ localVarQueryParameters['height'] = ObjectSerializer.serialize(height, "number");
}
if (folder !== undefined && null !== folder) {
localVarQueryParameters['folder'] = ObjectSerializer.serialize(folder, "string");
}
+ if (storage !== undefined && null !== storage) {
+ localVarQueryParameters['storage'] = ObjectSerializer.serialize(storage, "string");
+ }
+
let localVarUseFormData = false;
let fileData = null;
@@ -3891,7 +3776,7 @@ export class PdfApi {
headers: localVarHeaderParams,
uri: localVarPath,
useQuerystring: this._useQuerystring,
- json: true,
+ encoding: null,
};
if (Object.keys(localVarFormParams).length) {
@@ -3902,38 +3787,55 @@ export class PdfApi {
}
}
const response = await invokeApiMethod(localVarRequestOptions, this.configuration, false, fileData);
- const result = ObjectSerializer.deserialize(response.body, "TextAnnotationsResponse");
+ const result = ObjectSerializer.deserialize(response.body, "Buffer");
return Promise.resolve({body: result, response});
}
/**
*
- * @summary Read document pages info.
+ * @summary Convert document page to Jpeg image and return resulting file in response.
* @param name The document name.
- * @param storage The document storage.
+ * @param pageNumber The page number.
+ * @param width The converted image width.
+ * @param height The converted image height.
* @param folder The document folder.
+ * @param storage The document storage.
*/
- public async getPages (name: string, storage?: string, folder?: string) : Promise<{ response: http.ClientResponse; body: DocumentPagesResponse; }> {
- const localVarPath = this.basePath + '/pdf/{name}/pages'
- .replace('{' + 'name' + '}', encodeURIComponent(String(name)));
+ public async getPageConvertToJpeg (name: string, pageNumber: number, width?: number, height?: number, folder?: string, storage?: string) : Promise<{ response: http.IncomingMessage; body: Buffer; }> {
+ const localVarPath = this.basePath + '/pdf/{name}/pages/{pageNumber}/convert/jpeg'
+ .replace('{' + 'name' + '}', encodeURIComponent(String(name)))
+ .replace('{' + 'pageNumber' + '}', encodeURIComponent(String(pageNumber)));
let localVarQueryParameters: any = {};
let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders);
let localVarFormParams: any = {};
// verify required parameter 'name' is not null or undefined
if (name === null || name === undefined) {
- throw new Error('Required parameter name was null or undefined when calling getPages.');
+ throw new Error('Required parameter name was null or undefined when calling getPageConvertToJpeg.');
}
- if (storage !== undefined && null !== storage) {
- localVarQueryParameters['storage'] = ObjectSerializer.serialize(storage, "string");
+ // verify required parameter 'pageNumber' is not null or undefined
+ if (pageNumber === null || pageNumber === undefined) {
+ throw new Error('Required parameter pageNumber was null or undefined when calling getPageConvertToJpeg.');
+ }
+
+ if (width !== undefined && null !== width) {
+ localVarQueryParameters['width'] = ObjectSerializer.serialize(width, "number");
+ }
+
+ if (height !== undefined && null !== height) {
+ localVarQueryParameters['height'] = ObjectSerializer.serialize(height, "number");
}
if (folder !== undefined && null !== folder) {
localVarQueryParameters['folder'] = ObjectSerializer.serialize(folder, "string");
}
+ if (storage !== undefined && null !== storage) {
+ localVarQueryParameters['storage'] = ObjectSerializer.serialize(storage, "string");
+ }
+
let localVarUseFormData = false;
let fileData = null;
@@ -3943,7 +3845,7 @@ export class PdfApi {
headers: localVarHeaderParams,
uri: localVarPath,
useQuerystring: this._useQuerystring,
- json: true,
+ encoding: null,
};
if (Object.keys(localVarFormParams).length) {
@@ -3954,30 +3856,49 @@ export class PdfApi {
}
}
const response = await invokeApiMethod(localVarRequestOptions, this.configuration, false, fileData);
- const result = ObjectSerializer.deserialize(response.body, "DocumentPagesResponse");
+ const result = ObjectSerializer.deserialize(response.body, "Buffer");
return Promise.resolve({body: result, response});
}
/**
*
- * @summary 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)
+ * @summary Convert document page to Png image and return resulting file in response.
+ * @param name The document name.
+ * @param pageNumber The page number.
+ * @param width The converted image width.
+ * @param height The converted image height.
+ * @param folder The document folder.
* @param storage The document storage.
*/
- public async getPclInStorageToPdf (srcPath: string, storage?: string) : Promise<{ response: http.ClientResponse; body: Buffer; }> {
- const localVarPath = this.basePath + '/pdf/create/pcl';
+ public async getPageConvertToPng (name: string, pageNumber: number, width?: number, height?: number, folder?: string, storage?: string) : Promise<{ response: http.IncomingMessage; body: Buffer; }> {
+ const localVarPath = this.basePath + '/pdf/{name}/pages/{pageNumber}/convert/png'
+ .replace('{' + 'name' + '}', encodeURIComponent(String(name)))
+ .replace('{' + 'pageNumber' + '}', encodeURIComponent(String(pageNumber)));
let localVarQueryParameters: any = {};
let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders);
let localVarFormParams: any = {};
- // verify required parameter 'srcPath' is not null or undefined
- if (srcPath === null || srcPath === undefined) {
- throw new Error('Required parameter srcPath was null or undefined when calling getPclInStorageToPdf.');
+ // verify required parameter 'name' is not null or undefined
+ if (name === null || name === undefined) {
+ throw new Error('Required parameter name was null or undefined when calling getPageConvertToPng.');
}
- if (srcPath !== undefined && null !== srcPath) {
- localVarQueryParameters['srcPath'] = ObjectSerializer.serialize(srcPath, "string");
+ // verify required parameter 'pageNumber' is not null or undefined
+ if (pageNumber === null || pageNumber === undefined) {
+ throw new Error('Required parameter pageNumber was null or undefined when calling getPageConvertToPng.');
+ }
+
+ if (width !== undefined && null !== width) {
+ localVarQueryParameters['width'] = ObjectSerializer.serialize(width, "number");
+ }
+
+ if (height !== undefined && null !== height) {
+ localVarQueryParameters['height'] = ObjectSerializer.serialize(height, "number");
+ }
+
+ if (folder !== undefined && null !== folder) {
+ localVarQueryParameters['folder'] = ObjectSerializer.serialize(folder, "string");
}
if (storage !== undefined && null !== storage) {
@@ -4011,61 +3932,38 @@ export class PdfApi {
/**
*
- * @summary Converts PDF document (located on storage) to DOC format and returns resulting file in response content
+ * @summary Convert document page to Tiff image and return resulting file in response.
* @param name The document name.
- * @param addReturnToLineEnd Add return to line end.
- * @param format Allows to specify .doc or .docx file format.
- * @param imageResolutionX Image resolution X.
- * @param imageResolutionY Image resolution Y.
- * @param maxDistanceBetweenTextLines Max distance between text lines.
- * @param mode Allows to control how a PDF document is converted into a word processing document.
- * @param recognizeBullets Recognize bullets.
- * @param relativeHorizontalProximity Relative horizontal proximity.
+ * @param pageNumber The page number.
+ * @param width The converted image width.
+ * @param height The converted image height.
* @param folder The document folder.
* @param storage The document storage.
*/
- public async getPdfInStorageToDoc (name: string, addReturnToLineEnd?: boolean, format?: string, imageResolutionX?: number, imageResolutionY?: number, maxDistanceBetweenTextLines?: number, mode?: string, recognizeBullets?: boolean, relativeHorizontalProximity?: number, folder?: string, storage?: string) : Promise<{ response: http.ClientResponse; body: Buffer; }> {
- const localVarPath = this.basePath + '/pdf/{name}/convert/doc'
- .replace('{' + 'name' + '}', encodeURIComponent(String(name)));
+ public async getPageConvertToTiff (name: string, pageNumber: number, width?: number, height?: number, folder?: string, storage?: string) : Promise<{ response: http.IncomingMessage; body: Buffer; }> {
+ const localVarPath = this.basePath + '/pdf/{name}/pages/{pageNumber}/convert/tiff'
+ .replace('{' + 'name' + '}', encodeURIComponent(String(name)))
+ .replace('{' + 'pageNumber' + '}', encodeURIComponent(String(pageNumber)));
let localVarQueryParameters: any = {};
let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders);
let localVarFormParams: any = {};
// verify required parameter 'name' is not null or undefined
if (name === null || name === undefined) {
- throw new Error('Required parameter name was null or undefined when calling getPdfInStorageToDoc.');
- }
-
- if (addReturnToLineEnd !== undefined && null !== addReturnToLineEnd) {
- localVarQueryParameters['addReturnToLineEnd'] = ObjectSerializer.serialize(addReturnToLineEnd, "boolean");
- }
-
- if (format !== undefined && null !== format) {
- localVarQueryParameters['format'] = ObjectSerializer.serialize(format, "string");
- }
-
- if (imageResolutionX !== undefined && null !== imageResolutionX) {
- localVarQueryParameters['imageResolutionX'] = ObjectSerializer.serialize(imageResolutionX, "number");
- }
-
- if (imageResolutionY !== undefined && null !== imageResolutionY) {
- localVarQueryParameters['imageResolutionY'] = ObjectSerializer.serialize(imageResolutionY, "number");
- }
-
- if (maxDistanceBetweenTextLines !== undefined && null !== maxDistanceBetweenTextLines) {
- localVarQueryParameters['maxDistanceBetweenTextLines'] = ObjectSerializer.serialize(maxDistanceBetweenTextLines, "number");
+ throw new Error('Required parameter name was null or undefined when calling getPageConvertToTiff.');
}
- if (mode !== undefined && null !== mode) {
- localVarQueryParameters['mode'] = ObjectSerializer.serialize(mode, "string");
+ // verify required parameter 'pageNumber' is not null or undefined
+ if (pageNumber === null || pageNumber === undefined) {
+ throw new Error('Required parameter pageNumber was null or undefined when calling getPageConvertToTiff.');
}
- if (recognizeBullets !== undefined && null !== recognizeBullets) {
- localVarQueryParameters['recognizeBullets'] = ObjectSerializer.serialize(recognizeBullets, "boolean");
+ if (width !== undefined && null !== width) {
+ localVarQueryParameters['width'] = ObjectSerializer.serialize(width, "number");
}
- if (relativeHorizontalProximity !== undefined && null !== relativeHorizontalProximity) {
- localVarQueryParameters['relativeHorizontalProximity'] = ObjectSerializer.serialize(relativeHorizontalProximity, "number");
+ if (height !== undefined && null !== height) {
+ localVarQueryParameters['height'] = ObjectSerializer.serialize(height, "number");
}
if (folder !== undefined && null !== folder) {
@@ -4103,26 +4001,1776 @@ export class PdfApi {
/**
*
- * @summary Converts PDF document (located on storage) to EPUB format and returns resulting file in response content
+ * @summary Read document page free text annotations.
* @param name The document name.
- * @param contentRecognitionMode ?roperty tunes conversion for this or that desirable method of recognition of content.
- * @param folder The document folder.
+ * @param pageNumber The page number.
* @param storage The document storage.
+ * @param folder The document folder.
*/
- public async getPdfInStorageToEpub (name: string, contentRecognitionMode?: string, folder?: string, storage?: string) : Promise<{ response: http.ClientResponse; body: Buffer; }> {
- const localVarPath = this.basePath + '/pdf/{name}/convert/epub'
- .replace('{' + 'name' + '}', encodeURIComponent(String(name)));
+ public async getPageFreeTextAnnotations (name: string, pageNumber: number, storage?: string, folder?: string) : Promise<{ response: http.IncomingMessage; body: FreeTextAnnotationsResponse; }> {
+ const localVarPath = this.basePath + '/pdf/{name}/pages/{pageNumber}/annotations/freetext'
+ .replace('{' + 'name' + '}', encodeURIComponent(String(name)))
+ .replace('{' + 'pageNumber' + '}', encodeURIComponent(String(pageNumber)));
let localVarQueryParameters: any = {};
let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders);
let localVarFormParams: any = {};
// verify required parameter 'name' is not null or undefined
if (name === null || name === undefined) {
- throw new Error('Required parameter name was null or undefined when calling getPdfInStorageToEpub.');
+ throw new Error('Required parameter name was null or undefined when calling getPageFreeTextAnnotations.');
}
- if (contentRecognitionMode !== undefined && null !== contentRecognitionMode) {
- localVarQueryParameters['contentRecognitionMode'] = ObjectSerializer.serialize(contentRecognitionMode, "string");
+ // verify required parameter 'pageNumber' is not null or undefined
+ if (pageNumber === null || pageNumber === undefined) {
+ throw new Error('Required parameter pageNumber was null or undefined when calling getPageFreeTextAnnotations.');
+ }
+
+ if (storage !== undefined && null !== storage) {
+ localVarQueryParameters['storage'] = ObjectSerializer.serialize(storage, "string");
+ }
+
+ if (folder !== undefined && null !== folder) {
+ localVarQueryParameters['folder'] = ObjectSerializer.serialize(folder, "string");
+ }
+
+
+ let localVarUseFormData = false;
+ let fileData = null;
+ let localVarRequestOptions: localVarRequest.Options = {
+ method: 'GET',
+ qs: localVarQueryParameters,
+ headers: localVarHeaderParams,
+ uri: localVarPath,
+ useQuerystring: this._useQuerystring,
+ json: true,
+ };
+
+ if (Object.keys(localVarFormParams).length) {
+ if (localVarUseFormData) {
+ (localVarRequestOptions).formData = localVarFormParams;
+ } else {
+ localVarRequestOptions.form = localVarFormParams;
+ }
+ }
+ const response = await invokeApiMethod(localVarRequestOptions, this.configuration, false, fileData);
+ const result = ObjectSerializer.deserialize(response.body, "FreeTextAnnotationsResponse");
+ return Promise.resolve({body: result, response});
+ }
+
+
+ /**
+ *
+ * @summary Read document page highlight annotations.
+ * @param name The document name.
+ * @param pageNumber The page number.
+ * @param storage The document storage.
+ * @param folder The document folder.
+ */
+ public async getPageHighlightAnnotations (name: string, pageNumber: number, storage?: string, folder?: string) : Promise<{ response: http.IncomingMessage; body: HighlightAnnotationsResponse; }> {
+ const localVarPath = this.basePath + '/pdf/{name}/pages/{pageNumber}/annotations/highlight'
+ .replace('{' + 'name' + '}', encodeURIComponent(String(name)))
+ .replace('{' + 'pageNumber' + '}', encodeURIComponent(String(pageNumber)));
+ let localVarQueryParameters: any = {};
+ let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders);
+ let localVarFormParams: any = {};
+
+ // verify required parameter 'name' is not null or undefined
+ if (name === null || name === undefined) {
+ throw new Error('Required parameter name was null or undefined when calling getPageHighlightAnnotations.');
+ }
+
+ // verify required parameter 'pageNumber' is not null or undefined
+ if (pageNumber === null || pageNumber === undefined) {
+ throw new Error('Required parameter pageNumber was null or undefined when calling getPageHighlightAnnotations.');
+ }
+
+ if (storage !== undefined && null !== storage) {
+ localVarQueryParameters['storage'] = ObjectSerializer.serialize(storage, "string");
+ }
+
+ if (folder !== undefined && null !== folder) {
+ localVarQueryParameters['folder'] = ObjectSerializer.serialize(folder, "string");
+ }
+
+
+ let localVarUseFormData = false;
+ let fileData = null;
+ let localVarRequestOptions: localVarRequest.Options = {
+ method: 'GET',
+ qs: localVarQueryParameters,
+ headers: localVarHeaderParams,
+ uri: localVarPath,
+ useQuerystring: this._useQuerystring,
+ json: true,
+ };
+
+ if (Object.keys(localVarFormParams).length) {
+ if (localVarUseFormData) {
+ (localVarRequestOptions).formData = localVarFormParams;
+ } else {
+ localVarRequestOptions.form = localVarFormParams;
+ }
+ }
+ const response = await invokeApiMethod(localVarRequestOptions, this.configuration, false, fileData);
+ const result = ObjectSerializer.deserialize(response.body, "HighlightAnnotationsResponse");
+ return Promise.resolve({body: result, response});
+ }
+
+
+ /**
+ *
+ * @summary Read document page ink annotations.
+ * @param name The document name.
+ * @param pageNumber The page number.
+ * @param storage The document storage.
+ * @param folder The document folder.
+ */
+ public async getPageInkAnnotations (name: string, pageNumber: number, storage?: string, folder?: string) : Promise<{ response: http.IncomingMessage; body: InkAnnotationsResponse; }> {
+ const localVarPath = this.basePath + '/pdf/{name}/pages/{pageNumber}/annotations/ink'
+ .replace('{' + 'name' + '}', encodeURIComponent(String(name)))
+ .replace('{' + 'pageNumber' + '}', encodeURIComponent(String(pageNumber)));
+ let localVarQueryParameters: any = {};
+ let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders);
+ let localVarFormParams: any = {};
+
+ // verify required parameter 'name' is not null or undefined
+ if (name === null || name === undefined) {
+ throw new Error('Required parameter name was null or undefined when calling getPageInkAnnotations.');
+ }
+
+ // verify required parameter 'pageNumber' is not null or undefined
+ if (pageNumber === null || pageNumber === undefined) {
+ throw new Error('Required parameter pageNumber was null or undefined when calling getPageInkAnnotations.');
+ }
+
+ if (storage !== undefined && null !== storage) {
+ localVarQueryParameters['storage'] = ObjectSerializer.serialize(storage, "string");
+ }
+
+ if (folder !== undefined && null !== folder) {
+ localVarQueryParameters['folder'] = ObjectSerializer.serialize(folder, "string");
+ }
+
+
+ let localVarUseFormData = false;
+ let fileData = null;
+ let localVarRequestOptions: localVarRequest.Options = {
+ method: 'GET',
+ qs: localVarQueryParameters,
+ headers: localVarHeaderParams,
+ uri: localVarPath,
+ useQuerystring: this._useQuerystring,
+ json: true,
+ };
+
+ if (Object.keys(localVarFormParams).length) {
+ if (localVarUseFormData) {
+ (localVarRequestOptions).formData = localVarFormParams;
+ } else {
+ localVarRequestOptions.form = localVarFormParams;
+ }
+ }
+ const response = await invokeApiMethod(localVarRequestOptions, this.configuration, false, fileData);
+ const result = ObjectSerializer.deserialize(response.body, "InkAnnotationsResponse");
+ return Promise.resolve({body: result, response});
+ }
+
+
+ /**
+ *
+ * @summary Read document page line annotations.
+ * @param name The document name.
+ * @param pageNumber The page number.
+ * @param storage The document storage.
+ * @param folder The document folder.
+ */
+ public async getPageLineAnnotations (name: string, pageNumber: number, storage?: string, folder?: string) : Promise<{ response: http.IncomingMessage; body: LineAnnotationsResponse; }> {
+ const localVarPath = this.basePath + '/pdf/{name}/pages/{pageNumber}/annotations/line'
+ .replace('{' + 'name' + '}', encodeURIComponent(String(name)))
+ .replace('{' + 'pageNumber' + '}', encodeURIComponent(String(pageNumber)));
+ let localVarQueryParameters: any = {};
+ let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders);
+ let localVarFormParams: any = {};
+
+ // verify required parameter 'name' is not null or undefined
+ if (name === null || name === undefined) {
+ throw new Error('Required parameter name was null or undefined when calling getPageLineAnnotations.');
+ }
+
+ // verify required parameter 'pageNumber' is not null or undefined
+ if (pageNumber === null || pageNumber === undefined) {
+ throw new Error('Required parameter pageNumber was null or undefined when calling getPageLineAnnotations.');
+ }
+
+ if (storage !== undefined && null !== storage) {
+ localVarQueryParameters['storage'] = ObjectSerializer.serialize(storage, "string");
+ }
+
+ if (folder !== undefined && null !== folder) {
+ localVarQueryParameters['folder'] = ObjectSerializer.serialize(folder, "string");
+ }
+
+
+ let localVarUseFormData = false;
+ let fileData = null;
+ let localVarRequestOptions: localVarRequest.Options = {
+ method: 'GET',
+ qs: localVarQueryParameters,
+ headers: localVarHeaderParams,
+ uri: localVarPath,
+ useQuerystring: this._useQuerystring,
+ json: true,
+ };
+
+ if (Object.keys(localVarFormParams).length) {
+ if (localVarUseFormData) {
+ (localVarRequestOptions).formData = localVarFormParams;
+ } else {
+ localVarRequestOptions.form = localVarFormParams;
+ }
+ }
+ const response = await invokeApiMethod(localVarRequestOptions, this.configuration, false, fileData);
+ const result = ObjectSerializer.deserialize(response.body, "LineAnnotationsResponse");
+ return Promise.resolve({body: result, response});
+ }
+
+
+ /**
+ *
+ * @summary Read document page link annotation by ID.
+ * @param name The document name.
+ * @param pageNumber The page number.
+ * @param linkId The link ID.
+ * @param storage The document storage.
+ * @param folder The document folder.
+ */
+ public async getPageLinkAnnotation (name: string, pageNumber: number, linkId: string, storage?: string, folder?: string) : Promise<{ response: http.IncomingMessage; body: LinkAnnotationResponse; }> {
+ const localVarPath = this.basePath + '/pdf/{name}/pages/{pageNumber}/links/{linkId}'
+ .replace('{' + 'name' + '}', encodeURIComponent(String(name)))
+ .replace('{' + 'pageNumber' + '}', encodeURIComponent(String(pageNumber)))
+ .replace('{' + 'linkId' + '}', encodeURIComponent(String(linkId)));
+ let localVarQueryParameters: any = {};
+ let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders);
+ let localVarFormParams: any = {};
+
+ // verify required parameter 'name' is not null or undefined
+ if (name === null || name === undefined) {
+ throw new Error('Required parameter name was null or undefined when calling getPageLinkAnnotation.');
+ }
+
+ // verify required parameter 'pageNumber' is not null or undefined
+ if (pageNumber === null || pageNumber === undefined) {
+ throw new Error('Required parameter pageNumber was null or undefined when calling getPageLinkAnnotation.');
+ }
+
+ // verify required parameter 'linkId' is not null or undefined
+ if (linkId === null || linkId === undefined) {
+ throw new Error('Required parameter linkId was null or undefined when calling getPageLinkAnnotation.');
+ }
+
+ if (storage !== undefined && null !== storage) {
+ localVarQueryParameters['storage'] = ObjectSerializer.serialize(storage, "string");
+ }
+
+ if (folder !== undefined && null !== folder) {
+ localVarQueryParameters['folder'] = ObjectSerializer.serialize(folder, "string");
+ }
+
+
+ let localVarUseFormData = false;
+ let fileData = null;
+ let localVarRequestOptions: localVarRequest.Options = {
+ method: 'GET',
+ qs: localVarQueryParameters,
+ headers: localVarHeaderParams,
+ uri: localVarPath,
+ useQuerystring: this._useQuerystring,
+ json: true,
+ };
+
+ if (Object.keys(localVarFormParams).length) {
+ if (localVarUseFormData) {
+ (localVarRequestOptions).formData = localVarFormParams;
+ } else {
+ localVarRequestOptions.form = localVarFormParams;
+ }
+ }
+ const response = await invokeApiMethod(localVarRequestOptions, this.configuration, false, fileData);
+ const result = ObjectSerializer.deserialize(response.body, "LinkAnnotationResponse");
+ return Promise.resolve({body: result, response});
+ }
+
+
+ /**
+ *
+ * @summary Read document page link annotations.
+ * @param name The document name.
+ * @param pageNumber The page number.
+ * @param storage The document storage.
+ * @param folder The document folder.
+ */
+ public async getPageLinkAnnotations (name: string, pageNumber: number, storage?: string, folder?: string) : Promise<{ response: http.IncomingMessage; body: LinkAnnotationsResponse; }> {
+ const localVarPath = this.basePath + '/pdf/{name}/pages/{pageNumber}/links'
+ .replace('{' + 'name' + '}', encodeURIComponent(String(name)))
+ .replace('{' + 'pageNumber' + '}', encodeURIComponent(String(pageNumber)));
+ let localVarQueryParameters: any = {};
+ let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders);
+ let localVarFormParams: any = {};
+
+ // verify required parameter 'name' is not null or undefined
+ if (name === null || name === undefined) {
+ throw new Error('Required parameter name was null or undefined when calling getPageLinkAnnotations.');
+ }
+
+ // verify required parameter 'pageNumber' is not null or undefined
+ if (pageNumber === null || pageNumber === undefined) {
+ throw new Error('Required parameter pageNumber was null or undefined when calling getPageLinkAnnotations.');
+ }
+
+ if (storage !== undefined && null !== storage) {
+ localVarQueryParameters['storage'] = ObjectSerializer.serialize(storage, "string");
+ }
+
+ if (folder !== undefined && null !== folder) {
+ localVarQueryParameters['folder'] = ObjectSerializer.serialize(folder, "string");
+ }
+
+
+ let localVarUseFormData = false;
+ let fileData = null;
+ let localVarRequestOptions: localVarRequest.Options = {
+ method: 'GET',
+ qs: localVarQueryParameters,
+ headers: localVarHeaderParams,
+ uri: localVarPath,
+ useQuerystring: this._useQuerystring,
+ json: true,
+ };
+
+ if (Object.keys(localVarFormParams).length) {
+ if (localVarUseFormData) {
+ (localVarRequestOptions).formData = localVarFormParams;
+ } else {
+ localVarRequestOptions.form = localVarFormParams;
+ }
+ }
+ const response = await invokeApiMethod(localVarRequestOptions, this.configuration, false, fileData);
+ const result = ObjectSerializer.deserialize(response.body, "LinkAnnotationsResponse");
+ return Promise.resolve({body: result, response});
+ }
+
+
+ /**
+ *
+ * @summary Read document page polyline annotations.
+ * @param name The document name.
+ * @param pageNumber The page number.
+ * @param storage The document storage.
+ * @param folder The document folder.
+ */
+ public async getPagePolyLineAnnotations (name: string, pageNumber: number, storage?: string, folder?: string) : Promise<{ response: http.IncomingMessage; body: PolyLineAnnotationsResponse; }> {
+ const localVarPath = this.basePath + '/pdf/{name}/pages/{pageNumber}/annotations/polyline'
+ .replace('{' + 'name' + '}', encodeURIComponent(String(name)))
+ .replace('{' + 'pageNumber' + '}', encodeURIComponent(String(pageNumber)));
+ let localVarQueryParameters: any = {};
+ let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders);
+ let localVarFormParams: any = {};
+
+ // verify required parameter 'name' is not null or undefined
+ if (name === null || name === undefined) {
+ throw new Error('Required parameter name was null or undefined when calling getPagePolyLineAnnotations.');
+ }
+
+ // verify required parameter 'pageNumber' is not null or undefined
+ if (pageNumber === null || pageNumber === undefined) {
+ throw new Error('Required parameter pageNumber was null or undefined when calling getPagePolyLineAnnotations.');
+ }
+
+ if (storage !== undefined && null !== storage) {
+ localVarQueryParameters['storage'] = ObjectSerializer.serialize(storage, "string");
+ }
+
+ if (folder !== undefined && null !== folder) {
+ localVarQueryParameters['folder'] = ObjectSerializer.serialize(folder, "string");
+ }
+
+
+ let localVarUseFormData = false;
+ let fileData = null;
+ let localVarRequestOptions: localVarRequest.Options = {
+ method: 'GET',
+ qs: localVarQueryParameters,
+ headers: localVarHeaderParams,
+ uri: localVarPath,
+ useQuerystring: this._useQuerystring,
+ json: true,
+ };
+
+ if (Object.keys(localVarFormParams).length) {
+ if (localVarUseFormData) {
+ (localVarRequestOptions).formData = localVarFormParams;
+ } else {
+ localVarRequestOptions.form = localVarFormParams;
+ }
+ }
+ const response = await invokeApiMethod(localVarRequestOptions, this.configuration, false, fileData);
+ const result = ObjectSerializer.deserialize(response.body, "PolyLineAnnotationsResponse");
+ return Promise.resolve({body: result, response});
+ }
+
+
+ /**
+ *
+ * @summary Read document page polygon annotations.
+ * @param name The document name.
+ * @param pageNumber The page number.
+ * @param storage The document storage.
+ * @param folder The document folder.
+ */
+ public async getPagePolygonAnnotations (name: string, pageNumber: number, storage?: string, folder?: string) : Promise<{ response: http.IncomingMessage; body: PolygonAnnotationsResponse; }> {
+ const localVarPath = this.basePath + '/pdf/{name}/pages/{pageNumber}/annotations/polygon'
+ .replace('{' + 'name' + '}', encodeURIComponent(String(name)))
+ .replace('{' + 'pageNumber' + '}', encodeURIComponent(String(pageNumber)));
+ let localVarQueryParameters: any = {};
+ let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders);
+ let localVarFormParams: any = {};
+
+ // verify required parameter 'name' is not null or undefined
+ if (name === null || name === undefined) {
+ throw new Error('Required parameter name was null or undefined when calling getPagePolygonAnnotations.');
+ }
+
+ // verify required parameter 'pageNumber' is not null or undefined
+ if (pageNumber === null || pageNumber === undefined) {
+ throw new Error('Required parameter pageNumber was null or undefined when calling getPagePolygonAnnotations.');
+ }
+
+ if (storage !== undefined && null !== storage) {
+ localVarQueryParameters['storage'] = ObjectSerializer.serialize(storage, "string");
+ }
+
+ if (folder !== undefined && null !== folder) {
+ localVarQueryParameters['folder'] = ObjectSerializer.serialize(folder, "string");
+ }
+
+
+ let localVarUseFormData = false;
+ let fileData = null;
+ let localVarRequestOptions: localVarRequest.Options = {
+ method: 'GET',
+ qs: localVarQueryParameters,
+ headers: localVarHeaderParams,
+ uri: localVarPath,
+ useQuerystring: this._useQuerystring,
+ json: true,
+ };
+
+ if (Object.keys(localVarFormParams).length) {
+ if (localVarUseFormData) {
+ (localVarRequestOptions).formData = localVarFormParams;
+ } else {
+ localVarRequestOptions.form = localVarFormParams;
+ }
+ }
+ const response = await invokeApiMethod(localVarRequestOptions, this.configuration, false, fileData);
+ const result = ObjectSerializer.deserialize(response.body, "PolygonAnnotationsResponse");
+ return Promise.resolve({body: result, response});
+ }
+
+
+ /**
+ *
+ * @summary Read document page popup annotations.
+ * @param name The document name.
+ * @param pageNumber The page number.
+ * @param storage The document storage.
+ * @param folder The document folder.
+ */
+ public async getPagePopupAnnotations (name: string, pageNumber: number, storage?: string, folder?: string) : Promise<{ response: http.IncomingMessage; body: PopupAnnotationsResponse; }> {
+ const localVarPath = this.basePath + '/pdf/{name}/pages/{pageNumber}/annotations/popup'
+ .replace('{' + 'name' + '}', encodeURIComponent(String(name)))
+ .replace('{' + 'pageNumber' + '}', encodeURIComponent(String(pageNumber)));
+ let localVarQueryParameters: any = {};
+ let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders);
+ let localVarFormParams: any = {};
+
+ // verify required parameter 'name' is not null or undefined
+ if (name === null || name === undefined) {
+ throw new Error('Required parameter name was null or undefined when calling getPagePopupAnnotations.');
+ }
+
+ // verify required parameter 'pageNumber' is not null or undefined
+ if (pageNumber === null || pageNumber === undefined) {
+ throw new Error('Required parameter pageNumber was null or undefined when calling getPagePopupAnnotations.');
+ }
+
+ if (storage !== undefined && null !== storage) {
+ localVarQueryParameters['storage'] = ObjectSerializer.serialize(storage, "string");
+ }
+
+ if (folder !== undefined && null !== folder) {
+ localVarQueryParameters['folder'] = ObjectSerializer.serialize(folder, "string");
+ }
+
+
+ let localVarUseFormData = false;
+ let fileData = null;
+ let localVarRequestOptions: localVarRequest.Options = {
+ method: 'GET',
+ qs: localVarQueryParameters,
+ headers: localVarHeaderParams,
+ uri: localVarPath,
+ useQuerystring: this._useQuerystring,
+ json: true,
+ };
+
+ if (Object.keys(localVarFormParams).length) {
+ if (localVarUseFormData) {
+ (localVarRequestOptions).formData = localVarFormParams;
+ } else {
+ localVarRequestOptions.form = localVarFormParams;
+ }
+ }
+ const response = await invokeApiMethod(localVarRequestOptions, this.configuration, false, fileData);
+ const result = ObjectSerializer.deserialize(response.body, "PopupAnnotationsResponse");
+ return Promise.resolve({body: result, response});
+ }
+
+
+ /**
+ *
+ * @summary Read document page square annotations.
+ * @param name The document name.
+ * @param pageNumber The page number.
+ * @param storage The document storage.
+ * @param folder The document folder.
+ */
+ public async getPageSquareAnnotations (name: string, pageNumber: number, storage?: string, folder?: string) : Promise<{ response: http.IncomingMessage; body: SquareAnnotationsResponse; }> {
+ const localVarPath = this.basePath + '/pdf/{name}/pages/{pageNumber}/annotations/square'
+ .replace('{' + 'name' + '}', encodeURIComponent(String(name)))
+ .replace('{' + 'pageNumber' + '}', encodeURIComponent(String(pageNumber)));
+ let localVarQueryParameters: any = {};
+ let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders);
+ let localVarFormParams: any = {};
+
+ // verify required parameter 'name' is not null or undefined
+ if (name === null || name === undefined) {
+ throw new Error('Required parameter name was null or undefined when calling getPageSquareAnnotations.');
+ }
+
+ // verify required parameter 'pageNumber' is not null or undefined
+ if (pageNumber === null || pageNumber === undefined) {
+ throw new Error('Required parameter pageNumber was null or undefined when calling getPageSquareAnnotations.');
+ }
+
+ if (storage !== undefined && null !== storage) {
+ localVarQueryParameters['storage'] = ObjectSerializer.serialize(storage, "string");
+ }
+
+ if (folder !== undefined && null !== folder) {
+ localVarQueryParameters['folder'] = ObjectSerializer.serialize(folder, "string");
+ }
+
+
+ let localVarUseFormData = false;
+ let fileData = null;
+ let localVarRequestOptions: localVarRequest.Options = {
+ method: 'GET',
+ qs: localVarQueryParameters,
+ headers: localVarHeaderParams,
+ uri: localVarPath,
+ useQuerystring: this._useQuerystring,
+ json: true,
+ };
+
+ if (Object.keys(localVarFormParams).length) {
+ if (localVarUseFormData) {
+ (localVarRequestOptions).formData = localVarFormParams;
+ } else {
+ localVarRequestOptions.form = localVarFormParams;
+ }
+ }
+ const response = await invokeApiMethod(localVarRequestOptions, this.configuration, false, fileData);
+ const result = ObjectSerializer.deserialize(response.body, "SquareAnnotationsResponse");
+ return Promise.resolve({body: result, response});
+ }
+
+
+ /**
+ *
+ * @summary Read document page squiggly annotations.
+ * @param name The document name.
+ * @param pageNumber The page number.
+ * @param storage The document storage.
+ * @param folder The document folder.
+ */
+ public async getPageSquigglyAnnotations (name: string, pageNumber: number, storage?: string, folder?: string) : Promise<{ response: http.IncomingMessage; body: SquigglyAnnotationsResponse; }> {
+ const localVarPath = this.basePath + '/pdf/{name}/pages/{pageNumber}/annotations/squiggly'
+ .replace('{' + 'name' + '}', encodeURIComponent(String(name)))
+ .replace('{' + 'pageNumber' + '}', encodeURIComponent(String(pageNumber)));
+ let localVarQueryParameters: any = {};
+ let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders);
+ let localVarFormParams: any = {};
+
+ // verify required parameter 'name' is not null or undefined
+ if (name === null || name === undefined) {
+ throw new Error('Required parameter name was null or undefined when calling getPageSquigglyAnnotations.');
+ }
+
+ // verify required parameter 'pageNumber' is not null or undefined
+ if (pageNumber === null || pageNumber === undefined) {
+ throw new Error('Required parameter pageNumber was null or undefined when calling getPageSquigglyAnnotations.');
+ }
+
+ if (storage !== undefined && null !== storage) {
+ localVarQueryParameters['storage'] = ObjectSerializer.serialize(storage, "string");
+ }
+
+ if (folder !== undefined && null !== folder) {
+ localVarQueryParameters['folder'] = ObjectSerializer.serialize(folder, "string");
+ }
+
+
+ let localVarUseFormData = false;
+ let fileData = null;
+ let localVarRequestOptions: localVarRequest.Options = {
+ method: 'GET',
+ qs: localVarQueryParameters,
+ headers: localVarHeaderParams,
+ uri: localVarPath,
+ useQuerystring: this._useQuerystring,
+ json: true,
+ };
+
+ if (Object.keys(localVarFormParams).length) {
+ if (localVarUseFormData) {
+ (localVarRequestOptions).formData = localVarFormParams;
+ } else {
+ localVarRequestOptions.form = localVarFormParams;
+ }
+ }
+ const response = await invokeApiMethod(localVarRequestOptions, this.configuration, false, fileData);
+ const result = ObjectSerializer.deserialize(response.body, "SquigglyAnnotationsResponse");
+ return Promise.resolve({body: result, response});
+ }
+
+
+ /**
+ *
+ * @summary Read document page StrikeOut annotations.
+ * @param name The document name.
+ * @param pageNumber The page number.
+ * @param storage The document storage.
+ * @param folder The document folder.
+ */
+ public async getPageStrikeOutAnnotations (name: string, pageNumber: number, storage?: string, folder?: string) : Promise<{ response: http.IncomingMessage; body: StrikeOutAnnotationsResponse; }> {
+ const localVarPath = this.basePath + '/pdf/{name}/pages/{pageNumber}/annotations/strikeout'
+ .replace('{' + 'name' + '}', encodeURIComponent(String(name)))
+ .replace('{' + 'pageNumber' + '}', encodeURIComponent(String(pageNumber)));
+ let localVarQueryParameters: any = {};
+ let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders);
+ let localVarFormParams: any = {};
+
+ // verify required parameter 'name' is not null or undefined
+ if (name === null || name === undefined) {
+ throw new Error('Required parameter name was null or undefined when calling getPageStrikeOutAnnotations.');
+ }
+
+ // verify required parameter 'pageNumber' is not null or undefined
+ if (pageNumber === null || pageNumber === undefined) {
+ throw new Error('Required parameter pageNumber was null or undefined when calling getPageStrikeOutAnnotations.');
+ }
+
+ if (storage !== undefined && null !== storage) {
+ localVarQueryParameters['storage'] = ObjectSerializer.serialize(storage, "string");
+ }
+
+ if (folder !== undefined && null !== folder) {
+ localVarQueryParameters['folder'] = ObjectSerializer.serialize(folder, "string");
+ }
+
+
+ let localVarUseFormData = false;
+ let fileData = null;
+ let localVarRequestOptions: localVarRequest.Options = {
+ method: 'GET',
+ qs: localVarQueryParameters,
+ headers: localVarHeaderParams,
+ uri: localVarPath,
+ useQuerystring: this._useQuerystring,
+ json: true,
+ };
+
+ if (Object.keys(localVarFormParams).length) {
+ if (localVarUseFormData) {
+ (localVarRequestOptions).formData = localVarFormParams;
+ } else {
+ localVarRequestOptions.form = localVarFormParams;
+ }
+ }
+ const response = await invokeApiMethod(localVarRequestOptions, this.configuration, false, fileData);
+ const result = ObjectSerializer.deserialize(response.body, "StrikeOutAnnotationsResponse");
+ return Promise.resolve({body: result, response});
+ }
+
+
+ /**
+ *
+ * @summary Read page text items.
+ * @param name The document name.
+ * @param pageNumber Number of page (starting from 1).
+ * @param LLX
+ * @param LLY
+ * @param URX
+ * @param URY
+ * @param format List of formats for search.
+ * @param regex Formats are specified as a regular expression.
+ * @param splitRects Split result fragments (default is true).
+ * @param folder The document folder.
+ * @param storage The document storage.
+ */
+ public async getPageText (name: string, pageNumber: number, LLX: number, LLY: number, URX: number, URY: number, format?: Array, regex?: string, splitRects?: boolean, folder?: string, storage?: string) : Promise<{ response: http.IncomingMessage; body: TextRectsResponse; }> {
+ const localVarPath = this.basePath + '/pdf/{name}/pages/{pageNumber}/text'
+ .replace('{' + 'name' + '}', encodeURIComponent(String(name)))
+ .replace('{' + 'pageNumber' + '}', encodeURIComponent(String(pageNumber)));
+ let localVarQueryParameters: any = {};
+ let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders);
+ let localVarFormParams: any = {};
+
+ // verify required parameter 'name' is not null or undefined
+ if (name === null || name === undefined) {
+ throw new Error('Required parameter name was null or undefined when calling getPageText.');
+ }
+
+ // verify required parameter 'pageNumber' is not null or undefined
+ if (pageNumber === null || pageNumber === undefined) {
+ throw new Error('Required parameter pageNumber was null or undefined when calling getPageText.');
+ }
+
+ // verify required parameter 'LLX' is not null or undefined
+ if (LLX === null || LLX === undefined) {
+ throw new Error('Required parameter LLX was null or undefined when calling getPageText.');
+ }
+
+ // verify required parameter 'LLY' is not null or undefined
+ if (LLY === null || LLY === undefined) {
+ throw new Error('Required parameter LLY was null or undefined when calling getPageText.');
+ }
+
+ // verify required parameter 'URX' is not null or undefined
+ if (URX === null || URX === undefined) {
+ throw new Error('Required parameter URX was null or undefined when calling getPageText.');
+ }
+
+ // verify required parameter 'URY' is not null or undefined
+ if (URY === null || URY === undefined) {
+ throw new Error('Required parameter URY was null or undefined when calling getPageText.');
+ }
+
+ if (format !== undefined && null !== format) {
+ localVarQueryParameters['format'] = ObjectSerializer.serialize(format, "Array");
+ }
+
+ if (regex !== undefined && null !== regex) {
+ localVarQueryParameters['regex'] = ObjectSerializer.serialize(regex, "string");
+ }
+
+ if (splitRects !== undefined && null !== splitRects) {
+ localVarQueryParameters['splitRects'] = ObjectSerializer.serialize(splitRects, "boolean");
+ }
+
+ if (folder !== undefined && null !== folder) {
+ localVarQueryParameters['folder'] = ObjectSerializer.serialize(folder, "string");
+ }
+
+ if (LLX !== undefined && null !== LLX) {
+ localVarQueryParameters['LLX'] = ObjectSerializer.serialize(LLX, "number");
+ }
+
+ if (LLY !== undefined && null !== LLY) {
+ localVarQueryParameters['LLY'] = ObjectSerializer.serialize(LLY, "number");
+ }
+
+ if (URX !== undefined && null !== URX) {
+ localVarQueryParameters['URX'] = ObjectSerializer.serialize(URX, "number");
+ }
+
+ if (URY !== undefined && null !== URY) {
+ localVarQueryParameters['URY'] = ObjectSerializer.serialize(URY, "number");
+ }
+
+ if (storage !== undefined && null !== storage) {
+ localVarQueryParameters['storage'] = ObjectSerializer.serialize(storage, "string");
+ }
+
+
+ let localVarUseFormData = false;
+ let fileData = null;
+ let localVarRequestOptions: localVarRequest.Options = {
+ method: 'GET',
+ qs: localVarQueryParameters,
+ headers: localVarHeaderParams,
+ uri: localVarPath,
+ useQuerystring: this._useQuerystring,
+ json: true,
+ };
+
+ if (Object.keys(localVarFormParams).length) {
+ if (localVarUseFormData) {
+ (localVarRequestOptions).formData = localVarFormParams;
+ } else {
+ localVarRequestOptions.form = localVarFormParams;
+ }
+ }
+ const response = await invokeApiMethod(localVarRequestOptions, this.configuration, false, fileData);
+ const result = ObjectSerializer.deserialize(response.body, "TextRectsResponse");
+ return Promise.resolve({body: result, response});
+ }
+
+
+ /**
+ *
+ * @summary Read document page text annotations.
+ * @param name The document name.
+ * @param pageNumber The page number.
+ * @param storage The document storage.
+ * @param folder The document folder.
+ */
+ public async getPageTextAnnotations (name: string, pageNumber: number, storage?: string, folder?: string) : Promise<{ response: http.IncomingMessage; body: TextAnnotationsResponse; }> {
+ const localVarPath = this.basePath + '/pdf/{name}/pages/{pageNumber}/annotations/text'
+ .replace('{' + 'name' + '}', encodeURIComponent(String(name)))
+ .replace('{' + 'pageNumber' + '}', encodeURIComponent(String(pageNumber)));
+ let localVarQueryParameters: any = {};
+ let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders);
+ let localVarFormParams: any = {};
+
+ // verify required parameter 'name' is not null or undefined
+ if (name === null || name === undefined) {
+ throw new Error('Required parameter name was null or undefined when calling getPageTextAnnotations.');
+ }
+
+ // verify required parameter 'pageNumber' is not null or undefined
+ if (pageNumber === null || pageNumber === undefined) {
+ throw new Error('Required parameter pageNumber was null or undefined when calling getPageTextAnnotations.');
+ }
+
+ if (storage !== undefined && null !== storage) {
+ localVarQueryParameters['storage'] = ObjectSerializer.serialize(storage, "string");
+ }
+
+ if (folder !== undefined && null !== folder) {
+ localVarQueryParameters['folder'] = ObjectSerializer.serialize(folder, "string");
+ }
+
+
+ let localVarUseFormData = false;
+ let fileData = null;
+ let localVarRequestOptions: localVarRequest.Options = {
+ method: 'GET',
+ qs: localVarQueryParameters,
+ headers: localVarHeaderParams,
+ uri: localVarPath,
+ useQuerystring: this._useQuerystring,
+ json: true,
+ };
+
+ if (Object.keys(localVarFormParams).length) {
+ if (localVarUseFormData) {
+ (localVarRequestOptions).formData = localVarFormParams;
+ } else {
+ localVarRequestOptions.form = localVarFormParams;
+ }
+ }
+ const response = await invokeApiMethod(localVarRequestOptions, this.configuration, false, fileData);
+ const result = ObjectSerializer.deserialize(response.body, "TextAnnotationsResponse");
+ return Promise.resolve({body: result, response});
+ }
+
+
+ /**
+ *
+ * @summary Read document page underline annotations.
+ * @param name The document name.
+ * @param pageNumber The page number.
+ * @param storage The document storage.
+ * @param folder The document folder.
+ */
+ public async getPageUnderlineAnnotations (name: string, pageNumber: number, storage?: string, folder?: string) : Promise<{ response: http.IncomingMessage; body: UnderlineAnnotationsResponse; }> {
+ const localVarPath = this.basePath + '/pdf/{name}/pages/{pageNumber}/annotations/underline'
+ .replace('{' + 'name' + '}', encodeURIComponent(String(name)))
+ .replace('{' + 'pageNumber' + '}', encodeURIComponent(String(pageNumber)));
+ let localVarQueryParameters: any = {};
+ let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders);
+ let localVarFormParams: any = {};
+
+ // verify required parameter 'name' is not null or undefined
+ if (name === null || name === undefined) {
+ throw new Error('Required parameter name was null or undefined when calling getPageUnderlineAnnotations.');
+ }
+
+ // verify required parameter 'pageNumber' is not null or undefined
+ if (pageNumber === null || pageNumber === undefined) {
+ throw new Error('Required parameter pageNumber was null or undefined when calling getPageUnderlineAnnotations.');
+ }
+
+ if (storage !== undefined && null !== storage) {
+ localVarQueryParameters['storage'] = ObjectSerializer.serialize(storage, "string");
+ }
+
+ if (folder !== undefined && null !== folder) {
+ localVarQueryParameters['folder'] = ObjectSerializer.serialize(folder, "string");
+ }
+
+
+ let localVarUseFormData = false;
+ let fileData = null;
+ let localVarRequestOptions: localVarRequest.Options = {
+ method: 'GET',
+ qs: localVarQueryParameters,
+ headers: localVarHeaderParams,
+ uri: localVarPath,
+ useQuerystring: this._useQuerystring,
+ json: true,
+ };
+
+ if (Object.keys(localVarFormParams).length) {
+ if (localVarUseFormData) {
+ (localVarRequestOptions).formData = localVarFormParams;
+ } else {
+ localVarRequestOptions.form = localVarFormParams;
+ }
+ }
+ const response = await invokeApiMethod(localVarRequestOptions, this.configuration, false, fileData);
+ const result = ObjectSerializer.deserialize(response.body, "UnderlineAnnotationsResponse");
+ return Promise.resolve({body: result, response});
+ }
+
+
+ /**
+ *
+ * @summary Read document pages info.
+ * @param name The document name.
+ * @param storage The document storage.
+ * @param folder The document folder.
+ */
+ public async getPages (name: string, storage?: string, folder?: string) : Promise<{ response: http.IncomingMessage; body: DocumentPagesResponse; }> {
+ const localVarPath = this.basePath + '/pdf/{name}/pages'
+ .replace('{' + 'name' + '}', encodeURIComponent(String(name)));
+ let localVarQueryParameters: any = {};
+ let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders);
+ let localVarFormParams: any = {};
+
+ // verify required parameter 'name' is not null or undefined
+ if (name === null || name === undefined) {
+ throw new Error('Required parameter name was null or undefined when calling getPages.');
+ }
+
+ if (storage !== undefined && null !== storage) {
+ localVarQueryParameters['storage'] = ObjectSerializer.serialize(storage, "string");
+ }
+
+ if (folder !== undefined && null !== folder) {
+ localVarQueryParameters['folder'] = ObjectSerializer.serialize(folder, "string");
+ }
+
+
+ let localVarUseFormData = false;
+ let fileData = null;
+ let localVarRequestOptions: localVarRequest.Options = {
+ method: 'GET',
+ qs: localVarQueryParameters,
+ headers: localVarHeaderParams,
+ uri: localVarPath,
+ useQuerystring: this._useQuerystring,
+ json: true,
+ };
+
+ if (Object.keys(localVarFormParams).length) {
+ if (localVarUseFormData) {
+ (localVarRequestOptions).formData = localVarFormParams;
+ } else {
+ localVarRequestOptions.form = localVarFormParams;
+ }
+ }
+ const response = await invokeApiMethod(localVarRequestOptions, this.configuration, false, fileData);
+ const result = ObjectSerializer.deserialize(response.body, "DocumentPagesResponse");
+ return Promise.resolve({body: result, response});
+ }
+
+
+ /**
+ *
+ * @summary 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)
+ * @param storage The document storage.
+ */
+ public async getPclInStorageToPdf (srcPath: string, storage?: string) : Promise<{ response: http.IncomingMessage; body: Buffer; }> {
+ const localVarPath = this.basePath + '/pdf/create/pcl';
+ let localVarQueryParameters: any = {};
+ let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders);
+ let localVarFormParams: any = {};
+
+ // verify required parameter 'srcPath' is not null or undefined
+ if (srcPath === null || srcPath === undefined) {
+ throw new Error('Required parameter srcPath was null or undefined when calling getPclInStorageToPdf.');
+ }
+
+ if (srcPath !== undefined && null !== srcPath) {
+ localVarQueryParameters['srcPath'] = ObjectSerializer.serialize(srcPath, "string");
+ }
+
+ if (storage !== undefined && null !== storage) {
+ localVarQueryParameters['storage'] = ObjectSerializer.serialize(storage, "string");
+ }
+
+
+ let localVarUseFormData = false;
+ let fileData = null;
+ let localVarRequestOptions: localVarRequest.Options = {
+ method: 'GET',
+ qs: localVarQueryParameters,
+ headers: localVarHeaderParams,
+ uri: localVarPath,
+ useQuerystring: this._useQuerystring,
+ encoding: null,
+ };
+
+ if (Object.keys(localVarFormParams).length) {
+ if (localVarUseFormData) {
+ (localVarRequestOptions).formData = localVarFormParams;
+ } else {
+ localVarRequestOptions.form = localVarFormParams;
+ }
+ }
+ const response = await invokeApiMethod(localVarRequestOptions, this.configuration, false, fileData);
+ const result = ObjectSerializer.deserialize(response.body, "Buffer");
+ return Promise.resolve({body: result, response});
+ }
+
+
+ /**
+ *
+ * @summary Converts PDF document (located on storage) to DOC format and returns resulting file in response content
+ * @param name The document name.
+ * @param addReturnToLineEnd Add return to line end.
+ * @param format Allows to specify .doc or .docx file format.
+ * @param imageResolutionX Image resolution X.
+ * @param imageResolutionY Image resolution Y.
+ * @param maxDistanceBetweenTextLines Max distance between text lines.
+ * @param mode Allows to control how a PDF document is converted into a word processing document.
+ * @param recognizeBullets Recognize bullets.
+ * @param relativeHorizontalProximity Relative horizontal proximity.
+ * @param folder The document folder.
+ * @param storage The document storage.
+ */
+ public async getPdfInStorageToDoc (name: string, addReturnToLineEnd?: boolean, format?: string, imageResolutionX?: number, imageResolutionY?: number, maxDistanceBetweenTextLines?: number, mode?: string, recognizeBullets?: boolean, relativeHorizontalProximity?: number, folder?: string, storage?: string) : Promise<{ response: http.IncomingMessage; body: Buffer; }> {
+ const localVarPath = this.basePath + '/pdf/{name}/convert/doc'
+ .replace('{' + 'name' + '}', encodeURIComponent(String(name)));
+ let localVarQueryParameters: any = {};
+ let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders);
+ let localVarFormParams: any = {};
+
+ // verify required parameter 'name' is not null or undefined
+ if (name === null || name === undefined) {
+ throw new Error('Required parameter name was null or undefined when calling getPdfInStorageToDoc.');
+ }
+
+ if (addReturnToLineEnd !== undefined && null !== addReturnToLineEnd) {
+ localVarQueryParameters['addReturnToLineEnd'] = ObjectSerializer.serialize(addReturnToLineEnd, "boolean");
+ }
+
+ if (format !== undefined && null !== format) {
+ localVarQueryParameters['format'] = ObjectSerializer.serialize(format, "string");
+ }
+
+ if (imageResolutionX !== undefined && null !== imageResolutionX) {
+ localVarQueryParameters['imageResolutionX'] = ObjectSerializer.serialize(imageResolutionX, "number");
+ }
+
+ if (imageResolutionY !== undefined && null !== imageResolutionY) {
+ localVarQueryParameters['imageResolutionY'] = ObjectSerializer.serialize(imageResolutionY, "number");
+ }
+
+ if (maxDistanceBetweenTextLines !== undefined && null !== maxDistanceBetweenTextLines) {
+ localVarQueryParameters['maxDistanceBetweenTextLines'] = ObjectSerializer.serialize(maxDistanceBetweenTextLines, "number");
+ }
+
+ if (mode !== undefined && null !== mode) {
+ localVarQueryParameters['mode'] = ObjectSerializer.serialize(mode, "string");
+ }
+
+ if (recognizeBullets !== undefined && null !== recognizeBullets) {
+ localVarQueryParameters['recognizeBullets'] = ObjectSerializer.serialize(recognizeBullets, "boolean");
+ }
+
+ if (relativeHorizontalProximity !== undefined && null !== relativeHorizontalProximity) {
+ localVarQueryParameters['relativeHorizontalProximity'] = ObjectSerializer.serialize(relativeHorizontalProximity, "number");
+ }
+
+ if (folder !== undefined && null !== folder) {
+ localVarQueryParameters['folder'] = ObjectSerializer.serialize(folder, "string");
+ }
+
+ if (storage !== undefined && null !== storage) {
+ localVarQueryParameters['storage'] = ObjectSerializer.serialize(storage, "string");
+ }
+
+
+ let localVarUseFormData = false;
+ let fileData = null;
+ let localVarRequestOptions: localVarRequest.Options = {
+ method: 'GET',
+ qs: localVarQueryParameters,
+ headers: localVarHeaderParams,
+ uri: localVarPath,
+ useQuerystring: this._useQuerystring,
+ encoding: null,
+ };
+
+ if (Object.keys(localVarFormParams).length) {
+ if (localVarUseFormData) {
+ (localVarRequestOptions).formData = localVarFormParams;
+ } else {
+ localVarRequestOptions.form = localVarFormParams;
+ }
+ }
+ const response = await invokeApiMethod(localVarRequestOptions, this.configuration, false, fileData);
+ const result = ObjectSerializer.deserialize(response.body, "Buffer");
+ return Promise.resolve({body: result, response});
+ }
+
+
+ /**
+ *
+ * @summary Converts PDF document (located on storage) to EPUB format and returns resulting file in response content
+ * @param name The document name.
+ * @param contentRecognitionMode ?roperty tunes conversion for this or that desirable method of recognition of content.
+ * @param folder The document folder.
+ * @param storage The document storage.
+ */
+ public async getPdfInStorageToEpub (name: string, contentRecognitionMode?: string, folder?: string, storage?: string) : Promise<{ response: http.IncomingMessage; body: Buffer; }> {
+ const localVarPath = this.basePath + '/pdf/{name}/convert/epub'
+ .replace('{' + 'name' + '}', encodeURIComponent(String(name)));
+ let localVarQueryParameters: any = {};
+ let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders);
+ let localVarFormParams: any = {};
+
+ // verify required parameter 'name' is not null or undefined
+ if (name === null || name === undefined) {
+ throw new Error('Required parameter name was null or undefined when calling getPdfInStorageToEpub.');
+ }
+
+ if (contentRecognitionMode !== undefined && null !== contentRecognitionMode) {
+ localVarQueryParameters['contentRecognitionMode'] = ObjectSerializer.serialize(contentRecognitionMode, "string");
+ }
+
+ if (folder !== undefined && null !== folder) {
+ localVarQueryParameters['folder'] = ObjectSerializer.serialize(folder, "string");
+ }
+
+ if (storage !== undefined && null !== storage) {
+ localVarQueryParameters['storage'] = ObjectSerializer.serialize(storage, "string");
+ }
+
+
+ let localVarUseFormData = false;
+ let fileData = null;
+ let localVarRequestOptions: localVarRequest.Options = {
+ method: 'GET',
+ qs: localVarQueryParameters,
+ headers: localVarHeaderParams,
+ uri: localVarPath,
+ useQuerystring: this._useQuerystring,
+ encoding: null,
+ };
+
+ if (Object.keys(localVarFormParams).length) {
+ if (localVarUseFormData) {
+ (localVarRequestOptions).formData = localVarFormParams;
+ } else {
+ localVarRequestOptions.form = localVarFormParams;
+ }
+ }
+ const response = await invokeApiMethod(localVarRequestOptions, this.configuration, false, fileData);
+ const result = ObjectSerializer.deserialize(response.body, "Buffer");
+ return Promise.resolve({body: result, response});
+ }
+
+
+ /**
+ *
+ * @summary Converts PDF document (located on storage) to Html format and returns resulting file in response content
+ * @param name The document name.
+ * @param additionalMarginWidthInPoints Defines width of margin that will be forcibly left around that output HTML-areas.
+ * @param compressSvgGraphicsIfAny The flag that indicates whether found SVG graphics(if any) will be compressed(zipped) into SVGZ format during saving.
+ * @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.
+ * @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.
+ * @param documentType Result document type.
+ * @param fixedLayout The value indicating whether that HTML is created as fixed layout.
+ * @param imageResolution Resolution for image rendering.
+ * @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.
+ * @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.
+ * @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.
+ * @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.
+ * @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.
+ * @param antialiasingProcessing The parameter defines required antialiasing measures during conversion of compound background images from PDF to HTML.
+ * @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.
+ * @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.
+ * @param fontEncodingStrategy Defines encoding special rule to tune PDF decoding for current document.
+ * @param fontSavingMode Defines font saving mode that will be used during saving of PDF to desirable format.
+ * @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.
+ * @param lettersPositioningMethod The mode of positioning of letters in words in result HTML.
+ * @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.
+ * @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.
+ * @param rasterImagesSavingMode Converted PDF can contain raster images This parameter defines how they should be handled during conversion of PDF to HTML.
+ * @param removeEmptyAreasOnTopAndBottom Defines whether in created HTML will be removed top and bottom empty area without any content (if any).
+ * @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).
+ * @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.
+ * @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.
+ * @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.
+ * @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.
+ * @param folder The document folder.
+ * @param storage The document storage.
+ */
+ public async getPdfInStorageToHtml (name: string, additionalMarginWidthInPoints?: number, compressSvgGraphicsIfAny?: boolean, convertMarkedContentToLayers?: boolean, defaultFontName?: string, documentType?: string, fixedLayout?: boolean, imageResolution?: number, minimalLineWidth?: number, preventGlyphsGrouping?: boolean, splitCssIntoPages?: boolean, splitIntoPages?: boolean, useZOrder?: boolean, antialiasingProcessing?: string, cssClassNamesPrefix?: string, explicitListOfSavedPages?: Array, fontEncodingStrategy?: string, fontSavingMode?: string, htmlMarkupGenerationMode?: string, lettersPositioningMethod?: string, pagesFlowTypeDependsOnViewersScreenSize?: boolean, partsEmbeddingMode?: string, rasterImagesSavingMode?: string, removeEmptyAreasOnTopAndBottom?: boolean, saveShadowedTextsAsTransparentTexts?: boolean, saveTransparentTexts?: boolean, specialFolderForAllImages?: string, specialFolderForSvgImages?: string, trySaveTextUnderliningAndStrikeoutingInCss?: boolean, folder?: string, storage?: string) : Promise<{ response: http.IncomingMessage; body: Buffer; }> {
+ const localVarPath = this.basePath + '/pdf/{name}/convert/html'
+ .replace('{' + 'name' + '}', encodeURIComponent(String(name)));
+ let localVarQueryParameters: any = {};
+ let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders);
+ let localVarFormParams: any = {};
+
+ // verify required parameter 'name' is not null or undefined
+ if (name === null || name === undefined) {
+ throw new Error('Required parameter name was null or undefined when calling getPdfInStorageToHtml.');
+ }
+
+ if (additionalMarginWidthInPoints !== undefined && null !== additionalMarginWidthInPoints) {
+ localVarQueryParameters['additionalMarginWidthInPoints'] = ObjectSerializer.serialize(additionalMarginWidthInPoints, "number");
+ }
+
+ if (compressSvgGraphicsIfAny !== undefined && null !== compressSvgGraphicsIfAny) {
+ localVarQueryParameters['compressSvgGraphicsIfAny'] = ObjectSerializer.serialize(compressSvgGraphicsIfAny, "boolean");
+ }
+
+ if (convertMarkedContentToLayers !== undefined && null !== convertMarkedContentToLayers) {
+ localVarQueryParameters['convertMarkedContentToLayers'] = ObjectSerializer.serialize(convertMarkedContentToLayers, "boolean");
+ }
+
+ if (defaultFontName !== undefined && null !== defaultFontName) {
+ localVarQueryParameters['defaultFontName'] = ObjectSerializer.serialize(defaultFontName, "string");
+ }
+
+ if (documentType !== undefined && null !== documentType) {
+ localVarQueryParameters['documentType'] = ObjectSerializer.serialize(documentType, "string");
+ }
+
+ if (fixedLayout !== undefined && null !== fixedLayout) {
+ localVarQueryParameters['fixedLayout'] = ObjectSerializer.serialize(fixedLayout, "boolean");
+ }
+
+ if (imageResolution !== undefined && null !== imageResolution) {
+ localVarQueryParameters['imageResolution'] = ObjectSerializer.serialize(imageResolution, "number");
+ }
+
+ if (minimalLineWidth !== undefined && null !== minimalLineWidth) {
+ localVarQueryParameters['minimalLineWidth'] = ObjectSerializer.serialize(minimalLineWidth, "number");
+ }
+
+ if (preventGlyphsGrouping !== undefined && null !== preventGlyphsGrouping) {
+ localVarQueryParameters['preventGlyphsGrouping'] = ObjectSerializer.serialize(preventGlyphsGrouping, "boolean");
+ }
+
+ if (splitCssIntoPages !== undefined && null !== splitCssIntoPages) {
+ localVarQueryParameters['splitCssIntoPages'] = ObjectSerializer.serialize(splitCssIntoPages, "boolean");
+ }
+
+ if (splitIntoPages !== undefined && null !== splitIntoPages) {
+ localVarQueryParameters['splitIntoPages'] = ObjectSerializer.serialize(splitIntoPages, "boolean");
+ }
+
+ if (useZOrder !== undefined && null !== useZOrder) {
+ localVarQueryParameters['useZOrder'] = ObjectSerializer.serialize(useZOrder, "boolean");
+ }
+
+ if (antialiasingProcessing !== undefined && null !== antialiasingProcessing) {
+ localVarQueryParameters['antialiasingProcessing'] = ObjectSerializer.serialize(antialiasingProcessing, "string");
+ }
+
+ if (cssClassNamesPrefix !== undefined && null !== cssClassNamesPrefix) {
+ localVarQueryParameters['cssClassNamesPrefix'] = ObjectSerializer.serialize(cssClassNamesPrefix, "string");
+ }
+
+ if (explicitListOfSavedPages !== undefined && null !== explicitListOfSavedPages) {
+ localVarQueryParameters['explicitListOfSavedPages'] = ObjectSerializer.serialize(explicitListOfSavedPages, "Array");
+ }
+
+ if (fontEncodingStrategy !== undefined && null !== fontEncodingStrategy) {
+ localVarQueryParameters['fontEncodingStrategy'] = ObjectSerializer.serialize(fontEncodingStrategy, "string");
+ }
+
+ if (fontSavingMode !== undefined && null !== fontSavingMode) {
+ localVarQueryParameters['fontSavingMode'] = ObjectSerializer.serialize(fontSavingMode, "string");
+ }
+
+ if (htmlMarkupGenerationMode !== undefined && null !== htmlMarkupGenerationMode) {
+ localVarQueryParameters['htmlMarkupGenerationMode'] = ObjectSerializer.serialize(htmlMarkupGenerationMode, "string");
+ }
+
+ if (lettersPositioningMethod !== undefined && null !== lettersPositioningMethod) {
+ localVarQueryParameters['lettersPositioningMethod'] = ObjectSerializer.serialize(lettersPositioningMethod, "string");
+ }
+
+ if (pagesFlowTypeDependsOnViewersScreenSize !== undefined && null !== pagesFlowTypeDependsOnViewersScreenSize) {
+ localVarQueryParameters['pagesFlowTypeDependsOnViewersScreenSize'] = ObjectSerializer.serialize(pagesFlowTypeDependsOnViewersScreenSize, "boolean");
+ }
+
+ if (partsEmbeddingMode !== undefined && null !== partsEmbeddingMode) {
+ localVarQueryParameters['partsEmbeddingMode'] = ObjectSerializer.serialize(partsEmbeddingMode, "string");
+ }
+
+ if (rasterImagesSavingMode !== undefined && null !== rasterImagesSavingMode) {
+ localVarQueryParameters['rasterImagesSavingMode'] = ObjectSerializer.serialize(rasterImagesSavingMode, "string");
+ }
+
+ if (removeEmptyAreasOnTopAndBottom !== undefined && null !== removeEmptyAreasOnTopAndBottom) {
+ localVarQueryParameters['removeEmptyAreasOnTopAndBottom'] = ObjectSerializer.serialize(removeEmptyAreasOnTopAndBottom, "boolean");
+ }
+
+ if (saveShadowedTextsAsTransparentTexts !== undefined && null !== saveShadowedTextsAsTransparentTexts) {
+ localVarQueryParameters['saveShadowedTextsAsTransparentTexts'] = ObjectSerializer.serialize(saveShadowedTextsAsTransparentTexts, "boolean");
+ }
+
+ if (saveTransparentTexts !== undefined && null !== saveTransparentTexts) {
+ localVarQueryParameters['saveTransparentTexts'] = ObjectSerializer.serialize(saveTransparentTexts, "boolean");
+ }
+
+ if (specialFolderForAllImages !== undefined && null !== specialFolderForAllImages) {
+ localVarQueryParameters['specialFolderForAllImages'] = ObjectSerializer.serialize(specialFolderForAllImages, "string");
+ }
+
+ if (specialFolderForSvgImages !== undefined && null !== specialFolderForSvgImages) {
+ localVarQueryParameters['specialFolderForSvgImages'] = ObjectSerializer.serialize(specialFolderForSvgImages, "string");
+ }
+
+ if (trySaveTextUnderliningAndStrikeoutingInCss !== undefined && null !== trySaveTextUnderliningAndStrikeoutingInCss) {
+ localVarQueryParameters['trySaveTextUnderliningAndStrikeoutingInCss'] = ObjectSerializer.serialize(trySaveTextUnderliningAndStrikeoutingInCss, "boolean");
+ }
+
+ if (folder !== undefined && null !== folder) {
+ localVarQueryParameters['folder'] = ObjectSerializer.serialize(folder, "string");
+ }
+
+ if (storage !== undefined && null !== storage) {
+ localVarQueryParameters['storage'] = ObjectSerializer.serialize(storage, "string");
+ }
+
+
+ let localVarUseFormData = false;
+ let fileData = null;
+ let localVarRequestOptions: localVarRequest.Options = {
+ method: 'GET',
+ qs: localVarQueryParameters,
+ headers: localVarHeaderParams,
+ uri: localVarPath,
+ useQuerystring: this._useQuerystring,
+ encoding: null,
+ };
+
+ if (Object.keys(localVarFormParams).length) {
+ if (localVarUseFormData) {
+ (localVarRequestOptions).formData = localVarFormParams;
+ } else {
+ localVarRequestOptions.form = localVarFormParams;
+ }
+ }
+ const response = await invokeApiMethod(localVarRequestOptions, this.configuration, false, fileData);
+ const result = ObjectSerializer.deserialize(response.body, "Buffer");
+ return Promise.resolve({body: result, response});
+ }
+
+
+ /**
+ *
+ * @summary Converts PDF document (located on storage) to LaTeX format and returns resulting file in response content
+ * @param name The document name.
+ * @param pagesCount Pages count.
+ * @param folder The document folder.
+ * @param storage The document storage.
+ */
+ public async getPdfInStorageToLaTeX (name: string, pagesCount?: number, folder?: string, storage?: string) : Promise<{ response: http.IncomingMessage; body: Buffer; }> {
+ const localVarPath = this.basePath + '/pdf/{name}/convert/latex'
+ .replace('{' + 'name' + '}', encodeURIComponent(String(name)));
+ let localVarQueryParameters: any = {};
+ let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders);
+ let localVarFormParams: any = {};
+
+ // verify required parameter 'name' is not null or undefined
+ if (name === null || name === undefined) {
+ throw new Error('Required parameter name was null or undefined when calling getPdfInStorageToLaTeX.');
+ }
+
+ if (pagesCount !== undefined && null !== pagesCount) {
+ localVarQueryParameters['pagesCount'] = ObjectSerializer.serialize(pagesCount, "number");
+ }
+
+ if (folder !== undefined && null !== folder) {
+ localVarQueryParameters['folder'] = ObjectSerializer.serialize(folder, "string");
+ }
+
+ if (storage !== undefined && null !== storage) {
+ localVarQueryParameters['storage'] = ObjectSerializer.serialize(storage, "string");
+ }
+
+
+ let localVarUseFormData = false;
+ let fileData = null;
+ let localVarRequestOptions: localVarRequest.Options = {
+ method: 'GET',
+ qs: localVarQueryParameters,
+ headers: localVarHeaderParams,
+ uri: localVarPath,
+ useQuerystring: this._useQuerystring,
+ encoding: null,
+ };
+
+ if (Object.keys(localVarFormParams).length) {
+ if (localVarUseFormData) {
+ (localVarRequestOptions).formData = localVarFormParams;
+ } else {
+ localVarRequestOptions.form = localVarFormParams;
+ }
+ }
+ const response = await invokeApiMethod(localVarRequestOptions, this.configuration, false, fileData);
+ const result = ObjectSerializer.deserialize(response.body, "Buffer");
+ return Promise.resolve({body: result, response});
+ }
+
+
+ /**
+ *
+ * @summary Converts PDF document (located on storage) to MOBIXML format and returns resulting file in response content
+ * @param name The document name.
+ * @param folder The document folder.
+ * @param storage The document storage.
+ */
+ public async getPdfInStorageToMobiXml (name: string, folder?: string, storage?: string) : Promise<{ response: http.IncomingMessage; body: Buffer; }> {
+ const localVarPath = this.basePath + '/pdf/{name}/convert/mobixml'
+ .replace('{' + 'name' + '}', encodeURIComponent(String(name)));
+ let localVarQueryParameters: any = {};
+ let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders);
+ let localVarFormParams: any = {};
+
+ // verify required parameter 'name' is not null or undefined
+ if (name === null || name === undefined) {
+ throw new Error('Required parameter name was null or undefined when calling getPdfInStorageToMobiXml.');
+ }
+
+ if (folder !== undefined && null !== folder) {
+ localVarQueryParameters['folder'] = ObjectSerializer.serialize(folder, "string");
+ }
+
+ if (storage !== undefined && null !== storage) {
+ localVarQueryParameters['storage'] = ObjectSerializer.serialize(storage, "string");
+ }
+
+
+ let localVarUseFormData = false;
+ let fileData = null;
+ let localVarRequestOptions: localVarRequest.Options = {
+ method: 'GET',
+ qs: localVarQueryParameters,
+ headers: localVarHeaderParams,
+ uri: localVarPath,
+ useQuerystring: this._useQuerystring,
+ encoding: null,
+ };
+
+ if (Object.keys(localVarFormParams).length) {
+ if (localVarUseFormData) {
+ (localVarRequestOptions).formData = localVarFormParams;
+ } else {
+ localVarRequestOptions.form = localVarFormParams;
+ }
+ }
+ const response = await invokeApiMethod(localVarRequestOptions, this.configuration, false, fileData);
+ const result = ObjectSerializer.deserialize(response.body, "Buffer");
+ return Promise.resolve({body: result, response});
+ }
+
+
+ /**
+ *
+ * @summary Converts PDF document (located on storage) to PdfA format and returns resulting file in response content
+ * @param name The document name.
+ * @param type Type of PdfA format.
+ * @param folder The document folder.
+ * @param storage The document storage.
+ */
+ public async getPdfInStorageToPdfA (name: string, type: string, folder?: string, storage?: string) : Promise<{ response: http.IncomingMessage; body: Buffer; }> {
+ const localVarPath = this.basePath + '/pdf/{name}/convert/pdfa'
+ .replace('{' + 'name' + '}', encodeURIComponent(String(name)));
+ let localVarQueryParameters: any = {};
+ let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders);
+ let localVarFormParams: any = {};
+
+ // verify required parameter 'name' is not null or undefined
+ if (name === null || name === undefined) {
+ throw new Error('Required parameter name was null or undefined when calling getPdfInStorageToPdfA.');
+ }
+
+ // verify required parameter 'type' is not null or undefined
+ if (type === null || type === undefined) {
+ throw new Error('Required parameter type was null or undefined when calling getPdfInStorageToPdfA.');
+ }
+
+ if (type !== undefined && null !== type) {
+ localVarQueryParameters['type'] = ObjectSerializer.serialize(type, "string");
+ }
+
+ if (folder !== undefined && null !== folder) {
+ localVarQueryParameters['folder'] = ObjectSerializer.serialize(folder, "string");
+ }
+
+ if (storage !== undefined && null !== storage) {
+ localVarQueryParameters['storage'] = ObjectSerializer.serialize(storage, "string");
+ }
+
+
+ let localVarUseFormData = false;
+ let fileData = null;
+ let localVarRequestOptions: localVarRequest.Options = {
+ method: 'GET',
+ qs: localVarQueryParameters,
+ headers: localVarHeaderParams,
+ uri: localVarPath,
+ useQuerystring: this._useQuerystring,
+ encoding: null,
+ };
+
+ if (Object.keys(localVarFormParams).length) {
+ if (localVarUseFormData) {
+ (localVarRequestOptions).formData = localVarFormParams;
+ } else {
+ localVarRequestOptions.form = localVarFormParams;
+ }
+ }
+ const response = await invokeApiMethod(localVarRequestOptions, this.configuration, false, fileData);
+ const result = ObjectSerializer.deserialize(response.body, "Buffer");
+ return Promise.resolve({body: result, response});
+ }
+
+
+ /**
+ *
+ * @summary Converts PDF document (located on storage) to PPTX format and returns resulting file in response content
+ * @param name The document name.
+ * @param separateImages Separate images.
+ * @param slidesAsImages Slides as images.
+ * @param folder The document folder.
+ * @param storage The document storage.
+ */
+ public async getPdfInStorageToPptx (name: string, separateImages?: boolean, slidesAsImages?: boolean, folder?: string, storage?: string) : Promise<{ response: http.IncomingMessage; body: Buffer; }> {
+ const localVarPath = this.basePath + '/pdf/{name}/convert/pptx'
+ .replace('{' + 'name' + '}', encodeURIComponent(String(name)));
+ let localVarQueryParameters: any = {};
+ let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders);
+ let localVarFormParams: any = {};
+
+ // verify required parameter 'name' is not null or undefined
+ if (name === null || name === undefined) {
+ throw new Error('Required parameter name was null or undefined when calling getPdfInStorageToPptx.');
+ }
+
+ if (separateImages !== undefined && null !== separateImages) {
+ localVarQueryParameters['separateImages'] = ObjectSerializer.serialize(separateImages, "boolean");
+ }
+
+ if (slidesAsImages !== undefined && null !== slidesAsImages) {
+ localVarQueryParameters['slidesAsImages'] = ObjectSerializer.serialize(slidesAsImages, "boolean");
+ }
+
+ if (folder !== undefined && null !== folder) {
+ localVarQueryParameters['folder'] = ObjectSerializer.serialize(folder, "string");
+ }
+
+ if (storage !== undefined && null !== storage) {
+ localVarQueryParameters['storage'] = ObjectSerializer.serialize(storage, "string");
+ }
+
+
+ let localVarUseFormData = false;
+ let fileData = null;
+ let localVarRequestOptions: localVarRequest.Options = {
+ method: 'GET',
+ qs: localVarQueryParameters,
+ headers: localVarHeaderParams,
+ uri: localVarPath,
+ useQuerystring: this._useQuerystring,
+ encoding: null,
+ };
+
+ if (Object.keys(localVarFormParams).length) {
+ if (localVarUseFormData) {
+ (localVarRequestOptions).formData = localVarFormParams;
+ } else {
+ localVarRequestOptions.form = localVarFormParams;
+ }
+ }
+ const response = await invokeApiMethod(localVarRequestOptions, this.configuration, false, fileData);
+ const result = ObjectSerializer.deserialize(response.body, "Buffer");
+ return Promise.resolve({body: result, response});
+ }
+
+
+ /**
+ *
+ * @summary Converts PDF document (located on storage) to SVG format and returns resulting file in response content
+ * @param name The document name.
+ * @param compressOutputToZipArchive Specifies whether output will be created as one zip-archive.
+ * @param folder The document folder.
+ * @param storage The document storage.
+ */
+ public async getPdfInStorageToSvg (name: string, compressOutputToZipArchive?: boolean, folder?: string, storage?: string) : Promise<{ response: http.IncomingMessage; body: Buffer; }> {
+ const localVarPath = this.basePath + '/pdf/{name}/convert/svg'
+ .replace('{' + 'name' + '}', encodeURIComponent(String(name)));
+ let localVarQueryParameters: any = {};
+ let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders);
+ let localVarFormParams: any = {};
+
+ // verify required parameter 'name' is not null or undefined
+ if (name === null || name === undefined) {
+ throw new Error('Required parameter name was null or undefined when calling getPdfInStorageToSvg.');
+ }
+
+ if (compressOutputToZipArchive !== undefined && null !== compressOutputToZipArchive) {
+ localVarQueryParameters['compressOutputToZipArchive'] = ObjectSerializer.serialize(compressOutputToZipArchive, "boolean");
+ }
+
+ if (folder !== undefined && null !== folder) {
+ localVarQueryParameters['folder'] = ObjectSerializer.serialize(folder, "string");
+ }
+
+ if (storage !== undefined && null !== storage) {
+ localVarQueryParameters['storage'] = ObjectSerializer.serialize(storage, "string");
+ }
+
+
+ let localVarUseFormData = false;
+ let fileData = null;
+ let localVarRequestOptions: localVarRequest.Options = {
+ method: 'GET',
+ qs: localVarQueryParameters,
+ headers: localVarHeaderParams,
+ uri: localVarPath,
+ useQuerystring: this._useQuerystring,
+ encoding: null,
+ };
+
+ if (Object.keys(localVarFormParams).length) {
+ if (localVarUseFormData) {
+ (localVarRequestOptions).formData = localVarFormParams;
+ } else {
+ localVarRequestOptions.form = localVarFormParams;
+ }
+ }
+ const response = await invokeApiMethod(localVarRequestOptions, this.configuration, false, fileData);
+ const result = ObjectSerializer.deserialize(response.body, "Buffer");
+ return Promise.resolve({body: result, response});
+ }
+
+
+ /**
+ *
+ * @summary Converts PDF document (located on storage) to TIFF format and returns resulting file in response content
+ * @param name The document name.
+ * @param brightness Image brightness.
+ * @param compression Tiff compression. Possible values are: LZW, CCITT4, CCITT3, RLE, None.
+ * @param colorDepth Image color depth. Possible valuse are: Default, Format8bpp, Format4bpp, Format1bpp.
+ * @param leftMargin Left image margin.
+ * @param rightMargin Right image margin.
+ * @param topMargin Top image margin.
+ * @param bottomMargin Bottom image margin.
+ * @param orientation Image orientation. Possible values are: None, Landscape, Portait.
+ * @param skipBlankPages Skip blank pages flag.
+ * @param width Image width.
+ * @param height Image height.
+ * @param xResolution Horizontal resolution.
+ * @param yResolution Vertical resolution.
+ * @param pageIndex Start page to export.
+ * @param pageCount Number of pages to export.
+ * @param folder The document folder.
+ * @param storage The document storage.
+ */
+ public async getPdfInStorageToTiff (name: string, brightness?: number, compression?: string, colorDepth?: string, leftMargin?: number, rightMargin?: number, topMargin?: number, bottomMargin?: number, orientation?: string, skipBlankPages?: boolean, width?: number, height?: number, xResolution?: number, yResolution?: number, pageIndex?: number, pageCount?: number, folder?: string, storage?: string) : Promise<{ response: http.IncomingMessage; body: Buffer; }> {
+ const localVarPath = this.basePath + '/pdf/{name}/convert/tiff'
+ .replace('{' + 'name' + '}', encodeURIComponent(String(name)));
+ let localVarQueryParameters: any = {};
+ let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders);
+ let localVarFormParams: any = {};
+
+ // verify required parameter 'name' is not null or undefined
+ if (name === null || name === undefined) {
+ throw new Error('Required parameter name was null or undefined when calling getPdfInStorageToTiff.');
+ }
+
+ if (brightness !== undefined && null !== brightness) {
+ localVarQueryParameters['brightness'] = ObjectSerializer.serialize(brightness, "number");
+ }
+
+ if (compression !== undefined && null !== compression) {
+ localVarQueryParameters['compression'] = ObjectSerializer.serialize(compression, "string");
+ }
+
+ if (colorDepth !== undefined && null !== colorDepth) {
+ localVarQueryParameters['colorDepth'] = ObjectSerializer.serialize(colorDepth, "string");
+ }
+
+ if (leftMargin !== undefined && null !== leftMargin) {
+ localVarQueryParameters['leftMargin'] = ObjectSerializer.serialize(leftMargin, "number");
+ }
+
+ if (rightMargin !== undefined && null !== rightMargin) {
+ localVarQueryParameters['rightMargin'] = ObjectSerializer.serialize(rightMargin, "number");
+ }
+
+ if (topMargin !== undefined && null !== topMargin) {
+ localVarQueryParameters['topMargin'] = ObjectSerializer.serialize(topMargin, "number");
+ }
+
+ if (bottomMargin !== undefined && null !== bottomMargin) {
+ localVarQueryParameters['bottomMargin'] = ObjectSerializer.serialize(bottomMargin, "number");
+ }
+
+ if (orientation !== undefined && null !== orientation) {
+ localVarQueryParameters['orientation'] = ObjectSerializer.serialize(orientation, "string");
+ }
+
+ if (skipBlankPages !== undefined && null !== skipBlankPages) {
+ localVarQueryParameters['skipBlankPages'] = ObjectSerializer.serialize(skipBlankPages, "boolean");
+ }
+
+ if (width !== undefined && null !== width) {
+ localVarQueryParameters['width'] = ObjectSerializer.serialize(width, "number");
+ }
+
+ if (height !== undefined && null !== height) {
+ localVarQueryParameters['height'] = ObjectSerializer.serialize(height, "number");
+ }
+
+ if (xResolution !== undefined && null !== xResolution) {
+ localVarQueryParameters['xResolution'] = ObjectSerializer.serialize(xResolution, "number");
+ }
+
+ if (yResolution !== undefined && null !== yResolution) {
+ localVarQueryParameters['yResolution'] = ObjectSerializer.serialize(yResolution, "number");
+ }
+
+ if (pageIndex !== undefined && null !== pageIndex) {
+ localVarQueryParameters['pageIndex'] = ObjectSerializer.serialize(pageIndex, "number");
+ }
+
+ if (pageCount !== undefined && null !== pageCount) {
+ localVarQueryParameters['pageCount'] = ObjectSerializer.serialize(pageCount, "number");
}
if (folder !== undefined && null !== folder) {
@@ -4160,41 +5808,17 @@ export class PdfApi {
/**
*
- * @summary Converts PDF document (located on storage) to Html format and returns resulting file in response content
+ * @summary Converts PDF document (located on storage) to XLS format and returns resulting file in response content
* @param name The document name.
- * @param additionalMarginWidthInPoints Defines width of margin that will be forcibly left around that output HTML-areas.
- * @param compressSvgGraphicsIfAny The flag that indicates whether found SVG graphics(if any) will be compressed(zipped) into SVGZ format during saving.
- * @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.
- * @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.
- * @param documentType Result document type.
- * @param fixedLayout The value indicating whether that HTML is created as fixed layout.
- * @param imageResolution Resolution for image rendering.
- * @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.
- * @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.
- * @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.
- * @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.
- * @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.
- * @param antialiasingProcessing The parameter defines required antialiasing measures during conversion of compound background images from PDF to HTML.
- * @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.
- * @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.
- * @param fontEncodingStrategy Defines encoding special rule to tune PDF decoding for current document.
- * @param fontSavingMode Defines font saving mode that will be used during saving of PDF to desirable format.
- * @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.
- * @param lettersPositioningMethod The mode of positioning of letters in words in result HTML.
- * @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.
- * @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.
- * @param rasterImagesSavingMode Converted PDF can contain raster images This parameter defines how they should be handled during conversion of PDF to HTML.
- * @param removeEmptyAreasOnTopAndBottom Defines whether in created HTML will be removed top and bottom empty area without any content (if any).
- * @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).
- * @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.
- * @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.
- * @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.
- * @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.
+ * @param insertBlankColumnAtFirst Insert blank column at first
+ * @param minimizeTheNumberOfWorksheets Minimize the number of worksheets
+ * @param scaleFactor Scale factor
+ * @param uniformWorksheets Uniform worksheets
* @param folder The document folder.
* @param storage The document storage.
*/
- public async getPdfInStorageToHtml (name: string, additionalMarginWidthInPoints?: number, compressSvgGraphicsIfAny?: boolean, convertMarkedContentToLayers?: boolean, defaultFontName?: string, documentType?: string, fixedLayout?: boolean, imageResolution?: number, minimalLineWidth?: number, preventGlyphsGrouping?: boolean, splitCssIntoPages?: boolean, splitIntoPages?: boolean, useZOrder?: boolean, antialiasingProcessing?: string, cssClassNamesPrefix?: string, explicitListOfSavedPages?: Array, fontEncodingStrategy?: string, fontSavingMode?: string, htmlMarkupGenerationMode?: string, lettersPositioningMethod?: string, pagesFlowTypeDependsOnViewersScreenSize?: boolean, partsEmbeddingMode?: string, rasterImagesSavingMode?: string, removeEmptyAreasOnTopAndBottom?: boolean, saveShadowedTextsAsTransparentTexts?: boolean, saveTransparentTexts?: boolean, specialFolderForAllImages?: string, specialFolderForSvgImages?: string, trySaveTextUnderliningAndStrikeoutingInCss?: boolean, folder?: string, storage?: string) : Promise<{ response: http.ClientResponse; body: Buffer; }> {
- const localVarPath = this.basePath + '/pdf/{name}/convert/html'
+ public async getPdfInStorageToXls (name: string, insertBlankColumnAtFirst?: boolean, minimizeTheNumberOfWorksheets?: boolean, scaleFactor?: number, uniformWorksheets?: boolean, folder?: string, storage?: string) : Promise<{ response: http.IncomingMessage; body: Buffer; }> {
+ const localVarPath = this.basePath + '/pdf/{name}/convert/xls'
.replace('{' + 'name' + '}', encodeURIComponent(String(name)));
let localVarQueryParameters: any = {};
let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders);
@@ -4202,129 +5826,196 @@ export class PdfApi {
// verify required parameter 'name' is not null or undefined
if (name === null || name === undefined) {
- throw new Error('Required parameter name was null or undefined when calling getPdfInStorageToHtml.');
+ throw new Error('Required parameter name was null or undefined when calling getPdfInStorageToXls.');
}
- if (additionalMarginWidthInPoints !== undefined && null !== additionalMarginWidthInPoints) {
- localVarQueryParameters['additionalMarginWidthInPoints'] = ObjectSerializer.serialize(additionalMarginWidthInPoints, "number");
+ if (insertBlankColumnAtFirst !== undefined && null !== insertBlankColumnAtFirst) {
+ localVarQueryParameters['insertBlankColumnAtFirst'] = ObjectSerializer.serialize(insertBlankColumnAtFirst, "boolean");
}
- if (compressSvgGraphicsIfAny !== undefined && null !== compressSvgGraphicsIfAny) {
- localVarQueryParameters['compressSvgGraphicsIfAny'] = ObjectSerializer.serialize(compressSvgGraphicsIfAny, "boolean");
+ if (minimizeTheNumberOfWorksheets !== undefined && null !== minimizeTheNumberOfWorksheets) {
+ localVarQueryParameters['minimizeTheNumberOfWorksheets'] = ObjectSerializer.serialize(minimizeTheNumberOfWorksheets, "boolean");
}
- if (convertMarkedContentToLayers !== undefined && null !== convertMarkedContentToLayers) {
- localVarQueryParameters['convertMarkedContentToLayers'] = ObjectSerializer.serialize(convertMarkedContentToLayers, "boolean");
+ if (scaleFactor !== undefined && null !== scaleFactor) {
+ localVarQueryParameters['scaleFactor'] = ObjectSerializer.serialize(scaleFactor, "number");
}
- if (defaultFontName !== undefined && null !== defaultFontName) {
- localVarQueryParameters['defaultFontName'] = ObjectSerializer.serialize(defaultFontName, "string");
+ if (uniformWorksheets !== undefined && null !== uniformWorksheets) {
+ localVarQueryParameters['uniformWorksheets'] = ObjectSerializer.serialize(uniformWorksheets, "boolean");
}
- if (documentType !== undefined && null !== documentType) {
- localVarQueryParameters['documentType'] = ObjectSerializer.serialize(documentType, "string");
+ if (folder !== undefined && null !== folder) {
+ localVarQueryParameters['folder'] = ObjectSerializer.serialize(folder, "string");
}
- if (fixedLayout !== undefined && null !== fixedLayout) {
- localVarQueryParameters['fixedLayout'] = ObjectSerializer.serialize(fixedLayout, "boolean");
+ if (storage !== undefined && null !== storage) {
+ localVarQueryParameters['storage'] = ObjectSerializer.serialize(storage, "string");
}
- if (imageResolution !== undefined && null !== imageResolution) {
- localVarQueryParameters['imageResolution'] = ObjectSerializer.serialize(imageResolution, "number");
- }
- if (minimalLineWidth !== undefined && null !== minimalLineWidth) {
- localVarQueryParameters['minimalLineWidth'] = ObjectSerializer.serialize(minimalLineWidth, "number");
- }
+ let localVarUseFormData = false;
+ let fileData = null;
+ let localVarRequestOptions: localVarRequest.Options = {
+ method: 'GET',
+ qs: localVarQueryParameters,
+ headers: localVarHeaderParams,
+ uri: localVarPath,
+ useQuerystring: this._useQuerystring,
+ encoding: null,
+ };
- if (preventGlyphsGrouping !== undefined && null !== preventGlyphsGrouping) {
- localVarQueryParameters['preventGlyphsGrouping'] = ObjectSerializer.serialize(preventGlyphsGrouping, "boolean");
+ if (Object.keys(localVarFormParams).length) {
+ if (localVarUseFormData) {
+ (localVarRequestOptions).formData = localVarFormParams;
+ } else {
+ localVarRequestOptions.form = localVarFormParams;
+ }
}
+ const response = await invokeApiMethod(localVarRequestOptions, this.configuration, false, fileData);
+ const result = ObjectSerializer.deserialize(response.body, "Buffer");
+ return Promise.resolve({body: result, response});
+ }
- if (splitCssIntoPages !== undefined && null !== splitCssIntoPages) {
- localVarQueryParameters['splitCssIntoPages'] = ObjectSerializer.serialize(splitCssIntoPages, "boolean");
- }
- if (splitIntoPages !== undefined && null !== splitIntoPages) {
- localVarQueryParameters['splitIntoPages'] = ObjectSerializer.serialize(splitIntoPages, "boolean");
- }
+ /**
+ *
+ * @summary Converts PDF document (located on storage) to XML format and returns resulting file in response content
+ * @param name The document name.
+ * @param folder The document folder.
+ * @param storage The document storage.
+ */
+ public async getPdfInStorageToXml (name: string, folder?: string, storage?: string) : Promise<{ response: http.IncomingMessage; body: Buffer; }> {
+ const localVarPath = this.basePath + '/pdf/{name}/convert/xml'
+ .replace('{' + 'name' + '}', encodeURIComponent(String(name)));
+ let localVarQueryParameters: any = {};
+ let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders);
+ let localVarFormParams: any = {};
- if (useZOrder !== undefined && null !== useZOrder) {
- localVarQueryParameters['useZOrder'] = ObjectSerializer.serialize(useZOrder, "boolean");
+ // verify required parameter 'name' is not null or undefined
+ if (name === null || name === undefined) {
+ throw new Error('Required parameter name was null or undefined when calling getPdfInStorageToXml.');
}
- if (antialiasingProcessing !== undefined && null !== antialiasingProcessing) {
- localVarQueryParameters['antialiasingProcessing'] = ObjectSerializer.serialize(antialiasingProcessing, "string");
+ if (folder !== undefined && null !== folder) {
+ localVarQueryParameters['folder'] = ObjectSerializer.serialize(folder, "string");
}
- if (cssClassNamesPrefix !== undefined && null !== cssClassNamesPrefix) {
- localVarQueryParameters['cssClassNamesPrefix'] = ObjectSerializer.serialize(cssClassNamesPrefix, "string");
+ if (storage !== undefined && null !== storage) {
+ localVarQueryParameters['storage'] = ObjectSerializer.serialize(storage, "string");
}
- if (explicitListOfSavedPages !== undefined && null !== explicitListOfSavedPages) {
- localVarQueryParameters['explicitListOfSavedPages'] = ObjectSerializer.serialize(explicitListOfSavedPages, "Array");
- }
- if (fontEncodingStrategy !== undefined && null !== fontEncodingStrategy) {
- localVarQueryParameters['fontEncodingStrategy'] = ObjectSerializer.serialize(fontEncodingStrategy, "string");
- }
+ let localVarUseFormData = false;
+ let fileData = null;
+ let localVarRequestOptions: localVarRequest.Options = {
+ method: 'GET',
+ qs: localVarQueryParameters,
+ headers: localVarHeaderParams,
+ uri: localVarPath,
+ useQuerystring: this._useQuerystring,
+ encoding: null,
+ };
- if (fontSavingMode !== undefined && null !== fontSavingMode) {
- localVarQueryParameters['fontSavingMode'] = ObjectSerializer.serialize(fontSavingMode, "string");
+ if (Object.keys(localVarFormParams).length) {
+ if (localVarUseFormData) {
+ (localVarRequestOptions).formData = localVarFormParams;
+ } else {
+ localVarRequestOptions.form = localVarFormParams;
+ }
}
+ const response = await invokeApiMethod(localVarRequestOptions, this.configuration, false, fileData);
+ const result = ObjectSerializer.deserialize(response.body, "Buffer");
+ return Promise.resolve({body: result, response});
+ }
- if (htmlMarkupGenerationMode !== undefined && null !== htmlMarkupGenerationMode) {
- localVarQueryParameters['htmlMarkupGenerationMode'] = ObjectSerializer.serialize(htmlMarkupGenerationMode, "string");
- }
- if (lettersPositioningMethod !== undefined && null !== lettersPositioningMethod) {
- localVarQueryParameters['lettersPositioningMethod'] = ObjectSerializer.serialize(lettersPositioningMethod, "string");
- }
+ /**
+ *
+ * @summary Converts PDF document (located on storage) to XPS format and returns resulting file in response content
+ * @param name The document name.
+ * @param folder The document folder.
+ * @param storage The document storage.
+ */
+ public async getPdfInStorageToXps (name: string, folder?: string, storage?: string) : Promise<{ response: http.IncomingMessage; body: Buffer; }> {
+ const localVarPath = this.basePath + '/pdf/{name}/convert/xps'
+ .replace('{' + 'name' + '}', encodeURIComponent(String(name)));
+ let localVarQueryParameters: any = {};
+ let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders);
+ let localVarFormParams: any = {};
- if (pagesFlowTypeDependsOnViewersScreenSize !== undefined && null !== pagesFlowTypeDependsOnViewersScreenSize) {
- localVarQueryParameters['pagesFlowTypeDependsOnViewersScreenSize'] = ObjectSerializer.serialize(pagesFlowTypeDependsOnViewersScreenSize, "boolean");
+ // verify required parameter 'name' is not null or undefined
+ if (name === null || name === undefined) {
+ throw new Error('Required parameter name was null or undefined when calling getPdfInStorageToXps.');
}
- if (partsEmbeddingMode !== undefined && null !== partsEmbeddingMode) {
- localVarQueryParameters['partsEmbeddingMode'] = ObjectSerializer.serialize(partsEmbeddingMode, "string");
+ if (folder !== undefined && null !== folder) {
+ localVarQueryParameters['folder'] = ObjectSerializer.serialize(folder, "string");
}
- if (rasterImagesSavingMode !== undefined && null !== rasterImagesSavingMode) {
- localVarQueryParameters['rasterImagesSavingMode'] = ObjectSerializer.serialize(rasterImagesSavingMode, "string");
+ if (storage !== undefined && null !== storage) {
+ localVarQueryParameters['storage'] = ObjectSerializer.serialize(storage, "string");
}
- if (removeEmptyAreasOnTopAndBottom !== undefined && null !== removeEmptyAreasOnTopAndBottom) {
- localVarQueryParameters['removeEmptyAreasOnTopAndBottom'] = ObjectSerializer.serialize(removeEmptyAreasOnTopAndBottom, "boolean");
- }
- if (saveShadowedTextsAsTransparentTexts !== undefined && null !== saveShadowedTextsAsTransparentTexts) {
- localVarQueryParameters['saveShadowedTextsAsTransparentTexts'] = ObjectSerializer.serialize(saveShadowedTextsAsTransparentTexts, "boolean");
- }
+ let localVarUseFormData = false;
+ let fileData = null;
+ let localVarRequestOptions: localVarRequest.Options = {
+ method: 'GET',
+ qs: localVarQueryParameters,
+ headers: localVarHeaderParams,
+ uri: localVarPath,
+ useQuerystring: this._useQuerystring,
+ encoding: null,
+ };
- if (saveTransparentTexts !== undefined && null !== saveTransparentTexts) {
- localVarQueryParameters['saveTransparentTexts'] = ObjectSerializer.serialize(saveTransparentTexts, "boolean");
+ if (Object.keys(localVarFormParams).length) {
+ if (localVarUseFormData) {
+ (localVarRequestOptions).formData = localVarFormParams;
+ } else {
+ localVarRequestOptions.form = localVarFormParams;
+ }
}
+ const response = await invokeApiMethod(localVarRequestOptions, this.configuration, false, fileData);
+ const result = ObjectSerializer.deserialize(response.body, "Buffer");
+ return Promise.resolve({body: result, response});
+ }
+
+
+ /**
+ *
+ * @summary Read document page polyline annotation by ID.
+ * @param name The document name.
+ * @param annotationId The annotation ID.
+ * @param storage The document storage.
+ * @param folder The document folder.
+ */
+ public async getPolyLineAnnotation (name: string, annotationId: string, storage?: string, folder?: string) : Promise<{ response: http.IncomingMessage; body: PolyLineAnnotationResponse; }> {
+ const localVarPath = this.basePath + '/pdf/{name}/annotations/polyline/{annotationId}'
+ .replace('{' + 'name' + '}', encodeURIComponent(String(name)))
+ .replace('{' + 'annotationId' + '}', encodeURIComponent(String(annotationId)));
+ let localVarQueryParameters: any = {};
+ let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders);
+ let localVarFormParams: any = {};
- if (specialFolderForAllImages !== undefined && null !== specialFolderForAllImages) {
- localVarQueryParameters['specialFolderForAllImages'] = ObjectSerializer.serialize(specialFolderForAllImages, "string");
+ // verify required parameter 'name' is not null or undefined
+ if (name === null || name === undefined) {
+ throw new Error('Required parameter name was null or undefined when calling getPolyLineAnnotation.');
}
- if (specialFolderForSvgImages !== undefined && null !== specialFolderForSvgImages) {
- localVarQueryParameters['specialFolderForSvgImages'] = ObjectSerializer.serialize(specialFolderForSvgImages, "string");
+ // verify required parameter 'annotationId' is not null or undefined
+ if (annotationId === null || annotationId === undefined) {
+ throw new Error('Required parameter annotationId was null or undefined when calling getPolyLineAnnotation.');
}
- if (trySaveTextUnderliningAndStrikeoutingInCss !== undefined && null !== trySaveTextUnderliningAndStrikeoutingInCss) {
- localVarQueryParameters['trySaveTextUnderliningAndStrikeoutingInCss'] = ObjectSerializer.serialize(trySaveTextUnderliningAndStrikeoutingInCss, "boolean");
+ if (storage !== undefined && null !== storage) {
+ localVarQueryParameters['storage'] = ObjectSerializer.serialize(storage, "string");
}
if (folder !== undefined && null !== folder) {
localVarQueryParameters['folder'] = ObjectSerializer.serialize(folder, "string");
}
- if (storage !== undefined && null !== storage) {
- localVarQueryParameters['storage'] = ObjectSerializer.serialize(storage, "string");
- }
-
let localVarUseFormData = false;
let fileData = null;
@@ -4334,7 +6025,7 @@ export class PdfApi {
headers: localVarHeaderParams,
uri: localVarPath,
useQuerystring: this._useQuerystring,
- encoding: null,
+ json: true,
};
if (Object.keys(localVarFormParams).length) {
@@ -4345,43 +6036,45 @@ export class PdfApi {
}
}
const response = await invokeApiMethod(localVarRequestOptions, this.configuration, false, fileData);
- const result = ObjectSerializer.deserialize(response.body, "Buffer");
+ const result = ObjectSerializer.deserialize(response.body, "PolyLineAnnotationResponse");
return Promise.resolve({body: result, response});
}
/**
*
- * @summary Converts PDF document (located on storage) to LaTeX format and returns resulting file in response content
+ * @summary Read document page polygon annotation by ID.
* @param name The document name.
- * @param pagesCount Pages count.
- * @param folder The document folder.
+ * @param annotationId The annotation ID.
* @param storage The document storage.
+ * @param folder The document folder.
*/
- public async getPdfInStorageToLaTeX (name: string, pagesCount?: number, folder?: string, storage?: string) : Promise<{ response: http.ClientResponse; body: Buffer; }> {
- const localVarPath = this.basePath + '/pdf/{name}/convert/latex'
- .replace('{' + 'name' + '}', encodeURIComponent(String(name)));
+ public async getPolygonAnnotation (name: string, annotationId: string, storage?: string, folder?: string) : Promise<{ response: http.IncomingMessage; body: PolygonAnnotationResponse; }> {
+ const localVarPath = this.basePath + '/pdf/{name}/annotations/polygon/{annotationId}'
+ .replace('{' + 'name' + '}', encodeURIComponent(String(name)))
+ .replace('{' + 'annotationId' + '}', encodeURIComponent(String(annotationId)));
let localVarQueryParameters: any = {};
let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders);
let localVarFormParams: any = {};
// verify required parameter 'name' is not null or undefined
if (name === null || name === undefined) {
- throw new Error('Required parameter name was null or undefined when calling getPdfInStorageToLaTeX.');
- }
-
- if (pagesCount !== undefined && null !== pagesCount) {
- localVarQueryParameters['pagesCount'] = ObjectSerializer.serialize(pagesCount, "number");
+ throw new Error('Required parameter name was null or undefined when calling getPolygonAnnotation.');
}
- if (folder !== undefined && null !== folder) {
- localVarQueryParameters['folder'] = ObjectSerializer.serialize(folder, "string");
+ // verify required parameter 'annotationId' is not null or undefined
+ if (annotationId === null || annotationId === undefined) {
+ throw new Error('Required parameter annotationId was null or undefined when calling getPolygonAnnotation.');
}
if (storage !== undefined && null !== storage) {
localVarQueryParameters['storage'] = ObjectSerializer.serialize(storage, "string");
}
+ if (folder !== undefined && null !== folder) {
+ localVarQueryParameters['folder'] = ObjectSerializer.serialize(folder, "string");
+ }
+
let localVarUseFormData = false;
let fileData = null;
@@ -4391,7 +6084,7 @@ export class PdfApi {
headers: localVarHeaderParams,
uri: localVarPath,
useQuerystring: this._useQuerystring,
- encoding: null,
+ json: true,
};
if (Object.keys(localVarFormParams).length) {
@@ -4402,38 +6095,45 @@ export class PdfApi {
}
}
const response = await invokeApiMethod(localVarRequestOptions, this.configuration, false, fileData);
- const result = ObjectSerializer.deserialize(response.body, "Buffer");
+ const result = ObjectSerializer.deserialize(response.body, "PolygonAnnotationResponse");
return Promise.resolve({body: result, response});
}
/**
*
- * @summary Converts PDF document (located on storage) to MOBIXML format and returns resulting file in response content
+ * @summary Read document page popup annotation by ID.
* @param name The document name.
- * @param folder The document folder.
+ * @param annotationId The annotation ID.
* @param storage The document storage.
+ * @param folder The document folder.
*/
- public async getPdfInStorageToMobiXml (name: string, folder?: string, storage?: string) : Promise<{ response: http.ClientResponse; body: Buffer; }> {
- const localVarPath = this.basePath + '/pdf/{name}/convert/mobixml'
- .replace('{' + 'name' + '}', encodeURIComponent(String(name)));
+ public async getPopupAnnotation (name: string, annotationId: string, storage?: string, folder?: string) : Promise<{ response: http.IncomingMessage; body: PopupAnnotationResponse; }> {
+ const localVarPath = this.basePath + '/pdf/{name}/annotations/popup/{annotationId}'
+ .replace('{' + 'name' + '}', encodeURIComponent(String(name)))
+ .replace('{' + 'annotationId' + '}', encodeURIComponent(String(annotationId)));
let localVarQueryParameters: any = {};
let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders);
let localVarFormParams: any = {};
// verify required parameter 'name' is not null or undefined
if (name === null || name === undefined) {
- throw new Error('Required parameter name was null or undefined when calling getPdfInStorageToMobiXml.');
+ throw new Error('Required parameter name was null or undefined when calling getPopupAnnotation.');
}
- if (folder !== undefined && null !== folder) {
- localVarQueryParameters['folder'] = ObjectSerializer.serialize(folder, "string");
+ // verify required parameter 'annotationId' is not null or undefined
+ if (annotationId === null || annotationId === undefined) {
+ throw new Error('Required parameter annotationId was null or undefined when calling getPopupAnnotation.');
}
if (storage !== undefined && null !== storage) {
localVarQueryParameters['storage'] = ObjectSerializer.serialize(storage, "string");
}
+ if (folder !== undefined && null !== folder) {
+ localVarQueryParameters['folder'] = ObjectSerializer.serialize(folder, "string");
+ }
+
let localVarUseFormData = false;
let fileData = null;
@@ -4443,7 +6143,7 @@ export class PdfApi {
headers: localVarHeaderParams,
uri: localVarPath,
useQuerystring: this._useQuerystring,
- encoding: null,
+ json: true,
};
if (Object.keys(localVarFormParams).length) {
@@ -4454,42 +6154,30 @@ export class PdfApi {
}
}
const response = await invokeApiMethod(localVarRequestOptions, this.configuration, false, fileData);
- const result = ObjectSerializer.deserialize(response.body, "Buffer");
+ const result = ObjectSerializer.deserialize(response.body, "PopupAnnotationResponse");
return Promise.resolve({body: result, response});
}
/**
*
- * @summary Converts PDF document (located on storage) to PdfA format and returns resulting file in response content
- * @param name The document name.
- * @param type Type of PdfA format.
- * @param folder The document folder.
+ * @summary Convert PS file (located on storage) to PDF format and return resulting file in response.
+ * @param srcPath Full source filename (ex. /folder1/folder2/template.ps)
* @param storage The document storage.
*/
- public async getPdfInStorageToPdfA (name: string, type: string, folder?: string, storage?: string) : Promise<{ response: http.ClientResponse; body: Buffer; }> {
- const localVarPath = this.basePath + '/pdf/{name}/convert/pdfa'
- .replace('{' + 'name' + '}', encodeURIComponent(String(name)));
+ public async getPsInStorageToPdf (srcPath: string, storage?: string) : Promise<{ response: http.IncomingMessage; body: Buffer; }> {
+ const localVarPath = this.basePath + '/pdf/create/ps';
let localVarQueryParameters: any = {};
let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders);
let localVarFormParams: any = {};
- // verify required parameter 'name' is not null or undefined
- if (name === null || name === undefined) {
- throw new Error('Required parameter name was null or undefined when calling getPdfInStorageToPdfA.');
- }
-
- // verify required parameter 'type' is not null or undefined
- if (type === null || type === undefined) {
- throw new Error('Required parameter type was null or undefined when calling getPdfInStorageToPdfA.');
- }
-
- if (type !== undefined && null !== type) {
- localVarQueryParameters['type'] = ObjectSerializer.serialize(type, "string");
+ // verify required parameter 'srcPath' is not null or undefined
+ if (srcPath === null || srcPath === undefined) {
+ throw new Error('Required parameter srcPath was null or undefined when calling getPsInStorageToPdf.');
}
- if (folder !== undefined && null !== folder) {
- localVarQueryParameters['folder'] = ObjectSerializer.serialize(folder, "string");
+ if (srcPath !== undefined && null !== srcPath) {
+ localVarQueryParameters['srcPath'] = ObjectSerializer.serialize(srcPath, "string");
}
if (storage !== undefined && null !== storage) {
@@ -4523,41 +6211,38 @@ export class PdfApi {
/**
*
- * @summary Converts PDF document (located on storage) to PPTX format and returns resulting file in response content
+ * @summary Read document page square annotation by ID.
* @param name The document name.
- * @param separateImages Separate images.
- * @param slidesAsImages Slides as images.
- * @param folder The document folder.
+ * @param annotationId The annotation ID.
* @param storage The document storage.
+ * @param folder The document folder.
*/
- public async getPdfInStorageToPptx (name: string, separateImages?: boolean, slidesAsImages?: boolean, folder?: string, storage?: string) : Promise<{ response: http.ClientResponse; body: Buffer; }> {
- const localVarPath = this.basePath + '/pdf/{name}/convert/pptx'
- .replace('{' + 'name' + '}', encodeURIComponent(String(name)));
+ public async getSquareAnnotation (name: string, annotationId: string, storage?: string, folder?: string) : Promise<{ response: http.IncomingMessage; body: SquareAnnotationResponse; }> {
+ const localVarPath = this.basePath + '/pdf/{name}/annotations/square/{annotationId}'
+ .replace('{' + 'name' + '}', encodeURIComponent(String(name)))
+ .replace('{' + 'annotationId' + '}', encodeURIComponent(String(annotationId)));
let localVarQueryParameters: any = {};
let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders);
let localVarFormParams: any = {};
// verify required parameter 'name' is not null or undefined
if (name === null || name === undefined) {
- throw new Error('Required parameter name was null or undefined when calling getPdfInStorageToPptx.');
+ throw new Error('Required parameter name was null or undefined when calling getSquareAnnotation.');
}
- if (separateImages !== undefined && null !== separateImages) {
- localVarQueryParameters['separateImages'] = ObjectSerializer.serialize(separateImages, "boolean");
+ // verify required parameter 'annotationId' is not null or undefined
+ if (annotationId === null || annotationId === undefined) {
+ throw new Error('Required parameter annotationId was null or undefined when calling getSquareAnnotation.');
}
- if (slidesAsImages !== undefined && null !== slidesAsImages) {
- localVarQueryParameters['slidesAsImages'] = ObjectSerializer.serialize(slidesAsImages, "boolean");
+ if (storage !== undefined && null !== storage) {
+ localVarQueryParameters['storage'] = ObjectSerializer.serialize(storage, "string");
}
if (folder !== undefined && null !== folder) {
localVarQueryParameters['folder'] = ObjectSerializer.serialize(folder, "string");
}
- if (storage !== undefined && null !== storage) {
- localVarQueryParameters['storage'] = ObjectSerializer.serialize(storage, "string");
- }
-
let localVarUseFormData = false;
let fileData = null;
@@ -4567,7 +6252,7 @@ export class PdfApi {
headers: localVarHeaderParams,
uri: localVarPath,
useQuerystring: this._useQuerystring,
- encoding: null,
+ json: true,
};
if (Object.keys(localVarFormParams).length) {
@@ -4578,43 +6263,45 @@ export class PdfApi {
}
}
const response = await invokeApiMethod(localVarRequestOptions, this.configuration, false, fileData);
- const result = ObjectSerializer.deserialize(response.body, "Buffer");
+ const result = ObjectSerializer.deserialize(response.body, "SquareAnnotationResponse");
return Promise.resolve({body: result, response});
}
/**
*
- * @summary Converts PDF document (located on storage) to SVG format and returns resulting file in response content
+ * @summary Read document page squiggly annotation by ID.
* @param name The document name.
- * @param compressOutputToZipArchive Specifies whether output will be created as one zip-archive.
- * @param folder The document folder.
+ * @param annotationId The annotation ID.
* @param storage The document storage.
+ * @param folder The document folder.
*/
- public async getPdfInStorageToSvg (name: string, compressOutputToZipArchive?: boolean, folder?: string, storage?: string) : Promise<{ response: http.ClientResponse; body: Buffer; }> {
- const localVarPath = this.basePath + '/pdf/{name}/convert/svg'
- .replace('{' + 'name' + '}', encodeURIComponent(String(name)));
+ public async getSquigglyAnnotation (name: string, annotationId: string, storage?: string, folder?: string) : Promise<{ response: http.IncomingMessage; body: SquigglyAnnotationResponse; }> {
+ const localVarPath = this.basePath + '/pdf/{name}/annotations/squiggly/{annotationId}'
+ .replace('{' + 'name' + '}', encodeURIComponent(String(name)))
+ .replace('{' + 'annotationId' + '}', encodeURIComponent(String(annotationId)));
let localVarQueryParameters: any = {};
let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders);
let localVarFormParams: any = {};
// verify required parameter 'name' is not null or undefined
if (name === null || name === undefined) {
- throw new Error('Required parameter name was null or undefined when calling getPdfInStorageToSvg.');
- }
-
- if (compressOutputToZipArchive !== undefined && null !== compressOutputToZipArchive) {
- localVarQueryParameters['compressOutputToZipArchive'] = ObjectSerializer.serialize(compressOutputToZipArchive, "boolean");
+ throw new Error('Required parameter name was null or undefined when calling getSquigglyAnnotation.');
}
- if (folder !== undefined && null !== folder) {
- localVarQueryParameters['folder'] = ObjectSerializer.serialize(folder, "string");
+ // verify required parameter 'annotationId' is not null or undefined
+ if (annotationId === null || annotationId === undefined) {
+ throw new Error('Required parameter annotationId was null or undefined when calling getSquigglyAnnotation.');
}
if (storage !== undefined && null !== storage) {
localVarQueryParameters['storage'] = ObjectSerializer.serialize(storage, "string");
}
+ if (folder !== undefined && null !== folder) {
+ localVarQueryParameters['folder'] = ObjectSerializer.serialize(folder, "string");
+ }
+
let localVarUseFormData = false;
let fileData = null;
@@ -4624,7 +6311,7 @@ export class PdfApi {
headers: localVarHeaderParams,
uri: localVarPath,
useQuerystring: this._useQuerystring,
- encoding: null,
+ json: true,
};
if (Object.keys(localVarFormParams).length) {
@@ -4635,107 +6322,129 @@ export class PdfApi {
}
}
const response = await invokeApiMethod(localVarRequestOptions, this.configuration, false, fileData);
- const result = ObjectSerializer.deserialize(response.body, "Buffer");
+ const result = ObjectSerializer.deserialize(response.body, "SquigglyAnnotationResponse");
return Promise.resolve({body: result, response});
}
/**
*
- * @summary Converts PDF document (located on storage) to TIFF format and returns resulting file in response content
+ * @summary Read document page StrikeOut annotation by ID.
* @param name The document name.
- * @param brightness Image brightness.
- * @param compression Tiff compression. Possible values are: LZW, CCITT4, CCITT3, RLE, None.
- * @param colorDepth Image color depth. Possible valuse are: Default, Format8bpp, Format4bpp, Format1bpp.
- * @param leftMargin Left image margin.
- * @param rightMargin Right image margin.
- * @param topMargin Top image margin.
- * @param bottomMargin Bottom image margin.
- * @param orientation Image orientation. Possible values are: None, Landscape, Portait.
- * @param skipBlankPages Skip blank pages flag.
- * @param width Image width.
- * @param height Image height.
- * @param xResolution Horizontal resolution.
- * @param yResolution Vertical resolution.
- * @param pageIndex Start page to export.
- * @param pageCount Number of pages to export.
- * @param folder The document folder.
+ * @param annotationId The annotation ID.
* @param storage The document storage.
+ * @param folder The document folder.
*/
- public async getPdfInStorageToTiff (name: string, brightness?: number, compression?: string, colorDepth?: string, leftMargin?: number, rightMargin?: number, topMargin?: number, bottomMargin?: number, orientation?: string, skipBlankPages?: boolean, width?: number, height?: number, xResolution?: number, yResolution?: number, pageIndex?: number, pageCount?: number, folder?: string, storage?: string) : Promise<{ response: http.ClientResponse; body: Buffer; }> {
- const localVarPath = this.basePath + '/pdf/{name}/convert/tiff'
- .replace('{' + 'name' + '}', encodeURIComponent(String(name)));
+ public async getStrikeOutAnnotation (name: string, annotationId: string, storage?: string, folder?: string) : Promise<{ response: http.IncomingMessage; body: StrikeOutAnnotationResponse; }> {
+ const localVarPath = this.basePath + '/pdf/{name}/annotations/strikeout/{annotationId}'
+ .replace('{' + 'name' + '}', encodeURIComponent(String(name)))
+ .replace('{' + 'annotationId' + '}', encodeURIComponent(String(annotationId)));
let localVarQueryParameters: any = {};
let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders);
let localVarFormParams: any = {};
// verify required parameter 'name' is not null or undefined
if (name === null || name === undefined) {
- throw new Error('Required parameter name was null or undefined when calling getPdfInStorageToTiff.');
+ throw new Error('Required parameter name was null or undefined when calling getStrikeOutAnnotation.');
}
- if (brightness !== undefined && null !== brightness) {
- localVarQueryParameters['brightness'] = ObjectSerializer.serialize(brightness, "number");
+ // verify required parameter 'annotationId' is not null or undefined
+ if (annotationId === null || annotationId === undefined) {
+ throw new Error('Required parameter annotationId was null or undefined when calling getStrikeOutAnnotation.');
}
- if (compression !== undefined && null !== compression) {
- localVarQueryParameters['compression'] = ObjectSerializer.serialize(compression, "string");
+ if (storage !== undefined && null !== storage) {
+ localVarQueryParameters['storage'] = ObjectSerializer.serialize(storage, "string");
}
- if (colorDepth !== undefined && null !== colorDepth) {
- localVarQueryParameters['colorDepth'] = ObjectSerializer.serialize(colorDepth, "string");
+ if (folder !== undefined && null !== folder) {
+ localVarQueryParameters['folder'] = ObjectSerializer.serialize(folder, "string");
}
- if (leftMargin !== undefined && null !== leftMargin) {
- localVarQueryParameters['leftMargin'] = ObjectSerializer.serialize(leftMargin, "number");
- }
- if (rightMargin !== undefined && null !== rightMargin) {
- localVarQueryParameters['rightMargin'] = ObjectSerializer.serialize(rightMargin, "number");
- }
+ let localVarUseFormData = false;
+ let fileData = null;
+ let localVarRequestOptions: localVarRequest.Options = {
+ method: 'GET',
+ qs: localVarQueryParameters,
+ headers: localVarHeaderParams,
+ uri: localVarPath,
+ useQuerystring: this._useQuerystring,
+ json: true,
+ };
- if (topMargin !== undefined && null !== topMargin) {
- localVarQueryParameters['topMargin'] = ObjectSerializer.serialize(topMargin, "number");
+ if (Object.keys(localVarFormParams).length) {
+ if (localVarUseFormData) {
+ (localVarRequestOptions).formData = localVarFormParams;
+ } else {
+ localVarRequestOptions.form = localVarFormParams;
+ }
}
+ const response = await invokeApiMethod(localVarRequestOptions, this.configuration, false, fileData);
+ const result = ObjectSerializer.deserialize(response.body, "StrikeOutAnnotationResponse");
+ return Promise.resolve({body: result, response});
+ }
- if (bottomMargin !== undefined && null !== bottomMargin) {
- localVarQueryParameters['bottomMargin'] = ObjectSerializer.serialize(bottomMargin, "number");
- }
- if (orientation !== undefined && null !== orientation) {
- localVarQueryParameters['orientation'] = ObjectSerializer.serialize(orientation, "string");
+ /**
+ *
+ * @summary Convert SVG file (located on storage) to PDF format and return resulting file in response.
+ * @param srcPath Full source filename (ex. /folder1/folder2/template.svg)
+ * @param adjustPageSize Adjust page size
+ * @param height Page height
+ * @param width Page width
+ * @param isLandscape Is page landscaped
+ * @param marginLeft Page margin left
+ * @param marginBottom Page margin bottom
+ * @param marginRight Page margin right
+ * @param marginTop Page margin top
+ * @param storage The document storage.
+ */
+ public async getSvgInStorageToPdf (srcPath: string, adjustPageSize?: boolean, height?: number, width?: number, isLandscape?: boolean, marginLeft?: number, marginBottom?: number, marginRight?: number, marginTop?: number, storage?: string) : Promise<{ response: http.IncomingMessage; body: Buffer; }> {
+ const localVarPath = this.basePath + '/pdf/create/svg';
+ let localVarQueryParameters: any = {};
+ let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders);
+ let localVarFormParams: any = {};
+
+ // verify required parameter 'srcPath' is not null or undefined
+ if (srcPath === null || srcPath === undefined) {
+ throw new Error('Required parameter srcPath was null or undefined when calling getSvgInStorageToPdf.');
}
- if (skipBlankPages !== undefined && null !== skipBlankPages) {
- localVarQueryParameters['skipBlankPages'] = ObjectSerializer.serialize(skipBlankPages, "boolean");
+ if (srcPath !== undefined && null !== srcPath) {
+ localVarQueryParameters['srcPath'] = ObjectSerializer.serialize(srcPath, "string");
}
- if (width !== undefined && null !== width) {
- localVarQueryParameters['width'] = ObjectSerializer.serialize(width, "number");
+ if (adjustPageSize !== undefined && null !== adjustPageSize) {
+ localVarQueryParameters['adjustPageSize'] = ObjectSerializer.serialize(adjustPageSize, "boolean");
}
if (height !== undefined && null !== height) {
localVarQueryParameters['height'] = ObjectSerializer.serialize(height, "number");
}
- if (xResolution !== undefined && null !== xResolution) {
- localVarQueryParameters['xResolution'] = ObjectSerializer.serialize(xResolution, "number");
+ if (width !== undefined && null !== width) {
+ localVarQueryParameters['width'] = ObjectSerializer.serialize(width, "number");
}
- if (yResolution !== undefined && null !== yResolution) {
- localVarQueryParameters['yResolution'] = ObjectSerializer.serialize(yResolution, "number");
+ if (isLandscape !== undefined && null !== isLandscape) {
+ localVarQueryParameters['isLandscape'] = ObjectSerializer.serialize(isLandscape, "boolean");
}
- if (pageIndex !== undefined && null !== pageIndex) {
- localVarQueryParameters['pageIndex'] = ObjectSerializer.serialize(pageIndex, "number");
+ if (marginLeft !== undefined && null !== marginLeft) {
+ localVarQueryParameters['marginLeft'] = ObjectSerializer.serialize(marginLeft, "number");
}
- if (pageCount !== undefined && null !== pageCount) {
- localVarQueryParameters['pageCount'] = ObjectSerializer.serialize(pageCount, "number");
+ if (marginBottom !== undefined && null !== marginBottom) {
+ localVarQueryParameters['marginBottom'] = ObjectSerializer.serialize(marginBottom, "number");
}
- if (folder !== undefined && null !== folder) {
- localVarQueryParameters['folder'] = ObjectSerializer.serialize(folder, "string");
+ if (marginRight !== undefined && null !== marginRight) {
+ localVarQueryParameters['marginRight'] = ObjectSerializer.serialize(marginRight, "number");
+ }
+
+ if (marginTop !== undefined && null !== marginTop) {
+ localVarQueryParameters['marginTop'] = ObjectSerializer.serialize(marginTop, "number");
}
if (storage !== undefined && null !== storage) {
@@ -4769,17 +6478,20 @@ export class PdfApi {
/**
*
- * @summary Converts PDF document (located on storage) to XLS format and returns resulting file in response content
+ * @summary Read document text.
* @param name The document name.
- * @param insertBlankColumnAtFirst Insert blank column at first
- * @param minimizeTheNumberOfWorksheets Minimize the number of worksheets
- * @param scaleFactor Scale factor
- * @param uniformWorksheets Uniform worksheets
+ * @param LLX
+ * @param LLY
+ * @param URX
+ * @param URY
+ * @param format List of formats for search.
+ * @param regex Formats are specified as a regular expression.
+ * @param splitRects Split result fragments (default is true).
* @param folder The document folder.
* @param storage The document storage.
*/
- public async getPdfInStorageToXls (name: string, insertBlankColumnAtFirst?: boolean, minimizeTheNumberOfWorksheets?: boolean, scaleFactor?: number, uniformWorksheets?: boolean, folder?: string, storage?: string) : Promise<{ response: http.ClientResponse; body: Buffer; }> {
- const localVarPath = this.basePath + '/pdf/{name}/convert/xls'
+ public async getText (name: string, LLX: number, LLY: number, URX: number, URY: number, format?: Array, regex?: string, splitRects?: boolean, folder?: string, storage?: string) : Promise<{ response: http.IncomingMessage; body: TextRectsResponse; }> {
+ const localVarPath = this.basePath + '/pdf/{name}/text'
.replace('{' + 'name' + '}', encodeURIComponent(String(name)));
let localVarQueryParameters: any = {};
let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders);
@@ -4787,29 +6499,61 @@ export class PdfApi {
// verify required parameter 'name' is not null or undefined
if (name === null || name === undefined) {
- throw new Error('Required parameter name was null or undefined when calling getPdfInStorageToXls.');
+ throw new Error('Required parameter name was null or undefined when calling getText.');
}
- if (insertBlankColumnAtFirst !== undefined && null !== insertBlankColumnAtFirst) {
- localVarQueryParameters['insertBlankColumnAtFirst'] = ObjectSerializer.serialize(insertBlankColumnAtFirst, "boolean");
+ // verify required parameter 'LLX' is not null or undefined
+ if (LLX === null || LLX === undefined) {
+ throw new Error('Required parameter LLX was null or undefined when calling getText.');
}
- if (minimizeTheNumberOfWorksheets !== undefined && null !== minimizeTheNumberOfWorksheets) {
- localVarQueryParameters['minimizeTheNumberOfWorksheets'] = ObjectSerializer.serialize(minimizeTheNumberOfWorksheets, "boolean");
+ // verify required parameter 'LLY' is not null or undefined
+ if (LLY === null || LLY === undefined) {
+ throw new Error('Required parameter LLY was null or undefined when calling getText.');
}
- if (scaleFactor !== undefined && null !== scaleFactor) {
- localVarQueryParameters['scaleFactor'] = ObjectSerializer.serialize(scaleFactor, "number");
+ // verify required parameter 'URX' is not null or undefined
+ if (URX === null || URX === undefined) {
+ throw new Error('Required parameter URX was null or undefined when calling getText.');
}
- if (uniformWorksheets !== undefined && null !== uniformWorksheets) {
- localVarQueryParameters['uniformWorksheets'] = ObjectSerializer.serialize(uniformWorksheets, "boolean");
+ // verify required parameter 'URY' is not null or undefined
+ if (URY === null || URY === undefined) {
+ throw new Error('Required parameter URY was null or undefined when calling getText.');
+ }
+
+ if (format !== undefined && null !== format) {
+ localVarQueryParameters['format'] = ObjectSerializer.serialize(format, "Array");
+ }
+
+ if (regex !== undefined && null !== regex) {
+ localVarQueryParameters['regex'] = ObjectSerializer.serialize(regex, "string");
+ }
+
+ if (splitRects !== undefined && null !== splitRects) {
+ localVarQueryParameters['splitRects'] = ObjectSerializer.serialize(splitRects, "boolean");
}
if (folder !== undefined && null !== folder) {
localVarQueryParameters['folder'] = ObjectSerializer.serialize(folder, "string");
}
+ if (LLX !== undefined && null !== LLX) {
+ localVarQueryParameters['LLX'] = ObjectSerializer.serialize(LLX, "number");
+ }
+
+ if (LLY !== undefined && null !== LLY) {
+ localVarQueryParameters['LLY'] = ObjectSerializer.serialize(LLY, "number");
+ }
+
+ if (URX !== undefined && null !== URX) {
+ localVarQueryParameters['URX'] = ObjectSerializer.serialize(URX, "number");
+ }
+
+ if (URY !== undefined && null !== URY) {
+ localVarQueryParameters['URY'] = ObjectSerializer.serialize(URY, "number");
+ }
+
if (storage !== undefined && null !== storage) {
localVarQueryParameters['storage'] = ObjectSerializer.serialize(storage, "string");
}
@@ -4823,7 +6567,7 @@ export class PdfApi {
headers: localVarHeaderParams,
uri: localVarPath,
useQuerystring: this._useQuerystring,
- encoding: null,
+ json: true,
};
if (Object.keys(localVarFormParams).length) {
@@ -4834,38 +6578,45 @@ export class PdfApi {
}
}
const response = await invokeApiMethod(localVarRequestOptions, this.configuration, false, fileData);
- const result = ObjectSerializer.deserialize(response.body, "Buffer");
+ const result = ObjectSerializer.deserialize(response.body, "TextRectsResponse");
return Promise.resolve({body: result, response});
}
/**
*
- * @summary Converts PDF document (located on storage) to XML format and returns resulting file in response content
+ * @summary Read document page text annotation by ID.
* @param name The document name.
- * @param folder The document folder.
+ * @param annotationId The annotation ID.
* @param storage The document storage.
+ * @param folder The document folder.
*/
- public async getPdfInStorageToXml (name: string, folder?: string, storage?: string) : Promise<{ response: http.ClientResponse; body: Buffer; }> {
- const localVarPath = this.basePath + '/pdf/{name}/convert/xml'
- .replace('{' + 'name' + '}', encodeURIComponent(String(name)));
+ public async getTextAnnotation (name: string, annotationId: string, storage?: string, folder?: string) : Promise<{ response: http.IncomingMessage; body: TextAnnotationResponse; }> {
+ const localVarPath = this.basePath + '/pdf/{name}/annotations/text/{annotationId}'
+ .replace('{' + 'name' + '}', encodeURIComponent(String(name)))
+ .replace('{' + 'annotationId' + '}', encodeURIComponent(String(annotationId)));
let localVarQueryParameters: any = {};
let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders);
let localVarFormParams: any = {};
// verify required parameter 'name' is not null or undefined
if (name === null || name === undefined) {
- throw new Error('Required parameter name was null or undefined when calling getPdfInStorageToXml.');
+ throw new Error('Required parameter name was null or undefined when calling getTextAnnotation.');
}
- if (folder !== undefined && null !== folder) {
- localVarQueryParameters['folder'] = ObjectSerializer.serialize(folder, "string");
+ // verify required parameter 'annotationId' is not null or undefined
+ if (annotationId === null || annotationId === undefined) {
+ throw new Error('Required parameter annotationId was null or undefined when calling getTextAnnotation.');
}
if (storage !== undefined && null !== storage) {
localVarQueryParameters['storage'] = ObjectSerializer.serialize(storage, "string");
}
+ if (folder !== undefined && null !== folder) {
+ localVarQueryParameters['folder'] = ObjectSerializer.serialize(folder, "string");
+ }
+
let localVarUseFormData = false;
let fileData = null;
@@ -4875,7 +6626,7 @@ export class PdfApi {
headers: localVarHeaderParams,
uri: localVarPath,
useQuerystring: this._useQuerystring,
- encoding: null,
+ json: true,
};
if (Object.keys(localVarFormParams).length) {
@@ -4886,38 +6637,45 @@ export class PdfApi {
}
}
const response = await invokeApiMethod(localVarRequestOptions, this.configuration, false, fileData);
- const result = ObjectSerializer.deserialize(response.body, "Buffer");
+ const result = ObjectSerializer.deserialize(response.body, "TextAnnotationResponse");
return Promise.resolve({body: result, response});
}
/**
*
- * @summary Converts PDF document (located on storage) to XPS format and returns resulting file in response content
+ * @summary Read document page underline annotation by ID.
* @param name The document name.
- * @param folder The document folder.
+ * @param annotationId The annotation ID.
* @param storage The document storage.
+ * @param folder The document folder.
*/
- public async getPdfInStorageToXps (name: string, folder?: string, storage?: string) : Promise<{ response: http.ClientResponse; body: Buffer; }> {
- const localVarPath = this.basePath + '/pdf/{name}/convert/xps'
- .replace('{' + 'name' + '}', encodeURIComponent(String(name)));
+ public async getUnderlineAnnotation (name: string, annotationId: string, storage?: string, folder?: string) : Promise<{ response: http.IncomingMessage; body: UnderlineAnnotationResponse; }> {
+ const localVarPath = this.basePath + '/pdf/{name}/annotations/underline/{annotationId}'
+ .replace('{' + 'name' + '}', encodeURIComponent(String(name)))
+ .replace('{' + 'annotationId' + '}', encodeURIComponent(String(annotationId)));
let localVarQueryParameters: any = {};
let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders);
let localVarFormParams: any = {};
// verify required parameter 'name' is not null or undefined
if (name === null || name === undefined) {
- throw new Error('Required parameter name was null or undefined when calling getPdfInStorageToXps.');
+ throw new Error('Required parameter name was null or undefined when calling getUnderlineAnnotation.');
}
- if (folder !== undefined && null !== folder) {
- localVarQueryParameters['folder'] = ObjectSerializer.serialize(folder, "string");
+ // verify required parameter 'annotationId' is not null or undefined
+ if (annotationId === null || annotationId === undefined) {
+ throw new Error('Required parameter annotationId was null or undefined when calling getUnderlineAnnotation.');
}
if (storage !== undefined && null !== storage) {
localVarQueryParameters['storage'] = ObjectSerializer.serialize(storage, "string");
}
+ if (folder !== undefined && null !== folder) {
+ localVarQueryParameters['folder'] = ObjectSerializer.serialize(folder, "string");
+ }
+
let localVarUseFormData = false;
let fileData = null;
@@ -4927,7 +6685,7 @@ export class PdfApi {
headers: localVarHeaderParams,
uri: localVarPath,
useQuerystring: this._useQuerystring,
- encoding: null,
+ json: true,
};
if (Object.keys(localVarFormParams).length) {
@@ -4938,35 +6696,38 @@ export class PdfApi {
}
}
const response = await invokeApiMethod(localVarRequestOptions, this.configuration, false, fileData);
- const result = ObjectSerializer.deserialize(response.body, "Buffer");
+ const result = ObjectSerializer.deserialize(response.body, "UnderlineAnnotationResponse");
return Promise.resolve({body: result, response});
}
/**
*
- * @summary Read document page polyline annotation by ID.
+ * @summary Verify signature document.
* @param name The document name.
- * @param annotationId The annotation ID.
+ * @param signName Sign name.
* @param storage The document storage.
* @param folder The document folder.
*/
- public async getPolyLineAnnotation (name: string, annotationId: string, storage?: string, folder?: string) : Promise<{ response: http.ClientResponse; body: PolyLineAnnotationResponse; }> {
- const localVarPath = this.basePath + '/pdf/{name}/annotations/polyline/{annotationId}'
- .replace('{' + 'name' + '}', encodeURIComponent(String(name)))
- .replace('{' + 'annotationId' + '}', encodeURIComponent(String(annotationId)));
+ public async getVerifySignature (name: string, signName: string, storage?: string, folder?: string) : Promise<{ response: http.IncomingMessage; body: SignatureVerifyResponse; }> {
+ const localVarPath = this.basePath + '/pdf/{name}/verifySignature'
+ .replace('{' + 'name' + '}', encodeURIComponent(String(name)));
let localVarQueryParameters: any = {};
let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders);
let localVarFormParams: any = {};
// verify required parameter 'name' is not null or undefined
if (name === null || name === undefined) {
- throw new Error('Required parameter name was null or undefined when calling getPolyLineAnnotation.');
+ throw new Error('Required parameter name was null or undefined when calling getVerifySignature.');
}
- // verify required parameter 'annotationId' is not null or undefined
- if (annotationId === null || annotationId === undefined) {
- throw new Error('Required parameter annotationId was null or undefined when calling getPolyLineAnnotation.');
+ // verify required parameter 'signName' is not null or undefined
+ if (signName === null || signName === undefined) {
+ throw new Error('Required parameter signName was null or undefined when calling getVerifySignature.');
+ }
+
+ if (signName !== undefined && null !== signName) {
+ localVarQueryParameters['signName'] = ObjectSerializer.serialize(signName, "string");
}
if (storage !== undefined && null !== storage) {
@@ -4997,43 +6758,69 @@ export class PdfApi {
}
}
const response = await invokeApiMethod(localVarRequestOptions, this.configuration, false, fileData);
- const result = ObjectSerializer.deserialize(response.body, "PolyLineAnnotationResponse");
+ const result = ObjectSerializer.deserialize(response.body, "SignatureVerifyResponse");
return Promise.resolve({body: result, response});
}
/**
*
- * @summary Read document page polygon annotation by ID.
- * @param name The document name.
- * @param annotationId The annotation ID.
+ * @summary Convert web page to PDF format and return resulting file in response.
+ * @param url Source url
+ * @param height Page height
+ * @param width Page width
+ * @param isLandscape Is page landscaped
+ * @param marginLeft Page margin left
+ * @param marginBottom Page margin bottom
+ * @param marginRight Page margin right
+ * @param marginTop Page margin top
* @param storage The document storage.
- * @param folder The document folder.
*/
- public async getPolygonAnnotation (name: string, annotationId: string, storage?: string, folder?: string) : Promise<{ response: http.ClientResponse; body: PolygonAnnotationResponse; }> {
- const localVarPath = this.basePath + '/pdf/{name}/annotations/polygon/{annotationId}'
- .replace('{' + 'name' + '}', encodeURIComponent(String(name)))
- .replace('{' + 'annotationId' + '}', encodeURIComponent(String(annotationId)));
+ public async getWebInStorageToPdf (url: string, height?: number, width?: number, isLandscape?: boolean, marginLeft?: number, marginBottom?: number, marginRight?: number, marginTop?: number, storage?: string) : Promise<{ response: http.IncomingMessage; body: Buffer; }> {
+ const localVarPath = this.basePath + '/pdf/create/web';
let localVarQueryParameters: any = {};
let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders);
let localVarFormParams: any = {};
- // verify required parameter 'name' is not null or undefined
- if (name === null || name === undefined) {
- throw new Error('Required parameter name was null or undefined when calling getPolygonAnnotation.');
+ // verify required parameter 'url' is not null or undefined
+ if (url === null || url === undefined) {
+ throw new Error('Required parameter url was null or undefined when calling getWebInStorageToPdf.');
}
- // verify required parameter 'annotationId' is not null or undefined
- if (annotationId === null || annotationId === undefined) {
- throw new Error('Required parameter annotationId was null or undefined when calling getPolygonAnnotation.');
+ if (url !== undefined && null !== url) {
+ localVarQueryParameters['url'] = ObjectSerializer.serialize(url, "string");
}
- if (storage !== undefined && null !== storage) {
- localVarQueryParameters['storage'] = ObjectSerializer.serialize(storage, "string");
+ if (height !== undefined && null !== height) {
+ localVarQueryParameters['height'] = ObjectSerializer.serialize(height, "number");
}
- if (folder !== undefined && null !== folder) {
- localVarQueryParameters['folder'] = ObjectSerializer.serialize(folder, "string");
+ if (width !== undefined && null !== width) {
+ localVarQueryParameters['width'] = ObjectSerializer.serialize(width, "number");
+ }
+
+ if (isLandscape !== undefined && null !== isLandscape) {
+ localVarQueryParameters['isLandscape'] = ObjectSerializer.serialize(isLandscape, "boolean");
+ }
+
+ if (marginLeft !== undefined && null !== marginLeft) {
+ localVarQueryParameters['marginLeft'] = ObjectSerializer.serialize(marginLeft, "number");
+ }
+
+ if (marginBottom !== undefined && null !== marginBottom) {
+ localVarQueryParameters['marginBottom'] = ObjectSerializer.serialize(marginBottom, "number");
+ }
+
+ if (marginRight !== undefined && null !== marginRight) {
+ localVarQueryParameters['marginRight'] = ObjectSerializer.serialize(marginRight, "number");
+ }
+
+ if (marginTop !== undefined && null !== marginTop) {
+ localVarQueryParameters['marginTop'] = ObjectSerializer.serialize(marginTop, "number");
+ }
+
+ if (storage !== undefined && null !== storage) {
+ localVarQueryParameters['storage'] = ObjectSerializer.serialize(storage, "string");
}
@@ -5045,7 +6832,7 @@ export class PdfApi {
headers: localVarHeaderParams,
uri: localVarPath,
useQuerystring: this._useQuerystring,
- json: true,
+ encoding: null,
};
if (Object.keys(localVarFormParams).length) {
@@ -5056,36 +6843,38 @@ export class PdfApi {
}
}
const response = await invokeApiMethod(localVarRequestOptions, this.configuration, false, fileData);
- const result = ObjectSerializer.deserialize(response.body, "PolygonAnnotationResponse");
+ const result = ObjectSerializer.deserialize(response.body, "Buffer");
return Promise.resolve({body: result, response});
}
/**
*
- * @summary Convert PS file (located on storage) to PDF format and return resulting file in response.
- * @param srcPath Full source filename (ex. /folder1/folder2/template.ps)
+ * @summary Get number of words per document page.
+ * @param name The document name.
* @param storage The document storage.
+ * @param folder The document folder.
*/
- public async getPsInStorageToPdf (srcPath: string, storage?: string) : Promise<{ response: http.ClientResponse; body: Buffer; }> {
- const localVarPath = this.basePath + '/pdf/create/ps';
+ public async getWordsPerPage (name: string, storage?: string, folder?: string) : Promise<{ response: http.IncomingMessage; body: WordCountResponse; }> {
+ const localVarPath = this.basePath + '/pdf/{name}/pages/wordCount'
+ .replace('{' + 'name' + '}', encodeURIComponent(String(name)));
let localVarQueryParameters: any = {};
let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders);
let localVarFormParams: any = {};
- // verify required parameter 'srcPath' is not null or undefined
- if (srcPath === null || srcPath === undefined) {
- throw new Error('Required parameter srcPath was null or undefined when calling getPsInStorageToPdf.');
- }
-
- if (srcPath !== undefined && null !== srcPath) {
- localVarQueryParameters['srcPath'] = ObjectSerializer.serialize(srcPath, "string");
+ // verify required parameter 'name' is not null or undefined
+ if (name === null || name === undefined) {
+ throw new Error('Required parameter name was null or undefined when calling getWordsPerPage.');
}
if (storage !== undefined && null !== storage) {
localVarQueryParameters['storage'] = ObjectSerializer.serialize(storage, "string");
}
+ if (folder !== undefined && null !== folder) {
+ localVarQueryParameters['folder'] = ObjectSerializer.serialize(folder, "string");
+ }
+
let localVarUseFormData = false;
let fileData = null;
@@ -5095,7 +6884,7 @@ export class PdfApi {
headers: localVarHeaderParams,
uri: localVarPath,
useQuerystring: this._useQuerystring,
- encoding: null,
+ json: true,
};
if (Object.keys(localVarFormParams).length) {
@@ -5106,45 +6895,38 @@ export class PdfApi {
}
}
const response = await invokeApiMethod(localVarRequestOptions, this.configuration, false, fileData);
- const result = ObjectSerializer.deserialize(response.body, "Buffer");
+ const result = ObjectSerializer.deserialize(response.body, "WordCountResponse");
return Promise.resolve({body: result, response});
}
/**
*
- * @summary Read document page square annotation by ID.
+ * @summary Converts PDF document which contatins XFA form (located on storage) to PDF with AcroForm and returns resulting file response content
* @param name The document name.
- * @param annotationId The annotation ID.
- * @param storage The document storage.
* @param folder The document folder.
+ * @param storage The document storage.
*/
- public async getSquareAnnotation (name: string, annotationId: string, storage?: string, folder?: string) : Promise<{ response: http.ClientResponse; body: SquareAnnotationResponse; }> {
- const localVarPath = this.basePath + '/pdf/{name}/annotations/square/{annotationId}'
- .replace('{' + 'name' + '}', encodeURIComponent(String(name)))
- .replace('{' + 'annotationId' + '}', encodeURIComponent(String(annotationId)));
+ public async getXfaPdfInStorageToAcroForm (name: string, folder?: string, storage?: string) : Promise<{ response: http.IncomingMessage; body: Buffer; }> {
+ const localVarPath = this.basePath + '/pdf/{name}/convert/xfatoacroform'
+ .replace('{' + 'name' + '}', encodeURIComponent(String(name)));
let localVarQueryParameters: any = {};
let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders);
let localVarFormParams: any = {};
// verify required parameter 'name' is not null or undefined
if (name === null || name === undefined) {
- throw new Error('Required parameter name was null or undefined when calling getSquareAnnotation.');
+ throw new Error('Required parameter name was null or undefined when calling getXfaPdfInStorageToAcroForm.');
}
- // verify required parameter 'annotationId' is not null or undefined
- if (annotationId === null || annotationId === undefined) {
- throw new Error('Required parameter annotationId was null or undefined when calling getSquareAnnotation.');
+ if (folder !== undefined && null !== folder) {
+ localVarQueryParameters['folder'] = ObjectSerializer.serialize(folder, "string");
}
if (storage !== undefined && null !== storage) {
localVarQueryParameters['storage'] = ObjectSerializer.serialize(storage, "string");
}
- if (folder !== undefined && null !== folder) {
- localVarQueryParameters['folder'] = ObjectSerializer.serialize(folder, "string");
- }
-
let localVarUseFormData = false;
let fileData = null;
@@ -5154,7 +6936,7 @@ export class PdfApi {
headers: localVarHeaderParams,
uri: localVarPath,
useQuerystring: this._useQuerystring,
- json: true,
+ encoding: null,
};
if (Object.keys(localVarFormParams).length) {
@@ -5165,70 +6947,35 @@ export class PdfApi {
}
}
const response = await invokeApiMethod(localVarRequestOptions, this.configuration, false, fileData);
- const result = ObjectSerializer.deserialize(response.body, "SquareAnnotationResponse");
+ const result = ObjectSerializer.deserialize(response.body, "Buffer");
return Promise.resolve({body: result, response});
}
/**
*
- * @summary Convert SVG file (located on storage) to PDF format and return resulting file in response.
- * @param srcPath Full source filename (ex. /folder1/folder2/template.svg)
- * @param adjustPageSize Adjust page size
- * @param height Page height
- * @param width Page width
- * @param isLandscape Is page landscaped
- * @param marginLeft Page margin left
- * @param marginBottom Page margin bottom
- * @param marginRight Page margin right
- * @param marginTop Page margin top
+ * @summary Convert XML file (located on storage) to PDF format and return resulting file in response.
+ * @param srcPath Full source filename (ex. /folder1/folder2/template.xml)
+ * @param xslFilePath Full XSL source filename (ex. /folder1/folder2/template.xsl)
* @param storage The document storage.
*/
- public async getSvgInStorageToPdf (srcPath: string, adjustPageSize?: boolean, height?: number, width?: number, isLandscape?: boolean, marginLeft?: number, marginBottom?: number, marginRight?: number, marginTop?: number, storage?: string) : Promise<{ response: http.ClientResponse; body: Buffer; }> {
- const localVarPath = this.basePath + '/pdf/create/svg';
+ public async getXmlInStorageToPdf (srcPath: string, xslFilePath?: string, storage?: string) : Promise<{ response: http.IncomingMessage; body: Buffer; }> {
+ const localVarPath = this.basePath + '/pdf/create/xml';
let localVarQueryParameters: any = {};
let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders);
let localVarFormParams: any = {};
// verify required parameter 'srcPath' is not null or undefined
if (srcPath === null || srcPath === undefined) {
- throw new Error('Required parameter srcPath was null or undefined when calling getSvgInStorageToPdf.');
+ throw new Error('Required parameter srcPath was null or undefined when calling getXmlInStorageToPdf.');
}
if (srcPath !== undefined && null !== srcPath) {
localVarQueryParameters['srcPath'] = ObjectSerializer.serialize(srcPath, "string");
}
- if (adjustPageSize !== undefined && null !== adjustPageSize) {
- localVarQueryParameters['adjustPageSize'] = ObjectSerializer.serialize(adjustPageSize, "boolean");
- }
-
- if (height !== undefined && null !== height) {
- localVarQueryParameters['height'] = ObjectSerializer.serialize(height, "number");
- }
-
- if (width !== undefined && null !== width) {
- localVarQueryParameters['width'] = ObjectSerializer.serialize(width, "number");
- }
-
- if (isLandscape !== undefined && null !== isLandscape) {
- localVarQueryParameters['isLandscape'] = ObjectSerializer.serialize(isLandscape, "boolean");
- }
-
- if (marginLeft !== undefined && null !== marginLeft) {
- localVarQueryParameters['marginLeft'] = ObjectSerializer.serialize(marginLeft, "number");
- }
-
- if (marginBottom !== undefined && null !== marginBottom) {
- localVarQueryParameters['marginBottom'] = ObjectSerializer.serialize(marginBottom, "number");
- }
-
- if (marginRight !== undefined && null !== marginRight) {
- localVarQueryParameters['marginRight'] = ObjectSerializer.serialize(marginRight, "number");
- }
-
- if (marginTop !== undefined && null !== marginTop) {
- localVarQueryParameters['marginTop'] = ObjectSerializer.serialize(marginTop, "number");
+ if (xslFilePath !== undefined && null !== xslFilePath) {
+ localVarQueryParameters['xslFilePath'] = ObjectSerializer.serialize(xslFilePath, "string");
}
if (storage !== undefined && null !== storage) {
@@ -5262,80 +7009,23 @@ export class PdfApi {
/**
*
- * @summary Read document text.
- * @param name The document name.
- * @param LLX
- * @param LLY
- * @param URX
- * @param URY
- * @param format List of formats for search.
- * @param regex Formats are specified as a regular expression.
- * @param splitRects Split result fragments (default is true).
- * @param folder The document folder.
+ * @summary Convert XPS file (located on storage) to PDF format and return resulting file in response.
+ * @param srcPath Full source filename (ex. /folder1/folder2/template.xps)
* @param storage The document storage.
*/
- public async getText (name: string, LLX: number, LLY: number, URX: number, URY: number, format?: Array, regex?: string, splitRects?: boolean, folder?: string, storage?: string) : Promise<{ response: http.ClientResponse; body: TextRectsResponse; }> {
- const localVarPath = this.basePath + '/pdf/{name}/text'
- .replace('{' + 'name' + '}', encodeURIComponent(String(name)));
+ public async getXpsInStorageToPdf (srcPath: string, storage?: string) : Promise<{ response: http.IncomingMessage; body: Buffer; }> {
+ const localVarPath = this.basePath + '/pdf/create/xps';
let localVarQueryParameters: any = {};
let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders);
let localVarFormParams: any = {};
- // verify required parameter 'name' is not null or undefined
- if (name === null || name === undefined) {
- throw new Error('Required parameter name was null or undefined when calling getText.');
- }
-
- // verify required parameter 'LLX' is not null or undefined
- if (LLX === null || LLX === undefined) {
- throw new Error('Required parameter LLX was null or undefined when calling getText.');
- }
-
- // verify required parameter 'LLY' is not null or undefined
- if (LLY === null || LLY === undefined) {
- throw new Error('Required parameter LLY was null or undefined when calling getText.');
- }
-
- // verify required parameter 'URX' is not null or undefined
- if (URX === null || URX === undefined) {
- throw new Error('Required parameter URX was null or undefined when calling getText.');
- }
-
- // verify required parameter 'URY' is not null or undefined
- if (URY === null || URY === undefined) {
- throw new Error('Required parameter URY was null or undefined when calling getText.');
- }
-
- if (format !== undefined && null !== format) {
- localVarQueryParameters['format'] = ObjectSerializer.serialize(format, "Array");
- }
-
- if (regex !== undefined && null !== regex) {
- localVarQueryParameters['regex'] = ObjectSerializer.serialize(regex, "string");
- }
-
- if (splitRects !== undefined && null !== splitRects) {
- localVarQueryParameters['splitRects'] = ObjectSerializer.serialize(splitRects, "boolean");
- }
-
- if (folder !== undefined && null !== folder) {
- localVarQueryParameters['folder'] = ObjectSerializer.serialize(folder, "string");
- }
-
- if (LLX !== undefined && null !== LLX) {
- localVarQueryParameters['LLX'] = ObjectSerializer.serialize(LLX, "number");
- }
-
- if (LLY !== undefined && null !== LLY) {
- localVarQueryParameters['LLY'] = ObjectSerializer.serialize(LLY, "number");
- }
-
- if (URX !== undefined && null !== URX) {
- localVarQueryParameters['URX'] = ObjectSerializer.serialize(URX, "number");
+ // verify required parameter 'srcPath' is not null or undefined
+ if (srcPath === null || srcPath === undefined) {
+ throw new Error('Required parameter srcPath was null or undefined when calling getXpsInStorageToPdf.');
}
- if (URY !== undefined && null !== URY) {
- localVarQueryParameters['URY'] = ObjectSerializer.serialize(URY, "number");
+ if (srcPath !== undefined && null !== srcPath) {
+ localVarQueryParameters['srcPath'] = ObjectSerializer.serialize(srcPath, "string");
}
if (storage !== undefined && null !== storage) {
@@ -5351,7 +7041,7 @@ export class PdfApi {
headers: localVarHeaderParams,
uri: localVarPath,
useQuerystring: this._useQuerystring,
- json: true,
+ encoding: null,
};
if (Object.keys(localVarFormParams).length) {
@@ -5362,45 +7052,36 @@ export class PdfApi {
}
}
const response = await invokeApiMethod(localVarRequestOptions, this.configuration, false, fileData);
- const result = ObjectSerializer.deserialize(response.body, "TextRectsResponse");
+ const result = ObjectSerializer.deserialize(response.body, "Buffer");
return Promise.resolve({body: result, response});
}
/**
*
- * @summary Read document page text annotation by ID.
- * @param name The document name.
- * @param annotationId The annotation ID.
+ * @summary Convert XslFo file (located on storage) to PDF format and return resulting file in response.
+ * @param srcPath Full source filename (ex. /folder1/folder2/template.xslfo)
* @param storage The document storage.
- * @param folder The document folder.
*/
- public async getTextAnnotation (name: string, annotationId: string, storage?: string, folder?: string) : Promise<{ response: http.ClientResponse; body: TextAnnotationResponse; }> {
- const localVarPath = this.basePath + '/pdf/{name}/annotations/text/{annotationId}'
- .replace('{' + 'name' + '}', encodeURIComponent(String(name)))
- .replace('{' + 'annotationId' + '}', encodeURIComponent(String(annotationId)));
+ public async getXslFoInStorageToPdf (srcPath: string, storage?: string) : Promise<{ response: http.IncomingMessage; body: Buffer; }> {
+ const localVarPath = this.basePath + '/pdf/create/xslfo';
let localVarQueryParameters: any = {};
let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders);
let localVarFormParams: any = {};
- // verify required parameter 'name' is not null or undefined
- if (name === null || name === undefined) {
- throw new Error('Required parameter name was null or undefined when calling getTextAnnotation.');
+ // verify required parameter 'srcPath' is not null or undefined
+ if (srcPath === null || srcPath === undefined) {
+ throw new Error('Required parameter srcPath was null or undefined when calling getXslFoInStorageToPdf.');
}
- // verify required parameter 'annotationId' is not null or undefined
- if (annotationId === null || annotationId === undefined) {
- throw new Error('Required parameter annotationId was null or undefined when calling getTextAnnotation.');
+ if (srcPath !== undefined && null !== srcPath) {
+ localVarQueryParameters['srcPath'] = ObjectSerializer.serialize(srcPath, "string");
}
if (storage !== undefined && null !== storage) {
localVarQueryParameters['storage'] = ObjectSerializer.serialize(storage, "string");
}
- if (folder !== undefined && null !== folder) {
- localVarQueryParameters['folder'] = ObjectSerializer.serialize(folder, "string");
- }
-
let localVarUseFormData = false;
let fileData = null;
@@ -5410,7 +7091,7 @@ export class PdfApi {
headers: localVarHeaderParams,
uri: localVarPath,
useQuerystring: this._useQuerystring,
- json: true,
+ encoding: null,
};
if (Object.keys(localVarFormParams).length) {
@@ -5421,21 +7102,24 @@ export class PdfApi {
}
}
const response = await invokeApiMethod(localVarRequestOptions, this.configuration, false, fileData);
- const result = ObjectSerializer.deserialize(response.body, "TextAnnotationResponse");
+ const result = ObjectSerializer.deserialize(response.body, "Buffer");
return Promise.resolve({body: result, response});
}
/**
*
- * @summary Verify signature document.
- * @param name The document name.
- * @param signName Sign name.
- * @param storage The document storage.
- * @param folder The document folder.
+ * @summary Append document to existing one.
+ * @param name The original document name.
+ * @param appendDocument with the append document data.
+ * @param appendFile Append file server path.
+ * @param startPage Appending start page.
+ * @param endPage Appending end page.
+ * @param storage The documents storage.
+ * @param folder The original document folder.
*/
- public async getVerifySignature (name: string, signName: string, storage?: string, folder?: string) : Promise<{ response: http.ClientResponse; body: SignatureVerifyResponse; }> {
- const localVarPath = this.basePath + '/pdf/{name}/verifySignature'
+ public async postAppendDocument (name: string, appendDocument?: AppendDocument, appendFile?: string, startPage?: number, endPage?: number, storage?: string, folder?: string) : Promise<{ response: http.IncomingMessage; body: DocumentResponse; }> {
+ const localVarPath = this.basePath + '/pdf/{name}/appendDocument'
.replace('{' + 'name' + '}', encodeURIComponent(String(name)));
let localVarQueryParameters: any = {};
let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders);
@@ -5443,16 +7127,19 @@ export class PdfApi {
// verify required parameter 'name' is not null or undefined
if (name === null || name === undefined) {
- throw new Error('Required parameter name was null or undefined when calling getVerifySignature.');
+ throw new Error('Required parameter name was null or undefined when calling postAppendDocument.');
}
- // verify required parameter 'signName' is not null or undefined
- if (signName === null || signName === undefined) {
- throw new Error('Required parameter signName was null or undefined when calling getVerifySignature.');
+ if (appendFile !== undefined && null !== appendFile) {
+ localVarQueryParameters['appendFile'] = ObjectSerializer.serialize(appendFile, "string");
}
- if (signName !== undefined && null !== signName) {
- localVarQueryParameters['signName'] = ObjectSerializer.serialize(signName, "string");
+ if (startPage !== undefined && null !== startPage) {
+ localVarQueryParameters['startPage'] = ObjectSerializer.serialize(startPage, "number");
+ }
+
+ if (endPage !== undefined && null !== endPage) {
+ localVarQueryParameters['endPage'] = ObjectSerializer.serialize(endPage, "number");
}
if (storage !== undefined && null !== storage) {
@@ -5467,97 +7154,77 @@ export class PdfApi {
let localVarUseFormData = false;
let fileData = null;
let localVarRequestOptions: localVarRequest.Options = {
- method: 'GET',
+ method: 'POST',
qs: localVarQueryParameters,
headers: localVarHeaderParams,
uri: localVarPath,
useQuerystring: this._useQuerystring,
json: true,
+ body: ObjectSerializer.serialize(appendDocument, "AppendDocument")
};
if (Object.keys(localVarFormParams).length) {
if (localVarUseFormData) {
(localVarRequestOptions).formData = localVarFormParams;
- } else {
- localVarRequestOptions.form = localVarFormParams;
- }
- }
- const response = await invokeApiMethod(localVarRequestOptions, this.configuration, false, fileData);
- const result = ObjectSerializer.deserialize(response.body, "SignatureVerifyResponse");
- return Promise.resolve({body: result, response});
- }
-
-
- /**
- *
- * @summary Convert web page to PDF format and return resulting file in response.
- * @param url Source url
- * @param height Page height
- * @param width Page width
- * @param isLandscape Is page landscaped
- * @param marginLeft Page margin left
- * @param marginBottom Page margin bottom
- * @param marginRight Page margin right
- * @param marginTop Page margin top
- * @param storage The document storage.
- */
- public async getWebInStorageToPdf (url: string, height?: number, width?: number, isLandscape?: boolean, marginLeft?: number, marginBottom?: number, marginRight?: number, marginTop?: number, storage?: string) : Promise<{ response: http.ClientResponse; body: Buffer; }> {
- const localVarPath = this.basePath + '/pdf/create/web';
- let localVarQueryParameters: any = {};
- let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders);
- let localVarFormParams: any = {};
-
- // verify required parameter 'url' is not null or undefined
- if (url === null || url === undefined) {
- throw new Error('Required parameter url was null or undefined when calling getWebInStorageToPdf.');
- }
-
- if (url !== undefined && null !== url) {
- localVarQueryParameters['url'] = ObjectSerializer.serialize(url, "string");
- }
-
- if (height !== undefined && null !== height) {
- localVarQueryParameters['height'] = ObjectSerializer.serialize(height, "number");
- }
-
- if (width !== undefined && null !== width) {
- localVarQueryParameters['width'] = ObjectSerializer.serialize(width, "number");
+ } else {
+ localVarRequestOptions.form = localVarFormParams;
+ }
}
+ const response = await invokeApiMethod(localVarRequestOptions, this.configuration, false, fileData);
+ const result = ObjectSerializer.deserialize(response.body, "DocumentResponse");
+ return Promise.resolve({body: result, response});
+ }
- if (isLandscape !== undefined && null !== isLandscape) {
- localVarQueryParameters['isLandscape'] = ObjectSerializer.serialize(isLandscape, "boolean");
- }
- if (marginLeft !== undefined && null !== marginLeft) {
- localVarQueryParameters['marginLeft'] = ObjectSerializer.serialize(marginLeft, "number");
- }
+ /**
+ *
+ * @summary Create field.
+ * @param name The document name.
+ * @param page Document page number.
+ * @param field with the field data.
+ * @param storage The document storage.
+ * @param folder The document folder.
+ */
+ public async postCreateField (name: string, page: number, field?: Field, storage?: string, folder?: string) : Promise<{ response: http.IncomingMessage; body: AsposeResponse; }> {
+ const localVarPath = this.basePath + '/pdf/{name}/fields'
+ .replace('{' + 'name' + '}', encodeURIComponent(String(name)));
+ let localVarQueryParameters: any = {};
+ let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders);
+ let localVarFormParams: any = {};
- if (marginBottom !== undefined && null !== marginBottom) {
- localVarQueryParameters['marginBottom'] = ObjectSerializer.serialize(marginBottom, "number");
+ // verify required parameter 'name' is not null or undefined
+ if (name === null || name === undefined) {
+ throw new Error('Required parameter name was null or undefined when calling postCreateField.');
}
- if (marginRight !== undefined && null !== marginRight) {
- localVarQueryParameters['marginRight'] = ObjectSerializer.serialize(marginRight, "number");
+ // verify required parameter 'page' is not null or undefined
+ if (page === null || page === undefined) {
+ throw new Error('Required parameter page was null or undefined when calling postCreateField.');
}
- if (marginTop !== undefined && null !== marginTop) {
- localVarQueryParameters['marginTop'] = ObjectSerializer.serialize(marginTop, "number");
+ if (page !== undefined && null !== page) {
+ localVarQueryParameters['page'] = ObjectSerializer.serialize(page, "number");
}
if (storage !== undefined && null !== storage) {
localVarQueryParameters['storage'] = ObjectSerializer.serialize(storage, "string");
}
+ if (folder !== undefined && null !== folder) {
+ localVarQueryParameters['folder'] = ObjectSerializer.serialize(folder, "string");
+ }
+
let localVarUseFormData = false;
let fileData = null;
let localVarRequestOptions: localVarRequest.Options = {
- method: 'GET',
+ method: 'POST',
qs: localVarQueryParameters,
headers: localVarHeaderParams,
uri: localVarPath,
useQuerystring: this._useQuerystring,
- encoding: null,
+ json: true,
+ body: ObjectSerializer.serialize(field, "Field")
};
if (Object.keys(localVarFormParams).length) {
@@ -5568,20 +7235,21 @@ export class PdfApi {
}
}
const response = await invokeApiMethod(localVarRequestOptions, this.configuration, false, fileData);
- const result = ObjectSerializer.deserialize(response.body, "Buffer");
+ const result = ObjectSerializer.deserialize(response.body, "AsposeResponse");
return Promise.resolve({body: result, response});
}
/**
*
- * @summary Get number of words per document page.
- * @param name The document name.
- * @param storage The document storage.
- * @param folder The document folder.
+ * @summary Document's replace text method.
+ * @param name
+ * @param textReplace
+ * @param storage
+ * @param folder
*/
- public async getWordsPerPage (name: string, storage?: string, folder?: string) : Promise<{ response: http.ClientResponse; body: WordCountResponse; }> {
- const localVarPath = this.basePath + '/pdf/{name}/pages/wordCount'
+ public async postDocumentTextReplace (name: string, textReplace: TextReplaceListRequest, storage?: string, folder?: string) : Promise<{ response: http.IncomingMessage; body: TextReplaceResponse; }> {
+ const localVarPath = this.basePath + '/pdf/{name}/text/replace'
.replace('{' + 'name' + '}', encodeURIComponent(String(name)));
let localVarQueryParameters: any = {};
let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders);
@@ -5589,7 +7257,12 @@ export class PdfApi {
// verify required parameter 'name' is not null or undefined
if (name === null || name === undefined) {
- throw new Error('Required parameter name was null or undefined when calling getWordsPerPage.');
+ throw new Error('Required parameter name was null or undefined when calling postDocumentTextReplace.');
+ }
+
+ // verify required parameter 'textReplace' is not null or undefined
+ if (textReplace === null || textReplace === undefined) {
+ throw new Error('Required parameter textReplace was null or undefined when calling postDocumentTextReplace.');
}
if (storage !== undefined && null !== storage) {
@@ -5604,12 +7277,13 @@ export class PdfApi {
let localVarUseFormData = false;
let fileData = null;
let localVarRequestOptions: localVarRequest.Options = {
- method: 'GET',
+ method: 'POST',
qs: localVarQueryParameters,
headers: localVarHeaderParams,
uri: localVarPath,
useQuerystring: this._useQuerystring,
json: true,
+ body: ObjectSerializer.serialize(textReplace, "TextReplaceListRequest")
};
if (Object.keys(localVarFormParams).length) {
@@ -5620,48 +7294,108 @@ export class PdfApi {
}
}
const response = await invokeApiMethod(localVarRequestOptions, this.configuration, false, fileData);
- const result = ObjectSerializer.deserialize(response.body, "WordCountResponse");
+ const result = ObjectSerializer.deserialize(response.body, "TextReplaceResponse");
return Promise.resolve({body: result, response});
}
/**
*
- * @summary Converts PDF document which contatins XFA form (located on storage) to PDF with AcroForm and returns resulting file response content
+ * @summary Insert image to document page.
* @param name The document name.
- * @param folder The document folder.
+ * @param pageNumber The page number.
+ * @param llx Coordinate lower left X.
+ * @param lly Coordinate lower left Y.
+ * @param urx Coordinate upper right X.
+ * @param ury Coordinate upper right Y.
+ * @param imageFilePath Path to image file if specified. Request content is used otherwise.
* @param storage The document storage.
+ * @param folder The document folder.
+ * @param image Image file.
*/
- public async getXfaPdfInStorageToAcroForm (name: string, folder?: string, storage?: string) : Promise<{ response: http.ClientResponse; body: Buffer; }> {
- const localVarPath = this.basePath + '/pdf/{name}/convert/xfatoacroform'
- .replace('{' + 'name' + '}', encodeURIComponent(String(name)));
+ public async postInsertImage (name: string, pageNumber: number, llx: number, lly: number, urx: number, ury: number, imageFilePath?: string, storage?: string, folder?: string, image?: Buffer) : Promise<{ response: http.IncomingMessage; body: AsposeResponse; }> {
+ const localVarPath = this.basePath + '/pdf/{name}/pages/{pageNumber}/images'
+ .replace('{' + 'name' + '}', encodeURIComponent(String(name)))
+ .replace('{' + 'pageNumber' + '}', encodeURIComponent(String(pageNumber)));
let localVarQueryParameters: any = {};
let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders);
let localVarFormParams: any = {};
// verify required parameter 'name' is not null or undefined
if (name === null || name === undefined) {
- throw new Error('Required parameter name was null or undefined when calling getXfaPdfInStorageToAcroForm.');
+ throw new Error('Required parameter name was null or undefined when calling postInsertImage.');
}
- if (folder !== undefined && null !== folder) {
- localVarQueryParameters['folder'] = ObjectSerializer.serialize(folder, "string");
+ // verify required parameter 'pageNumber' is not null or undefined
+ if (pageNumber === null || pageNumber === undefined) {
+ throw new Error('Required parameter pageNumber was null or undefined when calling postInsertImage.');
+ }
+
+ // verify required parameter 'llx' is not null or undefined
+ if (llx === null || llx === undefined) {
+ throw new Error('Required parameter llx was null or undefined when calling postInsertImage.');
+ }
+
+ // verify required parameter 'lly' is not null or undefined
+ if (lly === null || lly === undefined) {
+ throw new Error('Required parameter lly was null or undefined when calling postInsertImage.');
+ }
+
+ // verify required parameter 'urx' is not null or undefined
+ if (urx === null || urx === undefined) {
+ throw new Error('Required parameter urx was null or undefined when calling postInsertImage.');
+ }
+
+ // verify required parameter 'ury' is not null or undefined
+ if (ury === null || ury === undefined) {
+ throw new Error('Required parameter ury was null or undefined when calling postInsertImage.');
+ }
+
+ if (llx !== undefined && null !== llx) {
+ localVarQueryParameters['llx'] = ObjectSerializer.serialize(llx, "number");
+ }
+
+ if (lly !== undefined && null !== lly) {
+ localVarQueryParameters['lly'] = ObjectSerializer.serialize(lly, "number");
+ }
+
+ if (urx !== undefined && null !== urx) {
+ localVarQueryParameters['urx'] = ObjectSerializer.serialize(urx, "number");
+ }
+
+ if (ury !== undefined && null !== ury) {
+ localVarQueryParameters['ury'] = ObjectSerializer.serialize(ury, "number");
+ }
+
+ if (imageFilePath !== undefined && null !== imageFilePath) {
+ localVarQueryParameters['imageFilePath'] = ObjectSerializer.serialize(imageFilePath, "string");
}
if (storage !== undefined && null !== storage) {
localVarQueryParameters['storage'] = ObjectSerializer.serialize(storage, "string");
}
+ if (folder !== undefined && null !== folder) {
+ localVarQueryParameters['folder'] = ObjectSerializer.serialize(folder, "string");
+ }
+
let localVarUseFormData = false;
let fileData = null;
+ if (image !== undefined) {
+ localVarFormParams['image'] = image;
+ fileData = image;
+ }
+ localVarUseFormData = true;
+
+
let localVarRequestOptions: localVarRequest.Options = {
- method: 'GET',
+ method: 'POST',
qs: localVarQueryParameters,
headers: localVarHeaderParams,
uri: localVarPath,
useQuerystring: this._useQuerystring,
- encoding: null,
+ json: true,
};
if (Object.keys(localVarFormParams).length) {
@@ -5672,51 +7406,65 @@ export class PdfApi {
}
}
const response = await invokeApiMethod(localVarRequestOptions, this.configuration, false, fileData);
- const result = ObjectSerializer.deserialize(response.body, "Buffer");
+ const result = ObjectSerializer.deserialize(response.body, "AsposeResponse");
return Promise.resolve({body: result, response});
}
/**
*
- * @summary Convert XML file (located on storage) to PDF format and return resulting file in response.
- * @param srcPath Full source filename (ex. /folder1/folder2/template.xml)
- * @param xslFilePath Full XSL source filename (ex. /folder1/folder2/template.xsl)
+ * @summary Move page to new position.
+ * @param name The document name.
+ * @param pageNumber The page number.
+ * @param newIndex The new page position/index.
* @param storage The document storage.
+ * @param folder The document folder.
*/
- public async getXmlInStorageToPdf (srcPath: string, xslFilePath?: string, storage?: string) : Promise<{ response: http.ClientResponse; body: Buffer; }> {
- const localVarPath = this.basePath + '/pdf/create/xml';
+ public async postMovePage (name: string, pageNumber: number, newIndex: number, storage?: string, folder?: string) : Promise<{ response: http.IncomingMessage; body: AsposeResponse; }> {
+ const localVarPath = this.basePath + '/pdf/{name}/pages/{pageNumber}/movePage'
+ .replace('{' + 'name' + '}', encodeURIComponent(String(name)))
+ .replace('{' + 'pageNumber' + '}', encodeURIComponent(String(pageNumber)));
let localVarQueryParameters: any = {};
let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders);
let localVarFormParams: any = {};
- // verify required parameter 'srcPath' is not null or undefined
- if (srcPath === null || srcPath === undefined) {
- throw new Error('Required parameter srcPath was null or undefined when calling getXmlInStorageToPdf.');
+ // verify required parameter 'name' is not null or undefined
+ if (name === null || name === undefined) {
+ throw new Error('Required parameter name was null or undefined when calling postMovePage.');
}
- if (srcPath !== undefined && null !== srcPath) {
- localVarQueryParameters['srcPath'] = ObjectSerializer.serialize(srcPath, "string");
+ // verify required parameter 'pageNumber' is not null or undefined
+ if (pageNumber === null || pageNumber === undefined) {
+ throw new Error('Required parameter pageNumber was null or undefined when calling postMovePage.');
}
- if (xslFilePath !== undefined && null !== xslFilePath) {
- localVarQueryParameters['xslFilePath'] = ObjectSerializer.serialize(xslFilePath, "string");
+ // verify required parameter 'newIndex' is not null or undefined
+ if (newIndex === null || newIndex === undefined) {
+ throw new Error('Required parameter newIndex was null or undefined when calling postMovePage.');
+ }
+
+ if (newIndex !== undefined && null !== newIndex) {
+ localVarQueryParameters['newIndex'] = ObjectSerializer.serialize(newIndex, "number");
}
if (storage !== undefined && null !== storage) {
localVarQueryParameters['storage'] = ObjectSerializer.serialize(storage, "string");
}
+ if (folder !== undefined && null !== folder) {
+ localVarQueryParameters['folder'] = ObjectSerializer.serialize(folder, "string");
+ }
+
let localVarUseFormData = false;
let fileData = null;
let localVarRequestOptions: localVarRequest.Options = {
- method: 'GET',
+ method: 'POST',
qs: localVarQueryParameters,
headers: localVarHeaderParams,
uri: localVarPath,
useQuerystring: this._useQuerystring,
- encoding: null,
+ json: true,
};
if (Object.keys(localVarFormParams).length) {
@@ -5727,46 +7475,50 @@ export class PdfApi {
}
}
const response = await invokeApiMethod(localVarRequestOptions, this.configuration, false, fileData);
- const result = ObjectSerializer.deserialize(response.body, "Buffer");
+ const result = ObjectSerializer.deserialize(response.body, "AsposeResponse");
return Promise.resolve({body: result, response});
}
/**
*
- * @summary Convert XPS file (located on storage) to PDF format and return resulting file in response.
- * @param srcPath Full source filename (ex. /folder1/folder2/template.xps)
+ * @summary Optimize document.
+ * @param name The document name.
+ * @param options The optimization options.
* @param storage The document storage.
+ * @param folder The document folder.
*/
- public async getXpsInStorageToPdf (srcPath: string, storage?: string) : Promise<{ response: http.ClientResponse; body: Buffer; }> {
- const localVarPath = this.basePath + '/pdf/create/xps';
+ public async postOptimizeDocument (name: string, options?: OptimizeOptions, storage?: string, folder?: string) : Promise<{ response: http.IncomingMessage; body: AsposeResponse; }> {
+ const localVarPath = this.basePath + '/pdf/{name}/optimize'
+ .replace('{' + 'name' + '}', encodeURIComponent(String(name)));
let localVarQueryParameters: any = {};
let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders);
let localVarFormParams: any = {};
- // verify required parameter 'srcPath' is not null or undefined
- if (srcPath === null || srcPath === undefined) {
- throw new Error('Required parameter srcPath was null or undefined when calling getXpsInStorageToPdf.');
- }
-
- if (srcPath !== undefined && null !== srcPath) {
- localVarQueryParameters['srcPath'] = ObjectSerializer.serialize(srcPath, "string");
+ // verify required parameter 'name' is not null or undefined
+ if (name === null || name === undefined) {
+ throw new Error('Required parameter name was null or undefined when calling postOptimizeDocument.');
}
if (storage !== undefined && null !== storage) {
localVarQueryParameters['storage'] = ObjectSerializer.serialize(storage, "string");
}
+ if (folder !== undefined && null !== folder) {
+ localVarQueryParameters['folder'] = ObjectSerializer.serialize(folder, "string");
+ }
+
let localVarUseFormData = false;
let fileData = null;
let localVarRequestOptions: localVarRequest.Options = {
- method: 'GET',
+ method: 'POST',
qs: localVarQueryParameters,
headers: localVarHeaderParams,
uri: localVarPath,
useQuerystring: this._useQuerystring,
- encoding: null,
+ json: true,
+ body: ObjectSerializer.serialize(options, "OptimizeOptions")
};
if (Object.keys(localVarFormParams).length) {
@@ -5777,46 +7529,62 @@ export class PdfApi {
}
}
const response = await invokeApiMethod(localVarRequestOptions, this.configuration, false, fileData);
- const result = ObjectSerializer.deserialize(response.body, "Buffer");
+ const result = ObjectSerializer.deserialize(response.body, "AsposeResponse");
return Promise.resolve({body: result, response});
}
/**
*
- * @summary Convert XslFo file (located on storage) to PDF format and return resulting file in response.
- * @param srcPath Full source filename (ex. /folder1/folder2/template.xslfo)
+ * @summary Add document page caret annotations.
+ * @param name The document name.
+ * @param pageNumber The page number.
+ * @param annotations The array of annotation.
* @param storage The document storage.
+ * @param folder The document folder.
*/
- public async getXslFoInStorageToPdf (srcPath: string, storage?: string) : Promise<{ response: http.ClientResponse; body: Buffer; }> {
- const localVarPath = this.basePath + '/pdf/create/xslfo';
+ public async postPageCaretAnnotations (name: string, pageNumber: number, annotations: Array, storage?: string, folder?: string) : Promise<{ response: http.IncomingMessage; body: AsposeResponse; }> {
+ const localVarPath = this.basePath + '/pdf/{name}/pages/{pageNumber}/annotations/caret'
+ .replace('{' + 'name' + '}', encodeURIComponent(String(name)))
+ .replace('{' + 'pageNumber' + '}', encodeURIComponent(String(pageNumber)));
let localVarQueryParameters: any = {};
let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders);
let localVarFormParams: any = {};
- // verify required parameter 'srcPath' is not null or undefined
- if (srcPath === null || srcPath === undefined) {
- throw new Error('Required parameter srcPath was null or undefined when calling getXslFoInStorageToPdf.');
+ // verify required parameter 'name' is not null or undefined
+ if (name === null || name === undefined) {
+ throw new Error('Required parameter name was null or undefined when calling postPageCaretAnnotations.');
}
- if (srcPath !== undefined && null !== srcPath) {
- localVarQueryParameters['srcPath'] = ObjectSerializer.serialize(srcPath, "string");
+ // verify required parameter 'pageNumber' is not null or undefined
+ if (pageNumber === null || pageNumber === undefined) {
+ throw new Error('Required parameter pageNumber was null or undefined when calling postPageCaretAnnotations.');
+ }
+
+ // verify required parameter 'annotations' is not null or undefined
+ if (annotations === null || annotations === undefined) {
+ throw new Error('Required parameter annotations was null or undefined when calling postPageCaretAnnotations.');
}
if (storage !== undefined && null !== storage) {
localVarQueryParameters['storage'] = ObjectSerializer.serialize(storage, "string");
}
+ if (folder !== undefined && null !== folder) {
+ localVarQueryParameters['folder'] = ObjectSerializer.serialize(folder, "string");
+ }
+
let localVarUseFormData = false;
let fileData = null;
let localVarRequestOptions: localVarRequest.Options = {
- method: 'GET',
+ method: 'POST',
qs: localVarQueryParameters,
headers: localVarHeaderParams,
uri: localVarPath,
useQuerystring: this._useQuerystring,
- encoding: null,
+ json: true,
+ body: ObjectSerializer.serialize(annotations, "Array")
};
if (Object.keys(localVarFormParams).length) {
@@ -5827,44 +7595,41 @@ export class PdfApi {
}
}
const response = await invokeApiMethod(localVarRequestOptions, this.configuration, false, fileData);
- const result = ObjectSerializer.deserialize(response.body, "Buffer");
+ const result = ObjectSerializer.deserialize(response.body, "AsposeResponse");
return Promise.resolve({body: result, response});
}
/**
*
- * @summary Append document to existing one.
- * @param name The original document name.
- * @param appendDocument with the append document data.
- * @param appendFile Append file server path.
- * @param startPage Appending start page.
- * @param endPage Appending end page.
- * @param storage The documents storage.
- * @param folder The original document folder.
+ * @summary Add document page circle annotations.
+ * @param name The document name.
+ * @param pageNumber The page number.
+ * @param annotations The array of annotation.
+ * @param storage The document storage.
+ * @param folder The document folder.
*/
- public async postAppendDocument (name: string, appendDocument?: AppendDocument, appendFile?: string, startPage?: number, endPage?: number, storage?: string, folder?: string) : Promise<{ response: http.ClientResponse; body: DocumentResponse; }> {
- const localVarPath = this.basePath + '/pdf/{name}/appendDocument'
- .replace('{' + 'name' + '}', encodeURIComponent(String(name)));
+ public async postPageCircleAnnotations (name: string, pageNumber: number, annotations: Array, storage?: string, folder?: string) : Promise<{ response: http.IncomingMessage; body: AsposeResponse; }> {
+ const localVarPath = this.basePath + '/pdf/{name}/pages/{pageNumber}/annotations/circle'
+ .replace('{' + 'name' + '}', encodeURIComponent(String(name)))
+ .replace('{' + 'pageNumber' + '}', encodeURIComponent(String(pageNumber)));
let localVarQueryParameters: any = {};
let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders);
let localVarFormParams: any = {};
// verify required parameter 'name' is not null or undefined
if (name === null || name === undefined) {
- throw new Error('Required parameter name was null or undefined when calling postAppendDocument.');
- }
-
- if (appendFile !== undefined && null !== appendFile) {
- localVarQueryParameters['appendFile'] = ObjectSerializer.serialize(appendFile, "string");
+ throw new Error('Required parameter name was null or undefined when calling postPageCircleAnnotations.');
}
- if (startPage !== undefined && null !== startPage) {
- localVarQueryParameters['startPage'] = ObjectSerializer.serialize(startPage, "number");
+ // verify required parameter 'pageNumber' is not null or undefined
+ if (pageNumber === null || pageNumber === undefined) {
+ throw new Error('Required parameter pageNumber was null or undefined when calling postPageCircleAnnotations.');
}
- if (endPage !== undefined && null !== endPage) {
- localVarQueryParameters['endPage'] = ObjectSerializer.serialize(endPage, "number");
+ // verify required parameter 'annotations' is not null or undefined
+ if (annotations === null || annotations === undefined) {
+ throw new Error('Required parameter annotations was null or undefined when calling postPageCircleAnnotations.');
}
if (storage !== undefined && null !== storage) {
@@ -5885,7 +7650,7 @@ export class PdfApi {
uri: localVarPath,
useQuerystring: this._useQuerystring,
json: true,
- body: ObjectSerializer.serialize(appendDocument, "AppendDocument")
+ body: ObjectSerializer.serialize(annotations, "Array")
};
if (Object.keys(localVarFormParams).length) {
@@ -5896,39 +7661,41 @@ export class PdfApi {
}
}
const response = await invokeApiMethod(localVarRequestOptions, this.configuration, false, fileData);
- const result = ObjectSerializer.deserialize(response.body, "DocumentResponse");
+ const result = ObjectSerializer.deserialize(response.body, "AsposeResponse");
return Promise.resolve({body: result, response});
}
/**
*
- * @summary Create field.
+ * @summary Add document page free text annotations.
* @param name The document name.
- * @param page Document page number.
- * @param field with the field data.
+ * @param pageNumber The page number.
+ * @param annotations The array of annotation.
* @param storage The document storage.
* @param folder The document folder.
*/
- public async postCreateField (name: string, page: number, field?: Field, storage?: string, folder?: string) : Promise<{ response: http.ClientResponse; body: AsposeResponse; }> {
- const localVarPath = this.basePath + '/pdf/{name}/fields'
- .replace('{' + 'name' + '}', encodeURIComponent(String(name)));
+ public async postPageFreeTextAnnotations (name: string, pageNumber: number, annotations: Array, storage?: string, folder?: string) : Promise<{ response: http.IncomingMessage; body: AsposeResponse; }> {
+ const localVarPath = this.basePath + '/pdf/{name}/pages/{pageNumber}/annotations/freetext'
+ .replace('{' + 'name' + '}', encodeURIComponent(String(name)))
+ .replace('{' + 'pageNumber' + '}', encodeURIComponent(String(pageNumber)));
let localVarQueryParameters: any = {};
let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders);
let localVarFormParams: any = {};
// verify required parameter 'name' is not null or undefined
if (name === null || name === undefined) {
- throw new Error('Required parameter name was null or undefined when calling postCreateField.');
+ throw new Error('Required parameter name was null or undefined when calling postPageFreeTextAnnotations.');
}
- // verify required parameter 'page' is not null or undefined
- if (page === null || page === undefined) {
- throw new Error('Required parameter page was null or undefined when calling postCreateField.');
+ // verify required parameter 'pageNumber' is not null or undefined
+ if (pageNumber === null || pageNumber === undefined) {
+ throw new Error('Required parameter pageNumber was null or undefined when calling postPageFreeTextAnnotations.');
}
- if (page !== undefined && null !== page) {
- localVarQueryParameters['page'] = ObjectSerializer.serialize(page, "number");
+ // verify required parameter 'annotations' is not null or undefined
+ if (annotations === null || annotations === undefined) {
+ throw new Error('Required parameter annotations was null or undefined when calling postPageFreeTextAnnotations.');
}
if (storage !== undefined && null !== storage) {
@@ -5949,7 +7716,7 @@ export class PdfApi {
uri: localVarPath,
useQuerystring: this._useQuerystring,
json: true,
- body: ObjectSerializer.serialize(field, "Field")
+ body: ObjectSerializer.serialize(annotations, "Array")
};
if (Object.keys(localVarFormParams).length) {
@@ -5967,27 +7734,34 @@ export class PdfApi {
/**
*
- * @summary Document's replace text method.
- * @param name
- * @param textReplace
- * @param storage
- * @param folder
+ * @summary Add document page highlight annotations.
+ * @param name The document name.
+ * @param pageNumber The page number.
+ * @param annotations The array of annotation.
+ * @param storage The document storage.
+ * @param folder The document folder.
*/
- public async postDocumentTextReplace (name: string, textReplace: TextReplaceListRequest, storage?: string, folder?: string) : Promise<{ response: http.ClientResponse; body: TextReplaceResponse; }> {
- const localVarPath = this.basePath + '/pdf/{name}/text/replace'
- .replace('{' + 'name' + '}', encodeURIComponent(String(name)));
+ public async postPageHighlightAnnotations (name: string, pageNumber: number, annotations: Array, storage?: string, folder?: string) : Promise<{ response: http.IncomingMessage; body: AsposeResponse; }> {
+ const localVarPath = this.basePath + '/pdf/{name}/pages/{pageNumber}/annotations/highlight'
+ .replace('{' + 'name' + '}', encodeURIComponent(String(name)))
+ .replace('{' + 'pageNumber' + '}', encodeURIComponent(String(pageNumber)));
let localVarQueryParameters: any = {};
let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders);
let localVarFormParams: any = {};
// verify required parameter 'name' is not null or undefined
if (name === null || name === undefined) {
- throw new Error('Required parameter name was null or undefined when calling postDocumentTextReplace.');
+ throw new Error('Required parameter name was null or undefined when calling postPageHighlightAnnotations.');
}
- // verify required parameter 'textReplace' is not null or undefined
- if (textReplace === null || textReplace === undefined) {
- throw new Error('Required parameter textReplace was null or undefined when calling postDocumentTextReplace.');
+ // verify required parameter 'pageNumber' is not null or undefined
+ if (pageNumber === null || pageNumber === undefined) {
+ throw new Error('Required parameter pageNumber was null or undefined when calling postPageHighlightAnnotations.');
+ }
+
+ // verify required parameter 'annotations' is not null or undefined
+ if (annotations === null || annotations === undefined) {
+ throw new Error('Required parameter annotations was null or undefined when calling postPageHighlightAnnotations.');
}
if (storage !== undefined && null !== storage) {
@@ -6008,7 +7782,7 @@ export class PdfApi {
uri: localVarPath,
useQuerystring: this._useQuerystring,
json: true,
- body: ObjectSerializer.serialize(textReplace, "TextReplaceListRequest")
+ body: ObjectSerializer.serialize(annotations, "Array")
};
if (Object.keys(localVarFormParams).length) {
@@ -6019,27 +7793,22 @@ export class PdfApi {
}
}
const response = await invokeApiMethod(localVarRequestOptions, this.configuration, false, fileData);
- const result = ObjectSerializer.deserialize(response.body, "TextReplaceResponse");
+ const result = ObjectSerializer.deserialize(response.body, "AsposeResponse");
return Promise.resolve({body: result, response});
}
/**
*
- * @summary Insert image to document page.
+ * @summary Add document page ink annotations.
* @param name The document name.
* @param pageNumber The page number.
- * @param llx Coordinate lower left X.
- * @param lly Coordinate lower left Y.
- * @param urx Coordinate upper right X.
- * @param ury Coordinate upper right Y.
- * @param imageFilePath Path to image file if specified. Request content is used otherwise.
+ * @param annotations The array of annotation.
* @param storage The document storage.
* @param folder The document folder.
- * @param image Image file.
*/
- public async postInsertImage (name: string, pageNumber: number, llx: number, lly: number, urx: number, ury: number, imageFilePath?: string, storage?: string, folder?: string, image?: Buffer) : Promise<{ response: http.ClientResponse; body: AsposeResponse; }> {
- const localVarPath = this.basePath + '/pdf/{name}/pages/{pageNumber}/images'
+ public async postPageInkAnnotations (name: string, pageNumber: number, annotations: Array, storage?: string, folder?: string) : Promise<{ response: http.IncomingMessage; body: AsposeResponse; }> {
+ const localVarPath = this.basePath + '/pdf/{name}/pages/{pageNumber}/annotations/ink'
.replace('{' + 'name' + '}', encodeURIComponent(String(name)))
.replace('{' + 'pageNumber' + '}', encodeURIComponent(String(pageNumber)));
let localVarQueryParameters: any = {};
@@ -6048,52 +7817,17 @@ export class PdfApi {
// verify required parameter 'name' is not null or undefined
if (name === null || name === undefined) {
- throw new Error('Required parameter name was null or undefined when calling postInsertImage.');
+ throw new Error('Required parameter name was null or undefined when calling postPageInkAnnotations.');
}
// verify required parameter 'pageNumber' is not null or undefined
if (pageNumber === null || pageNumber === undefined) {
- throw new Error('Required parameter pageNumber was null or undefined when calling postInsertImage.');
- }
-
- // verify required parameter 'llx' is not null or undefined
- if (llx === null || llx === undefined) {
- throw new Error('Required parameter llx was null or undefined when calling postInsertImage.');
- }
-
- // verify required parameter 'lly' is not null or undefined
- if (lly === null || lly === undefined) {
- throw new Error('Required parameter lly was null or undefined when calling postInsertImage.');
- }
-
- // verify required parameter 'urx' is not null or undefined
- if (urx === null || urx === undefined) {
- throw new Error('Required parameter urx was null or undefined when calling postInsertImage.');
- }
-
- // verify required parameter 'ury' is not null or undefined
- if (ury === null || ury === undefined) {
- throw new Error('Required parameter ury was null or undefined when calling postInsertImage.');
- }
-
- if (llx !== undefined && null !== llx) {
- localVarQueryParameters['llx'] = ObjectSerializer.serialize(llx, "number");
- }
-
- if (lly !== undefined && null !== lly) {
- localVarQueryParameters['lly'] = ObjectSerializer.serialize(lly, "number");
- }
-
- if (urx !== undefined && null !== urx) {
- localVarQueryParameters['urx'] = ObjectSerializer.serialize(urx, "number");
- }
-
- if (ury !== undefined && null !== ury) {
- localVarQueryParameters['ury'] = ObjectSerializer.serialize(ury, "number");
+ throw new Error('Required parameter pageNumber was null or undefined when calling postPageInkAnnotations.');
}
- if (imageFilePath !== undefined && null !== imageFilePath) {
- localVarQueryParameters['imageFilePath'] = ObjectSerializer.serialize(imageFilePath, "string");
+ // verify required parameter 'annotations' is not null or undefined
+ if (annotations === null || annotations === undefined) {
+ throw new Error('Required parameter annotations was null or undefined when calling postPageInkAnnotations.');
}
if (storage !== undefined && null !== storage) {
@@ -6107,13 +7841,6 @@ export class PdfApi {
let localVarUseFormData = false;
let fileData = null;
- if (image !== undefined) {
- localVarFormParams['image'] = image;
- fileData = image;
- }
- localVarUseFormData = true;
-
-
let localVarRequestOptions: localVarRequest.Options = {
method: 'POST',
qs: localVarQueryParameters,
@@ -6121,6 +7848,7 @@ export class PdfApi {
uri: localVarPath,
useQuerystring: this._useQuerystring,
json: true,
+ body: ObjectSerializer.serialize(annotations, "Array")
};
if (Object.keys(localVarFormParams).length) {
@@ -6138,15 +7866,15 @@ export class PdfApi {
/**
*
- * @summary Move page to new position.
+ * @summary Add document page line annotations.
* @param name The document name.
* @param pageNumber The page number.
- * @param newIndex The new page position/index.
+ * @param annotations The array of annotation.
* @param storage The document storage.
* @param folder The document folder.
*/
- public async postMovePage (name: string, pageNumber: number, newIndex: number, storage?: string, folder?: string) : Promise<{ response: http.ClientResponse; body: AsposeResponse; }> {
- const localVarPath = this.basePath + '/pdf/{name}/pages/{pageNumber}/movePage'
+ public async postPageLineAnnotations (name: string, pageNumber: number, annotations: Array, storage?: string, folder?: string) : Promise<{ response: http.IncomingMessage; body: AsposeResponse; }> {
+ const localVarPath = this.basePath + '/pdf/{name}/pages/{pageNumber}/annotations/line'
.replace('{' + 'name' + '}', encodeURIComponent(String(name)))
.replace('{' + 'pageNumber' + '}', encodeURIComponent(String(pageNumber)));
let localVarQueryParameters: any = {};
@@ -6155,21 +7883,17 @@ export class PdfApi {
// verify required parameter 'name' is not null or undefined
if (name === null || name === undefined) {
- throw new Error('Required parameter name was null or undefined when calling postMovePage.');
+ throw new Error('Required parameter name was null or undefined when calling postPageLineAnnotations.');
}
// verify required parameter 'pageNumber' is not null or undefined
if (pageNumber === null || pageNumber === undefined) {
- throw new Error('Required parameter pageNumber was null or undefined when calling postMovePage.');
- }
-
- // verify required parameter 'newIndex' is not null or undefined
- if (newIndex === null || newIndex === undefined) {
- throw new Error('Required parameter newIndex was null or undefined when calling postMovePage.');
+ throw new Error('Required parameter pageNumber was null or undefined when calling postPageLineAnnotations.');
}
- if (newIndex !== undefined && null !== newIndex) {
- localVarQueryParameters['newIndex'] = ObjectSerializer.serialize(newIndex, "number");
+ // verify required parameter 'annotations' is not null or undefined
+ if (annotations === null || annotations === undefined) {
+ throw new Error('Required parameter annotations was null or undefined when calling postPageLineAnnotations.');
}
if (storage !== undefined && null !== storage) {
@@ -6190,6 +7914,7 @@ export class PdfApi {
uri: localVarPath,
useQuerystring: this._useQuerystring,
json: true,
+ body: ObjectSerializer.serialize(annotations, "Array")
};
if (Object.keys(localVarFormParams).length) {
@@ -6207,22 +7932,34 @@ export class PdfApi {
/**
*
- * @summary Optimize document.
+ * @summary Add document page link annotations.
* @param name The document name.
- * @param options The optimization options.
+ * @param pageNumber The page number.
+ * @param links Array of link anotation.
* @param storage The document storage.
* @param folder The document folder.
*/
- public async postOptimizeDocument (name: string, options?: OptimizeOptions, storage?: string, folder?: string) : Promise<{ response: http.ClientResponse; body: AsposeResponse; }> {
- const localVarPath = this.basePath + '/pdf/{name}/optimize'
- .replace('{' + 'name' + '}', encodeURIComponent(String(name)));
+ public async postPageLinkAnnotations (name: string, pageNumber: number, links: Array, storage?: string, folder?: string) : Promise<{ response: http.IncomingMessage; body: AsposeResponse; }> {
+ const localVarPath = this.basePath + '/pdf/{name}/pages/{pageNumber}/links'
+ .replace('{' + 'name' + '}', encodeURIComponent(String(name)))
+ .replace('{' + 'pageNumber' + '}', encodeURIComponent(String(pageNumber)));
let localVarQueryParameters: any = {};
let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders);
let localVarFormParams: any = {};
// verify required parameter 'name' is not null or undefined
if (name === null || name === undefined) {
- throw new Error('Required parameter name was null or undefined when calling postOptimizeDocument.');
+ throw new Error('Required parameter name was null or undefined when calling postPageLinkAnnotations.');
+ }
+
+ // verify required parameter 'pageNumber' is not null or undefined
+ if (pageNumber === null || pageNumber === undefined) {
+ throw new Error('Required parameter pageNumber was null or undefined when calling postPageLinkAnnotations.');
+ }
+
+ // verify required parameter 'links' is not null or undefined
+ if (links === null || links === undefined) {
+ throw new Error('Required parameter links was null or undefined when calling postPageLinkAnnotations.');
}
if (storage !== undefined && null !== storage) {
@@ -6243,7 +7980,7 @@ export class PdfApi {
uri: localVarPath,
useQuerystring: this._useQuerystring,
json: true,
- body: ObjectSerializer.serialize(options, "OptimizeOptions")
+ body: ObjectSerializer.serialize(links, "Array")
};
if (Object.keys(localVarFormParams).length) {
@@ -6261,15 +7998,15 @@ export class PdfApi {
/**
*
- * @summary Add document page circle annotations.
+ * @summary Add document page polyline annotations.
* @param name The document name.
* @param pageNumber The page number.
* @param annotations The array of annotation.
* @param storage The document storage.
* @param folder The document folder.
*/
- public async postPageCircleAnnotations (name: string, pageNumber: number, annotations: Array, storage?: string, folder?: string) : Promise<{ response: http.ClientResponse; body: AsposeResponse; }> {
- const localVarPath = this.basePath + '/pdf/{name}/pages/{pageNumber}/annotations/circle'
+ public async postPagePolyLineAnnotations (name: string, pageNumber: number, annotations: Array, storage?: string, folder?: string) : Promise<{ response: http.IncomingMessage; body: AsposeResponse; }> {
+ const localVarPath = this.basePath + '/pdf/{name}/pages/{pageNumber}/annotations/polyline'
.replace('{' + 'name' + '}', encodeURIComponent(String(name)))
.replace('{' + 'pageNumber' + '}', encodeURIComponent(String(pageNumber)));
let localVarQueryParameters: any = {};
@@ -6278,17 +8015,17 @@ export class PdfApi {
// verify required parameter 'name' is not null or undefined
if (name === null || name === undefined) {
- throw new Error('Required parameter name was null or undefined when calling postPageCircleAnnotations.');
+ throw new Error('Required parameter name was null or undefined when calling postPagePolyLineAnnotations.');
}
// verify required parameter 'pageNumber' is not null or undefined
if (pageNumber === null || pageNumber === undefined) {
- throw new Error('Required parameter pageNumber was null or undefined when calling postPageCircleAnnotations.');
+ throw new Error('Required parameter pageNumber was null or undefined when calling postPagePolyLineAnnotations.');
}
// verify required parameter 'annotations' is not null or undefined
if (annotations === null || annotations === undefined) {
- throw new Error('Required parameter annotations was null or undefined when calling postPageCircleAnnotations.');
+ throw new Error('Required parameter annotations was null or undefined when calling postPagePolyLineAnnotations.');
}
if (storage !== undefined && null !== storage) {
@@ -6309,7 +8046,7 @@ export class PdfApi {
uri: localVarPath,
useQuerystring: this._useQuerystring,
json: true,
- body: ObjectSerializer.serialize(annotations, "Array")
+ body: ObjectSerializer.serialize(annotations, "Array")
};
if (Object.keys(localVarFormParams).length) {
@@ -6327,15 +8064,15 @@ export class PdfApi {
/**
*
- * @summary Add document page free text annotations.
+ * @summary Add document page polygon annotations.
* @param name The document name.
* @param pageNumber The page number.
* @param annotations The array of annotation.
* @param storage The document storage.
* @param folder The document folder.
*/
- public async postPageFreeTextAnnotations (name: string, pageNumber: number, annotations: Array, storage?: string, folder?: string) : Promise<{ response: http.ClientResponse; body: AsposeResponse; }> {
- const localVarPath = this.basePath + '/pdf/{name}/pages/{pageNumber}/annotations/freetext'
+ public async postPagePolygonAnnotations (name: string, pageNumber: number, annotations: Array, storage?: string, folder?: string) : Promise<{ response: http.IncomingMessage; body: AsposeResponse; }> {
+ const localVarPath = this.basePath + '/pdf/{name}/pages/{pageNumber}/annotations/polygon'
.replace('{' + 'name' + '}', encodeURIComponent(String(name)))
.replace('{' + 'pageNumber' + '}', encodeURIComponent(String(pageNumber)));
let localVarQueryParameters: any = {};
@@ -6344,17 +8081,17 @@ export class PdfApi {
// verify required parameter 'name' is not null or undefined
if (name === null || name === undefined) {
- throw new Error('Required parameter name was null or undefined when calling postPageFreeTextAnnotations.');
+ throw new Error('Required parameter name was null or undefined when calling postPagePolygonAnnotations.');
}
// verify required parameter 'pageNumber' is not null or undefined
if (pageNumber === null || pageNumber === undefined) {
- throw new Error('Required parameter pageNumber was null or undefined when calling postPageFreeTextAnnotations.');
+ throw new Error('Required parameter pageNumber was null or undefined when calling postPagePolygonAnnotations.');
}
// verify required parameter 'annotations' is not null or undefined
if (annotations === null || annotations === undefined) {
- throw new Error('Required parameter annotations was null or undefined when calling postPageFreeTextAnnotations.');
+ throw new Error('Required parameter annotations was null or undefined when calling postPagePolygonAnnotations.');
}
if (storage !== undefined && null !== storage) {
@@ -6375,7 +8112,7 @@ export class PdfApi {
uri: localVarPath,
useQuerystring: this._useQuerystring,
json: true,
- body: ObjectSerializer.serialize(annotations, "Array")
+ body: ObjectSerializer.serialize(annotations, "Array")
};
if (Object.keys(localVarFormParams).length) {
@@ -6393,15 +8130,15 @@ export class PdfApi {
/**
*
- * @summary Add document page line annotations.
+ * @summary Add document page square annotations.
* @param name The document name.
* @param pageNumber The page number.
* @param annotations The array of annotation.
* @param storage The document storage.
* @param folder The document folder.
*/
- public async postPageLineAnnotations (name: string, pageNumber: number, annotations: Array, storage?: string, folder?: string) : Promise<{ response: http.ClientResponse; body: AsposeResponse; }> {
- const localVarPath = this.basePath + '/pdf/{name}/pages/{pageNumber}/annotations/line'
+ public async postPageSquareAnnotations (name: string, pageNumber: number, annotations: Array, storage?: string, folder?: string) : Promise<{ response: http.IncomingMessage; body: AsposeResponse; }> {
+ const localVarPath = this.basePath + '/pdf/{name}/pages/{pageNumber}/annotations/square'
.replace('{' + 'name' + '}', encodeURIComponent(String(name)))
.replace('{' + 'pageNumber' + '}', encodeURIComponent(String(pageNumber)));
let localVarQueryParameters: any = {};
@@ -6410,17 +8147,17 @@ export class PdfApi {
// verify required parameter 'name' is not null or undefined
if (name === null || name === undefined) {
- throw new Error('Required parameter name was null or undefined when calling postPageLineAnnotations.');
+ throw new Error('Required parameter name was null or undefined when calling postPageSquareAnnotations.');
}
// verify required parameter 'pageNumber' is not null or undefined
if (pageNumber === null || pageNumber === undefined) {
- throw new Error('Required parameter pageNumber was null or undefined when calling postPageLineAnnotations.');
+ throw new Error('Required parameter pageNumber was null or undefined when calling postPageSquareAnnotations.');
}
// verify required parameter 'annotations' is not null or undefined
if (annotations === null || annotations === undefined) {
- throw new Error('Required parameter annotations was null or undefined when calling postPageLineAnnotations.');
+ throw new Error('Required parameter annotations was null or undefined when calling postPageSquareAnnotations.');
}
if (storage !== undefined && null !== storage) {
@@ -6441,7 +8178,7 @@ export class PdfApi {
uri: localVarPath,
useQuerystring: this._useQuerystring,
json: true,
- body: ObjectSerializer.serialize(annotations, "Array")
+ body: ObjectSerializer.serialize(annotations, "Array")
};
if (Object.keys(localVarFormParams).length) {
@@ -6459,15 +8196,15 @@ export class PdfApi {
/**
*
- * @summary Add document page link annotations.
+ * @summary Add document page squiggly annotations.
* @param name The document name.
* @param pageNumber The page number.
- * @param links Array of link anotation.
+ * @param annotations The array of annotation.
* @param storage The document storage.
* @param folder The document folder.
*/
- public async postPageLinkAnnotations (name: string, pageNumber: number, links: Array, storage?: string, folder?: string) : Promise<{ response: http.ClientResponse; body: AsposeResponse; }> {
- const localVarPath = this.basePath + '/pdf/{name}/pages/{pageNumber}/links'
+ public async postPageSquigglyAnnotations (name: string, pageNumber: number, annotations: Array, storage?: string, folder?: string) : Promise<{ response: http.IncomingMessage; body: AsposeResponse; }> {
+ const localVarPath = this.basePath + '/pdf/{name}/pages/{pageNumber}/annotations/squiggly'
.replace('{' + 'name' + '}', encodeURIComponent(String(name)))
.replace('{' + 'pageNumber' + '}', encodeURIComponent(String(pageNumber)));
let localVarQueryParameters: any = {};
@@ -6476,17 +8213,17 @@ export class PdfApi {
// verify required parameter 'name' is not null or undefined
if (name === null || name === undefined) {
- throw new Error('Required parameter name was null or undefined when calling postPageLinkAnnotations.');
+ throw new Error('Required parameter name was null or undefined when calling postPageSquigglyAnnotations.');
}
// verify required parameter 'pageNumber' is not null or undefined
if (pageNumber === null || pageNumber === undefined) {
- throw new Error('Required parameter pageNumber was null or undefined when calling postPageLinkAnnotations.');
+ throw new Error('Required parameter pageNumber was null or undefined when calling postPageSquigglyAnnotations.');
}
- // verify required parameter 'links' is not null or undefined
- if (links === null || links === undefined) {
- throw new Error('Required parameter links was null or undefined when calling postPageLinkAnnotations.');
+ // verify required parameter 'annotations' is not null or undefined
+ if (annotations === null || annotations === undefined) {
+ throw new Error('Required parameter annotations was null or undefined when calling postPageSquigglyAnnotations.');
}
if (storage !== undefined && null !== storage) {
@@ -6507,7 +8244,7 @@ export class PdfApi {
uri: localVarPath,
useQuerystring: this._useQuerystring,
json: true,
- body: ObjectSerializer.serialize(links, "Array")
+ body: ObjectSerializer.serialize(annotations, "Array")
};
if (Object.keys(localVarFormParams).length) {
@@ -6525,15 +8262,15 @@ export class PdfApi {
/**
*
- * @summary Add document page polyline annotations.
+ * @summary Add document page StrikeOut annotations.
* @param name The document name.
* @param pageNumber The page number.
* @param annotations The array of annotation.
* @param storage The document storage.
* @param folder The document folder.
*/
- public async postPagePolyLineAnnotations (name: string, pageNumber: number, annotations: Array, storage?: string, folder?: string) : Promise<{ response: http.ClientResponse; body: AsposeResponse; }> {
- const localVarPath = this.basePath + '/pdf/{name}/pages/{pageNumber}/annotations/polyline'
+ public async postPageStrikeOutAnnotations (name: string, pageNumber: number, annotations: Array, storage?: string, folder?: string) : Promise<{ response: http.IncomingMessage; body: AsposeResponse; }> {
+ const localVarPath = this.basePath + '/pdf/{name}/pages/{pageNumber}/annotations/strikeout'
.replace('{' + 'name' + '}', encodeURIComponent(String(name)))
.replace('{' + 'pageNumber' + '}', encodeURIComponent(String(pageNumber)));
let localVarQueryParameters: any = {};
@@ -6542,17 +8279,17 @@ export class PdfApi {
// verify required parameter 'name' is not null or undefined
if (name === null || name === undefined) {
- throw new Error('Required parameter name was null or undefined when calling postPagePolyLineAnnotations.');
+ throw new Error('Required parameter name was null or undefined when calling postPageStrikeOutAnnotations.');
}
// verify required parameter 'pageNumber' is not null or undefined
if (pageNumber === null || pageNumber === undefined) {
- throw new Error('Required parameter pageNumber was null or undefined when calling postPagePolyLineAnnotations.');
+ throw new Error('Required parameter pageNumber was null or undefined when calling postPageStrikeOutAnnotations.');
}
// verify required parameter 'annotations' is not null or undefined
if (annotations === null || annotations === undefined) {
- throw new Error('Required parameter annotations was null or undefined when calling postPagePolyLineAnnotations.');
+ throw new Error('Required parameter annotations was null or undefined when calling postPageStrikeOutAnnotations.');
}
if (storage !== undefined && null !== storage) {
@@ -6573,7 +8310,7 @@ export class PdfApi {
uri: localVarPath,
useQuerystring: this._useQuerystring,
json: true,
- body: ObjectSerializer.serialize(annotations, "Array")
+ body: ObjectSerializer.serialize(annotations, "Array")
};
if (Object.keys(localVarFormParams).length) {
@@ -6591,15 +8328,15 @@ export class PdfApi {
/**
*
- * @summary Add document page polygon annotations.
+ * @summary Add document page text annotations.
* @param name The document name.
* @param pageNumber The page number.
* @param annotations The array of annotation.
* @param storage The document storage.
* @param folder The document folder.
*/
- public async postPagePolygonAnnotations (name: string, pageNumber: number, annotations: Array, storage?: string, folder?: string) : Promise<{ response: http.ClientResponse; body: AsposeResponse; }> {
- const localVarPath = this.basePath + '/pdf/{name}/pages/{pageNumber}/annotations/polygon'
+ public async postPageTextAnnotations (name: string, pageNumber: number, annotations: Array, storage?: string, folder?: string) : Promise<{ response: http.IncomingMessage; body: AsposeResponse; }> {
+ const localVarPath = this.basePath + '/pdf/{name}/pages/{pageNumber}/annotations/text'
.replace('{' + 'name' + '}', encodeURIComponent(String(name)))
.replace('{' + 'pageNumber' + '}', encodeURIComponent(String(pageNumber)));
let localVarQueryParameters: any = {};
@@ -6608,17 +8345,17 @@ export class PdfApi {
// verify required parameter 'name' is not null or undefined
if (name === null || name === undefined) {
- throw new Error('Required parameter name was null or undefined when calling postPagePolygonAnnotations.');
+ throw new Error('Required parameter name was null or undefined when calling postPageTextAnnotations.');
}
// verify required parameter 'pageNumber' is not null or undefined
if (pageNumber === null || pageNumber === undefined) {
- throw new Error('Required parameter pageNumber was null or undefined when calling postPagePolygonAnnotations.');
+ throw new Error('Required parameter pageNumber was null or undefined when calling postPageTextAnnotations.');
}
// verify required parameter 'annotations' is not null or undefined
if (annotations === null || annotations === undefined) {
- throw new Error('Required parameter annotations was null or undefined when calling postPagePolygonAnnotations.');
+ throw new Error('Required parameter annotations was null or undefined when calling postPageTextAnnotations.');
}
if (storage !== undefined && null !== storage) {
@@ -6639,7 +8376,7 @@ export class PdfApi {
uri: localVarPath,
useQuerystring: this._useQuerystring,
json: true,
- body: ObjectSerializer.serialize(annotations, "Array")
+ body: ObjectSerializer.serialize(annotations, "Array")
};
if (Object.keys(localVarFormParams).length) {
@@ -6657,15 +8394,15 @@ export class PdfApi {
/**
*
- * @summary Add document page square annotations.
- * @param name The document name.
- * @param pageNumber The page number.
- * @param annotations The array of annotation.
- * @param storage The document storage.
- * @param folder The document folder.
+ * @summary Page's replace text method.
+ * @param name
+ * @param pageNumber
+ * @param textReplaceListRequest
+ * @param storage
+ * @param folder
*/
- public async postPageSquareAnnotations (name: string, pageNumber: number, annotations: Array, storage?: string, folder?: string) : Promise<{ response: http.ClientResponse; body: AsposeResponse; }> {
- const localVarPath = this.basePath + '/pdf/{name}/pages/{pageNumber}/annotations/square'
+ public async postPageTextReplace (name: string, pageNumber: number, textReplaceListRequest: TextReplaceListRequest, storage?: string, folder?: string) : Promise<{ response: http.IncomingMessage; body: TextReplaceResponse; }> {
+ const localVarPath = this.basePath + '/pdf/{name}/pages/{pageNumber}/text/replace'
.replace('{' + 'name' + '}', encodeURIComponent(String(name)))
.replace('{' + 'pageNumber' + '}', encodeURIComponent(String(pageNumber)));
let localVarQueryParameters: any = {};
@@ -6674,17 +8411,17 @@ export class PdfApi {
// verify required parameter 'name' is not null or undefined
if (name === null || name === undefined) {
- throw new Error('Required parameter name was null or undefined when calling postPageSquareAnnotations.');
+ throw new Error('Required parameter name was null or undefined when calling postPageTextReplace.');
}
// verify required parameter 'pageNumber' is not null or undefined
if (pageNumber === null || pageNumber === undefined) {
- throw new Error('Required parameter pageNumber was null or undefined when calling postPageSquareAnnotations.');
+ throw new Error('Required parameter pageNumber was null or undefined when calling postPageTextReplace.');
}
- // verify required parameter 'annotations' is not null or undefined
- if (annotations === null || annotations === undefined) {
- throw new Error('Required parameter annotations was null or undefined when calling postPageSquareAnnotations.');
+ // verify required parameter 'textReplaceListRequest' is not null or undefined
+ if (textReplaceListRequest === null || textReplaceListRequest === undefined) {
+ throw new Error('Required parameter textReplaceListRequest was null or undefined when calling postPageTextReplace.');
}
if (storage !== undefined && null !== storage) {
@@ -6705,7 +8442,7 @@ export class PdfApi {
uri: localVarPath,
useQuerystring: this._useQuerystring,
json: true,
- body: ObjectSerializer.serialize(annotations, "Array")
+ body: ObjectSerializer.serialize(textReplaceListRequest, "TextReplaceListRequest")
};
if (Object.keys(localVarFormParams).length) {
@@ -6716,22 +8453,22 @@ export class PdfApi {
}
}
const response = await invokeApiMethod(localVarRequestOptions, this.configuration, false, fileData);
- const result = ObjectSerializer.deserialize(response.body, "AsposeResponse");
+ const result = ObjectSerializer.deserialize(response.body, "TextReplaceResponse");
return Promise.resolve({body: result, response});
}
/**
*
- * @summary Add document page text annotations.
+ * @summary Add document page underline annotations.
* @param name The document name.
* @param pageNumber The page number.
* @param annotations The array of annotation.
* @param storage The document storage.
* @param folder The document folder.
*/
- public async postPageTextAnnotations (name: string, pageNumber: number, annotations: Array, storage?: string, folder?: string) : Promise<{ response: http.ClientResponse; body: AsposeResponse; }> {
- const localVarPath = this.basePath + '/pdf/{name}/pages/{pageNumber}/annotations/text'
+ public async postPageUnderlineAnnotations (name: string, pageNumber: number, annotations: Array, storage?: string, folder?: string) : Promise<{ response: http.IncomingMessage; body: AsposeResponse; }> {
+ const localVarPath = this.basePath + '/pdf/{name}/pages/{pageNumber}/annotations/underline'
.replace('{' + 'name' + '}', encodeURIComponent(String(name)))
.replace('{' + 'pageNumber' + '}', encodeURIComponent(String(pageNumber)));
let localVarQueryParameters: any = {};
@@ -6740,17 +8477,17 @@ export class PdfApi {
// verify required parameter 'name' is not null or undefined
if (name === null || name === undefined) {
- throw new Error('Required parameter name was null or undefined when calling postPageTextAnnotations.');
+ throw new Error('Required parameter name was null or undefined when calling postPageUnderlineAnnotations.');
}
// verify required parameter 'pageNumber' is not null or undefined
if (pageNumber === null || pageNumber === undefined) {
- throw new Error('Required parameter pageNumber was null or undefined when calling postPageTextAnnotations.');
+ throw new Error('Required parameter pageNumber was null or undefined when calling postPageUnderlineAnnotations.');
}
// verify required parameter 'annotations' is not null or undefined
if (annotations === null || annotations === undefined) {
- throw new Error('Required parameter annotations was null or undefined when calling postPageTextAnnotations.');
+ throw new Error('Required parameter annotations was null or undefined when calling postPageUnderlineAnnotations.');
}
if (storage !== undefined && null !== storage) {
@@ -6771,7 +8508,7 @@ export class PdfApi {
uri: localVarPath,
useQuerystring: this._useQuerystring,
json: true,
- body: ObjectSerializer.serialize(annotations, "Array")
+ body: ObjectSerializer.serialize(annotations, "Array")
};
if (Object.keys(localVarFormParams).length) {
@@ -6789,34 +8526,34 @@ export class PdfApi {
/**
*
- * @summary Page's replace text method.
- * @param name
- * @param pageNumber
- * @param textReplaceListRequest
- * @param storage
- * @param folder
+ * @summary Add document popup annotations.
+ * @param name The document name.
+ * @param annotationId The parent annotation ID.
+ * @param annotation The annotation.
+ * @param storage The document storage.
+ * @param folder The document folder.
*/
- public async postPageTextReplace (name: string, pageNumber: number, textReplaceListRequest: TextReplaceListRequest, storage?: string, folder?: string) : Promise<{ response: http.ClientResponse; body: TextReplaceResponse; }> {
- const localVarPath = this.basePath + '/pdf/{name}/pages/{pageNumber}/text/replace'
+ public async postPopupAnnotation (name: string, annotationId: string, annotation: PopupAnnotation, storage?: string, folder?: string) : Promise<{ response: http.IncomingMessage; body: AsposeResponse; }> {
+ const localVarPath = this.basePath + '/pdf/{name}/annotations/{annotationId}/popup'
.replace('{' + 'name' + '}', encodeURIComponent(String(name)))
- .replace('{' + 'pageNumber' + '}', encodeURIComponent(String(pageNumber)));
+ .replace('{' + 'annotationId' + '}', encodeURIComponent(String(annotationId)));
let localVarQueryParameters: any = {};
let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders);
let localVarFormParams: any = {};
// verify required parameter 'name' is not null or undefined
if (name === null || name === undefined) {
- throw new Error('Required parameter name was null or undefined when calling postPageTextReplace.');
+ throw new Error('Required parameter name was null or undefined when calling postPopupAnnotation.');
}
- // verify required parameter 'pageNumber' is not null or undefined
- if (pageNumber === null || pageNumber === undefined) {
- throw new Error('Required parameter pageNumber was null or undefined when calling postPageTextReplace.');
+ // verify required parameter 'annotationId' is not null or undefined
+ if (annotationId === null || annotationId === undefined) {
+ throw new Error('Required parameter annotationId was null or undefined when calling postPopupAnnotation.');
}
- // verify required parameter 'textReplaceListRequest' is not null or undefined
- if (textReplaceListRequest === null || textReplaceListRequest === undefined) {
- throw new Error('Required parameter textReplaceListRequest was null or undefined when calling postPageTextReplace.');
+ // verify required parameter 'annotation' is not null or undefined
+ if (annotation === null || annotation === undefined) {
+ throw new Error('Required parameter annotation was null or undefined when calling postPopupAnnotation.');
}
if (storage !== undefined && null !== storage) {
@@ -6837,7 +8574,7 @@ export class PdfApi {
uri: localVarPath,
useQuerystring: this._useQuerystring,
json: true,
- body: ObjectSerializer.serialize(textReplaceListRequest, "TextReplaceListRequest")
+ body: ObjectSerializer.serialize(annotation, "PopupAnnotation")
};
if (Object.keys(localVarFormParams).length) {
@@ -6848,7 +8585,7 @@ export class PdfApi {
}
}
const response = await invokeApiMethod(localVarRequestOptions, this.configuration, false, fileData);
- const result = ObjectSerializer.deserialize(response.body, "TextReplaceResponse");
+ const result = ObjectSerializer.deserialize(response.body, "AsposeResponse");
return Promise.resolve({body: result, response});
}
@@ -6861,7 +8598,7 @@ export class PdfApi {
* @param storage The document storage.
* @param folder The document folder.
*/
- public async postSignDocument (name: string, signature?: Signature, storage?: string, folder?: string) : Promise<{ response: http.ClientResponse; body: AsposeResponse; }> {
+ public async postSignDocument (name: string, signature?: Signature, storage?: string, folder?: string) : Promise<{ response: http.IncomingMessage; body: AsposeResponse; }> {
const localVarPath = this.basePath + '/pdf/{name}/sign'
.replace('{' + 'name' + '}', encodeURIComponent(String(name)));
let localVarQueryParameters: any = {};
@@ -6916,7 +8653,7 @@ export class PdfApi {
* @param storage The document storage.
* @param folder The document folder.
*/
- public async postSignPage (name: string, pageNumber: number, signature?: Signature, storage?: string, folder?: string) : Promise<{ response: http.ClientResponse; body: AsposeResponse; }> {
+ public async postSignPage (name: string, pageNumber: number, signature?: Signature, storage?: string, folder?: string) : Promise<{ response: http.IncomingMessage; body: AsposeResponse; }> {
const localVarPath = this.basePath + '/pdf/{name}/pages/{pageNumber}/sign'
.replace('{' + 'name' + '}', encodeURIComponent(String(name)))
.replace('{' + 'pageNumber' + '}', encodeURIComponent(String(pageNumber)));
@@ -6978,7 +8715,7 @@ export class PdfApi {
* @param storage The document storage.
* @param folder The document folder.
*/
- public async postSplitDocument (name: string, format?: string, from?: number, to?: number, storage?: string, folder?: string) : Promise<{ response: http.ClientResponse; body: SplitResultResponse; }> {
+ public async postSplitDocument (name: string, format?: string, from?: number, to?: number, storage?: string, folder?: string) : Promise<{ response: http.IncomingMessage; body: SplitResultResponse; }> {
const localVarPath = this.basePath + '/pdf/{name}/split'
.replace('{' + 'name' + '}', encodeURIComponent(String(name)));
let localVarQueryParameters: any = {};
@@ -7042,7 +8779,7 @@ export class PdfApi {
* @param storage The document storage.
* @param folder The document folder.
*/
- public async putAddNewPage (name: string, storage?: string, folder?: string) : Promise<{ response: http.ClientResponse; body: DocumentPagesResponse; }> {
+ public async putAddNewPage (name: string, storage?: string, folder?: string) : Promise<{ response: http.IncomingMessage; body: DocumentPagesResponse; }> {
const localVarPath = this.basePath + '/pdf/{name}/pages'
.replace('{' + 'name' + '}', encodeURIComponent(String(name)));
let localVarQueryParameters: any = {};
@@ -7096,7 +8833,7 @@ export class PdfApi {
* @param folder Document folder.
* @param storage The document storage.
*/
- public async putAddText (name: string, pageNumber: number, paragraph?: Paragraph, folder?: string, storage?: string) : Promise<{ response: http.ClientResponse; body: AsposeResponse; }> {
+ public async putAddText (name: string, pageNumber: number, paragraph?: Paragraph, folder?: string, storage?: string) : Promise<{ response: http.IncomingMessage; body: AsposeResponse; }> {
const localVarPath = this.basePath + '/pdf/{name}/pages/{pageNumber}/text'
.replace('{' + 'name' + '}', encodeURIComponent(String(name)))
.replace('{' + 'pageNumber' + '}', encodeURIComponent(String(pageNumber)));
@@ -7148,6 +8885,72 @@ export class PdfApi {
}
+ /**
+ *
+ * @summary Replace document caret annotation
+ * @param name The document name.
+ * @param annotationId The annotation ID.
+ * @param annotation Annotation.
+ * @param storage The document storage.
+ * @param folder The document folder.
+ */
+ public async putCaretAnnotation (name: string, annotationId: string, annotation: CaretAnnotation, storage?: string, folder?: string) : Promise<{ response: http.IncomingMessage; body: CaretAnnotationResponse; }> {
+ const localVarPath = this.basePath + '/pdf/{name}/annotations/caret/{annotationId}'
+ .replace('{' + 'name' + '}', encodeURIComponent(String(name)))
+ .replace('{' + 'annotationId' + '}', encodeURIComponent(String(annotationId)));
+ let localVarQueryParameters: any = {};
+ let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders);
+ let localVarFormParams: any = {};
+
+ // verify required parameter 'name' is not null or undefined
+ if (name === null || name === undefined) {
+ throw new Error('Required parameter name was null or undefined when calling putCaretAnnotation.');
+ }
+
+ // verify required parameter 'annotationId' is not null or undefined
+ if (annotationId === null || annotationId === undefined) {
+ throw new Error('Required parameter annotationId was null or undefined when calling putCaretAnnotation.');
+ }
+
+ // verify required parameter 'annotation' is not null or undefined
+ if (annotation === null || annotation === undefined) {
+ throw new Error('Required parameter annotation was null or undefined when calling putCaretAnnotation.');
+ }
+
+ if (storage !== undefined && null !== storage) {
+ localVarQueryParameters['storage'] = ObjectSerializer.serialize(storage, "string");
+ }
+
+ if (folder !== undefined && null !== folder) {
+ localVarQueryParameters['folder'] = ObjectSerializer.serialize(folder, "string");
+ }
+
+
+ let localVarUseFormData = false;
+ let fileData = null;
+ let localVarRequestOptions: localVarRequest.Options = {
+ method: 'PUT',
+ qs: localVarQueryParameters,
+ headers: localVarHeaderParams,
+ uri: localVarPath,
+ useQuerystring: this._useQuerystring,
+ json: true,
+ body: ObjectSerializer.serialize(annotation, "CaretAnnotation")
+ };
+
+ if (Object.keys(localVarFormParams).length) {
+ if (localVarUseFormData) {
+ (localVarRequestOptions).formData = localVarFormParams;
+ } else {
+ localVarRequestOptions.form = localVarFormParams;
+ }
+ }
+ const response = await invokeApiMethod(localVarRequestOptions, this.configuration, false, fileData);
+ const result = ObjectSerializer.deserialize(response.body, "CaretAnnotationResponse");
+ return Promise.resolve({body: result, response});
+ }
+
+
/**
*
* @summary Replace document circle annotation
@@ -7157,7 +8960,7 @@ export class PdfApi {
* @param storage The document storage.
* @param folder The document folder.
*/
- public async putCircleAnnotation (name: string, annotationId: string, annotation: CircleAnnotation, storage?: string, folder?: string) : Promise<{ response: http.ClientResponse; body: CircleAnnotationResponse; }> {
+ public async putCircleAnnotation (name: string, annotationId: string, annotation: CircleAnnotation, storage?: string, folder?: string) : Promise<{ response: http.IncomingMessage; body: CircleAnnotationResponse; }> {
const localVarPath = this.basePath + '/pdf/{name}/annotations/circle/{annotationId}'
.replace('{' + 'name' + '}', encodeURIComponent(String(name)))
.replace('{' + 'annotationId' + '}', encodeURIComponent(String(annotationId)));
@@ -7222,7 +9025,7 @@ export class PdfApi {
* @param versionId Source file's version
* @param storage User's storage name
*/
- public async putCreate (path: string, file: Buffer, versionId?: string, storage?: string) : Promise<{ response: http.ClientResponse; body: AsposeResponse; }> {
+ public async putCreate (path: string, file: Buffer, versionId?: string, storage?: string) : Promise<{ response: http.IncomingMessage; body: AsposeResponse; }> {
const localVarPath = this.basePath + '/storage/file';
let localVarQueryParameters: any = {};
let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders);
@@ -7289,7 +9092,7 @@ export class PdfApi {
* @param storage The document storage.
* @param folder The new document folder.
*/
- public async putCreateDocument (name: string, storage?: string, folder?: string) : Promise<{ response: http.ClientResponse; body: DocumentResponse; }> {
+ public async putCreateDocument (name: string, storage?: string, folder?: string) : Promise<{ response: http.IncomingMessage; body: DocumentResponse; }> {
const localVarPath = this.basePath + '/pdf/{name}'
.replace('{' + 'name' + '}', encodeURIComponent(String(name)));
let localVarQueryParameters: any = {};
@@ -7342,7 +9145,7 @@ export class PdfApi {
* @param storage The document storage.
* @param dstFolder The destination document folder.
*/
- public async putEpubInStorageToPdf (name: string, srcPath: string, storage?: string, dstFolder?: string) : Promise<{ response: http.ClientResponse; body: AsposeResponse; }> {
+ public async putEpubInStorageToPdf (name: string, srcPath: string, storage?: string, dstFolder?: string) : Promise<{ response: http.IncomingMessage; body: AsposeResponse; }> {
const localVarPath = this.basePath + '/pdf/{name}/create/epub'
.replace('{' + 'name' + '}', encodeURIComponent(String(name)));
let localVarQueryParameters: any = {};
@@ -7403,7 +9206,7 @@ export class PdfApi {
* @param storage The document storage.
* @param folder The document folder.
*/
- public async putFieldsFlatten (name: string, storage?: string, folder?: string) : Promise<{ response: http.ClientResponse; body: AsposeResponse; }> {
+ public async putFieldsFlatten (name: string, storage?: string, folder?: string) : Promise<{ response: http.IncomingMessage; body: AsposeResponse; }> {
const localVarPath = this.basePath + '/pdf/{name}/fields/flatten'
.replace('{' + 'name' + '}', encodeURIComponent(String(name)));
let localVarQueryParameters: any = {};
@@ -7457,7 +9260,7 @@ export class PdfApi {
* @param storage The document storage.
* @param folder The document folder.
*/
- public async putFreeTextAnnotation (name: string, annotationId: string, annotation: FreeTextAnnotation, storage?: string, folder?: string) : Promise<{ response: http.ClientResponse; body: FreeTextAnnotationResponse; }> {
+ public async putFreeTextAnnotation (name: string, annotationId: string, annotation: FreeTextAnnotation, storage?: string, folder?: string) : Promise<{ response: http.IncomingMessage; body: FreeTextAnnotationResponse; }> {
const localVarPath = this.basePath + '/pdf/{name}/annotations/freetext/{annotationId}'
.replace('{' + 'name' + '}', encodeURIComponent(String(name)))
.replace('{' + 'annotationId' + '}', encodeURIComponent(String(annotationId)));
@@ -7514,6 +9317,72 @@ export class PdfApi {
}
+ /**
+ *
+ * @summary Replace document highlight annotation
+ * @param name The document name.
+ * @param annotationId The annotation ID.
+ * @param annotation Annotation.
+ * @param storage The document storage.
+ * @param folder The document folder.
+ */
+ public async putHighlightAnnotation (name: string, annotationId: string, annotation: HighlightAnnotation, storage?: string, folder?: string) : Promise<{ response: http.IncomingMessage; body: HighlightAnnotationResponse; }> {
+ const localVarPath = this.basePath + '/pdf/{name}/annotations/highlight/{annotationId}'
+ .replace('{' + 'name' + '}', encodeURIComponent(String(name)))
+ .replace('{' + 'annotationId' + '}', encodeURIComponent(String(annotationId)));
+ let localVarQueryParameters: any = {};
+ let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders);
+ let localVarFormParams: any = {};
+
+ // verify required parameter 'name' is not null or undefined
+ if (name === null || name === undefined) {
+ throw new Error('Required parameter name was null or undefined when calling putHighlightAnnotation.');
+ }
+
+ // verify required parameter 'annotationId' is not null or undefined
+ if (annotationId === null || annotationId === undefined) {
+ throw new Error('Required parameter annotationId was null or undefined when calling putHighlightAnnotation.');
+ }
+
+ // verify required parameter 'annotation' is not null or undefined
+ if (annotation === null || annotation === undefined) {
+ throw new Error('Required parameter annotation was null or undefined when calling putHighlightAnnotation.');
+ }
+
+ if (storage !== undefined && null !== storage) {
+ localVarQueryParameters['storage'] = ObjectSerializer.serialize(storage, "string");
+ }
+
+ if (folder !== undefined && null !== folder) {
+ localVarQueryParameters['folder'] = ObjectSerializer.serialize(folder, "string");
+ }
+
+
+ let localVarUseFormData = false;
+ let fileData = null;
+ let localVarRequestOptions: localVarRequest.Options = {
+ method: 'PUT',
+ qs: localVarQueryParameters,
+ headers: localVarHeaderParams,
+ uri: localVarPath,
+ useQuerystring: this._useQuerystring,
+ json: true,
+ body: ObjectSerializer.serialize(annotation, "HighlightAnnotation")
+ };
+
+ if (Object.keys(localVarFormParams).length) {
+ if (localVarUseFormData) {
+ (localVarRequestOptions).formData = localVarFormParams;
+ } else {
+ localVarRequestOptions.form = localVarFormParams;
+ }
+ }
+ const response = await invokeApiMethod(localVarRequestOptions, this.configuration, false, fileData);
+ const result = ObjectSerializer.deserialize(response.body, "HighlightAnnotationResponse");
+ return Promise.resolve({body: result, response});
+ }
+
+
/**
*
* @summary Convert HTML file (located on storage) to PDF format and upload resulting file to storage.
@@ -7530,7 +9399,7 @@ export class PdfApi {
* @param dstFolder The destination document folder.
* @param storage The document storage.
*/
- public async putHtmlInStorageToPdf (name: string, srcPath: string, htmlFileName: string, height?: number, width?: number, isLandscape?: boolean, marginLeft?: number, marginBottom?: number, marginRight?: number, marginTop?: number, dstFolder?: string, storage?: string) : Promise<{ response: http.ClientResponse; body: AsposeResponse; }> {
+ public async putHtmlInStorageToPdf (name: string, srcPath: string, htmlFileName?: string, height?: number, width?: number, isLandscape?: boolean, marginLeft?: number, marginBottom?: number, marginRight?: number, marginTop?: number, dstFolder?: string, storage?: string) : Promise<{ response: http.IncomingMessage; body: AsposeResponse; }> {
const localVarPath = this.basePath + '/pdf/{name}/create/html'
.replace('{' + 'name' + '}', encodeURIComponent(String(name)));
let localVarQueryParameters: any = {};
@@ -7547,11 +9416,6 @@ export class PdfApi {
throw new Error('Required parameter srcPath was null or undefined when calling putHtmlInStorageToPdf.');
}
- // verify required parameter 'htmlFileName' is not null or undefined
- if (htmlFileName === null || htmlFileName === undefined) {
- throw new Error('Required parameter htmlFileName was null or undefined when calling putHtmlInStorageToPdf.');
- }
-
if (srcPath !== undefined && null !== srcPath) {
localVarQueryParameters['srcPath'] = ObjectSerializer.serialize(srcPath, "string");
}
@@ -7632,7 +9496,7 @@ export class PdfApi {
* @param folder The document folder.
* @param destFolder The document folder.
*/
- public async putImageExtractAsGif (name: string, imageId: string, width?: number, height?: number, storage?: string, folder?: string, destFolder?: string) : Promise<{ response: http.ClientResponse; body: AsposeResponse; }> {
+ public async putImageExtractAsGif (name: string, imageId: string, width?: number, height?: number, storage?: string, folder?: string, destFolder?: string) : Promise<{ response: http.IncomingMessage; body: AsposeResponse; }> {
const localVarPath = this.basePath + '/pdf/{name}/images/{imageId}/extract/gif'
.replace('{' + 'name' + '}', encodeURIComponent(String(name)))
.replace('{' + 'imageId' + '}', encodeURIComponent(String(imageId)));
@@ -7706,7 +9570,7 @@ export class PdfApi {
* @param folder The document folder.
* @param destFolder The document folder.
*/
- public async putImageExtractAsJpeg (name: string, imageId: string, width?: number, height?: number, storage?: string, folder?: string, destFolder?: string) : Promise<{ response: http.ClientResponse; body: AsposeResponse; }> {
+ public async putImageExtractAsJpeg (name: string, imageId: string, width?: number, height?: number, storage?: string, folder?: string, destFolder?: string) : Promise<{ response: http.IncomingMessage; body: AsposeResponse; }> {
const localVarPath = this.basePath + '/pdf/{name}/images/{imageId}/extract/jpeg'
.replace('{' + 'name' + '}', encodeURIComponent(String(name)))
.replace('{' + 'imageId' + '}', encodeURIComponent(String(imageId)));
@@ -7780,7 +9644,7 @@ export class PdfApi {
* @param folder The document folder.
* @param destFolder The document folder.
*/
- public async putImageExtractAsPng (name: string, imageId: string, width?: number, height?: number, storage?: string, folder?: string, destFolder?: string) : Promise<{ response: http.ClientResponse; body: AsposeResponse; }> {
+ public async putImageExtractAsPng (name: string, imageId: string, width?: number, height?: number, storage?: string, folder?: string, destFolder?: string) : Promise<{ response: http.IncomingMessage; body: AsposeResponse; }> {
const localVarPath = this.basePath + '/pdf/{name}/images/{imageId}/extract/png'
.replace('{' + 'name' + '}', encodeURIComponent(String(name)))
.replace('{' + 'imageId' + '}', encodeURIComponent(String(imageId)));
@@ -7854,7 +9718,7 @@ export class PdfApi {
* @param folder The document folder.
* @param destFolder The document folder.
*/
- public async putImageExtractAsTiff (name: string, imageId: string, width?: number, height?: number, storage?: string, folder?: string, destFolder?: string) : Promise<{ response: http.ClientResponse; body: AsposeResponse; }> {
+ public async putImageExtractAsTiff (name: string, imageId: string, width?: number, height?: number, storage?: string, folder?: string, destFolder?: string) : Promise<{ response: http.IncomingMessage; body: AsposeResponse; }> {
const localVarPath = this.basePath + '/pdf/{name}/images/{imageId}/extract/tiff'
.replace('{' + 'name' + '}', encodeURIComponent(String(name)))
.replace('{' + 'imageId' + '}', encodeURIComponent(String(imageId)));
@@ -7925,7 +9789,7 @@ export class PdfApi {
* @param dstFolder The destination document folder.
* @param storage The document storage.
*/
- public async putImageInStorageToPdf (name: string, imageTemplates: ImageTemplatesRequest, dstFolder?: string, storage?: string) : Promise<{ response: http.ClientResponse; body: AsposeResponse; }> {
+ public async putImageInStorageToPdf (name: string, imageTemplates: ImageTemplatesRequest, dstFolder?: string, storage?: string) : Promise<{ response: http.IncomingMessage; body: AsposeResponse; }> {
const localVarPath = this.basePath + '/pdf/{name}/create/images'
.replace('{' + 'name' + '}', encodeURIComponent(String(name)));
let localVarQueryParameters: any = {};
@@ -7987,7 +9851,7 @@ export class PdfApi {
* @param folder The document folder.
* @param destFolder The document folder.
*/
- public async putImagesExtractAsGif (name: string, pageNumber: number, width?: number, height?: number, storage?: string, folder?: string, destFolder?: string) : Promise<{ response: http.ClientResponse; body: AsposeResponse; }> {
+ public async putImagesExtractAsGif (name: string, pageNumber: number, width?: number, height?: number, storage?: string, folder?: string, destFolder?: string) : Promise<{ response: http.IncomingMessage; body: AsposeResponse; }> {
const localVarPath = this.basePath + '/pdf/{name}/pages/{pageNumber}/images/extract/gif'
.replace('{' + 'name' + '}', encodeURIComponent(String(name)))
.replace('{' + 'pageNumber' + '}', encodeURIComponent(String(pageNumber)));
@@ -8061,7 +9925,7 @@ export class PdfApi {
* @param folder The document folder.
* @param destFolder The document folder.
*/
- public async putImagesExtractAsJpeg (name: string, pageNumber: number, width?: number, height?: number, storage?: string, folder?: string, destFolder?: string) : Promise<{ response: http.ClientResponse; body: AsposeResponse; }> {
+ public async putImagesExtractAsJpeg (name: string, pageNumber: number, width?: number, height?: number, storage?: string, folder?: string, destFolder?: string) : Promise<{ response: http.IncomingMessage; body: AsposeResponse; }> {
const localVarPath = this.basePath + '/pdf/{name}/pages/{pageNumber}/images/extract/jpeg'
.replace('{' + 'name' + '}', encodeURIComponent(String(name)))
.replace('{' + 'pageNumber' + '}', encodeURIComponent(String(pageNumber)));
@@ -8135,7 +9999,7 @@ export class PdfApi {
* @param folder The document folder.
* @param destFolder The document folder.
*/
- public async putImagesExtractAsPng (name: string, pageNumber: number, width?: number, height?: number, storage?: string, folder?: string, destFolder?: string) : Promise<{ response: http.ClientResponse; body: AsposeResponse; }> {
+ public async putImagesExtractAsPng (name: string, pageNumber: number, width?: number, height?: number, storage?: string, folder?: string, destFolder?: string) : Promise<{ response: http.IncomingMessage; body: AsposeResponse; }> {
const localVarPath = this.basePath + '/pdf/{name}/pages/{pageNumber}/images/extract/png'
.replace('{' + 'name' + '}', encodeURIComponent(String(name)))
.replace('{' + 'pageNumber' + '}', encodeURIComponent(String(pageNumber)));
@@ -8207,32 +10071,101 @@ export class PdfApi {
* @param height The converted image height.
* @param storage The document storage.
* @param folder The document folder.
- * @param destFolder The document folder.
+ * @param destFolder The document folder.
+ */
+ public async putImagesExtractAsTiff (name: string, pageNumber: number, width?: number, height?: number, storage?: string, folder?: string, destFolder?: string) : Promise<{ response: http.IncomingMessage; body: AsposeResponse; }> {
+ const localVarPath = this.basePath + '/pdf/{name}/pages/{pageNumber}/images/extract/tiff'
+ .replace('{' + 'name' + '}', encodeURIComponent(String(name)))
+ .replace('{' + 'pageNumber' + '}', encodeURIComponent(String(pageNumber)));
+ let localVarQueryParameters: any = {};
+ let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders);
+ let localVarFormParams: any = {};
+
+ // verify required parameter 'name' is not null or undefined
+ if (name === null || name === undefined) {
+ throw new Error('Required parameter name was null or undefined when calling putImagesExtractAsTiff.');
+ }
+
+ // verify required parameter 'pageNumber' is not null or undefined
+ if (pageNumber === null || pageNumber === undefined) {
+ throw new Error('Required parameter pageNumber was null or undefined when calling putImagesExtractAsTiff.');
+ }
+
+ if (width !== undefined && null !== width) {
+ localVarQueryParameters['width'] = ObjectSerializer.serialize(width, "number");
+ }
+
+ if (height !== undefined && null !== height) {
+ localVarQueryParameters['height'] = ObjectSerializer.serialize(height, "number");
+ }
+
+ if (storage !== undefined && null !== storage) {
+ localVarQueryParameters['storage'] = ObjectSerializer.serialize(storage, "string");
+ }
+
+ if (folder !== undefined && null !== folder) {
+ localVarQueryParameters['folder'] = ObjectSerializer.serialize(folder, "string");
+ }
+
+ if (destFolder !== undefined && null !== destFolder) {
+ localVarQueryParameters['destFolder'] = ObjectSerializer.serialize(destFolder, "string");
+ }
+
+
+ let localVarUseFormData = false;
+ let fileData = null;
+ let localVarRequestOptions: localVarRequest.Options = {
+ method: 'PUT',
+ qs: localVarQueryParameters,
+ headers: localVarHeaderParams,
+ uri: localVarPath,
+ useQuerystring: this._useQuerystring,
+ json: true,
+ };
+
+ if (Object.keys(localVarFormParams).length) {
+ if (localVarUseFormData) {
+ (localVarRequestOptions).formData = localVarFormParams;
+ } else {
+ localVarRequestOptions.form = localVarFormParams;
+ }
+ }
+ const response = await invokeApiMethod(localVarRequestOptions, this.configuration, false, fileData);
+ const result = ObjectSerializer.deserialize(response.body, "AsposeResponse");
+ return Promise.resolve({body: result, response});
+ }
+
+
+ /**
+ *
+ * @summary Replace document ink annotation
+ * @param name The document name.
+ * @param annotationId The annotation ID.
+ * @param annotation Annotation.
+ * @param storage The document storage.
+ * @param folder The document folder.
*/
- public async putImagesExtractAsTiff (name: string, pageNumber: number, width?: number, height?: number, storage?: string, folder?: string, destFolder?: string) : Promise<{ response: http.ClientResponse; body: AsposeResponse; }> {
- const localVarPath = this.basePath + '/pdf/{name}/pages/{pageNumber}/images/extract/tiff'
+ public async putInkAnnotation (name: string, annotationId: string, annotation: InkAnnotation, storage?: string, folder?: string) : Promise<{ response: http.IncomingMessage; body: InkAnnotationResponse; }> {
+ const localVarPath = this.basePath + '/pdf/{name}/annotations/ink/{annotationId}'
.replace('{' + 'name' + '}', encodeURIComponent(String(name)))
- .replace('{' + 'pageNumber' + '}', encodeURIComponent(String(pageNumber)));
+ .replace('{' + 'annotationId' + '}', encodeURIComponent(String(annotationId)));
let localVarQueryParameters: any = {};
let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders);
let localVarFormParams: any = {};
// verify required parameter 'name' is not null or undefined
if (name === null || name === undefined) {
- throw new Error('Required parameter name was null or undefined when calling putImagesExtractAsTiff.');
- }
-
- // verify required parameter 'pageNumber' is not null or undefined
- if (pageNumber === null || pageNumber === undefined) {
- throw new Error('Required parameter pageNumber was null or undefined when calling putImagesExtractAsTiff.');
+ throw new Error('Required parameter name was null or undefined when calling putInkAnnotation.');
}
- if (width !== undefined && null !== width) {
- localVarQueryParameters['width'] = ObjectSerializer.serialize(width, "number");
+ // verify required parameter 'annotationId' is not null or undefined
+ if (annotationId === null || annotationId === undefined) {
+ throw new Error('Required parameter annotationId was null or undefined when calling putInkAnnotation.');
}
- if (height !== undefined && null !== height) {
- localVarQueryParameters['height'] = ObjectSerializer.serialize(height, "number");
+ // verify required parameter 'annotation' is not null or undefined
+ if (annotation === null || annotation === undefined) {
+ throw new Error('Required parameter annotation was null or undefined when calling putInkAnnotation.');
}
if (storage !== undefined && null !== storage) {
@@ -8243,10 +10176,6 @@ export class PdfApi {
localVarQueryParameters['folder'] = ObjectSerializer.serialize(folder, "string");
}
- if (destFolder !== undefined && null !== destFolder) {
- localVarQueryParameters['destFolder'] = ObjectSerializer.serialize(destFolder, "string");
- }
-
let localVarUseFormData = false;
let fileData = null;
@@ -8257,6 +10186,7 @@ export class PdfApi {
uri: localVarPath,
useQuerystring: this._useQuerystring,
json: true,
+ body: ObjectSerializer.serialize(annotation, "InkAnnotation")
};
if (Object.keys(localVarFormParams).length) {
@@ -8267,7 +10197,7 @@ export class PdfApi {
}
}
const response = await invokeApiMethod(localVarRequestOptions, this.configuration, false, fileData);
- const result = ObjectSerializer.deserialize(response.body, "AsposeResponse");
+ const result = ObjectSerializer.deserialize(response.body, "InkAnnotationResponse");
return Promise.resolve({body: result, response});
}
@@ -8280,7 +10210,7 @@ export class PdfApi {
* @param dstFolder The destination document folder.
* @param storage The document storage.
*/
- public async putLaTeXInStorageToPdf (name: string, srcPath: string, dstFolder?: string, storage?: string) : Promise<{ response: http.ClientResponse; body: AsposeResponse; }> {
+ public async putLaTeXInStorageToPdf (name: string, srcPath: string, dstFolder?: string, storage?: string) : Promise<{ response: http.IncomingMessage; body: AsposeResponse; }> {
const localVarPath = this.basePath + '/pdf/{name}/create/latex'
.replace('{' + 'name' + '}', encodeURIComponent(String(name)));
let localVarQueryParameters: any = {};
@@ -8343,7 +10273,7 @@ export class PdfApi {
* @param storage The document storage.
* @param folder The document folder.
*/
- public async putLineAnnotation (name: string, annotationId: string, annotation: LineAnnotation, storage?: string, folder?: string) : Promise<{ response: http.ClientResponse; body: LineAnnotationResponse; }> {
+ public async putLineAnnotation (name: string, annotationId: string, annotation: LineAnnotation, storage?: string, folder?: string) : Promise<{ response: http.IncomingMessage; body: LineAnnotationResponse; }> {
const localVarPath = this.basePath + '/pdf/{name}/annotations/line/{annotationId}'
.replace('{' + 'name' + '}', encodeURIComponent(String(name)))
.replace('{' + 'annotationId' + '}', encodeURIComponent(String(annotationId)));
@@ -8409,7 +10339,7 @@ export class PdfApi {
* @param storage The document storage.
* @param folder The document folder.
*/
- public async putLinkAnnotation (name: string, linkId: string, link: LinkAnnotation, storage?: string, folder?: string) : Promise<{ response: http.ClientResponse; body: LinkAnnotationResponse; }> {
+ public async putLinkAnnotation (name: string, linkId: string, link: LinkAnnotation, storage?: string, folder?: string) : Promise<{ response: http.IncomingMessage; body: LinkAnnotationResponse; }> {
const localVarPath = this.basePath + '/pdf/{name}/links/{linkId}'
.replace('{' + 'name' + '}', encodeURIComponent(String(name)))
.replace('{' + 'linkId' + '}', encodeURIComponent(String(linkId)));
@@ -8474,7 +10404,7 @@ export class PdfApi {
* @param storage Resulting document storage.
* @param folder Resulting document folder.
*/
- public async putMergeDocuments (name: string, mergeDocuments?: MergeDocuments, storage?: string, folder?: string) : Promise<{ response: http.ClientResponse; body: Buffer; }> {
+ public async putMergeDocuments (name: string, mergeDocuments?: MergeDocuments, storage?: string, folder?: string) : Promise<{ response: http.IncomingMessage; body: Buffer; }> {
const localVarPath = this.basePath + '/pdf/{name}/merge'
.replace('{' + 'name' + '}', encodeURIComponent(String(name)));
let localVarQueryParameters: any = {};
@@ -8528,7 +10458,7 @@ export class PdfApi {
* @param dstFolder The destination document folder.
* @param storage The document storage.
*/
- public async putMhtInStorageToPdf (name: string, srcPath: string, dstFolder?: string, storage?: string) : Promise<{ response: http.ClientResponse; body: AsposeResponse; }> {
+ public async putMhtInStorageToPdf (name: string, srcPath: string, dstFolder?: string, storage?: string) : Promise<{ response: http.IncomingMessage; body: AsposeResponse; }> {
const localVarPath = this.basePath + '/pdf/{name}/create/mht'
.replace('{' + 'name' + '}', encodeURIComponent(String(name)));
let localVarQueryParameters: any = {};
@@ -8591,7 +10521,7 @@ export class PdfApi {
* @param storage The document storage.
* @param folder The document folder.
*/
- public async putPageAddStamp (name: string, pageNumber: number, stamp: Stamp, storage?: string, folder?: string) : Promise<{ response: http.ClientResponse; body: AsposeResponse; }> {
+ public async putPageAddStamp (name: string, pageNumber: number, stamp: Stamp, storage?: string, folder?: string) : Promise<{ response: http.IncomingMessage; body: AsposeResponse; }> {
const localVarPath = this.basePath + '/pdf/{name}/pages/{pageNumber}/stamp'
.replace('{' + 'name' + '}', encodeURIComponent(String(name)))
.replace('{' + 'pageNumber' + '}', encodeURIComponent(String(pageNumber)));
@@ -8659,7 +10589,7 @@ export class PdfApi {
* @param folder The document folder.
* @param storage The document storage.
*/
- public async putPageConvertToBmp (name: string, pageNumber: number, outPath: string, width?: number, height?: number, folder?: string, storage?: string) : Promise<{ response: http.ClientResponse; body: AsposeResponse; }> {
+ public async putPageConvertToBmp (name: string, pageNumber: number, outPath: string, width?: number, height?: number, folder?: string, storage?: string) : Promise<{ response: http.IncomingMessage; body: AsposeResponse; }> {
const localVarPath = this.basePath + '/pdf/{name}/pages/{pageNumber}/convert/bmp'
.replace('{' + 'name' + '}', encodeURIComponent(String(name)))
.replace('{' + 'pageNumber' + '}', encodeURIComponent(String(pageNumber)));
@@ -8738,7 +10668,7 @@ export class PdfApi {
* @param folder The document folder.
* @param storage The document storage.
*/
- public async putPageConvertToEmf (name: string, pageNumber: number, outPath: string, width?: number, height?: number, folder?: string, storage?: string) : Promise<{ response: http.ClientResponse; body: AsposeResponse; }> {
+ public async putPageConvertToEmf (name: string, pageNumber: number, outPath: string, width?: number, height?: number, folder?: string, storage?: string) : Promise<{ response: http.IncomingMessage; body: AsposeResponse; }> {
const localVarPath = this.basePath + '/pdf/{name}/pages/{pageNumber}/convert/emf'
.replace('{' + 'name' + '}', encodeURIComponent(String(name)))
.replace('{' + 'pageNumber' + '}', encodeURIComponent(String(pageNumber)));
@@ -8817,7 +10747,7 @@ export class PdfApi {
* @param folder The document folder.
* @param storage The document storage.
*/
- public async putPageConvertToGif (name: string, pageNumber: number, outPath: string, width?: number, height?: number, folder?: string, storage?: string) : Promise<{ response: http.ClientResponse; body: AsposeResponse; }> {
+ public async putPageConvertToGif (name: string, pageNumber: number, outPath: string, width?: number, height?: number, folder?: string, storage?: string) : Promise<{ response: http.IncomingMessage; body: AsposeResponse; }> {
const localVarPath = this.basePath + '/pdf/{name}/pages/{pageNumber}/convert/gif'
.replace('{' + 'name' + '}', encodeURIComponent(String(name)))
.replace('{' + 'pageNumber' + '}', encodeURIComponent(String(pageNumber)));
@@ -8896,7 +10826,7 @@ export class PdfApi {
* @param folder The document folder.
* @param storage The document storage.
*/
- public async putPageConvertToJpeg (name: string, pageNumber: number, outPath: string, width?: number, height?: number, folder?: string, storage?: string) : Promise<{ response: http.ClientResponse; body: AsposeResponse; }> {
+ public async putPageConvertToJpeg (name: string, pageNumber: number, outPath: string, width?: number, height?: number, folder?: string, storage?: string) : Promise<{ response: http.IncomingMessage; body: AsposeResponse; }> {
const localVarPath = this.basePath + '/pdf/{name}/pages/{pageNumber}/convert/jpeg'
.replace('{' + 'name' + '}', encodeURIComponent(String(name)))
.replace('{' + 'pageNumber' + '}', encodeURIComponent(String(pageNumber)));
@@ -8975,7 +10905,7 @@ export class PdfApi {
* @param folder The document folder.
* @param storage The document storage.
*/
- public async putPageConvertToPng (name: string, pageNumber: number, outPath: string, width?: number, height?: number, folder?: string, storage?: string) : Promise<{ response: http.ClientResponse; body: AsposeResponse; }> {
+ public async putPageConvertToPng (name: string, pageNumber: number, outPath: string, width?: number, height?: number, folder?: string, storage?: string) : Promise<{ response: http.IncomingMessage; body: AsposeResponse; }> {
const localVarPath = this.basePath + '/pdf/{name}/pages/{pageNumber}/convert/png'
.replace('{' + 'name' + '}', encodeURIComponent(String(name)))
.replace('{' + 'pageNumber' + '}', encodeURIComponent(String(pageNumber)));
@@ -9054,7 +10984,7 @@ export class PdfApi {
* @param folder The document folder.
* @param storage The document storage.
*/
- public async putPageConvertToTiff (name: string, pageNumber: number, outPath: string, width?: number, height?: number, folder?: string, storage?: string) : Promise<{ response: http.ClientResponse; body: AsposeResponse; }> {
+ public async putPageConvertToTiff (name: string, pageNumber: number, outPath: string, width?: number, height?: number, folder?: string, storage?: string) : Promise<{ response: http.IncomingMessage; body: AsposeResponse; }> {
const localVarPath = this.basePath + '/pdf/{name}/pages/{pageNumber}/convert/tiff'
.replace('{' + 'name' + '}', encodeURIComponent(String(name)))
.replace('{' + 'pageNumber' + '}', encodeURIComponent(String(pageNumber)));
@@ -9130,7 +11060,7 @@ export class PdfApi {
* @param dstFolder The destination document folder.
* @param storage The document storage.
*/
- public async putPclInStorageToPdf (name: string, srcPath: string, dstFolder?: string, storage?: string) : Promise<{ response: http.ClientResponse; body: AsposeResponse; }> {
+ public async putPclInStorageToPdf (name: string, srcPath: string, dstFolder?: string, storage?: string) : Promise<{ response: http.IncomingMessage; body: AsposeResponse; }> {
const localVarPath = this.basePath + '/pdf/{name}/create/pcl'
.replace('{' + 'name' + '}', encodeURIComponent(String(name)));
let localVarQueryParameters: any = {};
@@ -9199,7 +11129,7 @@ export class PdfApi {
* @param storage The document storage.
* @param file A file to be converted.
*/
- public async putPdfInRequestToDoc (outPath: string, addReturnToLineEnd?: boolean, format?: string, imageResolutionX?: number, imageResolutionY?: number, maxDistanceBetweenTextLines?: number, mode?: string, recognizeBullets?: boolean, relativeHorizontalProximity?: number, storage?: string, file?: Buffer) : Promise<{ response: http.ClientResponse; body: AsposeResponse; }> {
+ public async putPdfInRequestToDoc (outPath: string, addReturnToLineEnd?: boolean, format?: string, imageResolutionX?: number, imageResolutionY?: number, maxDistanceBetweenTextLines?: number, mode?: string, recognizeBullets?: boolean, relativeHorizontalProximity?: number, storage?: string, file?: Buffer) : Promise<{ response: http.IncomingMessage; body: AsposeResponse; }> {
const localVarPath = this.basePath + '/pdf/convert/doc';
let localVarQueryParameters: any = {};
let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders);
@@ -9290,7 +11220,7 @@ export class PdfApi {
* @param storage The document storage.
* @param file A file to be converted.
*/
- public async putPdfInRequestToEpub (outPath: string, contentRecognitionMode?: string, storage?: string, file?: Buffer) : Promise<{ response: http.ClientResponse; body: AsposeResponse; }> {
+ public async putPdfInRequestToEpub (outPath: string, contentRecognitionMode?: string, storage?: string, file?: Buffer) : Promise<{ response: http.IncomingMessage; body: AsposeResponse; }> {
const localVarPath = this.basePath + '/pdf/convert/epub';
let localVarQueryParameters: any = {};
let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders);
@@ -9380,7 +11310,7 @@ export class PdfApi {
* @param storage The document storage.
* @param file A file to be converted.
*/
- public async putPdfInRequestToHtml (outPath: string, additionalMarginWidthInPoints?: number, compressSvgGraphicsIfAny?: boolean, convertMarkedContentToLayers?: boolean, defaultFontName?: string, documentType?: string, fixedLayout?: boolean, imageResolution?: number, minimalLineWidth?: number, preventGlyphsGrouping?: boolean, splitCssIntoPages?: boolean, splitIntoPages?: boolean, useZOrder?: boolean, antialiasingProcessing?: string, cssClassNamesPrefix?: string, explicitListOfSavedPages?: Array, fontEncodingStrategy?: string, fontSavingMode?: string, htmlMarkupGenerationMode?: string, lettersPositioningMethod?: string, pagesFlowTypeDependsOnViewersScreenSize?: boolean, partsEmbeddingMode?: string, rasterImagesSavingMode?: string, removeEmptyAreasOnTopAndBottom?: boolean, saveShadowedTextsAsTransparentTexts?: boolean, saveTransparentTexts?: boolean, specialFolderForAllImages?: string, specialFolderForSvgImages?: string, trySaveTextUnderliningAndStrikeoutingInCss?: boolean, storage?: string, file?: Buffer) : Promise<{ response: http.ClientResponse; body: AsposeResponse; }> {
+ public async putPdfInRequestToHtml (outPath: string, additionalMarginWidthInPoints?: number, compressSvgGraphicsIfAny?: boolean, convertMarkedContentToLayers?: boolean, defaultFontName?: string, documentType?: string, fixedLayout?: boolean, imageResolution?: number, minimalLineWidth?: number, preventGlyphsGrouping?: boolean, splitCssIntoPages?: boolean, splitIntoPages?: boolean, useZOrder?: boolean, antialiasingProcessing?: string, cssClassNamesPrefix?: string, explicitListOfSavedPages?: Array, fontEncodingStrategy?: string, fontSavingMode?: string, htmlMarkupGenerationMode?: string, lettersPositioningMethod?: string, pagesFlowTypeDependsOnViewersScreenSize?: boolean, partsEmbeddingMode?: string, rasterImagesSavingMode?: string, removeEmptyAreasOnTopAndBottom?: boolean, saveShadowedTextsAsTransparentTexts?: boolean, saveTransparentTexts?: boolean, specialFolderForAllImages?: string, specialFolderForSvgImages?: string, trySaveTextUnderliningAndStrikeoutingInCss?: boolean, storage?: string, file?: Buffer) : Promise<{ response: http.IncomingMessage; body: AsposeResponse; }> {
const localVarPath = this.basePath + '/pdf/convert/html';
let localVarQueryParameters: any = {};
let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders);
@@ -9551,7 +11481,7 @@ export class PdfApi {
* @param storage The document storage.
* @param file A file to be converted.
*/
- public async putPdfInRequestToLaTeX (outPath: string, pagesCount?: number, storage?: string, file?: Buffer) : Promise<{ response: http.ClientResponse; body: AsposeResponse; }> {
+ public async putPdfInRequestToLaTeX (outPath: string, pagesCount?: number, storage?: string, file?: Buffer) : Promise<{ response: http.IncomingMessage; body: AsposeResponse; }> {
const localVarPath = this.basePath + '/pdf/convert/latex';
let localVarQueryParameters: any = {};
let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders);
@@ -9613,7 +11543,7 @@ export class PdfApi {
* @param storage The document storage.
* @param file A file to be converted.
*/
- public async putPdfInRequestToMobiXml (outPath: string, storage?: string, file?: Buffer) : Promise<{ response: http.ClientResponse; body: AsposeResponse; }> {
+ public async putPdfInRequestToMobiXml (outPath: string, storage?: string, file?: Buffer) : Promise<{ response: http.IncomingMessage; body: AsposeResponse; }> {
const localVarPath = this.basePath + '/pdf/convert/mobixml';
let localVarQueryParameters: any = {};
let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders);
@@ -9672,7 +11602,7 @@ export class PdfApi {
* @param storage The document storage.
* @param file A file to be converted.
*/
- public async putPdfInRequestToPdfA (outPath: string, type: string, storage?: string, file?: Buffer) : Promise<{ response: http.ClientResponse; body: AsposeResponse; }> {
+ public async putPdfInRequestToPdfA (outPath: string, type: string, storage?: string, file?: Buffer) : Promise<{ response: http.IncomingMessage; body: AsposeResponse; }> {
const localVarPath = this.basePath + '/pdf/convert/pdfa';
let localVarQueryParameters: any = {};
let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders);
@@ -9741,7 +11671,7 @@ export class PdfApi {
* @param storage The document storage.
* @param file A file to be converted.
*/
- public async putPdfInRequestToPptx (outPath: string, separateImages?: boolean, slidesAsImages?: boolean, storage?: string, file?: Buffer) : Promise<{ response: http.ClientResponse; body: AsposeResponse; }> {
+ public async putPdfInRequestToPptx (outPath: string, separateImages?: boolean, slidesAsImages?: boolean, storage?: string, file?: Buffer) : Promise<{ response: http.IncomingMessage; body: AsposeResponse; }> {
const localVarPath = this.basePath + '/pdf/convert/pptx';
let localVarQueryParameters: any = {};
let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders);
@@ -9807,7 +11737,7 @@ export class PdfApi {
* @param storage The document storage.
* @param file A file to be converted.
*/
- public async putPdfInRequestToSvg (outPath: string, storage?: string, file?: Buffer) : Promise<{ response: http.ClientResponse; body: AsposeResponse; }> {
+ public async putPdfInRequestToSvg (outPath: string, storage?: string, file?: Buffer) : Promise<{ response: http.IncomingMessage; body: AsposeResponse; }> {
const localVarPath = this.basePath + '/pdf/convert/svg';
let localVarQueryParameters: any = {};
let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders);
@@ -9880,7 +11810,7 @@ export class PdfApi {
* @param storage The document storage.
* @param file A file to be converted.
*/
- public async putPdfInRequestToTiff (outPath: string, brightness?: number, compression?: string, colorDepth?: string, leftMargin?: number, rightMargin?: number, topMargin?: number, bottomMargin?: number, orientation?: string, skipBlankPages?: boolean, width?: number, height?: number, xResolution?: number, yResolution?: number, pageIndex?: number, pageCount?: number, storage?: string, file?: Buffer) : Promise<{ response: http.ClientResponse; body: AsposeResponse; }> {
+ public async putPdfInRequestToTiff (outPath: string, brightness?: number, compression?: string, colorDepth?: string, leftMargin?: number, rightMargin?: number, topMargin?: number, bottomMargin?: number, orientation?: string, skipBlankPages?: boolean, width?: number, height?: number, xResolution?: number, yResolution?: number, pageIndex?: number, pageCount?: number, storage?: string, file?: Buffer) : Promise<{ response: http.IncomingMessage; body: AsposeResponse; }> {
const localVarPath = this.basePath + '/pdf/convert/tiff';
let localVarQueryParameters: any = {};
let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders);
@@ -10002,7 +11932,7 @@ export class PdfApi {
* @param storage The document storage.
* @param file A file to be converted.
*/
- public async putPdfInRequestToXls (outPath: string, insertBlankColumnAtFirst?: boolean, minimizeTheNumberOfWorksheets?: boolean, scaleFactor?: number, uniformWorksheets?: boolean, storage?: string, file?: Buffer) : Promise<{ response: http.ClientResponse; body: AsposeResponse; }> {
+ public async putPdfInRequestToXls (outPath: string, insertBlankColumnAtFirst?: boolean, minimizeTheNumberOfWorksheets?: boolean, scaleFactor?: number, uniformWorksheets?: boolean, storage?: string, file?: Buffer) : Promise<{ response: http.IncomingMessage; body: AsposeResponse; }> {
const localVarPath = this.basePath + '/pdf/convert/xls';
let localVarQueryParameters: any = {};
let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders);
@@ -10076,7 +12006,7 @@ export class PdfApi {
* @param storage The document storage.
* @param file A file to be converted.
*/
- public async putPdfInRequestToXml (outPath: string, storage?: string, file?: Buffer) : Promise<{ response: http.ClientResponse; body: AsposeResponse; }> {
+ public async putPdfInRequestToXml (outPath: string, storage?: string, file?: Buffer) : Promise<{ response: http.IncomingMessage; body: AsposeResponse; }> {
const localVarPath = this.basePath + '/pdf/convert/xml';
let localVarQueryParameters: any = {};
let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders);
@@ -10134,7 +12064,7 @@ export class PdfApi {
* @param storage The document storage.
* @param file A file to be converted.
*/
- public async putPdfInRequestToXps (outPath: string, storage?: string, file?: Buffer) : Promise<{ response: http.ClientResponse; body: AsposeResponse; }> {
+ public async putPdfInRequestToXps (outPath: string, storage?: string, file?: Buffer) : Promise<{ response: http.IncomingMessage; body: AsposeResponse; }> {
const localVarPath = this.basePath + '/pdf/convert/xps';
let localVarQueryParameters: any = {};
let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders);
@@ -10201,7 +12131,7 @@ export class PdfApi {
* @param folder The document folder.
* @param storage The document storage.
*/
- public async putPdfInStorageToDoc (name: string, outPath: string, addReturnToLineEnd?: boolean, format?: string, imageResolutionX?: number, imageResolutionY?: number, maxDistanceBetweenTextLines?: number, mode?: string, recognizeBullets?: boolean, relativeHorizontalProximity?: number, folder?: string, storage?: string) : Promise<{ response: http.ClientResponse; body: AsposeResponse; }> {
+ public async putPdfInStorageToDoc (name: string, outPath: string, addReturnToLineEnd?: boolean, format?: string, imageResolutionX?: number, imageResolutionY?: number, maxDistanceBetweenTextLines?: number, mode?: string, recognizeBullets?: boolean, relativeHorizontalProximity?: number, folder?: string, storage?: string) : Promise<{ response: http.IncomingMessage; body: AsposeResponse; }> {
const localVarPath = this.basePath + '/pdf/{name}/convert/doc'
.replace('{' + 'name' + '}', encodeURIComponent(String(name)));
let localVarQueryParameters: any = {};
@@ -10296,7 +12226,7 @@ export class PdfApi {
* @param folder The document folder.
* @param storage The document storage.
*/
- public async putPdfInStorageToEpub (name: string, outPath: string, contentRecognitionMode?: string, folder?: string, storage?: string) : Promise<{ response: http.ClientResponse; body: AsposeResponse; }> {
+ public async putPdfInStorageToEpub (name: string, outPath: string, contentRecognitionMode?: string, folder?: string, storage?: string) : Promise<{ response: http.IncomingMessage; body: AsposeResponse; }> {
const localVarPath = this.basePath + '/pdf/{name}/convert/epub'
.replace('{' + 'name' + '}', encodeURIComponent(String(name)));
let localVarQueryParameters: any = {};
@@ -10390,7 +12320,7 @@ export class PdfApi {
* @param folder The document folder.
* @param storage The document storage.
*/
- public async putPdfInStorageToHtml (name: string, outPath: string, additionalMarginWidthInPoints?: number, compressSvgGraphicsIfAny?: boolean, convertMarkedContentToLayers?: boolean, defaultFontName?: string, documentType?: string, fixedLayout?: boolean, imageResolution?: number, minimalLineWidth?: number, preventGlyphsGrouping?: boolean, splitCssIntoPages?: boolean, splitIntoPages?: boolean, useZOrder?: boolean, antialiasingProcessing?: string, cssClassNamesPrefix?: string, explicitListOfSavedPages?: Array, fontEncodingStrategy?: string, fontSavingMode?: string, htmlMarkupGenerationMode?: string, lettersPositioningMethod?: string, pagesFlowTypeDependsOnViewersScreenSize?: boolean, partsEmbeddingMode?: string, rasterImagesSavingMode?: string, removeEmptyAreasOnTopAndBottom?: boolean, saveShadowedTextsAsTransparentTexts?: boolean, saveTransparentTexts?: boolean, specialFolderForAllImages?: string, specialFolderForSvgImages?: string, trySaveTextUnderliningAndStrikeoutingInCss?: boolean, folder?: string, storage?: string) : Promise<{ response: http.ClientResponse; body: AsposeResponse; }> {
+ public async putPdfInStorageToHtml (name: string, outPath: string, additionalMarginWidthInPoints?: number, compressSvgGraphicsIfAny?: boolean, convertMarkedContentToLayers?: boolean, defaultFontName?: string, documentType?: string, fixedLayout?: boolean, imageResolution?: number, minimalLineWidth?: number, preventGlyphsGrouping?: boolean, splitCssIntoPages?: boolean, splitIntoPages?: boolean, useZOrder?: boolean, antialiasingProcessing?: string, cssClassNamesPrefix?: string, explicitListOfSavedPages?: Array, fontEncodingStrategy?: string, fontSavingMode?: string, htmlMarkupGenerationMode?: string, lettersPositioningMethod?: string, pagesFlowTypeDependsOnViewersScreenSize?: boolean, partsEmbeddingMode?: string, rasterImagesSavingMode?: string, removeEmptyAreasOnTopAndBottom?: boolean, saveShadowedTextsAsTransparentTexts?: boolean, saveTransparentTexts?: boolean, specialFolderForAllImages?: string, specialFolderForSvgImages?: string, trySaveTextUnderliningAndStrikeoutingInCss?: boolean, folder?: string, storage?: string) : Promise<{ response: http.IncomingMessage; body: AsposeResponse; }> {
const localVarPath = this.basePath + '/pdf/{name}/convert/html'
.replace('{' + 'name' + '}', encodeURIComponent(String(name)));
let localVarQueryParameters: any = {};
@@ -10565,7 +12495,7 @@ export class PdfApi {
* @param folder The document folder.
* @param storage The document storage.
*/
- public async putPdfInStorageToLaTeX (name: string, outPath: string, pagesCount?: number, folder?: string, storage?: string) : Promise<{ response: http.ClientResponse; body: AsposeResponse; }> {
+ public async putPdfInStorageToLaTeX (name: string, outPath: string, pagesCount?: number, folder?: string, storage?: string) : Promise<{ response: http.IncomingMessage; body: AsposeResponse; }> {
const localVarPath = this.basePath + '/pdf/{name}/convert/latex'
.replace('{' + 'name' + '}', encodeURIComponent(String(name)));
let localVarQueryParameters: any = {};
@@ -10631,7 +12561,7 @@ export class PdfApi {
* @param folder The document folder.
* @param storage The document storage.
*/
- public async putPdfInStorageToMobiXml (name: string, outPath: string, folder?: string, storage?: string) : Promise<{ response: http.ClientResponse; body: AsposeResponse; }> {
+ public async putPdfInStorageToMobiXml (name: string, outPath: string, folder?: string, storage?: string) : Promise<{ response: http.IncomingMessage; body: AsposeResponse; }> {
const localVarPath = this.basePath + '/pdf/{name}/convert/mobixml'
.replace('{' + 'name' + '}', encodeURIComponent(String(name)));
let localVarQueryParameters: any = {};
@@ -10694,7 +12624,7 @@ export class PdfApi {
* @param folder The document folder.
* @param storage The document storage.
*/
- public async putPdfInStorageToPdfA (name: string, outPath: string, type: string, folder?: string, storage?: string) : Promise<{ response: http.ClientResponse; body: AsposeResponse; }> {
+ public async putPdfInStorageToPdfA (name: string, outPath: string, type: string, folder?: string, storage?: string) : Promise<{ response: http.IncomingMessage; body: AsposeResponse; }> {
const localVarPath = this.basePath + '/pdf/{name}/convert/pdfa'
.replace('{' + 'name' + '}', encodeURIComponent(String(name)));
let localVarQueryParameters: any = {};
@@ -10767,7 +12697,7 @@ export class PdfApi {
* @param folder The document folder.
* @param storage The document storage.
*/
- public async putPdfInStorageToPptx (name: string, outPath: string, separateImages?: boolean, slidesAsImages?: boolean, folder?: string, storage?: string) : Promise<{ response: http.ClientResponse; body: AsposeResponse; }> {
+ public async putPdfInStorageToPptx (name: string, outPath: string, separateImages?: boolean, slidesAsImages?: boolean, folder?: string, storage?: string) : Promise<{ response: http.IncomingMessage; body: AsposeResponse; }> {
const localVarPath = this.basePath + '/pdf/{name}/convert/pptx'
.replace('{' + 'name' + '}', encodeURIComponent(String(name)));
let localVarQueryParameters: any = {};
@@ -10837,7 +12767,7 @@ export class PdfApi {
* @param folder The document folder.
* @param storage The document storage.
*/
- public async putPdfInStorageToSvg (name: string, outPath: string, folder?: string, storage?: string) : Promise<{ response: http.ClientResponse; body: AsposeResponse; }> {
+ public async putPdfInStorageToSvg (name: string, outPath: string, folder?: string, storage?: string) : Promise<{ response: http.IncomingMessage; body: AsposeResponse; }> {
const localVarPath = this.basePath + '/pdf/{name}/convert/svg'
.replace('{' + 'name' + '}', encodeURIComponent(String(name)));
let localVarQueryParameters: any = {};
@@ -10914,7 +12844,7 @@ export class PdfApi {
* @param folder The document folder.
* @param storage The document storage.
*/
- public async putPdfInStorageToTiff (name: string, outPath: string, brightness?: number, compression?: string, colorDepth?: string, leftMargin?: number, rightMargin?: number, topMargin?: number, bottomMargin?: number, orientation?: string, skipBlankPages?: boolean, width?: number, height?: number, xResolution?: number, yResolution?: number, pageIndex?: number, pageCount?: number, folder?: string, storage?: string) : Promise<{ response: http.ClientResponse; body: AsposeResponse; }> {
+ public async putPdfInStorageToTiff (name: string, outPath: string, brightness?: number, compression?: string, colorDepth?: string, leftMargin?: number, rightMargin?: number, topMargin?: number, bottomMargin?: number, orientation?: string, skipBlankPages?: boolean, width?: number, height?: number, xResolution?: number, yResolution?: number, pageIndex?: number, pageCount?: number, folder?: string, storage?: string) : Promise<{ response: http.IncomingMessage; body: AsposeResponse; }> {
const localVarPath = this.basePath + '/pdf/{name}/convert/tiff'
.replace('{' + 'name' + '}', encodeURIComponent(String(name)));
let localVarQueryParameters: any = {};
@@ -11040,7 +12970,7 @@ export class PdfApi {
* @param folder The document folder.
* @param storage The document storage.
*/
- public async putPdfInStorageToXls (name: string, outPath: string, insertBlankColumnAtFirst?: boolean, minimizeTheNumberOfWorksheets?: boolean, scaleFactor?: number, uniformWorksheets?: boolean, folder?: string, storage?: string) : Promise<{ response: http.ClientResponse; body: AsposeResponse; }> {
+ public async putPdfInStorageToXls (name: string, outPath: string, insertBlankColumnAtFirst?: boolean, minimizeTheNumberOfWorksheets?: boolean, scaleFactor?: number, uniformWorksheets?: boolean, folder?: string, storage?: string) : Promise<{ response: http.IncomingMessage; body: AsposeResponse; }> {
const localVarPath = this.basePath + '/pdf/{name}/convert/xls'
.replace('{' + 'name' + '}', encodeURIComponent(String(name)));
let localVarQueryParameters: any = {};
@@ -11118,7 +13048,7 @@ export class PdfApi {
* @param folder The document folder.
* @param storage The document storage.
*/
- public async putPdfInStorageToXml (name: string, outPath: string, folder?: string, storage?: string) : Promise<{ response: http.ClientResponse; body: AsposeResponse; }> {
+ public async putPdfInStorageToXml (name: string, outPath: string, folder?: string, storage?: string) : Promise<{ response: http.IncomingMessage; body: AsposeResponse; }> {
const localVarPath = this.basePath + '/pdf/{name}/convert/xml'
.replace('{' + 'name' + '}', encodeURIComponent(String(name)));
let localVarQueryParameters: any = {};
@@ -11180,7 +13110,7 @@ export class PdfApi {
* @param folder The document folder.
* @param storage The document storage.
*/
- public async putPdfInStorageToXps (name: string, outPath: string, folder?: string, storage?: string) : Promise<{ response: http.ClientResponse; body: AsposeResponse; }> {
+ public async putPdfInStorageToXps (name: string, outPath: string, folder?: string, storage?: string) : Promise<{ response: http.IncomingMessage; body: AsposeResponse; }> {
const localVarPath = this.basePath + '/pdf/{name}/convert/xps'
.replace('{' + 'name' + '}', encodeURIComponent(String(name)));
let localVarQueryParameters: any = {};
@@ -11243,7 +13173,7 @@ export class PdfApi {
* @param storage The document storage.
* @param folder The document folder.
*/
- public async putPolyLineAnnotation (name: string, annotationId: string, annotation: PolyLineAnnotation, storage?: string, folder?: string) : Promise<{ response: http.ClientResponse; body: PolyLineAnnotationResponse; }> {
+ public async putPolyLineAnnotation (name: string, annotationId: string, annotation: PolyLineAnnotation, storage?: string, folder?: string) : Promise<{ response: http.IncomingMessage; body: PolyLineAnnotationResponse; }> {
const localVarPath = this.basePath + '/pdf/{name}/annotations/polyline/{annotationId}'
.replace('{' + 'name' + '}', encodeURIComponent(String(name)))
.replace('{' + 'annotationId' + '}', encodeURIComponent(String(annotationId)));
@@ -11309,7 +13239,7 @@ export class PdfApi {
* @param storage The document storage.
* @param folder The document folder.
*/
- public async putPolygonAnnotation (name: string, annotationId: string, annotation: PolygonAnnotation, storage?: string, folder?: string) : Promise<{ response: http.ClientResponse; body: PolygonAnnotationResponse; }> {
+ public async putPolygonAnnotation (name: string, annotationId: string, annotation: PolygonAnnotation, storage?: string, folder?: string) : Promise<{ response: http.IncomingMessage; body: PolygonAnnotationResponse; }> {
const localVarPath = this.basePath + '/pdf/{name}/annotations/polygon/{annotationId}'
.replace('{' + 'name' + '}', encodeURIComponent(String(name)))
.replace('{' + 'annotationId' + '}', encodeURIComponent(String(annotationId)));
@@ -11366,6 +13296,72 @@ export class PdfApi {
}
+ /**
+ *
+ * @summary Replace document popup annotation
+ * @param name The document name.
+ * @param annotationId The annotation ID.
+ * @param annotation Annotation.
+ * @param storage The document storage.
+ * @param folder The document folder.
+ */
+ public async putPopupAnnotation (name: string, annotationId: string, annotation: PopupAnnotation, storage?: string, folder?: string) : Promise<{ response: http.IncomingMessage; body: PopupAnnotationResponse; }> {
+ const localVarPath = this.basePath + '/pdf/{name}/annotations/popup/{annotationId}'
+ .replace('{' + 'name' + '}', encodeURIComponent(String(name)))
+ .replace('{' + 'annotationId' + '}', encodeURIComponent(String(annotationId)));
+ let localVarQueryParameters: any = {};
+ let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders);
+ let localVarFormParams: any = {};
+
+ // verify required parameter 'name' is not null or undefined
+ if (name === null || name === undefined) {
+ throw new Error('Required parameter name was null or undefined when calling putPopupAnnotation.');
+ }
+
+ // verify required parameter 'annotationId' is not null or undefined
+ if (annotationId === null || annotationId === undefined) {
+ throw new Error('Required parameter annotationId was null or undefined when calling putPopupAnnotation.');
+ }
+
+ // verify required parameter 'annotation' is not null or undefined
+ if (annotation === null || annotation === undefined) {
+ throw new Error('Required parameter annotation was null or undefined when calling putPopupAnnotation.');
+ }
+
+ if (storage !== undefined && null !== storage) {
+ localVarQueryParameters['storage'] = ObjectSerializer.serialize(storage, "string");
+ }
+
+ if (folder !== undefined && null !== folder) {
+ localVarQueryParameters['folder'] = ObjectSerializer.serialize(folder, "string");
+ }
+
+
+ let localVarUseFormData = false;
+ let fileData = null;
+ let localVarRequestOptions: localVarRequest.Options = {
+ method: 'PUT',
+ qs: localVarQueryParameters,
+ headers: localVarHeaderParams,
+ uri: localVarPath,
+ useQuerystring: this._useQuerystring,
+ json: true,
+ body: ObjectSerializer.serialize(annotation, "PopupAnnotation")
+ };
+
+ if (Object.keys(localVarFormParams).length) {
+ if (localVarUseFormData) {
+ (localVarRequestOptions).formData = localVarFormParams;
+ } else {
+ localVarRequestOptions.form = localVarFormParams;
+ }
+ }
+ const response = await invokeApiMethod(localVarRequestOptions, this.configuration, false, fileData);
+ const result = ObjectSerializer.deserialize(response.body, "PopupAnnotationResponse");
+ return Promise.resolve({body: result, response});
+ }
+
+
/**
*
* @summary Update privilege document.
@@ -11374,7 +13370,7 @@ export class PdfApi {
* @param storage The document storage.
* @param folder The document folder.
*/
- public async putPrivileges (name: string, privileges?: DocumentPrivilege, storage?: string, folder?: string) : Promise<{ response: http.ClientResponse; body: AsposeResponse; }> {
+ public async putPrivileges (name: string, privileges?: DocumentPrivilege, storage?: string, folder?: string) : Promise<{ response: http.IncomingMessage; body: AsposeResponse; }> {
const localVarPath = this.basePath + '/pdf/{name}/privileges'
.replace('{' + 'name' + '}', encodeURIComponent(String(name)));
let localVarQueryParameters: any = {};
@@ -11428,7 +13424,7 @@ export class PdfApi {
* @param dstFolder The destination document folder.
* @param storage The document storage.
*/
- public async putPsInStorageToPdf (name: string, srcPath: string, dstFolder?: string, storage?: string) : Promise<{ response: http.ClientResponse; body: AsposeResponse; }> {
+ public async putPsInStorageToPdf (name: string, srcPath: string, dstFolder?: string, storage?: string) : Promise<{ response: http.IncomingMessage; body: AsposeResponse; }> {
const localVarPath = this.basePath + '/pdf/{name}/create/ps'
.replace('{' + 'name' + '}', encodeURIComponent(String(name)));
let localVarQueryParameters: any = {};
@@ -11492,7 +13488,7 @@ export class PdfApi {
* @param folder The document folder.
* @param image Image file.
*/
- public async putReplaceImage (name: string, imageId: string, imageFilePath?: string, storage?: string, folder?: string, image?: Buffer) : Promise<{ response: http.ClientResponse; body: ImageResponse; }> {
+ public async putReplaceImage (name: string, imageId: string, imageFilePath?: string, storage?: string, folder?: string, image?: Buffer) : Promise<{ response: http.IncomingMessage; body: ImageResponse; }> {
const localVarPath = this.basePath + '/pdf/{name}/images/{imageId}'
.replace('{' + 'name' + '}', encodeURIComponent(String(name)))
.replace('{' + 'imageId' + '}', encodeURIComponent(String(imageId)));
@@ -11562,7 +13558,7 @@ export class PdfApi {
* @param folder The document folder.
* @param lang language for OCR engine. Possible values: eng, ara, bel, ben, bul, ces, dan, deu, ell, fin, fra, heb, hin, ind, isl, ita, jpn, kor, nld, nor, pol, por, ron, rus, spa, swe, tha, tur, ukr, vie, chi_sim, chi_tra or thier combination e.g. eng,rus
*/
- public async putSearchableDocument (name: string, storage?: string, folder?: string, lang?: string) : Promise<{ response: http.ClientResponse; body: AsposeResponse; }> {
+ public async putSearchableDocument (name: string, storage?: string, folder?: string, lang?: string) : Promise<{ response: http.IncomingMessage; body: AsposeResponse; }> {
const localVarPath = this.basePath + '/pdf/{name}/ocr'
.replace('{' + 'name' + '}', encodeURIComponent(String(name)));
let localVarQueryParameters: any = {};
@@ -11620,7 +13616,7 @@ export class PdfApi {
* @param storage
* @param folder
*/
- public async putSetProperty (name: string, propertyName: string, value: string, storage?: string, folder?: string) : Promise<{ response: http.ClientResponse; body: DocumentPropertyResponse; }> {
+ public async putSetProperty (name: string, propertyName: string, value: string, storage?: string, folder?: string) : Promise<{ response: http.IncomingMessage; body: DocumentPropertyResponse; }> {
const localVarPath = this.basePath + '/pdf/{name}/documentproperties/{propertyName}'
.replace('{' + 'name' + '}', encodeURIComponent(String(name)))
.replace('{' + 'propertyName' + '}', encodeURIComponent(String(propertyName)));
@@ -11689,7 +13685,7 @@ export class PdfApi {
* @param storage The document storage.
* @param folder The document folder.
*/
- public async putSquareAnnotation (name: string, annotationId: string, annotation: SquareAnnotation, storage?: string, folder?: string) : Promise<{ response: http.ClientResponse; body: SquareAnnotationResponse; }> {
+ public async putSquareAnnotation (name: string, annotationId: string, annotation: SquareAnnotation, storage?: string, folder?: string) : Promise<{ response: http.IncomingMessage; body: SquareAnnotationResponse; }> {
const localVarPath = this.basePath + '/pdf/{name}/annotations/square/{annotationId}'
.replace('{' + 'name' + '}', encodeURIComponent(String(name)))
.replace('{' + 'annotationId' + '}', encodeURIComponent(String(annotationId)));
@@ -11746,6 +13742,138 @@ export class PdfApi {
}
+ /**
+ *
+ * @summary Replace document squiggly annotation
+ * @param name The document name.
+ * @param annotationId The annotation ID.
+ * @param annotation Annotation.
+ * @param storage The document storage.
+ * @param folder The document folder.
+ */
+ public async putSquigglyAnnotation (name: string, annotationId: string, annotation: SquigglyAnnotation, storage?: string, folder?: string) : Promise<{ response: http.IncomingMessage; body: SquigglyAnnotationResponse; }> {
+ const localVarPath = this.basePath + '/pdf/{name}/annotations/squiggly/{annotationId}'
+ .replace('{' + 'name' + '}', encodeURIComponent(String(name)))
+ .replace('{' + 'annotationId' + '}', encodeURIComponent(String(annotationId)));
+ let localVarQueryParameters: any = {};
+ let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders);
+ let localVarFormParams: any = {};
+
+ // verify required parameter 'name' is not null or undefined
+ if (name === null || name === undefined) {
+ throw new Error('Required parameter name was null or undefined when calling putSquigglyAnnotation.');
+ }
+
+ // verify required parameter 'annotationId' is not null or undefined
+ if (annotationId === null || annotationId === undefined) {
+ throw new Error('Required parameter annotationId was null or undefined when calling putSquigglyAnnotation.');
+ }
+
+ // verify required parameter 'annotation' is not null or undefined
+ if (annotation === null || annotation === undefined) {
+ throw new Error('Required parameter annotation was null or undefined when calling putSquigglyAnnotation.');
+ }
+
+ if (storage !== undefined && null !== storage) {
+ localVarQueryParameters['storage'] = ObjectSerializer.serialize(storage, "string");
+ }
+
+ if (folder !== undefined && null !== folder) {
+ localVarQueryParameters['folder'] = ObjectSerializer.serialize(folder, "string");
+ }
+
+
+ let localVarUseFormData = false;
+ let fileData = null;
+ let localVarRequestOptions: localVarRequest.Options = {
+ method: 'PUT',
+ qs: localVarQueryParameters,
+ headers: localVarHeaderParams,
+ uri: localVarPath,
+ useQuerystring: this._useQuerystring,
+ json: true,
+ body: ObjectSerializer.serialize(annotation, "SquigglyAnnotation")
+ };
+
+ if (Object.keys(localVarFormParams).length) {
+ if (localVarUseFormData) {
+ (localVarRequestOptions).formData = localVarFormParams;
+ } else {
+ localVarRequestOptions.form = localVarFormParams;
+ }
+ }
+ const response = await invokeApiMethod(localVarRequestOptions, this.configuration, false, fileData);
+ const result = ObjectSerializer.deserialize(response.body, "SquigglyAnnotationResponse");
+ return Promise.resolve({body: result, response});
+ }
+
+
+ /**
+ *
+ * @summary Replace document StrikeOut annotation
+ * @param name The document name.
+ * @param annotationId The annotation ID.
+ * @param annotation Annotation.
+ * @param storage The document storage.
+ * @param folder The document folder.
+ */
+ public async putStrikeOutAnnotation (name: string, annotationId: string, annotation: StrikeOutAnnotation, storage?: string, folder?: string) : Promise<{ response: http.IncomingMessage; body: StrikeOutAnnotationResponse; }> {
+ const localVarPath = this.basePath + '/pdf/{name}/annotations/strikeout/{annotationId}'
+ .replace('{' + 'name' + '}', encodeURIComponent(String(name)))
+ .replace('{' + 'annotationId' + '}', encodeURIComponent(String(annotationId)));
+ let localVarQueryParameters: any = {};
+ let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders);
+ let localVarFormParams: any = {};
+
+ // verify required parameter 'name' is not null or undefined
+ if (name === null || name === undefined) {
+ throw new Error('Required parameter name was null or undefined when calling putStrikeOutAnnotation.');
+ }
+
+ // verify required parameter 'annotationId' is not null or undefined
+ if (annotationId === null || annotationId === undefined) {
+ throw new Error('Required parameter annotationId was null or undefined when calling putStrikeOutAnnotation.');
+ }
+
+ // verify required parameter 'annotation' is not null or undefined
+ if (annotation === null || annotation === undefined) {
+ throw new Error('Required parameter annotation was null or undefined when calling putStrikeOutAnnotation.');
+ }
+
+ if (storage !== undefined && null !== storage) {
+ localVarQueryParameters['storage'] = ObjectSerializer.serialize(storage, "string");
+ }
+
+ if (folder !== undefined && null !== folder) {
+ localVarQueryParameters['folder'] = ObjectSerializer.serialize(folder, "string");
+ }
+
+
+ let localVarUseFormData = false;
+ let fileData = null;
+ let localVarRequestOptions: localVarRequest.Options = {
+ method: 'PUT',
+ qs: localVarQueryParameters,
+ headers: localVarHeaderParams,
+ uri: localVarPath,
+ useQuerystring: this._useQuerystring,
+ json: true,
+ body: ObjectSerializer.serialize(annotation, "StrikeOutAnnotation")
+ };
+
+ if (Object.keys(localVarFormParams).length) {
+ if (localVarUseFormData) {
+ (localVarRequestOptions).formData = localVarFormParams;
+ } else {
+ localVarRequestOptions.form = localVarFormParams;
+ }
+ }
+ const response = await invokeApiMethod(localVarRequestOptions, this.configuration, false, fileData);
+ const result = ObjectSerializer.deserialize(response.body, "StrikeOutAnnotationResponse");
+ return Promise.resolve({body: result, response});
+ }
+
+
/**
*
* @summary Convert SVG file (located on storage) to PDF format and upload resulting file to storage.
@@ -11762,7 +13890,7 @@ export class PdfApi {
* @param dstFolder The destination document folder.
* @param storage The document storage.
*/
- public async putSvgInStorageToPdf (name: string, srcPath: string, adjustPageSize?: boolean, height?: number, width?: number, isLandscape?: boolean, marginLeft?: number, marginBottom?: number, marginRight?: number, marginTop?: number, dstFolder?: string, storage?: string) : Promise<{ response: http.ClientResponse; body: AsposeResponse; }> {
+ public async putSvgInStorageToPdf (name: string, srcPath: string, adjustPageSize?: boolean, height?: number, width?: number, isLandscape?: boolean, marginLeft?: number, marginBottom?: number, marginRight?: number, marginTop?: number, dstFolder?: string, storage?: string) : Promise<{ response: http.IncomingMessage; body: AsposeResponse; }> {
const localVarPath = this.basePath + '/pdf/{name}/create/svg'
.replace('{' + 'name' + '}', encodeURIComponent(String(name)));
let localVarQueryParameters: any = {};
@@ -11857,7 +13985,7 @@ export class PdfApi {
* @param storage The document storage.
* @param folder The document folder.
*/
- public async putTextAnnotation (name: string, annotationId: string, annotation: TextAnnotation, storage?: string, folder?: string) : Promise<{ response: http.ClientResponse; body: TextAnnotationResponse; }> {
+ public async putTextAnnotation (name: string, annotationId: string, annotation: TextAnnotation, storage?: string, folder?: string) : Promise<{ response: http.IncomingMessage; body: TextAnnotationResponse; }> {
const localVarPath = this.basePath + '/pdf/{name}/annotations/text/{annotationId}'
.replace('{' + 'name' + '}', encodeURIComponent(String(name)))
.replace('{' + 'annotationId' + '}', encodeURIComponent(String(annotationId)));
@@ -11914,6 +14042,72 @@ export class PdfApi {
}
+ /**
+ *
+ * @summary Replace document underline annotation
+ * @param name The document name.
+ * @param annotationId The annotation ID.
+ * @param annotation Annotation.
+ * @param storage The document storage.
+ * @param folder The document folder.
+ */
+ public async putUnderlineAnnotation (name: string, annotationId: string, annotation: UnderlineAnnotation, storage?: string, folder?: string) : Promise<{ response: http.IncomingMessage; body: UnderlineAnnotationResponse; }> {
+ const localVarPath = this.basePath + '/pdf/{name}/annotations/underline/{annotationId}'
+ .replace('{' + 'name' + '}', encodeURIComponent(String(name)))
+ .replace('{' + 'annotationId' + '}', encodeURIComponent(String(annotationId)));
+ let localVarQueryParameters: any = {};
+ let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders);
+ let localVarFormParams: any = {};
+
+ // verify required parameter 'name' is not null or undefined
+ if (name === null || name === undefined) {
+ throw new Error('Required parameter name was null or undefined when calling putUnderlineAnnotation.');
+ }
+
+ // verify required parameter 'annotationId' is not null or undefined
+ if (annotationId === null || annotationId === undefined) {
+ throw new Error('Required parameter annotationId was null or undefined when calling putUnderlineAnnotation.');
+ }
+
+ // verify required parameter 'annotation' is not null or undefined
+ if (annotation === null || annotation === undefined) {
+ throw new Error('Required parameter annotation was null or undefined when calling putUnderlineAnnotation.');
+ }
+
+ if (storage !== undefined && null !== storage) {
+ localVarQueryParameters['storage'] = ObjectSerializer.serialize(storage, "string");
+ }
+
+ if (folder !== undefined && null !== folder) {
+ localVarQueryParameters['folder'] = ObjectSerializer.serialize(folder, "string");
+ }
+
+
+ let localVarUseFormData = false;
+ let fileData = null;
+ let localVarRequestOptions: localVarRequest.Options = {
+ method: 'PUT',
+ qs: localVarQueryParameters,
+ headers: localVarHeaderParams,
+ uri: localVarPath,
+ useQuerystring: this._useQuerystring,
+ json: true,
+ body: ObjectSerializer.serialize(annotation, "UnderlineAnnotation")
+ };
+
+ if (Object.keys(localVarFormParams).length) {
+ if (localVarUseFormData) {
+ (localVarRequestOptions).formData = localVarFormParams;
+ } else {
+ localVarRequestOptions.form = localVarFormParams;
+ }
+ }
+ const response = await invokeApiMethod(localVarRequestOptions, this.configuration, false, fileData);
+ const result = ObjectSerializer.deserialize(response.body, "UnderlineAnnotationResponse");
+ return Promise.resolve({body: result, response});
+ }
+
+
/**
*
* @summary Update field.
@@ -11923,7 +14117,7 @@ export class PdfApi {
* @param storage The document storage.
* @param folder The document folder.
*/
- public async putUpdateField (name: string, fieldName: string, field?: Field, storage?: string, folder?: string) : Promise<{ response: http.ClientResponse; body: FieldResponse; }> {
+ public async putUpdateField (name: string, fieldName: string, field?: Field, storage?: string, folder?: string) : Promise<{ response: http.IncomingMessage; body: FieldResponse; }> {
const localVarPath = this.basePath + '/pdf/{name}/fields/{fieldName}'
.replace('{' + 'name' + '}', encodeURIComponent(String(name)))
.replace('{' + 'fieldName' + '}', encodeURIComponent(String(fieldName)));
@@ -11983,7 +14177,7 @@ export class PdfApi {
* @param storage The document storage.
* @param folder The document folder.
*/
- public async putUpdateFields (name: string, fields?: Fields, storage?: string, folder?: string) : Promise<{ response: http.ClientResponse; body: FieldsResponse; }> {
+ public async putUpdateFields (name: string, fields?: Fields, storage?: string, folder?: string) : Promise<{ response: http.IncomingMessage; body: FieldsResponse; }> {
const localVarPath = this.basePath + '/pdf/{name}/fields'
.replace('{' + 'name' + '}', encodeURIComponent(String(name)));
let localVarQueryParameters: any = {};
@@ -12044,7 +14238,7 @@ export class PdfApi {
* @param dstFolder The destination document folder.
* @param storage The document storage.
*/
- public async putWebInStorageToPdf (name: string, url: string, height?: number, width?: number, isLandscape?: boolean, marginLeft?: number, marginBottom?: number, marginRight?: number, marginTop?: number, dstFolder?: string, storage?: string) : Promise<{ response: http.ClientResponse; body: AsposeResponse; }> {
+ public async putWebInStorageToPdf (name: string, url: string, height?: number, width?: number, isLandscape?: boolean, marginLeft?: number, marginBottom?: number, marginRight?: number, marginTop?: number, dstFolder?: string, storage?: string) : Promise<{ response: http.IncomingMessage; body: AsposeResponse; }> {
const localVarPath = this.basePath + '/pdf/{name}/create/web'
.replace('{' + 'name' + '}', encodeURIComponent(String(name)));
let localVarQueryParameters: any = {};
@@ -12133,7 +14327,7 @@ export class PdfApi {
* @param storage The document storage.
* @param file A file to be converted.
*/
- public async putXfaPdfInRequestToAcroForm (outPath: string, storage?: string, file?: Buffer) : Promise<{ response: http.ClientResponse; body: AsposeResponse; }> {
+ public async putXfaPdfInRequestToAcroForm (outPath: string, storage?: string, file?: Buffer) : Promise<{ response: http.IncomingMessage; body: AsposeResponse; }> {
const localVarPath = this.basePath + '/pdf/convert/xfatoacroform';
let localVarQueryParameters: any = {};
let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders);
@@ -12192,7 +14386,7 @@ export class PdfApi {
* @param folder The document folder.
* @param storage The document storage.
*/
- public async putXfaPdfInStorageToAcroForm (name: string, outPath: string, folder?: string, storage?: string) : Promise<{ response: http.ClientResponse; body: AsposeResponse; }> {
+ public async putXfaPdfInStorageToAcroForm (name: string, outPath: string, folder?: string, storage?: string) : Promise<{ response: http.IncomingMessage; body: AsposeResponse; }> {
const localVarPath = this.basePath + '/pdf/{name}/convert/xfatoacroform'
.replace('{' + 'name' + '}', encodeURIComponent(String(name)));
let localVarQueryParameters: any = {};
@@ -12255,7 +14449,7 @@ export class PdfApi {
* @param dstFolder The destination document folder.
* @param storage The document storage.
*/
- public async putXmlInStorageToPdf (name: string, srcPath: string, xslFilePath?: string, dstFolder?: string, storage?: string) : Promise<{ response: http.ClientResponse; body: AsposeResponse; }> {
+ public async putXmlInStorageToPdf (name: string, srcPath: string, xslFilePath?: string, dstFolder?: string, storage?: string) : Promise<{ response: http.IncomingMessage; body: AsposeResponse; }> {
const localVarPath = this.basePath + '/pdf/{name}/create/xml'
.replace('{' + 'name' + '}', encodeURIComponent(String(name)));
let localVarQueryParameters: any = {};
@@ -12321,7 +14515,7 @@ export class PdfApi {
* @param dstFolder The destination document folder.
* @param storage The document storage.
*/
- public async putXpsInStorageToPdf (name: string, srcPath: string, dstFolder?: string, storage?: string) : Promise<{ response: http.ClientResponse; body: AsposeResponse; }> {
+ public async putXpsInStorageToPdf (name: string, srcPath: string, dstFolder?: string, storage?: string) : Promise<{ response: http.IncomingMessage; body: AsposeResponse; }> {
const localVarPath = this.basePath + '/pdf/{name}/create/xps'
.replace('{' + 'name' + '}', encodeURIComponent(String(name)));
let localVarQueryParameters: any = {};
@@ -12383,7 +14577,7 @@ export class PdfApi {
* @param dstFolder The destination document folder.
* @param storage The document storage.
*/
- public async putXslFoInStorageToPdf (name: string, srcPath: string, dstFolder?: string, storage?: string) : Promise<{ response: http.ClientResponse; body: AsposeResponse; }> {
+ public async putXslFoInStorageToPdf (name: string, srcPath: string, dstFolder?: string, storage?: string) : Promise<{ response: http.IncomingMessage; body: AsposeResponse; }> {
const localVarPath = this.basePath + '/pdf/{name}/create/xslfo'
.replace('{' + 'name' + '}', encodeURIComponent(String(name)));
let localVarQueryParameters: any = {};
diff --git a/src/models/annotation.ts b/src/models/annotation.ts
index 76d02af7..ee072c90 100644
--- a/src/models/annotation.ts
+++ b/src/models/annotation.ts
@@ -34,18 +34,6 @@ export class Annotation extends LinkElement {
*/
'contents': string;
/**
- * The date and time when the annotation was created.
- */
- 'creationDate': string;
- /**
- * Get the annotation subject.
- */
- 'subject': string;
- /**
- * Get the annotation title.
- */
- 'title': string;
- /**
* The date and time when the annotation was last modified.
*/
'modified': string;
@@ -90,21 +78,6 @@ export class Annotation extends LinkElement {
"baseName": "Contents",
"type": "string"
},
- {
- "name": "creationDate",
- "baseName": "CreationDate",
- "type": "string"
- },
- {
- "name": "subject",
- "baseName": "Subject",
- "type": "string"
- },
- {
- "name": "title",
- "baseName": "Title",
- "type": "string"
- },
{
"name": "modified",
"baseName": "Modified",
diff --git a/src/models/capStyle.ts b/src/models/capStyle.ts
new file mode 100644
index 00000000..0e29fbdf
--- /dev/null
+++ b/src/models/capStyle.ts
@@ -0,0 +1,25 @@
+ /**
+ *
+ * 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.
+ *
+ */
+
+export enum CapStyle {
+ Rectangular = 'Rectangular',
+ Rounded = 'Rounded',
+}
diff --git a/src/models/caretAnnotation.ts b/src/models/caretAnnotation.ts
new file mode 100644
index 00000000..92ed7fe9
--- /dev/null
+++ b/src/models/caretAnnotation.ts
@@ -0,0 +1,68 @@
+ /**
+ *
+ * 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.
+ *
+ */
+
+import { CaretSymbol } from "./caretSymbol";
+import { RectanglePdf } from "./rectanglePdf";
+import { Color } from "./color";
+import { MarkupAnnotation } from "./markupAnnotation";
+
+/**
+* Provides CaretAnnotation.
+*/
+export class CaretAnnotation extends MarkupAnnotation {
+ /**
+ * Color of the annotation.
+ */
+ 'color': Color;
+ /**
+ * Gets or sets caret rectangle.
+ */
+ 'frame': RectanglePdf;
+ /**
+ * Gets or sets symbol associated with caret.
+ */
+ 'symbol': CaretSymbol;
+
+ static discriminator = undefined;
+
+ static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
+ {
+ "name": "color",
+ "baseName": "Color",
+ "type": "Color"
+ },
+ {
+ "name": "frame",
+ "baseName": "Frame",
+ "type": "RectanglePdf"
+ },
+ {
+ "name": "symbol",
+ "baseName": "Symbol",
+ "type": "CaretSymbol"
+ } ];
+
+ static getAttributeTypeMap() {
+ return super.getAttributeTypeMap().concat(CaretAnnotation.attributeTypeMap);
+ }
+}
+
+
diff --git a/src/models/caretAnnotationResponse.ts b/src/models/caretAnnotationResponse.ts
new file mode 100644
index 00000000..4503cd7f
--- /dev/null
+++ b/src/models/caretAnnotationResponse.ts
@@ -0,0 +1,42 @@
+ /**
+ *
+ * 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.
+ *
+ */
+
+import { CaretAnnotation } from "./caretAnnotation";
+import { AsposeResponse } from "./asposeResponse";
+
+export class CaretAnnotationResponse extends AsposeResponse {
+ 'annotation': CaretAnnotation;
+
+ static discriminator = undefined;
+
+ static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
+ {
+ "name": "annotation",
+ "baseName": "Annotation",
+ "type": "CaretAnnotation"
+ } ];
+
+ static getAttributeTypeMap() {
+ return super.getAttributeTypeMap().concat(CaretAnnotationResponse.attributeTypeMap);
+ }
+}
+
+
diff --git a/src/models/caretAnnotations.ts b/src/models/caretAnnotations.ts
new file mode 100644
index 00000000..bd6a25ab
--- /dev/null
+++ b/src/models/caretAnnotations.ts
@@ -0,0 +1,45 @@
+ /**
+ *
+ * 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.
+ *
+ */
+
+import { CaretAnnotation } from "./caretAnnotation";
+import { LinkElement } from "./linkElement";
+
+/**
+* List of annotations.
+*/
+export class CaretAnnotations extends LinkElement {
+ 'list': Array;
+
+ static discriminator = undefined;
+
+ static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
+ {
+ "name": "list",
+ "baseName": "List",
+ "type": "Array"
+ } ];
+
+ static getAttributeTypeMap() {
+ return super.getAttributeTypeMap().concat(CaretAnnotations.attributeTypeMap);
+ }
+}
+
+
diff --git a/src/models/caretAnnotationsResponse.ts b/src/models/caretAnnotationsResponse.ts
new file mode 100644
index 00000000..f58ac31f
--- /dev/null
+++ b/src/models/caretAnnotationsResponse.ts
@@ -0,0 +1,42 @@
+ /**
+ *
+ * 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.
+ *
+ */
+
+import { CaretAnnotations } from "./caretAnnotations";
+import { AsposeResponse } from "./asposeResponse";
+
+export class CaretAnnotationsResponse extends AsposeResponse {
+ 'annotations': CaretAnnotations;
+
+ static discriminator = undefined;
+
+ static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
+ {
+ "name": "annotations",
+ "baseName": "Annotations",
+ "type": "CaretAnnotations"
+ } ];
+
+ static getAttributeTypeMap() {
+ return super.getAttributeTypeMap().concat(CaretAnnotationsResponse.attributeTypeMap);
+ }
+}
+
+
diff --git a/src/models/caretSymbol.ts b/src/models/caretSymbol.ts
new file mode 100644
index 00000000..f813b888
--- /dev/null
+++ b/src/models/caretSymbol.ts
@@ -0,0 +1,25 @@
+ /**
+ *
+ * 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.
+ *
+ */
+
+export enum CaretSymbol {
+ None = 'None',
+ Paragraph = 'Paragraph',
+}
diff --git a/src/models/highlightAnnotation.ts b/src/models/highlightAnnotation.ts
new file mode 100644
index 00000000..e342f27f
--- /dev/null
+++ b/src/models/highlightAnnotation.ts
@@ -0,0 +1,58 @@
+ /**
+ *
+ * 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.
+ *
+ */
+
+import { Point } from "./point";
+import { Color } from "./color";
+import { MarkupAnnotation } from "./markupAnnotation";
+
+/**
+* Provides HighlightAnnotation.
+*/
+export class HighlightAnnotation extends MarkupAnnotation {
+ /**
+ * Color of the annotation.
+ */
+ 'color': Color;
+ /**
+ * Gets or sets an array of points specifying the coordinates of n quadrilaterals. Each quadrilateral encompasses a word or group of contiguous words in the text underlying the annotation.
+ */
+ 'quadPoints': Array;
+
+ static discriminator = undefined;
+
+ static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
+ {
+ "name": "color",
+ "baseName": "Color",
+ "type": "Color"
+ },
+ {
+ "name": "quadPoints",
+ "baseName": "QuadPoints",
+ "type": "Array"
+ } ];
+
+ static getAttributeTypeMap() {
+ return super.getAttributeTypeMap().concat(HighlightAnnotation.attributeTypeMap);
+ }
+}
+
+
diff --git a/src/models/highlightAnnotationResponse.ts b/src/models/highlightAnnotationResponse.ts
new file mode 100644
index 00000000..f9431f50
--- /dev/null
+++ b/src/models/highlightAnnotationResponse.ts
@@ -0,0 +1,42 @@
+ /**
+ *
+ * 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.
+ *
+ */
+
+import { HighlightAnnotation } from "./highlightAnnotation";
+import { AsposeResponse } from "./asposeResponse";
+
+export class HighlightAnnotationResponse extends AsposeResponse {
+ 'annotation': HighlightAnnotation;
+
+ static discriminator = undefined;
+
+ static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
+ {
+ "name": "annotation",
+ "baseName": "Annotation",
+ "type": "HighlightAnnotation"
+ } ];
+
+ static getAttributeTypeMap() {
+ return super.getAttributeTypeMap().concat(HighlightAnnotationResponse.attributeTypeMap);
+ }
+}
+
+
diff --git a/src/models/highlightAnnotations.ts b/src/models/highlightAnnotations.ts
new file mode 100644
index 00000000..169ff106
--- /dev/null
+++ b/src/models/highlightAnnotations.ts
@@ -0,0 +1,45 @@
+ /**
+ *
+ * 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.
+ *
+ */
+
+import { HighlightAnnotation } from "./highlightAnnotation";
+import { LinkElement } from "./linkElement";
+
+/**
+* List of annotations.
+*/
+export class HighlightAnnotations extends LinkElement {
+ 'list': Array;
+
+ static discriminator = undefined;
+
+ static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
+ {
+ "name": "list",
+ "baseName": "List",
+ "type": "Array"
+ } ];
+
+ static getAttributeTypeMap() {
+ return super.getAttributeTypeMap().concat(HighlightAnnotations.attributeTypeMap);
+ }
+}
+
+
diff --git a/src/models/highlightAnnotationsResponse.ts b/src/models/highlightAnnotationsResponse.ts
new file mode 100644
index 00000000..1b6299f7
--- /dev/null
+++ b/src/models/highlightAnnotationsResponse.ts
@@ -0,0 +1,42 @@
+ /**
+ *
+ * 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.
+ *
+ */
+
+import { HighlightAnnotations } from "./highlightAnnotations";
+import { AsposeResponse } from "./asposeResponse";
+
+export class HighlightAnnotationsResponse extends AsposeResponse {
+ 'annotations': HighlightAnnotations;
+
+ static discriminator = undefined;
+
+ static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
+ {
+ "name": "annotations",
+ "baseName": "Annotations",
+ "type": "HighlightAnnotations"
+ } ];
+
+ static getAttributeTypeMap() {
+ return super.getAttributeTypeMap().concat(HighlightAnnotationsResponse.attributeTypeMap);
+ }
+}
+
+
diff --git a/src/models/inkAnnotation.ts b/src/models/inkAnnotation.ts
new file mode 100644
index 00000000..8b0584ff
--- /dev/null
+++ b/src/models/inkAnnotation.ts
@@ -0,0 +1,68 @@
+ /**
+ *
+ * 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.
+ *
+ */
+
+import { CapStyle } from "./capStyle";
+import { Point } from "./point";
+import { Color } from "./color";
+import { MarkupAnnotation } from "./markupAnnotation";
+
+/**
+* Provides InkAnnotation.
+*/
+export class InkAnnotation extends MarkupAnnotation {
+ /**
+ * Color of the annotation.
+ */
+ 'color': Color;
+ /**
+ * Gets or sets list of gestures that are independent lines which are represented by Point[] arrays.
+ */
+ 'inkList': Array>;
+ /**
+ * Style of ink annotation line endings.
+ */
+ 'capStyle': CapStyle;
+
+ static discriminator = undefined;
+
+ static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
+ {
+ "name": "color",
+ "baseName": "Color",
+ "type": "Color"
+ },
+ {
+ "name": "inkList",
+ "baseName": "InkList",
+ "type": "Array>"
+ },
+ {
+ "name": "capStyle",
+ "baseName": "CapStyle",
+ "type": "CapStyle"
+ } ];
+
+ static getAttributeTypeMap() {
+ return super.getAttributeTypeMap().concat(InkAnnotation.attributeTypeMap);
+ }
+}
+
+
diff --git a/src/models/inkAnnotationResponse.ts b/src/models/inkAnnotationResponse.ts
new file mode 100644
index 00000000..a82bf785
--- /dev/null
+++ b/src/models/inkAnnotationResponse.ts
@@ -0,0 +1,42 @@
+ /**
+ *
+ * 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.
+ *
+ */
+
+import { InkAnnotation } from "./inkAnnotation";
+import { AsposeResponse } from "./asposeResponse";
+
+export class InkAnnotationResponse extends AsposeResponse {
+ 'annotation': InkAnnotation;
+
+ static discriminator = undefined;
+
+ static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
+ {
+ "name": "annotation",
+ "baseName": "Annotation",
+ "type": "InkAnnotation"
+ } ];
+
+ static getAttributeTypeMap() {
+ return super.getAttributeTypeMap().concat(InkAnnotationResponse.attributeTypeMap);
+ }
+}
+
+
diff --git a/src/models/inkAnnotations.ts b/src/models/inkAnnotations.ts
new file mode 100644
index 00000000..686b0e4c
--- /dev/null
+++ b/src/models/inkAnnotations.ts
@@ -0,0 +1,45 @@
+ /**
+ *
+ * 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.
+ *
+ */
+
+import { InkAnnotation } from "./inkAnnotation";
+import { LinkElement } from "./linkElement";
+
+/**
+* List of annotations.
+*/
+export class InkAnnotations extends LinkElement {
+ 'list': Array;
+
+ static discriminator = undefined;
+
+ static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
+ {
+ "name": "list",
+ "baseName": "List",
+ "type": "Array"
+ } ];
+
+ static getAttributeTypeMap() {
+ return super.getAttributeTypeMap().concat(InkAnnotations.attributeTypeMap);
+ }
+}
+
+
diff --git a/src/models/inkAnnotationsResponse.ts b/src/models/inkAnnotationsResponse.ts
new file mode 100644
index 00000000..cdb046c2
--- /dev/null
+++ b/src/models/inkAnnotationsResponse.ts
@@ -0,0 +1,42 @@
+ /**
+ *
+ * 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.
+ *
+ */
+
+import { InkAnnotations } from "./inkAnnotations";
+import { AsposeResponse } from "./asposeResponse";
+
+export class InkAnnotationsResponse extends AsposeResponse {
+ 'annotations': InkAnnotations;
+
+ static discriminator = undefined;
+
+ static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
+ {
+ "name": "annotations",
+ "baseName": "Annotations",
+ "type": "InkAnnotations"
+ } ];
+
+ static getAttributeTypeMap() {
+ return super.getAttributeTypeMap().concat(InkAnnotationsResponse.attributeTypeMap);
+ }
+}
+
+
diff --git a/src/models/markupAnnotation.ts b/src/models/markupAnnotation.ts
index 2072e0b2..7b141d5c 100644
--- a/src/models/markupAnnotation.ts
+++ b/src/models/markupAnnotation.ts
@@ -25,6 +25,18 @@ import { Annotation } from "./annotation";
* Provides MarkupAnnotation.
*/
export class MarkupAnnotation extends Annotation {
+ /**
+ * The date and time when the annotation was created.
+ */
+ 'creationDate': string;
+ /**
+ * Get the annotation subject.
+ */
+ 'subject': string;
+ /**
+ * Get the annotation title.
+ */
+ 'title': string;
/**
* Get the annotation RichText.
*/
@@ -33,6 +45,21 @@ export class MarkupAnnotation extends Annotation {
static discriminator = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
+ {
+ "name": "creationDate",
+ "baseName": "CreationDate",
+ "type": "string"
+ },
+ {
+ "name": "subject",
+ "baseName": "Subject",
+ "type": "string"
+ },
+ {
+ "name": "title",
+ "baseName": "Title",
+ "type": "string"
+ },
{
"name": "richText",
"baseName": "RichText",
diff --git a/src/models/popupAnnotation.ts b/src/models/popupAnnotation.ts
new file mode 100644
index 00000000..5cc6842a
--- /dev/null
+++ b/src/models/popupAnnotation.ts
@@ -0,0 +1,57 @@
+ /**
+ *
+ * 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.
+ *
+ */
+
+import { Color } from "./color";
+import { Annotation } from "./annotation";
+
+/**
+* Provides PopupAnnotation.
+*/
+export class PopupAnnotation extends Annotation {
+ /**
+ * Color of the annotation.
+ */
+ 'color': Color;
+ /**
+ * Gets or sets a flag specifying whether the pop-up annotation should initially be displayed open.
+ */
+ 'open': boolean;
+
+ static discriminator = undefined;
+
+ static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
+ {
+ "name": "color",
+ "baseName": "Color",
+ "type": "Color"
+ },
+ {
+ "name": "open",
+ "baseName": "Open",
+ "type": "boolean"
+ } ];
+
+ static getAttributeTypeMap() {
+ return super.getAttributeTypeMap().concat(PopupAnnotation.attributeTypeMap);
+ }
+}
+
+
diff --git a/src/models/popupAnnotationResponse.ts b/src/models/popupAnnotationResponse.ts
new file mode 100644
index 00000000..952f7d7c
--- /dev/null
+++ b/src/models/popupAnnotationResponse.ts
@@ -0,0 +1,42 @@
+ /**
+ *
+ * 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.
+ *
+ */
+
+import { PopupAnnotationWithParent } from "./popupAnnotationWithParent";
+import { AsposeResponse } from "./asposeResponse";
+
+export class PopupAnnotationResponse extends AsposeResponse {
+ 'annotation': PopupAnnotationWithParent;
+
+ static discriminator = undefined;
+
+ static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
+ {
+ "name": "annotation",
+ "baseName": "Annotation",
+ "type": "PopupAnnotationWithParent"
+ } ];
+
+ static getAttributeTypeMap() {
+ return super.getAttributeTypeMap().concat(PopupAnnotationResponse.attributeTypeMap);
+ }
+}
+
+
diff --git a/src/models/popupAnnotationWithParent.ts b/src/models/popupAnnotationWithParent.ts
new file mode 100644
index 00000000..311f53b9
--- /dev/null
+++ b/src/models/popupAnnotationWithParent.ts
@@ -0,0 +1,48 @@
+ /**
+ *
+ * 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.
+ *
+ */
+
+import { AnnotationInfo } from "./annotationInfo";
+import { PopupAnnotation } from "./popupAnnotation";
+
+/**
+* Provides PopupAnnotation.
+*/
+export class PopupAnnotationWithParent extends PopupAnnotation {
+ /**
+ * Parent of annotation.
+ */
+ 'parent': AnnotationInfo;
+
+ static discriminator = undefined;
+
+ static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
+ {
+ "name": "parent",
+ "baseName": "Parent",
+ "type": "AnnotationInfo"
+ } ];
+
+ static getAttributeTypeMap() {
+ return super.getAttributeTypeMap().concat(PopupAnnotationWithParent.attributeTypeMap);
+ }
+}
+
+
diff --git a/src/models/popupAnnotations.ts b/src/models/popupAnnotations.ts
new file mode 100644
index 00000000..66b9b870
--- /dev/null
+++ b/src/models/popupAnnotations.ts
@@ -0,0 +1,45 @@
+ /**
+ *
+ * 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.
+ *
+ */
+
+import { PopupAnnotationWithParent } from "./popupAnnotationWithParent";
+import { LinkElement } from "./linkElement";
+
+/**
+* List of annotations.
+*/
+export class PopupAnnotations extends LinkElement {
+ 'list': Array;
+
+ static discriminator = undefined;
+
+ static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
+ {
+ "name": "list",
+ "baseName": "List",
+ "type": "Array"
+ } ];
+
+ static getAttributeTypeMap() {
+ return super.getAttributeTypeMap().concat(PopupAnnotations.attributeTypeMap);
+ }
+}
+
+
diff --git a/src/models/popupAnnotationsResponse.ts b/src/models/popupAnnotationsResponse.ts
new file mode 100644
index 00000000..ac5e7e82
--- /dev/null
+++ b/src/models/popupAnnotationsResponse.ts
@@ -0,0 +1,42 @@
+ /**
+ *
+ * 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.
+ *
+ */
+
+import { PopupAnnotations } from "./popupAnnotations";
+import { AsposeResponse } from "./asposeResponse";
+
+export class PopupAnnotationsResponse extends AsposeResponse {
+ 'annotations': PopupAnnotations;
+
+ static discriminator = undefined;
+
+ static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
+ {
+ "name": "annotations",
+ "baseName": "Annotations",
+ "type": "PopupAnnotations"
+ } ];
+
+ static getAttributeTypeMap() {
+ return super.getAttributeTypeMap().concat(PopupAnnotationsResponse.attributeTypeMap);
+ }
+}
+
+
diff --git a/src/models/squigglyAnnotation.ts b/src/models/squigglyAnnotation.ts
new file mode 100644
index 00000000..cc928656
--- /dev/null
+++ b/src/models/squigglyAnnotation.ts
@@ -0,0 +1,58 @@
+ /**
+ *
+ * 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.
+ *
+ */
+
+import { Point } from "./point";
+import { Color } from "./color";
+import { MarkupAnnotation } from "./markupAnnotation";
+
+/**
+* Provides SquigglyAnnotation.
+*/
+export class SquigglyAnnotation extends MarkupAnnotation {
+ /**
+ * Color of the annotation.
+ */
+ 'color': Color;
+ /**
+ * Gets or sets an array of points specifying the coordinates of n quadrilaterals. Each quadrilateral encompasses a word or group of contiguous words in the text underlying the annotation.
+ */
+ 'quadPoints': Array;
+
+ static discriminator = undefined;
+
+ static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
+ {
+ "name": "color",
+ "baseName": "Color",
+ "type": "Color"
+ },
+ {
+ "name": "quadPoints",
+ "baseName": "QuadPoints",
+ "type": "Array"
+ } ];
+
+ static getAttributeTypeMap() {
+ return super.getAttributeTypeMap().concat(SquigglyAnnotation.attributeTypeMap);
+ }
+}
+
+
diff --git a/src/models/squigglyAnnotationResponse.ts b/src/models/squigglyAnnotationResponse.ts
new file mode 100644
index 00000000..80346a72
--- /dev/null
+++ b/src/models/squigglyAnnotationResponse.ts
@@ -0,0 +1,42 @@
+ /**
+ *
+ * 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.
+ *
+ */
+
+import { SquigglyAnnotation } from "./squigglyAnnotation";
+import { AsposeResponse } from "./asposeResponse";
+
+export class SquigglyAnnotationResponse extends AsposeResponse {
+ 'annotation': SquigglyAnnotation;
+
+ static discriminator = undefined;
+
+ static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
+ {
+ "name": "annotation",
+ "baseName": "Annotation",
+ "type": "SquigglyAnnotation"
+ } ];
+
+ static getAttributeTypeMap() {
+ return super.getAttributeTypeMap().concat(SquigglyAnnotationResponse.attributeTypeMap);
+ }
+}
+
+
diff --git a/src/models/squigglyAnnotations.ts b/src/models/squigglyAnnotations.ts
new file mode 100644
index 00000000..51f56b0a
--- /dev/null
+++ b/src/models/squigglyAnnotations.ts
@@ -0,0 +1,45 @@
+ /**
+ *
+ * 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.
+ *
+ */
+
+import { SquigglyAnnotation } from "./squigglyAnnotation";
+import { LinkElement } from "./linkElement";
+
+/**
+* List of annotations.
+*/
+export class SquigglyAnnotations extends LinkElement {
+ 'list': Array;
+
+ static discriminator = undefined;
+
+ static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
+ {
+ "name": "list",
+ "baseName": "List",
+ "type": "Array"
+ } ];
+
+ static getAttributeTypeMap() {
+ return super.getAttributeTypeMap().concat(SquigglyAnnotations.attributeTypeMap);
+ }
+}
+
+
diff --git a/src/models/squigglyAnnotationsResponse.ts b/src/models/squigglyAnnotationsResponse.ts
new file mode 100644
index 00000000..0bd5a979
--- /dev/null
+++ b/src/models/squigglyAnnotationsResponse.ts
@@ -0,0 +1,42 @@
+ /**
+ *
+ * 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.
+ *
+ */
+
+import { SquigglyAnnotations } from "./squigglyAnnotations";
+import { AsposeResponse } from "./asposeResponse";
+
+export class SquigglyAnnotationsResponse extends AsposeResponse {
+ 'annotations': SquigglyAnnotations;
+
+ static discriminator = undefined;
+
+ static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
+ {
+ "name": "annotations",
+ "baseName": "Annotations",
+ "type": "SquigglyAnnotations"
+ } ];
+
+ static getAttributeTypeMap() {
+ return super.getAttributeTypeMap().concat(SquigglyAnnotationsResponse.attributeTypeMap);
+ }
+}
+
+
diff --git a/src/models/strikeOutAnnotation.ts b/src/models/strikeOutAnnotation.ts
new file mode 100644
index 00000000..c83e5ba1
--- /dev/null
+++ b/src/models/strikeOutAnnotation.ts
@@ -0,0 +1,58 @@
+ /**
+ *
+ * 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.
+ *
+ */
+
+import { Point } from "./point";
+import { Color } from "./color";
+import { MarkupAnnotation } from "./markupAnnotation";
+
+/**
+* Provides StrikeOutAnnotation.
+*/
+export class StrikeOutAnnotation extends MarkupAnnotation {
+ /**
+ * Color of the annotation.
+ */
+ 'color': Color;
+ /**
+ * Gets or sets an array of points specifying the coordinates of n quadrilaterals. Each quadrilateral encompasses a word or group of contiguous words in the text underlying the annotation.
+ */
+ 'quadPoints': Array;
+
+ static discriminator = undefined;
+
+ static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
+ {
+ "name": "color",
+ "baseName": "Color",
+ "type": "Color"
+ },
+ {
+ "name": "quadPoints",
+ "baseName": "QuadPoints",
+ "type": "Array"
+ } ];
+
+ static getAttributeTypeMap() {
+ return super.getAttributeTypeMap().concat(StrikeOutAnnotation.attributeTypeMap);
+ }
+}
+
+
diff --git a/src/models/strikeOutAnnotationResponse.ts b/src/models/strikeOutAnnotationResponse.ts
new file mode 100644
index 00000000..19a62af5
--- /dev/null
+++ b/src/models/strikeOutAnnotationResponse.ts
@@ -0,0 +1,42 @@
+ /**
+ *
+ * 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.
+ *
+ */
+
+import { StrikeOutAnnotation } from "./strikeOutAnnotation";
+import { AsposeResponse } from "./asposeResponse";
+
+export class StrikeOutAnnotationResponse extends AsposeResponse {
+ 'annotation': StrikeOutAnnotation;
+
+ static discriminator = undefined;
+
+ static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
+ {
+ "name": "annotation",
+ "baseName": "Annotation",
+ "type": "StrikeOutAnnotation"
+ } ];
+
+ static getAttributeTypeMap() {
+ return super.getAttributeTypeMap().concat(StrikeOutAnnotationResponse.attributeTypeMap);
+ }
+}
+
+
diff --git a/src/models/strikeOutAnnotations.ts b/src/models/strikeOutAnnotations.ts
new file mode 100644
index 00000000..cabf468f
--- /dev/null
+++ b/src/models/strikeOutAnnotations.ts
@@ -0,0 +1,45 @@
+ /**
+ *
+ * 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.
+ *
+ */
+
+import { StrikeOutAnnotation } from "./strikeOutAnnotation";
+import { LinkElement } from "./linkElement";
+
+/**
+* List of annotations.
+*/
+export class StrikeOutAnnotations extends LinkElement {
+ 'list': Array;
+
+ static discriminator = undefined;
+
+ static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
+ {
+ "name": "list",
+ "baseName": "List",
+ "type": "Array"
+ } ];
+
+ static getAttributeTypeMap() {
+ return super.getAttributeTypeMap().concat(StrikeOutAnnotations.attributeTypeMap);
+ }
+}
+
+
diff --git a/src/models/strikeOutAnnotationsResponse.ts b/src/models/strikeOutAnnotationsResponse.ts
new file mode 100644
index 00000000..39044b7f
--- /dev/null
+++ b/src/models/strikeOutAnnotationsResponse.ts
@@ -0,0 +1,42 @@
+ /**
+ *
+ * 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.
+ *
+ */
+
+import { StrikeOutAnnotations } from "./strikeOutAnnotations";
+import { AsposeResponse } from "./asposeResponse";
+
+export class StrikeOutAnnotationsResponse extends AsposeResponse {
+ 'annotations': StrikeOutAnnotations;
+
+ static discriminator = undefined;
+
+ static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
+ {
+ "name": "annotations",
+ "baseName": "Annotations",
+ "type": "StrikeOutAnnotations"
+ } ];
+
+ static getAttributeTypeMap() {
+ return super.getAttributeTypeMap().concat(StrikeOutAnnotationsResponse.attributeTypeMap);
+ }
+}
+
+
diff --git a/src/models/underlineAnnotation.ts b/src/models/underlineAnnotation.ts
new file mode 100644
index 00000000..ae95933e
--- /dev/null
+++ b/src/models/underlineAnnotation.ts
@@ -0,0 +1,58 @@
+ /**
+ *
+ * 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.
+ *
+ */
+
+import { Point } from "./point";
+import { Color } from "./color";
+import { MarkupAnnotation } from "./markupAnnotation";
+
+/**
+* Provides UnderlineAnnotation.
+*/
+export class UnderlineAnnotation extends MarkupAnnotation {
+ /**
+ * Color of the annotation.
+ */
+ 'color': Color;
+ /**
+ * Gets or sets an array of points specifying the coordinates of n quadrilaterals. Each quadrilateral encompasses a word or group of contiguous words in the text underlying the annotation.
+ */
+ 'quadPoints': Array;
+
+ static discriminator = undefined;
+
+ static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
+ {
+ "name": "color",
+ "baseName": "Color",
+ "type": "Color"
+ },
+ {
+ "name": "quadPoints",
+ "baseName": "QuadPoints",
+ "type": "Array"
+ } ];
+
+ static getAttributeTypeMap() {
+ return super.getAttributeTypeMap().concat(UnderlineAnnotation.attributeTypeMap);
+ }
+}
+
+
diff --git a/src/models/underlineAnnotationResponse.ts b/src/models/underlineAnnotationResponse.ts
new file mode 100644
index 00000000..8b98c246
--- /dev/null
+++ b/src/models/underlineAnnotationResponse.ts
@@ -0,0 +1,42 @@
+ /**
+ *
+ * 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.
+ *
+ */
+
+import { UnderlineAnnotation } from "./underlineAnnotation";
+import { AsposeResponse } from "./asposeResponse";
+
+export class UnderlineAnnotationResponse extends AsposeResponse {
+ 'annotation': UnderlineAnnotation;
+
+ static discriminator = undefined;
+
+ static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
+ {
+ "name": "annotation",
+ "baseName": "Annotation",
+ "type": "UnderlineAnnotation"
+ } ];
+
+ static getAttributeTypeMap() {
+ return super.getAttributeTypeMap().concat(UnderlineAnnotationResponse.attributeTypeMap);
+ }
+}
+
+
diff --git a/src/models/underlineAnnotations.ts b/src/models/underlineAnnotations.ts
new file mode 100644
index 00000000..9706f5a9
--- /dev/null
+++ b/src/models/underlineAnnotations.ts
@@ -0,0 +1,45 @@
+ /**
+ *
+ * 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.
+ *
+ */
+
+import { UnderlineAnnotation } from "./underlineAnnotation";
+import { LinkElement } from "./linkElement";
+
+/**
+* List of annotations.
+*/
+export class UnderlineAnnotations extends LinkElement {
+ 'list': Array;
+
+ static discriminator = undefined;
+
+ static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
+ {
+ "name": "list",
+ "baseName": "List",
+ "type": "Array"
+ } ];
+
+ static getAttributeTypeMap() {
+ return super.getAttributeTypeMap().concat(UnderlineAnnotations.attributeTypeMap);
+ }
+}
+
+
diff --git a/src/models/underlineAnnotationsResponse.ts b/src/models/underlineAnnotationsResponse.ts
new file mode 100644
index 00000000..139eec32
--- /dev/null
+++ b/src/models/underlineAnnotationsResponse.ts
@@ -0,0 +1,42 @@
+ /**
+ *
+ * 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.
+ *
+ */
+
+import { UnderlineAnnotations } from "./underlineAnnotations";
+import { AsposeResponse } from "./asposeResponse";
+
+export class UnderlineAnnotationsResponse extends AsposeResponse {
+ 'annotations': UnderlineAnnotations;
+
+ static discriminator = undefined;
+
+ static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
+ {
+ "name": "annotations",
+ "baseName": "Annotations",
+ "type": "UnderlineAnnotations"
+ } ];
+
+ static getAttributeTypeMap() {
+ return super.getAttributeTypeMap().concat(UnderlineAnnotationsResponse.attributeTypeMap);
+ }
+}
+
+
diff --git a/src/objectSerializer.ts b/src/objectSerializer.ts
index 17adde61..06ec0247 100644
--- a/src/objectSerializer.ts
+++ b/src/objectSerializer.ts
@@ -25,7 +25,9 @@ import { AnnotationType } from "./models/annotationType";
import { AntialiasingProcessingType } from "./models/antialiasingProcessingType";
import { AppendDocument } from "./models/appendDocument";
import { AsposeResponse } from "./models/asposeResponse";
+import { CapStyle } from "./models/capStyle";
import { CaptionPosition } from "./models/captionPosition";
+import { CaretSymbol } from "./models/caretSymbol";
import { Color } from "./models/color";
import { ColorDepth } from "./models/colorDepth";
import { CompressionType } from "./models/compressionType";
@@ -92,6 +94,9 @@ import { Attachment } from "./models/attachment";
import { AttachmentResponse } from "./models/attachmentResponse";
import { Attachments } from "./models/attachments";
import { AttachmentsResponse } from "./models/attachmentsResponse";
+import { CaretAnnotationResponse } from "./models/caretAnnotationResponse";
+import { CaretAnnotations } from "./models/caretAnnotations";
+import { CaretAnnotationsResponse } from "./models/caretAnnotationsResponse";
import { CircleAnnotationResponse } from "./models/circleAnnotationResponse";
import { CircleAnnotations } from "./models/circleAnnotations";
import { CircleAnnotationsResponse } from "./models/circleAnnotationsResponse";
@@ -111,10 +116,16 @@ import { FilesResponse } from "./models/filesResponse";
import { FreeTextAnnotationResponse } from "./models/freeTextAnnotationResponse";
import { FreeTextAnnotations } from "./models/freeTextAnnotations";
import { FreeTextAnnotationsResponse } from "./models/freeTextAnnotationsResponse";
+import { HighlightAnnotationResponse } from "./models/highlightAnnotationResponse";
+import { HighlightAnnotations } from "./models/highlightAnnotations";
+import { HighlightAnnotationsResponse } from "./models/highlightAnnotationsResponse";
import { Image } from "./models/image";
import { ImageResponse } from "./models/imageResponse";
import { Images } from "./models/images";
import { ImagesResponse } from "./models/imagesResponse";
+import { InkAnnotationResponse } from "./models/inkAnnotationResponse";
+import { InkAnnotations } from "./models/inkAnnotations";
+import { InkAnnotationsResponse } from "./models/inkAnnotationsResponse";
import { LineAnnotationResponse } from "./models/lineAnnotationResponse";
import { LineAnnotations } from "./models/lineAnnotations";
import { LineAnnotationsResponse } from "./models/lineAnnotationsResponse";
@@ -130,25 +141,45 @@ import { PolyLineAnnotationsResponse } from "./models/polyLineAnnotationsRespons
import { PolygonAnnotationResponse } from "./models/polygonAnnotationResponse";
import { PolygonAnnotations } from "./models/polygonAnnotations";
import { PolygonAnnotationsResponse } from "./models/polygonAnnotationsResponse";
+import { PopupAnnotationResponse } from "./models/popupAnnotationResponse";
+import { PopupAnnotations } from "./models/popupAnnotations";
+import { PopupAnnotationsResponse } from "./models/popupAnnotationsResponse";
import { SignatureVerifyResponse } from "./models/signatureVerifyResponse";
import { SplitResultDocument } from "./models/splitResultDocument";
import { SplitResultResponse } from "./models/splitResultResponse";
import { SquareAnnotationResponse } from "./models/squareAnnotationResponse";
import { SquareAnnotations } from "./models/squareAnnotations";
import { SquareAnnotationsResponse } from "./models/squareAnnotationsResponse";
+import { SquigglyAnnotationResponse } from "./models/squigglyAnnotationResponse";
+import { SquigglyAnnotations } from "./models/squigglyAnnotations";
+import { SquigglyAnnotationsResponse } from "./models/squigglyAnnotationsResponse";
+import { StrikeOutAnnotationResponse } from "./models/strikeOutAnnotationResponse";
+import { StrikeOutAnnotations } from "./models/strikeOutAnnotations";
+import { StrikeOutAnnotationsResponse } from "./models/strikeOutAnnotationsResponse";
import { TextAnnotationResponse } from "./models/textAnnotationResponse";
import { TextAnnotations } from "./models/textAnnotations";
import { TextAnnotationsResponse } from "./models/textAnnotationsResponse";
import { TextRectsResponse } from "./models/textRectsResponse";
import { TextReplaceResponse } from "./models/textReplaceResponse";
+import { UnderlineAnnotationResponse } from "./models/underlineAnnotationResponse";
+import { UnderlineAnnotations } from "./models/underlineAnnotations";
+import { UnderlineAnnotationsResponse } from "./models/underlineAnnotationsResponse";
import { WordCountResponse } from "./models/wordCountResponse";
import { AnnotationInfo } from "./models/annotationInfo";
import { MarkupAnnotation } from "./models/markupAnnotation";
+import { PopupAnnotation } from "./models/popupAnnotation";
+import { CaretAnnotation } from "./models/caretAnnotation";
import { CommonFigureAnnotation } from "./models/commonFigureAnnotation";
import { FreeTextAnnotation } from "./models/freeTextAnnotation";
+import { HighlightAnnotation } from "./models/highlightAnnotation";
+import { InkAnnotation } from "./models/inkAnnotation";
import { LineAnnotation } from "./models/lineAnnotation";
import { PolyAnnotation } from "./models/polyAnnotation";
+import { PopupAnnotationWithParent } from "./models/popupAnnotationWithParent";
+import { SquigglyAnnotation } from "./models/squigglyAnnotation";
+import { StrikeOutAnnotation } from "./models/strikeOutAnnotation";
import { TextAnnotation } from "./models/textAnnotation";
+import { UnderlineAnnotation } from "./models/underlineAnnotation";
import { CircleAnnotation } from "./models/circleAnnotation";
import { PolyLineAnnotation } from "./models/polyLineAnnotation";
import { PolygonAnnotation } from "./models/polygonAnnotation";
@@ -159,7 +190,9 @@ let enumsMap: {[index: string]: any} = {
"AnnotationState": AnnotationState,
"AnnotationType": AnnotationType,
"AntialiasingProcessingType": AntialiasingProcessingType,
+ "CapStyle": CapStyle,
"CaptionPosition": CaptionPosition,
+ "CaretSymbol": CaretSymbol,
"ColorDepth": ColorDepth,
"CompressionType": CompressionType,
"DocFormat": DocFormat,
@@ -231,6 +264,9 @@ let typeMap: {[index: string]: any} = {
"AttachmentResponse": AttachmentResponse,
"Attachments": Attachments,
"AttachmentsResponse": AttachmentsResponse,
+ "CaretAnnotationResponse": CaretAnnotationResponse,
+ "CaretAnnotations": CaretAnnotations,
+ "CaretAnnotationsResponse": CaretAnnotationsResponse,
"CircleAnnotationResponse": CircleAnnotationResponse,
"CircleAnnotations": CircleAnnotations,
"CircleAnnotationsResponse": CircleAnnotationsResponse,
@@ -250,10 +286,16 @@ let typeMap: {[index: string]: any} = {
"FreeTextAnnotationResponse": FreeTextAnnotationResponse,
"FreeTextAnnotations": FreeTextAnnotations,
"FreeTextAnnotationsResponse": FreeTextAnnotationsResponse,
+ "HighlightAnnotationResponse": HighlightAnnotationResponse,
+ "HighlightAnnotations": HighlightAnnotations,
+ "HighlightAnnotationsResponse": HighlightAnnotationsResponse,
"Image": Image,
"ImageResponse": ImageResponse,
"Images": Images,
"ImagesResponse": ImagesResponse,
+ "InkAnnotationResponse": InkAnnotationResponse,
+ "InkAnnotations": InkAnnotations,
+ "InkAnnotationsResponse": InkAnnotationsResponse,
"LineAnnotationResponse": LineAnnotationResponse,
"LineAnnotations": LineAnnotations,
"LineAnnotationsResponse": LineAnnotationsResponse,
@@ -269,25 +311,45 @@ let typeMap: {[index: string]: any} = {
"PolygonAnnotationResponse": PolygonAnnotationResponse,
"PolygonAnnotations": PolygonAnnotations,
"PolygonAnnotationsResponse": PolygonAnnotationsResponse,
+ "PopupAnnotationResponse": PopupAnnotationResponse,
+ "PopupAnnotations": PopupAnnotations,
+ "PopupAnnotationsResponse": PopupAnnotationsResponse,
"SignatureVerifyResponse": SignatureVerifyResponse,
"SplitResultDocument": SplitResultDocument,
"SplitResultResponse": SplitResultResponse,
"SquareAnnotationResponse": SquareAnnotationResponse,
"SquareAnnotations": SquareAnnotations,
"SquareAnnotationsResponse": SquareAnnotationsResponse,
+ "SquigglyAnnotationResponse": SquigglyAnnotationResponse,
+ "SquigglyAnnotations": SquigglyAnnotations,
+ "SquigglyAnnotationsResponse": SquigglyAnnotationsResponse,
+ "StrikeOutAnnotationResponse": StrikeOutAnnotationResponse,
+ "StrikeOutAnnotations": StrikeOutAnnotations,
+ "StrikeOutAnnotationsResponse": StrikeOutAnnotationsResponse,
"TextAnnotationResponse": TextAnnotationResponse,
"TextAnnotations": TextAnnotations,
"TextAnnotationsResponse": TextAnnotationsResponse,
"TextRectsResponse": TextRectsResponse,
"TextReplaceResponse": TextReplaceResponse,
+ "UnderlineAnnotationResponse": UnderlineAnnotationResponse,
+ "UnderlineAnnotations": UnderlineAnnotations,
+ "UnderlineAnnotationsResponse": UnderlineAnnotationsResponse,
"WordCountResponse": WordCountResponse,
"AnnotationInfo": AnnotationInfo,
"MarkupAnnotation": MarkupAnnotation,
+ "PopupAnnotation": PopupAnnotation,
+ "CaretAnnotation": CaretAnnotation,
"CommonFigureAnnotation": CommonFigureAnnotation,
"FreeTextAnnotation": FreeTextAnnotation,
+ "HighlightAnnotation": HighlightAnnotation,
+ "InkAnnotation": InkAnnotation,
"LineAnnotation": LineAnnotation,
"PolyAnnotation": PolyAnnotation,
+ "PopupAnnotationWithParent": PopupAnnotationWithParent,
+ "SquigglyAnnotation": SquigglyAnnotation,
+ "StrikeOutAnnotation": StrikeOutAnnotation,
"TextAnnotation": TextAnnotation,
+ "UnderlineAnnotation": UnderlineAnnotation,
"CircleAnnotation": CircleAnnotation,
"PolyLineAnnotation": PolyLineAnnotation,
"PolygonAnnotation": PolygonAnnotation,
diff --git a/test/baseTestPdfApi.ts b/test/baseTestPdfApi.ts
index 95503183..0d970129 100644
--- a/test/baseTestPdfApi.ts
+++ b/test/baseTestPdfApi.ts
@@ -33,7 +33,7 @@ export function getPdfApi() {
//Get App key and App SID from https://aspose.cloud
pdfApi = new PdfApi(
- "AppSID",
+ "AppSid",
"AppKey",
"https://billing.cloud.saltov.dynabic.com/v2.0"
)
@@ -49,7 +49,7 @@ export const localTestDataFolder = "testData";
/**
* Upload file
*/
-export function uploadFile(name: string): Promise<{ response: http.ClientResponse; body: AsposeResponse; }>
+export function uploadFile(name: string): Promise<{ response: http.IncomingMessage; body: AsposeResponse; }>
{
const path: string = remoteTempFolder + "/" + name;
var data = fs.readFileSync(this.localTestDataFolder + "/" + name);
diff --git a/test/testCaretAnnotations.ts b/test/testCaretAnnotations.ts
new file mode 100644
index 00000000..49099860
--- /dev/null
+++ b/test/testCaretAnnotations.ts
@@ -0,0 +1,126 @@
+ /**
+ *
+ * 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.
+ *
+ */
+
+import * as BaseTest from "./baseTestPdfApi";
+import "mocha";
+var assert = require('assert');
+import { CaretAnnotation } from "../src/models/caretAnnotation";
+import { AnnotationFlags } from "../src/models/annotationFlags";
+import { HorizontalAlignment } from "../src/models/horizontalAlignment";
+
+describe("Caret Annotations Tests", () => {
+
+ const name = "PdfWithAnnotations.pdf";
+ const pageNumber = 2;
+
+ beforeEach( async ()=> {
+ await BaseTest.uploadFile(name);
+ });
+
+ describe("Get Document Caret Annotations Test", () => {
+
+ it("should return response with code 200", async () => {
+
+ return BaseTest.getPdfApi().getDocumentCaretAnnotations(name, null, BaseTest.remoteTempFolder)
+ .then((result) => {
+ assert.equal(result.response.statusCode, 200);
+ });
+ });
+ });
+
+ describe("Get Page Caret Annotations Test", () => {
+
+ it("should return response with code 200", async () => {
+
+ return BaseTest.getPdfApi().getPageCaretAnnotations(name, pageNumber, null, BaseTest.remoteTempFolder)
+ .then((result) => {
+ assert.equal(result.response.statusCode, 200);
+ });
+ });
+ });
+
+ describe("Get Caret Annotation Test", () => {
+
+ it("should return response with code 200", async () => {
+
+ const result = await BaseTest.getPdfApi().getDocumentCaretAnnotations(name, null, BaseTest.remoteTempFolder)
+ const annotationId = result.body.annotations.list[0].id;
+
+ return BaseTest.getPdfApi().getCaretAnnotation(name, annotationId, null, BaseTest.remoteTempFolder)
+ .then((result) => {
+ assert.equal(result.response.statusCode, 200);
+ });
+ });
+ });
+
+ describe("Post Page Caret Annotations Test", () => {
+
+ it("should return response with code 200", async () => {
+
+ const annotation = new CaretAnnotation();
+ annotation.name = "Name";
+ annotation.rect = { lLX: 100, lLY: 100, uRX: 200, uRY: 200};
+ annotation.flags = [AnnotationFlags.Default];
+ annotation.horizontalAlignment = HorizontalAlignment.Center;
+ annotation.richText = "Rich Text";
+ annotation.subject = "Text Box Subj";
+ annotation.zIndex = 1;
+ annotation.title = "Title"
+ annotation.frame = { lLX: 100, lLY: 100, uRX: 200, uRY: 200};
+ annotation.modified = "01/01/2018 00:00:00.000 AM";
+
+ return BaseTest.getPdfApi().postPageCaretAnnotations(name, pageNumber, [annotation], null, BaseTest.remoteTempFolder)
+ .then((result) => {
+ assert.equal(result.response.statusCode, 200);
+ });
+ });
+ });
+
+
+
+ describe("Put Caret Annotation Test", () => {
+
+ it("should return response with code 200", async () => {
+
+ const annotation = new CaretAnnotation();
+ annotation.name = "Name Updated";
+ annotation.rect = { lLX: 100, lLY: 100, uRX: 200, uRY: 200};
+ annotation.flags = [AnnotationFlags.Default];
+ annotation.horizontalAlignment = HorizontalAlignment.Center;
+ annotation.richText = "Rich Text Updated";
+ annotation.subject = "Subj Updated";
+ annotation.zIndex = 1;
+ annotation.title = "Title Updated"
+ annotation.frame = { lLX: 100, lLY: 100, uRX: 200, uRY: 200};
+ annotation.modified = "01/01/2018 00:00:00.000 AM";
+
+ const result = await BaseTest.getPdfApi().getDocumentCaretAnnotations(name, null, BaseTest.remoteTempFolder)
+ const annotationId = result.body.annotations.list[0].id;
+
+ return BaseTest.getPdfApi().putCaretAnnotation(name, annotationId, annotation, null, BaseTest.remoteTempFolder)
+ .then((result) => {
+ assert.equal(result.response.statusCode, 200);
+ });
+ });
+ });
+
+
+});
\ No newline at end of file
diff --git a/test/testHighlightAnnotations.ts b/test/testHighlightAnnotations.ts
new file mode 100644
index 00000000..f7931a80
--- /dev/null
+++ b/test/testHighlightAnnotations.ts
@@ -0,0 +1,136 @@
+ /**
+ *
+ * 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.
+ *
+ */
+
+import * as BaseTest from "./baseTestPdfApi";
+import "mocha";
+var assert = require('assert');
+import { HighlightAnnotation } from "../src/models/highlightAnnotation";
+import { AnnotationFlags } from "../src/models/annotationFlags";
+import { HorizontalAlignment } from "../src/models/horizontalAlignment";
+
+describe("Highlight Annotations Tests", () => {
+
+ const name = "PdfWithAnnotations.pdf";
+ const pageNumber = 2;
+
+ beforeEach( async ()=> {
+ await BaseTest.uploadFile(name);
+ });
+
+ describe("Get Document Highlight Annotations Test", () => {
+
+ it("should return response with code 200", async () => {
+
+ return BaseTest.getPdfApi().getDocumentHighlightAnnotations(name, null, BaseTest.remoteTempFolder)
+ .then((result) => {
+ assert.equal(result.response.statusCode, 200);
+ });
+ });
+ });
+
+ describe("Get Page Highlight Annotations Test", () => {
+
+ it("should return response with code 200", async () => {
+
+ return BaseTest.getPdfApi().getPageHighlightAnnotations(name, pageNumber, null, BaseTest.remoteTempFolder)
+ .then((result) => {
+ assert.equal(result.response.statusCode, 200);
+ });
+ });
+ });
+
+ describe("Get Highlight Annotation Test", () => {
+
+ it("should return response with code 200", async () => {
+
+ const result = await BaseTest.getPdfApi().getDocumentHighlightAnnotations(name, null, BaseTest.remoteTempFolder)
+ const annotationId = result.body.annotations.list[0].id;
+
+ return BaseTest.getPdfApi().getHighlightAnnotation(name, annotationId, null, BaseTest.remoteTempFolder)
+ .then((result) => {
+ assert.equal(result.response.statusCode, 200);
+ });
+ });
+ });
+
+ describe("Post Page Highlight Annotations Test", () => {
+
+ it("should return response with code 200", async () => {
+
+ const annotation = new HighlightAnnotation();
+ annotation.name = "Name";
+ annotation.rect = { lLX: 100, lLY: 100, uRX: 200, uRY: 200};
+ annotation.flags = [AnnotationFlags.Default];
+ annotation.horizontalAlignment = HorizontalAlignment.Center;
+ annotation.richText = "Rich Text";
+ annotation.subject = "Text Box Subj";
+ annotation.zIndex = 1;
+ annotation.title = "Title"
+ annotation.quadPoints = [
+ {x: 10, y: 10},
+ {x: 20, y: 10},
+ {x: 10, y: 20},
+ {x: 10, y: 10}
+ ];
+ annotation.modified = "01/01/2018 00:00:00.000 AM";
+
+ return BaseTest.getPdfApi().postPageHighlightAnnotations(name, pageNumber, [annotation], null, BaseTest.remoteTempFolder)
+ .then((result) => {
+ assert.equal(result.response.statusCode, 200);
+ });
+ });
+ });
+
+
+
+ describe("Put Highlight Annotation Test", () => {
+
+ it("should return response with code 200", async () => {
+
+ const annotation = new HighlightAnnotation();
+ annotation.name = "Name Updated";
+ annotation.rect = { lLX: 100, lLY: 100, uRX: 200, uRY: 200};
+ annotation.flags = [AnnotationFlags.Default];
+ annotation.horizontalAlignment = HorizontalAlignment.Center;
+ annotation.richText = "Rich Text Updated";
+ annotation.subject = "Subj Updated";
+ annotation.zIndex = 1;
+ annotation.title = "Title Updated"
+ annotation.quadPoints = [
+ {x: 10, y: 10},
+ {x: 20, y: 10},
+ {x: 10, y: 20},
+ {x: 10, y: 10}
+ ];
+ annotation.modified = "01/01/2018 00:00:00.000 AM";
+
+ const result = await BaseTest.getPdfApi().getDocumentHighlightAnnotations(name, null, BaseTest.remoteTempFolder)
+ const annotationId = result.body.annotations.list[0].id;
+
+ return BaseTest.getPdfApi().putHighlightAnnotation(name, annotationId, annotation, null, BaseTest.remoteTempFolder)
+ .then((result) => {
+ assert.equal(result.response.statusCode, 200);
+ });
+ });
+ });
+
+
+});
\ No newline at end of file
diff --git a/test/testInkAnnotations.ts b/test/testInkAnnotations.ts
new file mode 100644
index 00000000..7c77751e
--- /dev/null
+++ b/test/testInkAnnotations.ts
@@ -0,0 +1,149 @@
+ /**
+ *
+ * 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.
+ *
+ */
+
+import * as BaseTest from "./baseTestPdfApi";
+import "mocha";
+var assert = require('assert');
+import { InkAnnotation } from "../src/models/inkAnnotation";
+import { AnnotationFlags } from "../src/models/annotationFlags";
+import { HorizontalAlignment } from "../src/models/horizontalAlignment";
+import { CapStyle } from "../src/models/capStyle";
+
+describe("Ink Annotations Tests", () => {
+
+ const name = "PdfWithAnnotations.pdf";
+ const pageNumber = 2;
+
+ beforeEach( async ()=> {
+ await BaseTest.uploadFile(name);
+ });
+
+ describe("Get Document Ink Annotations Test", () => {
+
+ it("should return response with code 200", async () => {
+
+ return BaseTest.getPdfApi().getDocumentInkAnnotations(name, null, BaseTest.remoteTempFolder)
+ .then((result) => {
+ assert.equal(result.response.statusCode, 200);
+ });
+ });
+ });
+
+ describe("Get Page Ink Annotations Test", () => {
+
+ it("should return response with code 200", async () => {
+
+ return BaseTest.getPdfApi().getPageInkAnnotations(name, pageNumber, null, BaseTest.remoteTempFolder)
+ .then((result) => {
+ assert.equal(result.response.statusCode, 200);
+ });
+ });
+ });
+
+ describe("Get Ink Annotation Test", () => {
+
+ it("should return response with code 200", async () => {
+
+ const result = await BaseTest.getPdfApi().getDocumentInkAnnotations(name, null, BaseTest.remoteTempFolder)
+ const annotationId = result.body.annotations.list[0].id;
+
+ return BaseTest.getPdfApi().getInkAnnotation(name, annotationId, null, BaseTest.remoteTempFolder)
+ .then((result) => {
+ assert.equal(result.response.statusCode, 200);
+ });
+ });
+ });
+
+ describe("Post Page Ink Annotations Test", () => {
+
+ it("should return response with code 200", async () => {
+
+ const annotation = new InkAnnotation();
+ annotation.name = "Name";
+ annotation.rect = { lLX: 100, lLY: 100, uRX: 200, uRY: 200};
+ annotation.flags = [AnnotationFlags.Default];
+ annotation.horizontalAlignment = HorizontalAlignment.Center;
+ annotation.richText = "Rich Text";
+ annotation.subject = "Text Box Subj";
+ annotation.zIndex = 1;
+ annotation.title = "Title"
+ annotation.inkList = [
+ [
+ {x: 10, y: 40},
+ {x: 30, y: 40}
+ ],
+ [
+ {x: 10, y: 20},
+ {x: 20, y: 20},
+ {x: 30, y: 20}
+ ]
+ ];
+ annotation.capStyle = CapStyle.Rounded;
+ annotation.modified = "01/01/2018 00:00:00.000 AM";
+
+ return BaseTest.getPdfApi().postPageInkAnnotations(name, pageNumber, [annotation], null, BaseTest.remoteTempFolder)
+ .then((result) => {
+ assert.equal(result.response.statusCode, 200);
+ });
+ });
+ });
+
+
+
+ describe("Put Ink Annotation Test", () => {
+
+ it("should return response with code 200", async () => {
+
+ const annotation = new InkAnnotation();
+ annotation.name = "Name Updated";
+ annotation.rect = { lLX: 100, lLY: 100, uRX: 200, uRY: 200};
+ annotation.flags = [AnnotationFlags.Default];
+ annotation.horizontalAlignment = HorizontalAlignment.Center;
+ annotation.richText = "Rich Text Updated";
+ annotation.subject = "Subj Updated";
+ annotation.zIndex = 1;
+ annotation.title = "Title Updated"
+ annotation.inkList = [
+ [
+ {x: 10, y: 40},
+ {x: 30, y: 40}
+ ],
+ [
+ {x: 10, y: 20},
+ {x: 20, y: 20},
+ {x: 30, y: 20}
+ ]
+ ];
+ annotation.capStyle = CapStyle.Rounded;
+ annotation.modified = "01/01/2018 00:00:00.000 AM";
+
+ const result = await BaseTest.getPdfApi().getDocumentInkAnnotations(name, null, BaseTest.remoteTempFolder)
+ const annotationId = result.body.annotations.list[0].id;
+
+ return BaseTest.getPdfApi().putInkAnnotation(name, annotationId, annotation, null, BaseTest.remoteTempFolder)
+ .then((result) => {
+ assert.equal(result.response.statusCode, 200);
+ });
+ });
+ });
+
+
+});
\ No newline at end of file
diff --git a/test/testPopupAnnotations.ts b/test/testPopupAnnotations.ts
new file mode 100644
index 00000000..07c0de3d
--- /dev/null
+++ b/test/testPopupAnnotations.ts
@@ -0,0 +1,131 @@
+ /**
+ *
+ * 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.
+ *
+ */
+
+import * as BaseTest from "./baseTestPdfApi";
+import "mocha";
+var assert = require('assert');
+import { PopupAnnotation } from "../src/models/popupAnnotation";
+import { AnnotationFlags } from "../src/models/annotationFlags";
+import { HorizontalAlignment } from "../src/models/horizontalAlignment";
+import { CapStyle } from "../src/models/capStyle";
+
+describe("Popup Annotations Tests", () => {
+
+ const name = "PdfWithAnnotations.pdf";
+ const pageNumber = 2;
+
+ beforeEach( async ()=> {
+ await BaseTest.uploadFile(name);
+ });
+
+ describe("Get Document Popup Annotations Test", () => {
+
+ it("should return response with code 200", async () => {
+
+ return BaseTest.getPdfApi().getDocumentPopupAnnotations(name, null, BaseTest.remoteTempFolder)
+ .then((result) => {
+ assert.equal(result.response.statusCode, 200);
+ });
+ });
+ });
+
+ describe("Get Document Popup Annotations By Parent Test", () => {
+
+ it("should return response with code 200", async () => {
+ let parentId = "GI5TAOZRGU3CYNZSGEWDCNZWFQ3TGOI";
+ return BaseTest.getPdfApi().getDocumentPopupAnnotationsByParent(name, parentId, null, BaseTest.remoteTempFolder)
+ .then((result) => {
+ assert.equal(result.response.statusCode, 200);
+ });
+ });
+ });
+
+ describe("Get Page Popup Annotations Test", () => {
+
+ it("should return response with code 200", async () => {
+
+ return BaseTest.getPdfApi().getPagePopupAnnotations(name, pageNumber, null, BaseTest.remoteTempFolder)
+ .then((result) => {
+ assert.equal(result.response.statusCode, 200);
+ });
+ });
+ });
+
+ describe("Get Popup Annotation Test", () => {
+
+ it("should return response with code 200", async () => {
+
+ const result = await BaseTest.getPdfApi().getDocumentPopupAnnotations(name, null, BaseTest.remoteTempFolder)
+ const annotationId = result.body.annotations.list[0].id;
+
+ return BaseTest.getPdfApi().getPopupAnnotation(name, annotationId, null, BaseTest.remoteTempFolder)
+ .then((result) => {
+ assert.equal(result.response.statusCode, 200);
+ });
+ });
+ });
+
+ describe("Post Popup Annotation Test", () => {
+
+ it("should return response with code 200", async () => {
+ let parentId = "GI5TCMR3GE2TQLBSGM3CYMJYGUWDENRV";
+
+ const annotation = new PopupAnnotation();
+ annotation.name = "Name";
+ annotation.rect = { lLX: 100, lLY: 100, uRX: 200, uRY: 200};
+ annotation.flags = [AnnotationFlags.Default];
+ annotation.horizontalAlignment = HorizontalAlignment.Center;
+ annotation.zIndex = 1;
+ annotation.modified = "01/01/2018 00:00:00.000 AM";
+
+ return BaseTest.getPdfApi().postPopupAnnotation(name, parentId, annotation, null, BaseTest.remoteTempFolder)
+ .then((result) => {
+ assert.equal(result.response.statusCode, 200);
+ });
+ });
+ });
+
+
+
+ describe("Put Popup Annotation Test", () => {
+
+ it("should return response with code 200", async () => {
+
+ const annotation = new PopupAnnotation();
+ annotation.name = "Name Updated";
+ annotation.rect = { lLX: 100, lLY: 100, uRX: 200, uRY: 200};
+ annotation.flags = [AnnotationFlags.Default];
+ annotation.horizontalAlignment = HorizontalAlignment.Center;
+ annotation.zIndex = 1;
+ annotation.modified = "01/01/2018 00:00:00.000 AM";
+
+ const result = await BaseTest.getPdfApi().getDocumentPopupAnnotations(name, null, BaseTest.remoteTempFolder)
+ const annotationId = result.body.annotations.list[0].id;
+
+ return BaseTest.getPdfApi().putPopupAnnotation(name, annotationId, annotation, null, BaseTest.remoteTempFolder)
+ .then((result) => {
+ assert.equal(result.response.statusCode, 200);
+ });
+ });
+ });
+
+
+});
\ No newline at end of file
diff --git a/test/testSquigglyAnnotations.ts b/test/testSquigglyAnnotations.ts
new file mode 100644
index 00000000..ff764bd5
--- /dev/null
+++ b/test/testSquigglyAnnotations.ts
@@ -0,0 +1,136 @@
+ /**
+ *
+ * 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.
+ *
+ */
+
+import * as BaseTest from "./baseTestPdfApi";
+import "mocha";
+var assert = require('assert');
+import { SquigglyAnnotation } from "../src/models/squigglyAnnotation";
+import { AnnotationFlags } from "../src/models/annotationFlags";
+import { HorizontalAlignment } from "../src/models/horizontalAlignment";
+
+describe("Squiggly Annotations Tests", () => {
+
+ const name = "PdfWithAnnotations.pdf";
+ const pageNumber = 2;
+
+ beforeEach( async ()=> {
+ await BaseTest.uploadFile(name);
+ });
+
+ describe("Get Document Squiggly Annotations Test", () => {
+
+ it("should return response with code 200", async () => {
+
+ return BaseTest.getPdfApi().getDocumentSquigglyAnnotations(name, null, BaseTest.remoteTempFolder)
+ .then((result) => {
+ assert.equal(result.response.statusCode, 200);
+ });
+ });
+ });
+
+ describe("Get Page Squiggly Annotations Test", () => {
+
+ it("should return response with code 200", async () => {
+
+ return BaseTest.getPdfApi().getPageSquigglyAnnotations(name, pageNumber, null, BaseTest.remoteTempFolder)
+ .then((result) => {
+ assert.equal(result.response.statusCode, 200);
+ });
+ });
+ });
+
+ describe("Get Squiggly Annotation Test", () => {
+
+ it("should return response with code 200", async () => {
+
+ const result = await BaseTest.getPdfApi().getDocumentSquigglyAnnotations(name, null, BaseTest.remoteTempFolder)
+ const annotationId = result.body.annotations.list[0].id;
+
+ return BaseTest.getPdfApi().getSquigglyAnnotation(name, annotationId, null, BaseTest.remoteTempFolder)
+ .then((result) => {
+ assert.equal(result.response.statusCode, 200);
+ });
+ });
+ });
+
+ describe("Post Page Squiggly Annotations Test", () => {
+
+ it("should return response with code 200", async () => {
+
+ const annotation = new SquigglyAnnotation();
+ annotation.name = "Name";
+ annotation.rect = { lLX: 100, lLY: 100, uRX: 200, uRY: 200};
+ annotation.flags = [AnnotationFlags.Default];
+ annotation.horizontalAlignment = HorizontalAlignment.Center;
+ annotation.richText = "Rich Text";
+ annotation.subject = "Text Box Subj";
+ annotation.zIndex = 1;
+ annotation.title = "Title"
+ annotation.quadPoints = [
+ {x: 10, y: 10},
+ {x: 20, y: 10},
+ {x: 10, y: 20},
+ {x: 10, y: 10}
+ ];
+ annotation.modified = "01/01/2018 00:00:00.000 AM";
+
+ return BaseTest.getPdfApi().postPageSquigglyAnnotations(name, pageNumber, [annotation], null, BaseTest.remoteTempFolder)
+ .then((result) => {
+ assert.equal(result.response.statusCode, 200);
+ });
+ });
+ });
+
+
+
+ describe("Put Squiggly Annotation Test", () => {
+
+ it("should return response with code 200", async () => {
+
+ const annotation = new SquigglyAnnotation();
+ annotation.name = "Name Updated";
+ annotation.rect = { lLX: 100, lLY: 100, uRX: 200, uRY: 200};
+ annotation.flags = [AnnotationFlags.Default];
+ annotation.horizontalAlignment = HorizontalAlignment.Center;
+ annotation.richText = "Rich Text Updated";
+ annotation.subject = "Subj Updated";
+ annotation.zIndex = 1;
+ annotation.title = "Title Updated"
+ annotation.quadPoints = [
+ {x: 10, y: 10},
+ {x: 20, y: 10},
+ {x: 10, y: 20},
+ {x: 10, y: 10}
+ ];
+ annotation.modified = "01/01/2018 00:00:00.000 AM";
+
+ const result = await BaseTest.getPdfApi().getDocumentSquigglyAnnotations(name, null, BaseTest.remoteTempFolder)
+ const annotationId = result.body.annotations.list[0].id;
+
+ return BaseTest.getPdfApi().putSquigglyAnnotation(name, annotationId, annotation, null, BaseTest.remoteTempFolder)
+ .then((result) => {
+ assert.equal(result.response.statusCode, 200);
+ });
+ });
+ });
+
+
+});
\ No newline at end of file
diff --git a/test/testStrikeOutAnnotations.ts b/test/testStrikeOutAnnotations.ts
new file mode 100644
index 00000000..cf10f2ed
--- /dev/null
+++ b/test/testStrikeOutAnnotations.ts
@@ -0,0 +1,136 @@
+ /**
+ *
+ * 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.
+ *
+ */
+
+import * as BaseTest from "./baseTestPdfApi";
+import "mocha";
+var assert = require('assert');
+import { StrikeOutAnnotation } from "../src/models/strikeOutAnnotation";
+import { AnnotationFlags } from "../src/models/annotationFlags";
+import { HorizontalAlignment } from "../src/models/horizontalAlignment";
+
+describe("StrikeOut Annotations Tests", () => {
+
+ const name = "PdfWithAnnotations.pdf";
+ const pageNumber = 2;
+
+ beforeEach( async ()=> {
+ await BaseTest.uploadFile(name);
+ });
+
+ describe("Get Document StrikeOut Annotations Test", () => {
+
+ it("should return response with code 200", async () => {
+
+ return BaseTest.getPdfApi().getDocumentStrikeOutAnnotations(name, null, BaseTest.remoteTempFolder)
+ .then((result) => {
+ assert.equal(result.response.statusCode, 200);
+ });
+ });
+ });
+
+ describe("Get Page StrikeOut Annotations Test", () => {
+
+ it("should return response with code 200", async () => {
+
+ return BaseTest.getPdfApi().getPageStrikeOutAnnotations(name, pageNumber, null, BaseTest.remoteTempFolder)
+ .then((result) => {
+ assert.equal(result.response.statusCode, 200);
+ });
+ });
+ });
+
+ describe("Get StrikeOut Annotation Test", () => {
+
+ it("should return response with code 200", async () => {
+
+ const result = await BaseTest.getPdfApi().getDocumentStrikeOutAnnotations(name, null, BaseTest.remoteTempFolder)
+ const annotationId = result.body.annotations.list[0].id;
+
+ return BaseTest.getPdfApi().getStrikeOutAnnotation(name, annotationId, null, BaseTest.remoteTempFolder)
+ .then((result) => {
+ assert.equal(result.response.statusCode, 200);
+ });
+ });
+ });
+
+ describe("Post Page StrikeOut Annotations Test", () => {
+
+ it("should return response with code 200", async () => {
+
+ const annotation = new StrikeOutAnnotation();
+ annotation.name = "Name";
+ annotation.rect = { lLX: 100, lLY: 100, uRX: 200, uRY: 200};
+ annotation.flags = [AnnotationFlags.Default];
+ annotation.horizontalAlignment = HorizontalAlignment.Center;
+ annotation.richText = "Rich Text";
+ annotation.subject = "Text Box Subj";
+ annotation.zIndex = 1;
+ annotation.title = "Title"
+ annotation.quadPoints = [
+ {x: 10, y: 10},
+ {x: 20, y: 10},
+ {x: 10, y: 20},
+ {x: 10, y: 10}
+ ];
+ annotation.modified = "01/01/2018 00:00:00.000 AM";
+
+ return BaseTest.getPdfApi().postPageStrikeOutAnnotations(name, pageNumber, [annotation], null, BaseTest.remoteTempFolder)
+ .then((result) => {
+ assert.equal(result.response.statusCode, 200);
+ });
+ });
+ });
+
+
+
+ describe("Put StrikeOut Annotation Test", () => {
+
+ it("should return response with code 200", async () => {
+
+ const annotation = new StrikeOutAnnotation();
+ annotation.name = "Name Updated";
+ annotation.rect = { lLX: 100, lLY: 100, uRX: 200, uRY: 200};
+ annotation.flags = [AnnotationFlags.Default];
+ annotation.horizontalAlignment = HorizontalAlignment.Center;
+ annotation.richText = "Rich Text Updated";
+ annotation.subject = "Subj Updated";
+ annotation.zIndex = 1;
+ annotation.title = "Title Updated"
+ annotation.quadPoints = [
+ {x: 10, y: 10},
+ {x: 20, y: 10},
+ {x: 10, y: 20},
+ {x: 10, y: 10}
+ ];
+ annotation.modified = "01/01/2018 00:00:00.000 AM";
+
+ const result = await BaseTest.getPdfApi().getDocumentStrikeOutAnnotations(name, null, BaseTest.remoteTempFolder)
+ const annotationId = result.body.annotations.list[0].id;
+
+ return BaseTest.getPdfApi().putStrikeOutAnnotation(name, annotationId, annotation, null, BaseTest.remoteTempFolder)
+ .then((result) => {
+ assert.equal(result.response.statusCode, 200);
+ });
+ });
+ });
+
+
+});
\ No newline at end of file
diff --git a/test/testUnderlineAnnotations.ts b/test/testUnderlineAnnotations.ts
new file mode 100644
index 00000000..f8d72c2f
--- /dev/null
+++ b/test/testUnderlineAnnotations.ts
@@ -0,0 +1,136 @@
+ /**
+ *
+ * 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.
+ *
+ */
+
+import * as BaseTest from "./baseTestPdfApi";
+import "mocha";
+var assert = require('assert');
+import { UnderlineAnnotation } from "../src/models/underlineAnnotation";
+import { AnnotationFlags } from "../src/models/annotationFlags";
+import { HorizontalAlignment } from "../src/models/horizontalAlignment";
+
+describe("Underline Annotations Tests", () => {
+
+ const name = "PdfWithAnnotations.pdf";
+ const pageNumber = 2;
+
+ beforeEach( async ()=> {
+ await BaseTest.uploadFile(name);
+ });
+
+ describe("Get Document Underline Annotations Test", () => {
+
+ it("should return response with code 200", async () => {
+
+ return BaseTest.getPdfApi().getDocumentUnderlineAnnotations(name, null, BaseTest.remoteTempFolder)
+ .then((result) => {
+ assert.equal(result.response.statusCode, 200);
+ });
+ });
+ });
+
+ describe("Get Page Underline Annotations Test", () => {
+
+ it("should return response with code 200", async () => {
+
+ return BaseTest.getPdfApi().getPageUnderlineAnnotations(name, pageNumber, null, BaseTest.remoteTempFolder)
+ .then((result) => {
+ assert.equal(result.response.statusCode, 200);
+ });
+ });
+ });
+
+ describe("Get Underline Annotation Test", () => {
+
+ it("should return response with code 200", async () => {
+
+ const result = await BaseTest.getPdfApi().getDocumentUnderlineAnnotations(name, null, BaseTest.remoteTempFolder)
+ const annotationId = result.body.annotations.list[0].id;
+
+ return BaseTest.getPdfApi().getUnderlineAnnotation(name, annotationId, null, BaseTest.remoteTempFolder)
+ .then((result) => {
+ assert.equal(result.response.statusCode, 200);
+ });
+ });
+ });
+
+ describe("Post Page Underline Annotations Test", () => {
+
+ it("should return response with code 200", async () => {
+
+ const annotation = new UnderlineAnnotation();
+ annotation.name = "Name";
+ annotation.rect = { lLX: 100, lLY: 100, uRX: 200, uRY: 200};
+ annotation.flags = [AnnotationFlags.Default];
+ annotation.horizontalAlignment = HorizontalAlignment.Center;
+ annotation.richText = "Rich Text";
+ annotation.subject = "Text Box Subj";
+ annotation.zIndex = 1;
+ annotation.title = "Title"
+ annotation.quadPoints = [
+ {x: 10, y: 10},
+ {x: 20, y: 10},
+ {x: 10, y: 20},
+ {x: 10, y: 10}
+ ];
+ annotation.modified = "01/01/2018 00:00:00.000 AM";
+
+ return BaseTest.getPdfApi().postPageUnderlineAnnotations(name, pageNumber, [annotation], null, BaseTest.remoteTempFolder)
+ .then((result) => {
+ assert.equal(result.response.statusCode, 200);
+ });
+ });
+ });
+
+
+
+ describe("Put Underline Annotation Test", () => {
+
+ it("should return response with code 200", async () => {
+
+ const annotation = new UnderlineAnnotation();
+ annotation.name = "Name Updated";
+ annotation.rect = { lLX: 100, lLY: 100, uRX: 200, uRY: 200};
+ annotation.flags = [AnnotationFlags.Default];
+ annotation.horizontalAlignment = HorizontalAlignment.Center;
+ annotation.richText = "Rich Text Updated";
+ annotation.subject = "Subj Updated";
+ annotation.zIndex = 1;
+ annotation.title = "Title Updated"
+ annotation.quadPoints = [
+ {x: 10, y: 10},
+ {x: 20, y: 10},
+ {x: 10, y: 20},
+ {x: 10, y: 10}
+ ];
+ annotation.modified = "01/01/2018 00:00:00.000 AM";
+
+ const result = await BaseTest.getPdfApi().getDocumentUnderlineAnnotations(name, null, BaseTest.remoteTempFolder)
+ const annotationId = result.body.annotations.list[0].id;
+
+ return BaseTest.getPdfApi().putUnderlineAnnotation(name, annotationId, annotation, null, BaseTest.remoteTempFolder)
+ .then((result) => {
+ assert.equal(result.response.statusCode, 200);
+ });
+ });
+ });
+
+
+});
\ No newline at end of file