Skip to content

bug with PDF Smalot #24

Description

@eyona

Hello,

When I index large pdf db, I got this error

An unhandled exception has been thrown:
TypeError: Smalot\PdfParser\PDFObject::getTJUsingFontFallback(): Argument #1 ($font) must be of type Smalot\PdfParser\Font, null given, called in /opt/nextcloud/apps/fulltextsearch_sql/vendor/smalot/pdfparser/src/Smalot/PdfParser/PDFObject.php on line 930 and defined in /opt/nextcloud/apps/fulltextsearch_sql/vendor/smalot/pdfparser/src/Smalot/PdfParser/PDFObject.php:527
Stack trace:
#0 /opt/nextcloud/apps/fulltextsearch_sql/vendor/smalot/pdfparser/src/Smalot/PdfParser/PDFObject.php(930): Smalot\PdfParser\PDFObject->getTJUsingFontFallback()
#1 /opt/nextcloud/apps/fulltextsearch_sql/vendor/smalot/pdfparser/src/Smalot/PdfParser/PDFObject.php(668): Smalot\PdfParser\PDFObject->getTextArray()
#2 /opt/nextcloud/apps/fulltextsearch_sql/vendor/smalot/pdfparser/src/Smalot/PdfParser/PDFObject.php(798): Smalot\PdfParser\PDFObject->getText()
#3 /opt/nextcloud/apps/fulltextsearch_sql/vendor/smalot/pdfparser/src/Smalot/PdfParser/PDFObject.php(668): Smalot\PdfParser\PDFObject->getTextArray()
#4 /opt/nextcloud/apps/fulltextsearch_sql/vendor/smalot/pdfparser/src/Smalot/PdfParser/Page.php(232): Smalot\PdfParser\PDFObject->getText()
#5 /opt/nextcloud/apps/fulltextsearch_sql/vendor/smalot/pdfparser/src/Smalot/PdfParser/Document.php(439): Smalot\PdfParser\Page->getText()
#6 /opt/nextcloud/apps/fulltextsearch_sql/lib/Platform/SQLPlatform.php(238): Smalot\PdfParser\Document->getText()
#7 /opt/nextcloud/apps/fulltextsearch/lib/Service/IndexService.php(353): OCA\FullTextSearch_SQL\Platform\SQLPlatform->indexDocument()
#8 /opt/nextcloud/apps/fulltextsearch/lib/Service/IndexService.php(303): OCA\FullTextSearch\Service\IndexService->indexDocument()
#9 /opt/nextcloud/apps/fulltextsearch/lib/Service/IndexService.php(174): OCA\FullTextSearch\Service\IndexService->indexDocuments()
#10 /opt/nextcloud/apps/fulltextsearch/lib/Command/Index.php(325): OCA\FullTextSearch\Service\IndexService->indexProviderContentFromUser()
#11 /opt/nextcloud/apps/fulltextsearch/lib/Command/Index.php(202): OCA\FullTextSearch\Command\Index->indexProvider()
#12 /opt/nextcloud/3rdparty/symfony/console/Command/Command.php(326): OCA\FullTextSearch\Command\Index->execute()
#13 /opt/nextcloud/core/Command/Base.php(218): Symfony\Component\Console\Command\Command->run()
#14 /opt/nextcloud/3rdparty/symfony/console/Application.php(1078): OC\Core\Command\Base->run()
#15 /opt/nextcloud/3rdparty/symfony/console/Application.php(324): Symfony\Component\Console\Application->doRunCommand()
#16 /opt/nextcloud/3rdparty/symfony/console/Application.php(175): Symfony\Component\Console\Application->doRun()
#17 /opt/nextcloud/lib/private/Console/Application.php(187): Symfony\Component\Console\Application->run()
#18 /opt/nextcloud/console.php(90): OC\Console\Application->run()
#19 /opt/nextcloud/occ(33): require_once('...')

missing font

This stop indexing process

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions