Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python3 and full library support - works for me at least #102

Open
wants to merge 103 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
103 commits
Select commit Hold shift + click to select a range
156d618
intoduce setup.py
Titotix Feb 17, 2016
fe3efc4
Change project structure
Titotix Feb 17, 2016
32dff13
setup.py: module in lower case
Titotix Feb 17, 2016
76b6600
import jsbeautify as external lib
Titotix May 18, 2016
362889a
import colorama as external lib
Titotix May 24, 2016
adc512c
aespython as external lib
Titotix May 29, 2016
1470253
Improved Javascript detection in function isJavascript
May 1, 2016
18fe76b
Added updateStats call in PDFBody.updateObjects to take into account …
May 1, 2016
8225f47
Added in the output the total number of objects per suspicious element
May 1, 2016
9fb0872
Added in the info output the total number of objects per suspicious e…
May 1, 2016
36227a8
Some PEP8 cleaning
May 1, 2016
0fa6409
Added element to mark an object as containingJS even if the content i…
May 1, 2016
646c856
Revision changed
May 1, 2016
8fb9cb6
Added new variable and getter to keep track of which object contains …
May 1, 2016
be9cfa6
Modified PDFBody.getJavascriptCode to be able to return the js code p…
May 1, 2016
2713210
Modified PDFFile.getURIs to be able to return the uris per object too
May 1, 2016
18048f9
Modified do_extract to show information about objects containing URIs…
May 1, 2016
2709c48
Modified PDFDictionary.update to force not detected JS code to be alw…
May 1, 2016
b9811df
Modified PDFFile.getJavascriptCode and PDFFile.getURIs to give an out…
May 1, 2016
39d59f4
Add version information in the extract command output
May 1, 2016
408b770
Added TODO line and revision change
May 1, 2016
f07430b
Added a direct string argument to several commands: decode, encode, j…
May 1, 2016
ce2299d
Fixed some variable reference errors
May 1, 2016
f75d77a
Revision change
May 1, 2016
944cfb7
Added error handling in computeUserPass if revision < 2
May 1, 2016
a82f8b8
PEP8 changes in PDFCrypto
May 1, 2016
2bb9e39
Added custom function setReferencedJSObject in PDFStream to avoid cha…
May 1, 2016
c403dcd
Fixed issue #36 (bad redirection output in filter command). Thanks to…
May 1, 2016
006dd9c
Added new argument -C to execute commands from the interactive consol…
May 1, 2016
6efd14c
Updated copyright years
May 5, 2016
9ce8e60
update README
Titotix Jun 2, 2016
cf54922
update revision
Titotix Jun 4, 2016
614c0fe
desactivate update option
Titotix Jun 5, 2016
3ca1135
README: advise to use easy_install
Titotix Jun 5, 2016
e411d89
Merge 'master' in 'feature/external-lib'
Titotix Jun 8, 2016
f23192b
include 'Pillow' as dependency
Titotix Jun 8, 2016
e0b5d1a
add lxml as dependency
Titotix Jun 27, 2016
d53ce34
Merge branch 'setupv4' of https://github.com/Titotix/peepdf into tito…
jbremer Jun 30, 2016
5e80c04
Merge branch 'feature/external-lib' of https://github.com/Titotix/pee…
jbremer Jun 30, 2016
801a057
pep8 setup.py
jbremer Jun 30, 2016
3b8c399
use normalized version and hardcode requirement versions
jbremer Jun 30, 2016
74012be
completely get rid of the update functionality
jbremer Jun 30, 2016
307ce47
move peepdf.py to peepdf/main.py
jbremer Jun 30, 2016
1931316
truly turn the peepdf.py script into the peepdf command
jbremer Jun 30, 2016
c70c092
resolve some local vs global issues
jbremer Jun 30, 2016
6e78ea2
update error reporting message
jbremer Jun 30, 2016
a0b0a58
chmod -x
jbremer Jun 30, 2016
628ddc9
many many many pep8 improvements
jbremer Jun 30, 2016
0a29e9e
ensure Global is available
jbremer Jun 30, 2016
e3e4b85
more peepdf-error.txt renames
jbremer Jun 30, 2016
efb3f67
add subject and title to basic info
jbremer Jun 30, 2016
828ee91
rename jserror.log file
jbremer Jun 30, 2016
378b432
code cleanup
jbremer Jun 30, 2016
46a0ab1
pythonaes is now a registered python package
jbremer Jul 2, 2016
8b631d6
version 0.3.2
jbremer Jul 2, 2016
e3e62c9
Do not skip whitespace after opening ( in string literals
jgajek Oct 26, 2016
9b7a275
unit test for #2
jbremer Oct 27, 2016
571272d
gitignore
jbremer Oct 27, 2016
fb4c484
Merge pull request #2 from jgajek/jbremer
jbremer Oct 27, 2016
00b3bab
travis ci integration
jbremer Oct 27, 2016
b497df4
and coveralls as well
jbremer Oct 27, 2016
e4e99c4
move travis ci and coveralls links to readme.md
jbremer Oct 27, 2016
b4fa279
version 0.3.3
jbremer Oct 27, 2016
e0d255e
appveyor configuration for unit testing for windows platforms
jbremer Nov 25, 2016
77d3081
unittest missing lxml package
jbremer Mar 10, 2017
19581cf
version 0.3.4
jbremer Mar 10, 2017
2d436eb
Allow up to 20% badchars
Jun 9, 2017
afa849f
Add a JS detection test
Jun 9, 2017
8a365f4
Remove unused vars
Jun 9, 2017
f944bcb
Merge pull request #5 from FernandoDoming/patch-1
jbremer Jun 9, 2017
6915a70
version 0.3.5
jbremer Jun 9, 2017
2396013
performance speed-up for js badchar check
jbremer Jun 10, 2017
80748f5
version 0.3.6
jbremer Jun 10, 2017
d5d46d5
fix performance bottleneck (thanks spender)
jbremer Dec 12, 2017
73ab841
get rid of superfluous global statements
jbremer Dec 12, 2017
12c7b19
version 0.3.7
jbremer Dec 12, 2017
8cc27b6
Passing all tests
Evert0x Mar 19, 2018
a456f52
Making a little progress with py3 compatability
Evert0x Mar 20, 2018
1899e90
Progress...
Evert0x Mar 20, 2018
66b5d36
Wohoo all 4 tests succeeding at sflock
Evert0x Mar 21, 2018
bb03df1
All tests on peepdf and slfock/test_pdf working :D
Evert0x Mar 21, 2018
139da0a
code cleanup
jbremer Mar 26, 2018
9833d27
code cleanup
jbremer Mar 26, 2018
2002565
version 0.4.0
jbremer Mar 26, 2018
6aa9692
install future for py2/3 compatibility
jbremer Mar 26, 2018
a63d628
version 0.4.1 with future included
jbremer Mar 26, 2018
8d6a370
py35/py36/macos unit testing
jbremer Apr 15, 2018
f476b4d
fix object not found issue #7 (thanks Wyatt Roersma)
jbremer Jun 11, 2018
e727ac7
ignore presumable ghostscript streams for jsbeautifier
jbremer Jun 11, 2018
11dab2e
version 0.4.2
jbremer Jun 11, 2018
a86f118
Added pull requests commits from jbremer/master and updated dependenc…
enzok Jan 7, 2021
67600f9
Don't add to entries if exception
enzok Jan 11, 2021
09376a5
Changing to STPyV8 instead of the old PyV8, fixed the python3 xml dum…
Dec 8, 2021
493148d
Adding howto instructions for the libraries
Dec 8, 2021
1db0524
Adding install steps into readme.md
Harakan Dec 8, 2021
15aacce
Fixing a typo and shortening ending message
Dec 8, 2021
565b60e
Merge branch 'master' of github.com:Harakan/peepdf
Dec 8, 2021
c121174
Update PDFCore.py
nurpabuccu Dec 15, 2021
181f0cd
Windows subsystem fixes
Harakan Jan 24, 2022
16e7070
Added requirements file for easy install: pip3 -r requirements.txt
Harakan Jan 24, 2022
c9ce667
Update README.md
Harakan Jan 25, 2022
17197c9
Merge pull request #1 from nurpabuccu/master
Harakan Jan 25, 2022
07bd520
Update README.md
Harakan Jan 28, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update PDFCore.py
  • Loading branch information
nurpabuccu authored Dec 15, 2021
commit c121174c35ba1eb30bff75d1cdcd4776f33d719a
8 changes: 6 additions & 2 deletions peepdf/PDFCore.py
Original file line number Diff line number Diff line change
Expand Up @@ -7363,7 +7363,10 @@ def createPDFDictionary(self, rawContent):
return (-1, 'Bad object for '+str(key)+' key')
else:
value = ret[1]
elements[key] = value
if value.value == "<< >>":
elements[key] = PDFString(rawValue)
else:
elements[key] = value
ret = self.readObject(rawContent[self.charCounter:], 'name')
if ret[0] == -1:
if ret[1] != 'Empty content reading object':
Expand Down Expand Up @@ -7950,7 +7953,8 @@ def readObject(self, content, objectType=None, forceMode=False, looseMode=False)
break
elif delim[2] == 'name':
ret, raw = self.readUntilNotRegularChar(content)
pdfObject = PDFName(raw)
if raw:
pdfObject = PDFName(raw)
break
elif delim[2] == 'comment':
ret = self.readUntilEndOfLine(content)
Expand Down