跳到主要内容

PDF converter

A tool for converting documents, spreadsheets, presentations, and forms to PDF.

PDF converter

Installation

Available by default in the DocSpace Saas solution.

You can enable it following the instructions here.

Configuration

To start working with the plugin:

  1. Generate the API token using ConvertAPI.
  2. Go to Developer Tools -> Integration -> Plugins.
  3. Click Settings icon next to the PDF converter plugin.
  4. Enter the API token in the corresponding field.

Once the API token is enabled, the plugin becomes available to all users of the current DocSpace portal.

There you can also view the plugin metadata, such as the author, version, status, homepage, and description.

Usage

Audio and video files cannot be converted to PDF.

To convert a file to PDF:

  1. Open the Documents section or one of the available rooms.
  2. Right-click a file name to open the file context menu.
  3. Click Convert to PDF.
  4. Change the file name in a pop-up window and click Convert file. The converted file is saved in the same folder as the original one.

Plugin structure

Repository on GitHub: pdf-converter.

All the required files are described here.

Interfaces

The following plugin interfaces are used:

  • IPlugin. Required for each plugin. It contains the plugin status (PluginStatus) variable, used to embed the plugin into the DocSpace.
  • IApiPlugin. Required as we implement a third-party service (ConvertAPI).
  • ISettingsPlugin and ISettings. Used to add settings block for plugin's configuration. The users will access this block from Settings -> Integration -> Plugins to adjust the plugin's parameters.
  • IContextMenuPlugin and IContextMenuItem. Used to implement a context menu action.

Support

If you want to request a feature or report a bug regarding this plugin, use the issues section on GitHub.