LibreDocConverter class final
Base class for LibreDocConverter.
Constructors
- LibreDocConverter({required File inputFile})
- Creates a LibreDocConverter. The inputFile is the file to convert.
Properties
Methods
-
getSofficePath(
) → Future< String> -
Returns the path of the libreoffice executable.
The executable is used to convert the files.
Throws an UnsupportedError if the platform is not supported.
Throws a FileSystemException if the executable is not found.
Supported platforms: Windows, Linux, MacOS.
inherited
-
getTempPath(
) → String -
Returns the path of the temp folder.
The temp folder is used to store the converted files.
Throws a FileSystemException if the temp folder is not found.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
startProcess(
{required String executable, required List< String> arguments}) → Future<Process> -
Starts a process with the given
executable
andarguments
. Throws a ProcessException if the process fails.inherited -
toPdf(
) → Future< File> - Converts the inputFile to pdf. Throws a FileSystemException if the inputFile is not found. Throws a FileSystemException if the converted file is not found.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited