Remove samples/ directory from source distribution to prevent downloading all pdf's when installing pdfminer.six (#364)
Fixes #363 * Remove samples/ and docs/ from source distribution. The samples/ dictionairy contains pdf's for testing purposes and the docs/ contain readthedocs documentation and is published online. * Remove issue-00152-embedded-pdf.pdf because it contains a possible exploit. See https://www.microsoft.com/en-us/wdsi/threats/malware-encyclopedia-description?Name=Exploit%3AJS%2FShellCode.gen And https://github.com/pdfminer/pdfminer.six/issues/363 * Added line to CHANGELOG.md * Remove unused importspull/388/head
parent
bc494ff03c
commit
1c3047b68b
|
@ -5,7 +5,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
|||
|
||||
## [Unreleased]
|
||||
|
||||
Nothing
|
||||
### Security
|
||||
- Removed samples/issue-00152-embedded-pdf.pdf because it contains a possible security thread; a javascript enabled object ([#364](https://github.com/pdfminer/pdfminer.six/pull/364))
|
||||
|
||||
## [20200121] - 2020-01-21
|
||||
|
||||
|
|
|
@ -4,8 +4,8 @@ include *.txt
|
|||
include *.md
|
||||
include *.py
|
||||
graft cmaprsrc
|
||||
graft docs
|
||||
graft pdfminer
|
||||
graft samples
|
||||
graft tools
|
||||
global-exclude *.pyc
|
||||
prune samples
|
||||
prune docs
|
Binary file not shown.
|
@ -1,5 +1,4 @@
|
|||
from shutil import rmtree
|
||||
from tempfile import NamedTemporaryFile, mkdtemp
|
||||
from tempfile import NamedTemporaryFile
|
||||
|
||||
from helpers import absolute_sample_path
|
||||
from tools import dumppdf
|
||||
|
@ -37,15 +36,3 @@ class TestDumpPDF():
|
|||
|
||||
def test_6(self):
|
||||
run('nonfree/naacl06-shinyama.pdf', '-t -a')
|
||||
|
||||
def test_embedded_font_filename(self):
|
||||
"""If UF font file name does not exist, then F should be used
|
||||
|
||||
Related issue: https://github.com/pdfminer/pdfminer.six/issues/152
|
||||
"""
|
||||
output_dir = mkdtemp()
|
||||
try:
|
||||
run('contrib/issue-00152-embedded-pdf.pdf',
|
||||
'--extract-embedded %s' % output_dir)
|
||||
finally:
|
||||
rmtree(output_dir)
|
||||
|
|
Loading…
Reference in New Issue