forked from pool/python-pdfminer.six
- Update to 20221105 - Option to disable boxes flow layout analysis when using pdf2txt - Add support for PDF 2.0 (ISO 32000-2) AES-256 encryption - Support for Paeth PNG filter compression (predictor value = 4) - Type annotations - Export type annotations from pypi package per PEP561 - Support for identity cmap's - Add support for PDF page labels - Installation of Pillow as an optional extra dependency - Exporting images without any specific encoding - Output converter for the hOCR format - Font name aliases for Arial, Courier New and Times New Roman - Documentation on why special characters can sometimes not be extracted - Remove patch python-pdfminer.six-remove-nose.patch - Update dependencies OBS-URL: https://build.opensuse.org/request/show/1132937 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pdfminer.six?expand=0&rev=12
35 lines
1.4 KiB
Diff
35 lines
1.4 KiB
Diff
diff '--color=auto' -rub pdfminer.six-20221105.orig/tests/test_tools_dumppdf.py pdfminer.six-20221105/tests/test_tools_dumppdf.py
|
|
--- pdfminer.six-20221105.orig/tests/test_tools_dumppdf.py 2022-11-05 12:22:08.000000000 -0400
|
|
+++ pdfminer.six-20221105/tests/test_tools_dumppdf.py 2023-12-11 12:12:06.044210731 -0500
|
|
@@ -4,7 +4,11 @@
|
|
|
|
from helpers import absolute_sample_path
|
|
from tempfilepath import TemporaryFilePath
|
|
-from tools import dumppdf
|
|
+
|
|
+import importlib.util
|
|
+spec = importlib.util.spec_from_file_location("dumppdf", "tools/dumppdf.py")
|
|
+dumppdf = importlib.util.module_from_spec(spec)
|
|
+spec.loader.exec_module(dumppdf)
|
|
|
|
|
|
def run(filename, options=None):
|
|
diff '--color=auto' -rub pdfminer.six-20221105.orig/tests/test_tools_pdf2txt.py pdfminer.six-20221105/tests/test_tools_pdf2txt.py
|
|
--- pdfminer.six-20221105.orig/tests/test_tools_pdf2txt.py 2022-11-05 12:22:08.000000000 -0400
|
|
+++ pdfminer.six-20221105/tests/test_tools_pdf2txt.py 2023-12-11 12:12:40.848031179 -0500
|
|
@@ -3,10 +3,13 @@
|
|
from tempfile import mkdtemp
|
|
import filecmp
|
|
|
|
-import tools.pdf2txt as pdf2txt
|
|
from helpers import absolute_sample_path
|
|
from tempfilepath import TemporaryFilePath
|
|
|
|
+import importlib.util
|
|
+spec = importlib.util.spec_from_file_location("pdf2txt", "tools/pdf2txt.py")
|
|
+pdf2txt = importlib.util.module_from_spec(spec)
|
|
+spec.loader.exec_module(pdf2txt)
|
|
|
|
def run(sample_path, options=None):
|
|
absolute_path = absolute_sample_path(sample_path)
|