pyPDFeditor-GUI 3.1.4__tar.gz → 3.1.5__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.
- {pypdfeditor_gui-3.1.4 → pypdfeditor_gui-3.1.5}/PKG-INFO +1 -1
- {pypdfeditor_gui-3.1.4 → pypdfeditor_gui-3.1.5}/pyPDFeditor_GUI.egg-info/PKG-INFO +1 -1
- {pypdfeditor_gui-3.1.4 → pypdfeditor_gui-3.1.5}/pypdfeditor_core/__init__.py +1 -1
- {pypdfeditor_gui-3.1.4 → pypdfeditor_gui-3.1.5}/pypdfeditor_core/functions.py +6 -5
- {pypdfeditor_gui-3.1.4 → pypdfeditor_gui-3.1.5}/LICENSE +0 -0
- {pypdfeditor_gui-3.1.4 → pypdfeditor_gui-3.1.5}/README.md +0 -0
- {pypdfeditor_gui-3.1.4 → pypdfeditor_gui-3.1.5}/pyPDFeditor_GUI.egg-info/SOURCES.txt +0 -0
- {pypdfeditor_gui-3.1.4 → pypdfeditor_gui-3.1.5}/pyPDFeditor_GUI.egg-info/dependency_links.txt +0 -0
- {pypdfeditor_gui-3.1.4 → pypdfeditor_gui-3.1.5}/pyPDFeditor_GUI.egg-info/entry_points.txt +0 -0
- {pypdfeditor_gui-3.1.4 → pypdfeditor_gui-3.1.5}/pyPDFeditor_GUI.egg-info/requires.txt +0 -0
- {pypdfeditor_gui-3.1.4 → pypdfeditor_gui-3.1.5}/pyPDFeditor_GUI.egg-info/top_level.txt +0 -0
- {pypdfeditor_gui-3.1.4 → pypdfeditor_gui-3.1.5}/pypdfeditor_core/__main__.py +0 -0
- {pypdfeditor_gui-3.1.4 → pypdfeditor_gui-3.1.5}/pypdfeditor_core/application.py +0 -0
- {pypdfeditor_gui-3.1.4 → pypdfeditor_gui-3.1.5}/pypdfeditor_core/icons/Add.svg +0 -0
- {pypdfeditor_gui-3.1.4 → pypdfeditor_gui-3.1.5}/pypdfeditor_core/icons/Add_h.svg +0 -0
- {pypdfeditor_gui-3.1.4 → pypdfeditor_gui-3.1.5}/pypdfeditor_core/icons/Add_p.svg +0 -0
- {pypdfeditor_gui-3.1.4 → pypdfeditor_gui-3.1.5}/pypdfeditor_core/icons/Photo.svg +0 -0
- {pypdfeditor_gui-3.1.4 → pypdfeditor_gui-3.1.5}/pypdfeditor_core/icons/__init__.py +0 -0
- {pypdfeditor_gui-3.1.4 → pypdfeditor_gui-3.1.5}/pypdfeditor_core/icons/arrow_move.svg +0 -0
- {pypdfeditor_gui-3.1.4 → pypdfeditor_gui-3.1.5}/pypdfeditor_core/icons/book2.svg +0 -0
- {pypdfeditor_gui-3.1.4 → pypdfeditor_gui-3.1.5}/pypdfeditor_core/icons/chevron_down.svg +0 -0
- {pypdfeditor_gui-3.1.4 → pypdfeditor_gui-3.1.5}/pypdfeditor_core/icons/color.svg +0 -0
- {pypdfeditor_gui-3.1.4 → pypdfeditor_gui-3.1.5}/pypdfeditor_core/icons/color_h.svg +0 -0
- {pypdfeditor_gui-3.1.4 → pypdfeditor_gui-3.1.5}/pypdfeditor_core/icons/color_p.svg +0 -0
- {pypdfeditor_gui-3.1.4 → pypdfeditor_gui-3.1.5}/pypdfeditor_core/icons/delete.svg +0 -0
- {pypdfeditor_gui-3.1.4 → pypdfeditor_gui-3.1.5}/pypdfeditor_core/icons/delete_h.svg +0 -0
- {pypdfeditor_gui-3.1.4 → pypdfeditor_gui-3.1.5}/pypdfeditor_core/icons/delete_p.svg +0 -0
- {pypdfeditor_gui-3.1.4 → pypdfeditor_gui-3.1.5}/pypdfeditor_core/icons/dismiss.svg +0 -0
- {pypdfeditor_gui-3.1.4 → pypdfeditor_gui-3.1.5}/pypdfeditor_core/icons/dismiss_h.svg +0 -0
- {pypdfeditor_gui-3.1.4 → pypdfeditor_gui-3.1.5}/pypdfeditor_core/icons/down.svg +0 -0
- {pypdfeditor_gui-3.1.4 → pypdfeditor_gui-3.1.5}/pypdfeditor_core/icons/down_h.svg +0 -0
- {pypdfeditor_gui-3.1.4 → pypdfeditor_gui-3.1.5}/pypdfeditor_core/icons/down_p.svg +0 -0
- {pypdfeditor_gui-3.1.4 → pypdfeditor_gui-3.1.5}/pypdfeditor_core/icons/edit.svg +0 -0
- {pypdfeditor_gui-3.1.4 → pypdfeditor_gui-3.1.5}/pypdfeditor_core/icons/folder.svg +0 -0
- {pypdfeditor_gui-3.1.4 → pypdfeditor_gui-3.1.5}/pypdfeditor_core/icons/folder_d.svg +0 -0
- {pypdfeditor_gui-3.1.4 → pypdfeditor_gui-3.1.5}/pypdfeditor_core/icons/folder_h.svg +0 -0
- {pypdfeditor_gui-3.1.4 → pypdfeditor_gui-3.1.5}/pypdfeditor_core/icons/folder_p.svg +0 -0
- {pypdfeditor_gui-3.1.4 → pypdfeditor_gui-3.1.5}/pypdfeditor_core/icons/font.svg +0 -0
- {pypdfeditor_gui-3.1.4 → pypdfeditor_gui-3.1.5}/pypdfeditor_core/icons/font_h.svg +0 -0
- {pypdfeditor_gui-3.1.4 → pypdfeditor_gui-3.1.5}/pypdfeditor_core/icons/font_p.svg +0 -0
- {pypdfeditor_gui-3.1.4 → pypdfeditor_gui-3.1.5}/pypdfeditor_core/icons/home.svg +0 -0
- {pypdfeditor_gui-3.1.4 → pypdfeditor_gui-3.1.5}/pypdfeditor_core/icons/lock.svg +0 -0
- {pypdfeditor_gui-3.1.4 → pypdfeditor_gui-3.1.5}/pypdfeditor_core/icons/maximize.svg +0 -0
- {pypdfeditor_gui-3.1.4 → pypdfeditor_gui-3.1.5}/pypdfeditor_core/icons/merge.svg +0 -0
- {pypdfeditor_gui-3.1.4 → pypdfeditor_gui-3.1.5}/pypdfeditor_core/icons/metadata.svg +0 -0
- {pypdfeditor_gui-3.1.4 → pypdfeditor_gui-3.1.5}/pypdfeditor_core/icons/minimize.svg +0 -0
- {pypdfeditor_gui-3.1.4 → pypdfeditor_gui-3.1.5}/pypdfeditor_core/icons/more.svg +0 -0
- {pypdfeditor_gui-3.1.4 → pypdfeditor_gui-3.1.5}/pypdfeditor_core/icons/more_d.svg +0 -0
- {pypdfeditor_gui-3.1.4 → pypdfeditor_gui-3.1.5}/pypdfeditor_core/icons/more_h.svg +0 -0
- {pypdfeditor_gui-3.1.4 → pypdfeditor_gui-3.1.5}/pypdfeditor_core/icons/more_p.svg +0 -0
- {pypdfeditor_gui-3.1.4 → pypdfeditor_gui-3.1.5}/pypdfeditor_core/icons/move_page.svg +0 -0
- {pypdfeditor_gui-3.1.4 → pypdfeditor_gui-3.1.5}/pypdfeditor_core/icons/pdf icon.svg +0 -0
- {pypdfeditor_gui-3.1.4 → pypdfeditor_gui-3.1.5}/pypdfeditor_core/icons/rotate_anticlockwise.svg +0 -0
- {pypdfeditor_gui-3.1.4 → pypdfeditor_gui-3.1.5}/pypdfeditor_core/icons/rotate_clockwise.svg +0 -0
- {pypdfeditor_gui-3.1.4 → pypdfeditor_gui-3.1.5}/pypdfeditor_core/icons/settings.svg +0 -0
- {pypdfeditor_gui-3.1.4 → pypdfeditor_gui-3.1.5}/pypdfeditor_core/icons/settings_h.svg +0 -0
- {pypdfeditor_gui-3.1.4 → pypdfeditor_gui-3.1.5}/pypdfeditor_core/icons/settings_p.svg +0 -0
- {pypdfeditor_gui-3.1.4 → pypdfeditor_gui-3.1.5}/pypdfeditor_core/icons/square_multiple.svg +0 -0
- {pypdfeditor_gui-3.1.4 → pypdfeditor_gui-3.1.5}/pypdfeditor_core/icons/sync.svg +0 -0
- {pypdfeditor_gui-3.1.4 → pypdfeditor_gui-3.1.5}/pypdfeditor_core/icons/sync_h.svg +0 -0
- {pypdfeditor_gui-3.1.4 → pypdfeditor_gui-3.1.5}/pypdfeditor_core/icons/sync_p.svg +0 -0
- {pypdfeditor_gui-3.1.4 → pypdfeditor_gui-3.1.5}/pypdfeditor_core/icons/view.svg +0 -0
- {pypdfeditor_gui-3.1.4 → pypdfeditor_gui-3.1.5}/pypdfeditor_core/icons/view_h.svg +0 -0
- {pypdfeditor_gui-3.1.4 → pypdfeditor_gui-3.1.5}/pypdfeditor_core/icons/view_p.svg +0 -0
- {pypdfeditor_gui-3.1.4 → pypdfeditor_gui-3.1.5}/pypdfeditor_core/language.py +0 -0
- {pypdfeditor_gui-3.1.4 → pypdfeditor_gui-3.1.5}/pypdfeditor_core/style_sheets.py +0 -0
- {pypdfeditor_gui-3.1.4 → pypdfeditor_gui-3.1.5}/pypdfeditor_core/window_effect.py +0 -0
- {pypdfeditor_gui-3.1.4 → pypdfeditor_gui-3.1.5}/pypdfeditor_core/windows.py +0 -0
- {pypdfeditor_gui-3.1.4 → pypdfeditor_gui-3.1.5}/setup.cfg +0 -0
- {pypdfeditor_gui-3.1.4 → pypdfeditor_gui-3.1.5}/setup.py +0 -0
|
@@ -554,16 +554,17 @@ def extract_img(index: int, widget: QWidget, main: QWidget) -> None:
|
|
|
554
554
|
:return: None
|
|
555
555
|
"""
|
|
556
556
|
doc = widget.book
|
|
557
|
-
img_inf = doc[widget.book_list[index]].get_images()
|
|
557
|
+
img_inf = doc[widget.book_list[index]].get_images(full=True)
|
|
558
558
|
for key, inf in enumerate(img_inf):
|
|
559
|
+
# xref is inf[0]
|
|
560
|
+
img = doc.extract_image(inf[0])
|
|
559
561
|
f_name = (
|
|
560
562
|
os.path.splitext(os.path.basename(widget.book.name))[0]
|
|
561
|
-
+ f"-{widget.book_list[index] + 1}-image-{key + 1}.
|
|
563
|
+
+ f"-{widget.book_list[index] + 1}-image-{key + 1}.{img["ext"]}"
|
|
562
564
|
)
|
|
563
565
|
img_name = os.path.join(main.s_dir, f_name)
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
img.save(img_name)
|
|
566
|
+
with open(img_name, "wb") as f:
|
|
567
|
+
f.write(img["image"])
|
|
567
568
|
QMessageBox.information(
|
|
568
569
|
main,
|
|
569
570
|
"Saved",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pypdfeditor_gui-3.1.4 → pypdfeditor_gui-3.1.5}/pyPDFeditor_GUI.egg-info/dependency_links.txt
RENAMED
|
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
|
|
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
|
{pypdfeditor_gui-3.1.4 → pypdfeditor_gui-3.1.5}/pypdfeditor_core/icons/rotate_anticlockwise.svg
RENAMED
|
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
|