- Changed DocsboxLib->convert, not it accepts a new optional parameter called format

- Integrated the DocsboxLib into the application/libraries/DocumentLib.php
This commit is contained in:
Paolo
2021-10-14 14:25:35 +02:00
parent 2fb4be0e55
commit 6f14b5cec5
2 changed files with 48 additions and 21 deletions
+2 -1
View File
@@ -39,8 +39,9 @@ class DocsboxLib
/**
* Static method used to convert a document using a Docsbox installation (local/remote) over the network
* It return 0 on success and any other integer on error
* NOTE: currently format is not supported
*/
public static function convert($inputFileName, $outputFileName)
public static function convert($inputFileName, $outputFileName, $format = 'pdf')
{
// Posts the file to docsbox
$queueId = self::_postFile($inputFileName);