Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
P
poppler
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 611
    • Issues 611
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 37
    • Merge Requests 37
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • poppler
  • poppler
  • Issues
  • #1020

Closed
Open
Opened Dec 30, 2020 by Jerome Flesch@jflesch

Rendering issues with some PDF + GObject + Cairo

Hello,

I'm developing Paperwork (Python+GTK), and I use Poppler to extract text from PDF files and display them.

On some (rare) PDF files, some of my users have reported getting uncaught exceptions cairo.Error: invalid value for a dash setting when Paperwork tries to render the PDF with Poppler and Cairo. For instance: ticket #913 on my side ; other users have reported this very same problem too. Weirdly, the PDF is still correctly drawn on screen.

I've narrowed it down to this Python test script: test.py. I've compiled and installed Poppler from Git (master), and I still can reproduce this issue.

The user who opened the ticket on my side #913 has sent me by email a PDF to reproduce the problem. Unfortunately, this PDF contains personal information, so I cannot upload it on this ticket. However, he has allowed me to share it privately with any Poppler developers.

The problem doesn't seem to happen with Evince, which suggests it's related to the GObject Introspection bindings.

Interestingly, if you remove the calls to cairo_context.save() and cairo_context.restore(), there are still some cairo warnings in the console, but not uncaught exception anymore.

Best regards,

Edited Dec 30, 2020 by Jerome Flesch
To upload designs, you'll need to enable LFS and have admin enable hashed storage. More information
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: poppler/poppler#1020