Skip to main content

Aspose Connector

Aspose Aspose is a cloud-based file manipulation platform that provides APIs for document processing and format conversion. This component allows you to convert documents between formats (PDF, DOCX, HTML), merge and split documents, and extract text and metadata from files.

API Documentation

This component was built using the Aspose Words Cloud API and Aspose PDF Cloud API.

Connections

Aspose API Key

Authenticate with Aspose using Client ID and Client Secret.

To authenticate with Aspose, an application must be created in the Aspose Developer Dashboard to obtain a Client ID and Client Secret.

Prerequisites

Setup Steps

  1. Log in to the Aspose Developer Dashboard using an Aspose account
  2. Navigate to the Applications view
  3. Click Create New Application or Add Application
  4. Fill in the required application details and save
  5. After creating the application, Aspose will generate a Client ID and Client Secret
  6. Copy both the Client ID and Client Secret values

Configure the Connection

  • Enter the Client ID into the Application Client ID field
  • Enter the Client Secret into the Application Client Secret field

For more information about the Aspose REST API, refer to the Aspose API documentation.

InputCommentsDefault
Application Client IDClient ID of your Aspose Application.
Application Client SecretClient Secret of your Aspose Application.

Actions

Convert Cloud Storage Document

Converts a document in cloud storage to the specified format.

InputCommentsDefault
ConnectionThe Aspose connection to use.
File NameName of the file inside the storage
FormatThe destination format for the converted file.
PasswordPassword of protected Word document.
Folder NameThe name of the folder in the storage.
Out PathThe path to the output document.
Load EncodingEncoding that will be used to load an HTML (or TXT) document if the encoding is not specified in HTML.
StorageOriginal document storage.

Convert Diagram

Converts document from the request's content to the specified format.

InputCommentsDefault
ConnectionThe Aspose connection to use.
File ContentReference of a file from a previous step to upload.
File NameDownload Document Name

Convert HTML to PDF

Converts HTML file in storage to PDF format.

InputCommentsDefault
ConnectionThe Aspose connection to use.
Upload to StorageWhen true, saves the post-conversion file to Aspose storage. When false, the resulting file is returned in the response body.false
Destination PathThe destination document folder.
Storage NameThe document storage which contains the file.
Document NameThe document name located in storage. (Note, this input is required in case you want to save the resulting file in an Aspose storage).
Source Folder PathFull source filename (ex. /folder1/folder2/template.zip). Note: this input is required in case you want to get the resulting file in the response.
HTML File NameName of HTML file in ZIP archive.
Page HeightDesired page height (in px).
Page WidthDesired page width (in px).
Is LandscapeWhen true, uses landscape page orientation.false
Margin LeftPage margin left (in px).
Margin RightPage margin right (in px).
Margin BottomPage margin bottom (in px).
Margin TopPage margin top (in px).

Convert Local Document

Converts a document on a local drive to the specified format.

InputCommentsDefault
ConnectionThe Aspose connection to use.
Out PathThe path to the output document on a local storage.
PasswordPassword of protected Word document.
FormatThe destination format for the converted file.
File Name Field ValueThe filename of the output document. This will be used when the resulting document has a dynamic field (filename). If not set, the document name will be used instead.
Load EncodingEncoding that will be used to load an HTML (or TXT) document if the encoding is not specified in HTML.
StorageOriginal document storage name.
DocumentThe document to convert.

Convert PDF to DOC

Converts PDF document to DOC format.

InputCommentsDefault
Upload to StorageWhen true, saves the post-conversion file to Aspose storage. When false, the resulting file is returned in the response body.false
Out PathFull resulting filename. Note: This field is required when the post-conversion file needs to be saved in an Aspose storage.
Folder PathThe Document folder
File ContentFile to convert, if missing, action will assume that the file is located in an Aspose storage.
Document NameThe name of the document inside Aspose. (Note: this input is required when the file to convert is located in an Aspose storage.)
PasswordThe file password.
FormatAllows to specify .doc or .docx file format.
Add Return to Line EndWhen true, adds a return character at the end of each line.false
Image Resolution XImage resolution X (horizontal).
Image Resolution YImage resolution Y (vertical).
Max Distance Between Text LinesMax distance between text lines (in px).
Conversion ModeControls how a PDF document is converted into a word processing document.
Recognize BulletsWhen true, the converter recognizes and preserves bullet points.false
Relative Horizontal ProximityRelative horizontal proximity (in px).
Storage NameAspose storage name where the folder gets read or created.
ConnectionThe Aspose connection to use.

Convert PDF to HTML

Converts a PDF to HTML format.

InputCommentsDefault
ConnectionThe Aspose connection to use.
Upload to StorageWhen true, saves the post-conversion file to Aspose storage. When false, the resulting file is returned in the response body.false
Storage NameAspose storage name where the folder gets read or created.
File ContentFile to convert, if missing, action will assume that the file is located in an Aspose storage.
Document NameThe name of the document inside Aspose. (Note: this input is required when the file to convert in located in an Aspose storage.)
FormatResult document type.Html5
Out PathFull resulting filename. Note: This field is required when the post-conversion file needs to be saved in an Aspose storage.
Folder NameThe document folder
Additional Margin Width In PointsDefines width of margin that will be left around output HTML areas.
Compress SVG Graphics If AnyWhen true, compresses SVG graphics into SVGZ format during saving.false
Convert Marked Content To LayersWhen true, converts PDF marked content (layers) into HTML divs with 'data-pdflayer' attributes specifying layer names.false
Default Font NameSpecifies the name of an installed font used to substitute any document font that is not embedded or installed in the system. If not specified, the default substitution font is used.
Fixed LayoutWhen true, creates the HTML as a fixed layout.false
Image ResolutionResolution for image rendering.
Prevent Glyphs GroupingWhen true, prevents text glyphs from being grouped into words. Useful for documents with music notes or glyphs that should be positioned precisely. Only applies when Fixed Layout is true.false
Split CSS Into PagesWhen true, creates separate CSS files for each HTML result page. Only applies when 'Split Into Pages' is enabled.false
Split Into PagesWhen true, converts each page of the source document into a separate HTML file.false
Use Z-OrderWhen true, graphics and text are added to the HTML document according to the Z-order in the original PDF. When false, all graphics are rendered as a single layer.false
Antialiasing ProcessingDefines antialiasing measures during conversion of compound background images from PDF to HTML.
CSS Class Names PrefixSets a prefix for CSS class names generated during PDF to HTML conversion.
Font Encoding StrategyDefines encoding rule to tune PDF decoding for the current document.
Font Saving ModeDefines font saving mode used during PDF conversion.
HTML Markup Generation ModeDefines HTML markup generation mode during PDF to HTML conversion.WriteAllHtml
Letters Positioning MethodThe mode of positioning letters in words in the result HTML.
Pages Flow Type Depends On Viewers Screen SizeWhen true, flow areas representing PDF pages in the result HTML adapt to the viewer's screen resolution. Only applies when 'Split Into Pages' is false.false
Parts Embedding ModeDefines whether referenced files (HTML, Fonts, Images, CSS) will be embedded into the main HTML file or generated as separate files.
Raster Images Saving ModeDefines how raster images in the PDF should be handled during conversion to HTML.
Remove Empty Areas On Top And BottomWhen true, removes empty areas at the top and bottom of the created HTML that have no content.false
Save Shadowed Texts As Transparent TextsWhen true, saves text that is shadowed by other elements (e.g., images with OCR text) as transparent selectable text in the result HTML, mimicking Acrobat Reader behavior.false
Save Transparent TextsWhen true, saves transparent text (typically OCR text from images) as transparent selectable text in the result HTML.false
Special Folder For All ImagesThe path to directory where images will be saved during HTML conversion. If empty, images are saved with other HTML-linked files.
Special Folder For SVG ImagesThe path to directory where SVG images will be saved during HTML conversion. If empty, SVG images are saved with other HTML-linked files.
Try Save Text Underlining And Strikethrough In CSSWhen true, attempts to detect text underlining and strikethrough (which PDF emulates with lines) and represent them using CSS instead of graphical elements.false
Minimal Line WidthMinimal line width.

Copy File

Copies a file.

InputCommentsDefault
ConnectionThe Aspose connection to use.
Source Folder PathSource file's path. e.g: '/Folder1/fole.ext or '/Bucket/Folder1/file.ext'
Destination Folder PathDestination file path.
Source Storage NameSource storage name.
Destination Storage NameDestination storage name.
File Version IDFile version ID to download. If not specified, the latest version is used.

Copy Folder

Copies a folder.

InputCommentsDefault
ConnectionThe Aspose connection to use.
Source Folder PathSource folder path.
Destination Folder PathDestination folder path.
Source Storage NameSource storage name.
Destination Storage NameDestination storage name.

Create Document

Creates a new document in cloud storage in the format, determined by the file extension. All save format extensions are supported.

InputCommentsDefault
ConnectionThe Aspose connection to use.
File NameName of the file to upload.

Create Folder

Creates a folder.

InputCommentsDefault
ConnectionThe Aspose connection to use.
Folder PathTarget folder's path. The folders will be created recursively.
Storage NameAspose storage name where the folder gets read or created.

Delete File

Deletes a file.

InputCommentsDefault
ConnectionThe Aspose connection to use.
File PathPath of the file including the file name and extension.
File Version IDFile version ID to download. If not specified, the latest version is used.
Storage NameStorage name.

Delete Folder

Deletes a folder.

InputCommentsDefault
ConnectionThe Aspose connection to use.
Folder PathTarget folder's path. The folders will be created recursively.
Storage NameAspose storage name where the folder gets read or created.
RecursiveWhen true, deletes folders, subfolders, and files recursively.false

Download File

Downloads a file.

InputCommentsDefault
ConnectionThe Aspose connection to use.
File PathPath of the file including the file name and extension.
File Version IDFile version ID to download. If not specified, the latest version is used.
Storage NameStorage name.

Get Diagram

Exports the document into the specified format.

InputCommentsDefault
ConnectionThe Aspose connection to use.
Diagram NameThe name of the diagram.
FormatThe destination format for the converted file.
Folder PathThe folder path where original diagram is located.

Get Document

Reads common information from the document.

InputCommentsDefault
ConnectionThe Aspose connection to use.
Document NameThe filename of the input document.
Folder PathThe path to the folder where the document is located.
Storage NameStorage name.

Get Files List

Get all files and folders within a folder.

InputCommentsDefault
ConnectionThe Aspose connection to use.
Folder PathTarget folder's path. The folders will be created recursively.
Storage NameAspose storage name where the folder gets read or created.

Load Web Document

Downloads a document from the web using URL and saves it to cloud storage in the specified format.

InputCommentsDefault
ConnectionThe Aspose connection to use.
Loading Document URLThe web document URL.

Move File

Moves a file.

InputCommentsDefault
ConnectionThe Aspose connection to use.
Source Folder PathSource file's path. e.g: '/Folder1/fole.ext or '/Bucket/Folder1/file.ext'
Destination Folder PathDestination file path.
Source Storage NameSource storage name.
Destination Storage NameDestination storage name.
File Version IDFile version ID to download. If not specified, the latest version is used.

Move Folder

Moves a folder.

InputCommentsDefault
ConnectionThe Aspose connection to use.
Source Folder PathSource folder path.
Destination Folder PathDestination folder path.
Source Storage NameSource storage name.
Destination Storage NameDestination storage name.

Save Diagram As

Converts document to destination format with detailed settings and saves result to storage.

InputCommentsDefault
ConnectionThe Aspose connection to use.
Original Document NameName of the original document.
Destination Folder PathDestination folder path.
Destination File NameThe name of the converted file.
Folder NameOriginal document folder.
OverwriteWhen true, overwrites existing files with the same name.false
Default FontThe default font for the diagram.

Save Document As

Converts a document in cloud storage to the specified format.

InputCommentsDefault
ConnectionThe Aspose connection to use.
File NameName of the file to convert inside your Aspose Storage.
Destination File NameThe name of the converted file.
FormatThe destination format for the converted file.
Save Options DataProvide save options related to the SaveFormat provided. For all save options, please refer to this link: https://reference.aspose.cloud/words/#/op/SaveAs (Toggle 'Advanced Parameters' on and then select a SaveOptionsData object congruent to the one chosen in the 'Format' input)
Folder NameThe name of the folder in the storage.
PasswordPassword of protected Word document.
Load EncodingEncoding that will be used to load an HTML (or TXT) document if the encoding is not specified in HTML.
StorageOriginal document storage name.

Split Document

Splits a document into parts and saves them in the specified format.

InputCommentsDefault
Document NameThe filename of the input document.
PasswordPassword of protected Word document.
Storage NameAspose storage name where the folder gets read or created.
Load EncodingEncoding that will be used to load an HTML (or TXT) document if the encoding is not specified in HTML.
ConnectionThe Aspose connection to use.
From PageThe start page from where to start the splitting process.
To PageThe end page where to end the splitting process.
Zip OutputWhen true, compresses the output into a ZIP file.false
FormatThe format to split.
Destination File NameResult path of the document after the operation. If this parameter is ommited then result of the operation will be saved as the source document.
FolderOriginal document folder

Upload File

Uploads a file.

InputCommentsDefault
ConnectionThe Aspose connection to use.
File PathPath of the file including the file name and extension.
File ContentReference of a file from a previous step to upload.
Storage NameStorage name.