From dbc37289257e093baefae1bec6cf287362a869e6 Mon Sep 17 00:00:00 2001 From: mara004 Date: Wed, 24 May 2023 20:16:40 +0200 Subject: [PATCH 1/3] Fill `get_version_pypdfium2()` --- main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index 10c41c2..85878d3 100755 --- a/main.py +++ b/main.py @@ -484,7 +484,8 @@ def get_version_poppler(): return cp.stdout + cp.stderr def get_version_pypdfium2(): - return None + import pypdfium2 as pdfium + return f"{pdfium.V_PYPDFIUM2}/{pdfium.V_LIBPDFIUM}" # Performance test functions. From a6ca4c77c6035a8d70991a4cc1f053e9d066123a Mon Sep 17 00:00:00 2001 From: mara004 Date: Wed, 24 May 2023 20:21:14 +0200 Subject: [PATCH 2/3] consistency: avoid alias --- main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index 85878d3..ada4715 100755 --- a/main.py +++ b/main.py @@ -484,8 +484,8 @@ def get_version_poppler(): return cp.stdout + cp.stderr def get_version_pypdfium2(): - import pypdfium2 as pdfium - return f"{pdfium.V_PYPDFIUM2}/{pdfium.V_LIBPDFIUM}" + import pypdfium2 + return f"{pypdfium2.V_PYPDFIUM2}/{pypdfium2.V_LIBPDFIUM}" # Performance test functions. From c3961449fe81c38d352f209ed3c8ff51057df899 Mon Sep 17 00:00:00 2001 From: mara004 Date: Sat, 18 Nov 2023 21:25:34 +0100 Subject: [PATCH 3/3] Update to new version API --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index ada4715..2baabb5 100755 --- a/main.py +++ b/main.py @@ -485,7 +485,7 @@ def get_version_poppler(): def get_version_pypdfium2(): import pypdfium2 - return f"{pypdfium2.V_PYPDFIUM2}/{pypdfium2.V_LIBPDFIUM}" + return f"{pypdfium2.PYPDFIUM_INFO} / {pypdfium2.PDFIUM_INFO}" # Performance test functions.