Skip to content

Conversation

@jbremer
Copy link

@jbremer jbremer commented Jun 30, 2016

Hi @jesparza, @Titotix,

This PR includes both PRs from @Titotix and some more love in order to make peepdf a true Python package, with its core library accessible through import peepdf and the peepdf.py command exposed as the global (or local in case of virtualenv) peepdf command.

In addition to that this PR modifies a few minor things:

  • Normalizes the version number to something which gives less problems with Python packages (in this case, version 0.3.1). This will have to be increased for every release you do.
  • Removal of the update functionality, this may be replaced simply by pip install -U peepdf.
  • Move error logging file from $GIT/errors.txt to ~/.peepdf-error.txt.

I think that's most of it. Now I'd be very happy if you could merge this PR and upload it to PyPI (python setup.py register && python setup.py sdist upload). I'm also happy to do that for you, but as you're the developer of this library I think it would make most sense if you handle this yourself.

Let me know if there are any questions.

Regards,
Jurriaan

Titotix and others added 30 commits February 17, 2016 13:20
Create subrepo peepdf which contains all src code.
This in order to create a full module peepdf with setuptools in setup.py
…s not detected as JS BUT is referenced from a /JS element. Modified the PDFFile.decrypt function to update the global stats before decrypting the objects.
…put per version, so we don't lose that information
…nging the stream object when we call setReferencedJSObject (it was giving bad results with encryption)
…hanks to KurtPfeifle for the feedback ;)
…e from the command line (really basic implementation)
Fernando and others added 7 commits June 9, 2017 16:09
Allow some badchars in the JS code
Due to two characteristics of PDF streams the new isJavascript() variant
became extremely slow. First of all, we want to allow Javascript with
*some* bad characters. E.g., a trademark or unicode apostrophe would
already mark a Javascript stream as not being Javascript - this was
identified and fixed by Fernando Dominguez for the 0.3.5 release.
Secondly, due to the nature of the above, some streams were incorrectly
let through. This was caused by "\x00" not being counted as an incorrect
character and therefore the 10-20% quota not being met. Combined these
two issues let to a major performance issue, as whole streams were being
processed and included in the output.
This commit fixes those performance issues and replaces the Python
character counting by a regex query that's slightly faster.
@jpic
Copy link

jpic commented Oct 30, 2019

Amazing, thanks for maintaining the library on Pypi ! 🎩

@jbremer jbremer deleted the branch jesparza:master December 8, 2021 10:24
@jbremer jbremer closed this Dec 8, 2021
@jbremer jbremer deleted the master branch December 8, 2021 10:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants