rotdrop / nextcloud-app-pdf-downloader

Recusively convert entire directory trees to PDF and provide the resulting document as download.
Other
3 stars 4 forks source link

Not saving to cloud after pdf generation #40

Open ostasevych opened 1 year ago

ostasevych commented 1 year ago

Hi! I have installed this app, trying to generate pdf with saving to cloud. There's the message, that it is successfully created and saved, however the file doesn't appear.

So, for the docx file in the logs I see:

[pdf_downloader] Error: RuntimeException: Converter "Array
(
    [0] => [fallback]
)
" has failed trying to convert MIME type "application/vnd.openxmlformats-officedocument.wordprocessingml.document" at <<closure>>

0. /var/www/html/nextcloud/apps/pdf_downloader/lib/Service/FileSystemWalker.php line 412
   OCA\PdfDownloader\Service\AnyToPdf->convertData()
1. /var/www/html/nextcloud/apps/pdf_downloader/lib/Service/FileSystemWalker.php line 478
   OCA\PdfDownloader\Service\FileSystemWalker->addFile()
2. /var/www/html/nextcloud/apps/pdf_downloader/lib/Service/FileSystemWalker.php line 543
   OCA\PdfDownloader\Service\FileSystemWalker->generateDownloadData()
3. /var/www/html/nextcloud/apps/pdf_downloader/lib/Controller/MultiPdfDownloadController.php line 313
   OCA\PdfDownloader\Service\FileSystemWalker->save()
4. /var/www/html/nextcloud/lib/private/AppFramework/Http/Dispatcher.php line 230
   OCA\PdfDownloader\Controller\MultiPdfDownloadController->save()
5. /var/www/html/nextcloud/lib/private/AppFramework/Http/Dispatcher.php line 137
   OC\AppFramework\Http\Dispatcher->executeController()
6. /var/www/html/nextcloud/lib/private/AppFramework/App.php line 183
   OC\AppFramework\Http\Dispatcher->dispatch()
7. /var/www/html/nextcloud/lib/private/Route/Router.php line 315
   OC\AppFramework\App::main()
8. /var/www/html/nextcloud/lib/base.php line 1065
   OC\Route\Router->match()
9. /var/www/html/nextcloud/index.php line 36
   OC::handleRequest()

POST /apps/pdf_downloader/save/%252FDocuments%252Fdoc.pdf/%7BcacheFileId%7D
from 1**.***.1**.17 by username at 2023-08-10T22:42:37+03:00

The image JPEG file pdf generation says that it is fine, however no file appears.

I have also found that it is not possible to change the directory where to save the results: when changing it in the UI the window just refreshes, and the selection is not kept...

When trying to generate PNG I am getting the following error:

[pdf_downloader] Error: RuntimeException: Converter "Array
(
    [0] => [fallback]
)
" has failed trying to convert MIME type "image/png" at <<closure>>

0. /var/www/html/nextcloud/apps/pdf_downloader/lib/Service/FileSystemWalker.php line 412
   OCA\PdfDownloader\Service\AnyToPdf->convertData()
1. /var/www/html/nextcloud/apps/pdf_downloader/lib/Service/FileSystemWalker.php line 478
   OCA\PdfDownloader\Service\FileSystemWalker->addFile()
2. /var/www/html/nextcloud/apps/pdf_downloader/lib/Service/FileSystemWalker.php line 543
   OCA\PdfDownloader\Service\FileSystemWalker->generateDownloadData()
3. /var/www/html/nextcloud/apps/pdf_downloader/lib/Controller/MultiPdfDownloadController.php line 313
   OCA\PdfDownloader\Service\FileSystemWalker->save()
4. /var/www/html/nextcloud/lib/private/AppFramework/Http/Dispatcher.php line 230
   OCA\PdfDownloader\Controller\MultiPdfDownloadController->save()
5. /var/www/html/nextcloud/lib/private/AppFramework/Http/Dispatcher.php line 137
   OC\AppFramework\Http\Dispatcher->executeController()
6. /var/www/html/nextcloud/lib/private/AppFramework/App.php line 183
   OC\AppFramework\Http\Dispatcher->dispatch()
7. /var/www/html/nextcloud/lib/private/Route/Router.php line 315
   OC\AppFramework\App::main()
8. /var/www/html/nextcloud/lib/base.php line 1065
   OC\Route\Router->match()
9. /var/www/html/nextcloud/index.php line 36
   OC::handleRequest()

POST /apps/pdf_downloader/save/%252FDocuments%252F%25D0%25BA%25D0%25B5%25D0%25BD%25D0%25B3%25D1%2583%25D1%2580%25D1%258F%25D1%2582%25D0%25BD%25D0%25B8%25D0%25BA.png/%252FDocuments%252F.%252F2023-08-10T22%253A52%253A14%252B03%253A00-Documents-%25D0%25BA%25D0%25B5%25D0%25BD%25D0%25B3%25D1%2583%25D1%2580%25D1%258F%25D1%2582%25D0%25BD%25D0%25B8%25D0%25BA.pdf/%7BcacheFileId%7D
from 1**.***.1**.17 by username at 2023-08-10T22:52:20+03:00

The same goes for plain TXT file:

[pdf_downloader] Error: RuntimeException: Converter "Array ( [0] => [fallback] ) " has failed trying to convert MIME type "text/plain" at <>

  1. /var/www/html/nextcloud/apps/pdf_downloader/lib/Service/FileSystemWalker.php line 412 OCA\PdfDownloader\Service\AnyToPdf->convertData()
  2. /var/www/html/nextcloud/apps/pdf_downloader/lib/Service/FileSystemWalker.php line 478 OCA\PdfDownloader\Service\FileSystemWalker->addFile()
  3. /var/www/html/nextcloud/apps/pdf_downloader/lib/Service/FileSystemWalker.php line 543 OCA\PdfDownloader\Service\FileSystemWalker->generateDownloadData()
  4. /var/www/html/nextcloud/apps/pdf_downloader/lib/Controller/MultiPdfDownloadController.php line 313 OCA\PdfDownloader\Service\FileSystemWalker->save()
  5. /var/www/html/nextcloud/lib/private/AppFramework/Http/Dispatcher.php line 230 OCA\PdfDownloader\Controller\MultiPdfDownloadController->save()
  6. /var/www/html/nextcloud/lib/private/AppFramework/Http/Dispatcher.php line 137 OC\AppFramework\Http\Dispatcher->executeController()
  7. /var/www/html/nextcloud/lib/private/AppFramework/App.php line 183 OC\AppFramework\Http\Dispatcher->dispatch()
  8. /var/www/html/nextcloud/lib/private/Route/Router.php line 315 OC\AppFramework\App::main()
  9. /var/www/html/nextcloud/lib/base.php line 1065 OC\Route\Router->match()
  10. /var/www/html/nextcloud/index.php line 36 OC::handleRequest()

POST /apps/pdf_downloader/save/%252FDocuments%252F%25D1%2582%25D0%25B5%25D1%2581%25D1%2582.txt/%252FDocuments%252F.%252F2023-08-10T22%253A55%253A12%252B03%253A00-Documents-%25D1%2582%25D0%25B5%25D1%2581%25D1%2582.pdf/%7BcacheFileId%7D from 1**.*.1.17 by username at 2023-08-10T22:55:36+03:00

rotdrop commented 1 year ago

Hi,

are the needed converter binaries installed, in particular unoconv? Does it work to convert the respective files on the command-line?

Maybe there are also some notes on the admin-settings page. There you will in particular find an overview of the converters that have been detected by the app.