convert-stream 2.4__tar.gz → 2.4.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {convert_stream-2.4 → convert_stream-2.4.1}/PKG-INFO +1 -1
- {convert_stream-2.4 → convert_stream-2.4.1}/convert_stream/pdf/pdf_to_image.py +5 -5
- {convert_stream-2.4 → convert_stream-2.4.1}/convert_stream.egg-info/PKG-INFO +1 -1
- {convert_stream-2.4 → convert_stream-2.4.1}/pyproject.toml +1 -1
- {convert_stream-2.4 → convert_stream-2.4.1}/README.md +0 -0
- {convert_stream-2.4 → convert_stream-2.4.1}/convert_stream/__init__.py +0 -0
- {convert_stream-2.4 → convert_stream-2.4.1}/convert_stream/__main__.py +0 -0
- {convert_stream-2.4 → convert_stream-2.4.1}/convert_stream/_version.py +0 -0
- {convert_stream-2.4 → convert_stream-2.4.1}/convert_stream/doc_stream.py +0 -0
- {convert_stream-2.4 → convert_stream-2.4.1}/convert_stream/image/__init__.py +0 -0
- {convert_stream-2.4 → convert_stream-2.4.1}/convert_stream/image/img_object.py +0 -0
- {convert_stream-2.4 → convert_stream-2.4.1}/convert_stream/mod_types/__init__.py +0 -0
- {convert_stream-2.4 → convert_stream-2.4.1}/convert_stream/mod_types/enums.py +0 -0
- {convert_stream-2.4 → convert_stream-2.4.1}/convert_stream/mod_types/modules.py +0 -0
- {convert_stream-2.4 → convert_stream-2.4.1}/convert_stream/mod_types/table_types.py +0 -0
- {convert_stream-2.4 → convert_stream-2.4.1}/convert_stream/pdf/__init__.py +0 -0
- {convert_stream-2.4 → convert_stream-2.4.1}/convert_stream/pdf/image_to_pdf.py +0 -0
- {convert_stream-2.4 → convert_stream-2.4.1}/convert_stream/pdf/pdf_document.py +0 -0
- {convert_stream-2.4 → convert_stream-2.4.1}/convert_stream/pdf/pdf_page.py +0 -0
- {convert_stream-2.4 → convert_stream-2.4.1}/convert_stream/sheets/__init__.py +0 -0
- {convert_stream-2.4 → convert_stream-2.4.1}/convert_stream/sheets/load.py +0 -0
- {convert_stream-2.4 → convert_stream-2.4.1}/convert_stream/sheets/parse.py +0 -0
- {convert_stream-2.4 → convert_stream-2.4.1}/convert_stream/sheets/save.py +0 -0
- {convert_stream-2.4 → convert_stream-2.4.1}/convert_stream/table_files.py +0 -0
- {convert_stream-2.4 → convert_stream-2.4.1}/convert_stream/text/__init__.py +0 -0
- {convert_stream-2.4 → convert_stream-2.4.1}/convert_stream/text/date.py +0 -0
- {convert_stream-2.4 → convert_stream-2.4.1}/convert_stream/text/find_text.py +0 -0
- {convert_stream-2.4 → convert_stream-2.4.1}/convert_stream/text/terminal.py +0 -0
- {convert_stream-2.4 → convert_stream-2.4.1}/convert_stream.egg-info/SOURCES.txt +0 -0
- {convert_stream-2.4 → convert_stream-2.4.1}/convert_stream.egg-info/dependency_links.txt +0 -0
- {convert_stream-2.4 → convert_stream-2.4.1}/convert_stream.egg-info/requires.txt +0 -0
- {convert_stream-2.4 → convert_stream-2.4.1}/convert_stream.egg-info/top_level.txt +0 -0
- {convert_stream-2.4 → convert_stream-2.4.1}/setup.cfg +0 -0
|
@@ -87,14 +87,16 @@ class ImplementConvertPdfFitz(ABCConvertPdf):
|
|
|
87
87
|
dpi: int = 200,
|
|
88
88
|
lib_image: LibImage = DEFAULT_LIB_IMAGE
|
|
89
89
|
) -> list[ImageObject]:
|
|
90
|
+
"""
|
|
91
|
+
Converte um Documento em lista de objetos ImageObject.
|
|
92
|
+
"""
|
|
90
93
|
images: list[ImageObject] = []
|
|
91
94
|
pages_fitz: list[Page] = self.__get_pages()
|
|
92
95
|
_count = len(pages_fitz)
|
|
93
|
-
print()
|
|
94
96
|
for n, pg in enumerate(pages_fitz):
|
|
95
97
|
self.pbar.update(
|
|
96
98
|
((n+1)/_count) * 100,
|
|
97
|
-
f'
|
|
99
|
+
f'[Documento para Imagens]: página {n+1}/{_count}'
|
|
98
100
|
)
|
|
99
101
|
pix: Pixmap = pg.get_pixmap(dpi=dpi)
|
|
100
102
|
img = ImageObject.create_from_bytes(
|
|
@@ -102,7 +104,6 @@ class ImplementConvertPdfFitz(ABCConvertPdf):
|
|
|
102
104
|
lib_image=LibImage.PIL,
|
|
103
105
|
)
|
|
104
106
|
images.append(img)
|
|
105
|
-
print()
|
|
106
107
|
return images
|
|
107
108
|
|
|
108
109
|
def to_files_image(
|
|
@@ -115,11 +116,10 @@ class ImplementConvertPdfFitz(ABCConvertPdf):
|
|
|
115
116
|
) -> None:
|
|
116
117
|
pages_fitz: list[Page] = self.__get_pages()
|
|
117
118
|
_count = len(pages_fitz)
|
|
118
|
-
print()
|
|
119
119
|
for n, pg in enumerate(pages_fitz):
|
|
120
120
|
self.pbar.update(
|
|
121
121
|
((n + 1) / _count) * 100,
|
|
122
|
-
f'
|
|
122
|
+
f'[Documento para arquivos de imagen]: {n + 1}/{_count}'
|
|
123
123
|
)
|
|
124
124
|
out_file = output_dir.join_file(f'pag-{n+1}.png')
|
|
125
125
|
if not replace:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|