Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
mat
mat
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 29
    • Issues 29
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 0
    • Merge Requests 0
  • Operations
    • Operations
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Repository
    • Value Stream
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
  • mat
  • matmat
  • Issues
  • #6626

Closed
Open
Opened Jun 10, 2016 by fr33tux@fr33tuxReporter

Fails to clean password-protected PDF file

When cleaning a pdf file which is "protected" by a password, the following traceback is issued :

Command Line Error: Incorrect password
 Traceback (most recent call last):
  File "./mat", line 150, in 
    main()
  File "./mat", line 143, in main
    add2archive=args.add2archive, low_pdf_quality=args.low_pdf_quality)
  File "/home/fr33tux/mat/MAT/mat.py", line 186, in create_class_file
    return stripper_class(filename, parser, mime, backup, is_writable, **kwargs)
  File "/home/fr33tux/mat/MAT/office.py", line 122, in __init__
    self.document = Poppler.Document.new_from_file(uri, self.password)
  File "/usr/lib/python2.7/dist-packages/gi/types.py", line 76, in constructor
    return info.invoke(cls, *args, **kwargs)

(from redmine: created on 2014-01-28)

Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: mat/mat#6626