From ccbc8eeee0254a9883e7fc0d39c9cd8318b4a34e Mon Sep 17 00:00:00 2001 From: j-t-1 <120829237+j-t-1@users.noreply.github.com> Date: Tue, 9 Jul 2024 10:02:18 +0100 Subject: [PATCH 1/8] DOC: Miscellaneous tiny changes --- docs/conf.py | 2 +- docs/meta/faq.md | 2 +- docs/user/cropping-and-transforming.md | 2 -- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index fc55b7b47..e303b1167 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -25,7 +25,7 @@ # -- Project information ----------------------------------------------------- project = py_pkg.__name__ -copyright = "2006 - 2023, Mathieu Fenniak and pypdf contributors" +copyright = "2006 - 2024, Mathieu Fenniak and pypdf contributors" author = "Mathieu Fenniak" # The version info for the project you're documenting, acts as replacement for diff --git a/docs/meta/faq.md b/docs/meta/faq.md index 99c3c06a8..ad2c2169e 100644 --- a/docs/meta/faq.md +++ b/docs/meta/faq.md @@ -1,4 +1,4 @@ -# Frequently-Asked Questions +# Frequently Asked Questions ## How is pypdf related to PyPDF2? diff --git a/docs/user/cropping-and-transforming.md b/docs/user/cropping-and-transforming.md index fb4d0d9e6..3c5083393 100644 --- a/docs/user/cropping-and-transforming.md +++ b/docs/user/cropping-and-transforming.md @@ -25,8 +25,6 @@ page3.mediabox.upper_right = ( writer.add_page(page3) # Add some JavaScript to launch the print window on opening this PDF. -# The password dialog may prevent the print dialog from being shown, -# comment the encryption lines, if that's the case, to try this out. # https://opensource.adobe.com/dc-acrobat-sdk-docs/library/jsapiref/index.html writer.add_js("this.print({bUI:true,bSilent:false,bShrinkToFit:true});") From 722b1770d1126ff67e986b86db7ae3c0c695d40f Mon Sep 17 00:00:00 2001 From: j-t-1 <120829237+j-t-1@users.noreply.github.com> Date: Tue, 9 Jul 2024 11:35:24 +0100 Subject: [PATCH 2/8] DOC: Miscellaneous tiny changes --- docs/conf.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/conf.py b/docs/conf.py index e303b1167..10edec883 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -10,6 +10,7 @@ # If extensions (or modules to document with autodoc) are in another directory, # add these directories to sys.path here. If the directory is relative to the # documentation root, use os.path.abspath to make it absolute, like shown here. +import datetime import os import shutil import sys @@ -25,7 +26,7 @@ # -- Project information ----------------------------------------------------- project = py_pkg.__name__ -copyright = "2006 - 2024, Mathieu Fenniak and pypdf contributors" +copyright = f"2006 - {datetime.date.today().year}, Mathieu Fenniak and pypdf contributors" author = "Mathieu Fenniak" # The version info for the project you're documenting, acts as replacement for From 9d0fa30996de5ae523f6176462f56d9a82cdc7ae Mon Sep 17 00:00:00 2001 From: j-t-1 <120829237+j-t-1@users.noreply.github.com> Date: Tue, 9 Jul 2024 11:39:38 +0100 Subject: [PATCH 3/8] DOC: Miscellaneous tiny changes --- docs/conf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/conf.py b/docs/conf.py index 10edec883..2f886a6b5 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -26,7 +26,7 @@ # -- Project information ----------------------------------------------------- project = py_pkg.__name__ -copyright = f"2006 - {datetime.date.today().year}, Mathieu Fenniak and pypdf contributors" +copyright = f"2006 - {datetime.datetime.today().year()}, Mathieu Fenniak and pypdf contributors" author = "Mathieu Fenniak" # The version info for the project you're documenting, acts as replacement for From c7657c92aa39e161e344acb4a7badc1c674ac4be Mon Sep 17 00:00:00 2001 From: j-t-1 <120829237+j-t-1@users.noreply.github.com> Date: Tue, 9 Jul 2024 11:41:19 +0100 Subject: [PATCH 4/8] DOC: Miscellaneous tiny changes --- docs/conf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/conf.py b/docs/conf.py index 2f886a6b5..69f349e6d 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -26,7 +26,7 @@ # -- Project information ----------------------------------------------------- project = py_pkg.__name__ -copyright = f"2006 - {datetime.datetime.today().year()}, Mathieu Fenniak and pypdf contributors" +copyright = f"2006 - {datetime.datetime.now(tz=).year()}, Mathieu Fenniak and pypdf contributors" author = "Mathieu Fenniak" # The version info for the project you're documenting, acts as replacement for From ddfc8f6bd9b819d310a38396829144bf231ecee3 Mon Sep 17 00:00:00 2001 From: j-t-1 <120829237+j-t-1@users.noreply.github.com> Date: Tue, 9 Jul 2024 11:43:34 +0100 Subject: [PATCH 5/8] DOC: Miscellaneous tiny changes --- docs/conf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/conf.py b/docs/conf.py index 69f349e6d..844e31e4c 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -26,7 +26,7 @@ # -- Project information ----------------------------------------------------- project = py_pkg.__name__ -copyright = f"2006 - {datetime.datetime.now(tz=).year()}, Mathieu Fenniak and pypdf contributors" +copyright = f"2006 - {datetime.datetime.now().year()}, Mathieu Fenniak and pypdf contributors" author = "Mathieu Fenniak" # The version info for the project you're documenting, acts as replacement for From aed3642f7b243d4d5599dc388c291d56fb8ad2d4 Mon Sep 17 00:00:00 2001 From: j-t-1 <120829237+j-t-1@users.noreply.github.com> Date: Tue, 9 Jul 2024 12:10:20 +0100 Subject: [PATCH 6/8] DOC: Miscellaneous tiny changes --- docs/conf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/conf.py b/docs/conf.py index 844e31e4c..2064c56ad 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -26,7 +26,7 @@ # -- Project information ----------------------------------------------------- project = py_pkg.__name__ -copyright = f"2006 - {datetime.datetime.now().year()}, Mathieu Fenniak and pypdf contributors" +copyright = f"2006 - {datetime.datetime.now(tz=None).year()}, Mathieu Fenniak and pypdf contributors" author = "Mathieu Fenniak" # The version info for the project you're documenting, acts as replacement for From c503bde25d8655d7d926fa7d7253103e55cd6d12 Mon Sep 17 00:00:00 2001 From: j-t-1 <120829237+j-t-1@users.noreply.github.com> Date: Tue, 9 Jul 2024 12:19:46 +0100 Subject: [PATCH 7/8] DOC: Miscellaneous tiny changes --- docs/conf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/conf.py b/docs/conf.py index 2064c56ad..897472598 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -26,7 +26,7 @@ # -- Project information ----------------------------------------------------- project = py_pkg.__name__ -copyright = f"2006 - {datetime.datetime.now(tz=None).year()}, Mathieu Fenniak and pypdf contributors" +copyright = f"2006 - {datetime.datetime.now(tz=datetime.timezone.utc).year}, Mathieu Fenniak and pypdf contributors" author = "Mathieu Fenniak" # The version info for the project you're documenting, acts as replacement for From a287bb0b9f650ff4cd835ad92f6881c1b684c35b Mon Sep 17 00:00:00 2001 From: j-t-1 <120829237+j-t-1@users.noreply.github.com> Date: Tue, 9 Jul 2024 12:33:39 +0100 Subject: [PATCH 8/8] DOC: Miscellaneous tiny changes --- docs/user/cropping-and-transforming.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/user/cropping-and-transforming.md b/docs/user/cropping-and-transforming.md index 3c5083393..fb4d0d9e6 100644 --- a/docs/user/cropping-and-transforming.md +++ b/docs/user/cropping-and-transforming.md @@ -25,6 +25,8 @@ page3.mediabox.upper_right = ( writer.add_page(page3) # Add some JavaScript to launch the print window on opening this PDF. +# The password dialog may prevent the print dialog from being shown, +# comment the encryption lines, if that's the case, to try this out. # https://opensource.adobe.com/dc-acrobat-sdk-docs/library/jsapiref/index.html writer.add_js("this.print({bUI:true,bSilent:false,bShrinkToFit:true});")