Giter Club home page Giter Club logo

pypdftk's Introduction

ronanpaixao

Página pessoal do Ronan

pypdftk's People

Contributors

ronanpaixao avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

pypdftk's Issues

Processing big files locks UI

When processing big files (both on input and output), the UI is locked.

Both input and output should be done in the background.

There should be some way to at least see a progress indication, maybe with the possibility of cancelling the action.

OCR pictures

OCR would be a great feature to have!

Could be through a third-party library or a self-made one, though that last would be quite a challenge (while the first is a supposedly smaller challenge to integrate).

Close files when importing images

When images are imported to PDF, they are left open, even after clearing the file list. This locks the file for exclusion by the OS, for example.

Invalid palette map in pdf_images.py

Thanks for the improvements on image extraction code that is floating around!

I am having some trouble with indexed color spaces for the Flate Decode filter. Specifically, the line:
img.putpalette(lookup.getData())

It fails for color maps that are longer than 768 entries with the error:
ValueError: invalid palette size

For images with a color index that is shorter, it seems like the image isn't being rendered correctly - I see really strange results.

I have attached a pdf with examples of images that have color index length from 368 to 956, so you can see both failure modes. The code does seem to work when the color index is exactly 768.

0198008e-8628-47be-b674-a4e26a419e98.pdf

Problem on resizing window

When resizing the main window, the action buttons also resize, occupying space that is better used by the list widgets.

Add bookmarks

It might be useful to allow to create a bookmark for each input file.

Include "optimize page" functionality

Some places, specially web services, require a maximum document size in bytes. For PDFs, it's very frustrating to have to extract the images and then optimize the output to fit the size limit.

It would be great to have a feature to optimize the document aiming at reducing the file size by trading image quality.

Long filenames get occluded in list widgets

Long filenames (those that do not fit in the list widget width) get occluded (hidden).

There should be an automatic scrollbar on these cases.

Also, there should be a splitter to allow resizing inside the main window.

Save settings for next execution

No settings are saved from one execution/session to the next.

Settings such as image DPI, "Open files after saving" checkbox and window geometry should be saved for the next session, when the program closes.

Implement document decryption

Some documents are encrypted.

PyPDFTK should allow them to be decrypted with a password. There should also be some way to change other security settings. And maybe also encryption.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.