Skip to content

PdfTypeException Dictionary value expected. #229

Description

@richard-domo

When processing some user-uploaded PDFs, we are seeing the following error in our logs. We are using FDPI v2.6.0

setasign\Fpdi\PdfParser\Type\PdfTypeException
Dictionary value expected.
setasign\Fpdi\PdfParser\Type\PdfTypeException: Dictionary value expected.
#69 /vendor/setasign/fpdi/src/PdfParser/Type/PdfType.php(63): setasign\Fpdi\PdfParser\Type\PdfType::ensureType
#68 /vendor/setasign/fpdi/src/PdfParser/Type/PdfDictionary.php(132): setasign\Fpdi\PdfParser\Type\PdfDictionary::ensure
#67 /vendor/setasign/fpdi/src/PdfParser/Type/PdfDictionary.php(112): setasign\Fpdi\PdfParser\Type\PdfDictionary::get
#66 /vendor/setasign/fpdi/src/PdfReader/PdfReader.php(166): setasign\Fpdi\PdfReader\PdfReader::getPage
#65 /app/Services/Pdfs/Building/PdfBuilder.php(54): App\Services\Pdfs\Building\PdfBuilder::importPage

My colleague created a similar issue a few years back, which can be found here: #129

Is there a recommended way of dealing with this type of exception? I can provide the original PDF for debugging purposes.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions