pdfmd-cli 3.15.0__tar.gz → 3.15.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.
- {pdfmd_cli-3.15.0/pdfmd_cli.egg-info → pdfmd_cli-3.15.1}/PKG-INFO +1 -1
- {pdfmd_cli-3.15.0 → pdfmd_cli-3.15.1}/pdfmd.py +10 -1
- {pdfmd_cli-3.15.0 → pdfmd_cli-3.15.1/pdfmd_cli.egg-info}/PKG-INFO +1 -1
- {pdfmd_cli-3.15.0 → pdfmd_cli-3.15.1}/LICENSE +0 -0
- {pdfmd_cli-3.15.0 → pdfmd_cli-3.15.1}/README.md +0 -0
- {pdfmd_cli-3.15.0 → pdfmd_cli-3.15.1}/pdfmd_cli.egg-info/SOURCES.txt +0 -0
- {pdfmd_cli-3.15.0 → pdfmd_cli-3.15.1}/pdfmd_cli.egg-info/dependency_links.txt +0 -0
- {pdfmd_cli-3.15.0 → pdfmd_cli-3.15.1}/pdfmd_cli.egg-info/entry_points.txt +0 -0
- {pdfmd_cli-3.15.0 → pdfmd_cli-3.15.1}/pdfmd_cli.egg-info/requires.txt +0 -0
- {pdfmd_cli-3.15.0 → pdfmd_cli-3.15.1}/pdfmd_cli.egg-info/top_level.txt +0 -0
- {pdfmd_cli-3.15.0 → pdfmd_cli-3.15.1}/pyproject.toml +0 -0
- {pdfmd_cli-3.15.0 → pdfmd_cli-3.15.1}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pdfmd-cli
|
|
3
|
-
Version: 3.15.
|
|
3
|
+
Version: 3.15.1
|
|
4
4
|
Summary: One command from Markdown to a good-looking PDF: a Pandoc wrapper with smart defaults, project-file discovery and a multi-engine fallback chain
|
|
5
5
|
Author: Ali Perdekhan
|
|
6
6
|
License-Expression: MIT
|
|
@@ -449,7 +449,7 @@ Automatic source backups (--backup, v3.8.0; formats v3.9.0):
|
|
|
449
449
|
# unreliable 1.x history from those gaps, versioning restarts at 2.0.0 here
|
|
450
450
|
# (2026-09-16, the author's call) as an honest baseline: this is where real
|
|
451
451
|
# changelog tracking begins, not a claim about how many changes preceded it.
|
|
452
|
-
PDFMD_VERSION = "3.15.
|
|
452
|
+
PDFMD_VERSION = "3.15.1"
|
|
453
453
|
import argparse
|
|
454
454
|
import filecmp
|
|
455
455
|
from fnmatch import fnmatchcase
|
|
@@ -3552,6 +3552,15 @@ def stamp_pdf_metadata_posthoc(pdf_path: Path, options: dict, texts: list[str],
|
|
|
3552
3552
|
warnings.simplefilter("ignore")
|
|
3553
3553
|
reader = pypdf.PdfReader(pdf_path)
|
|
3554
3554
|
existing = dict(reader.metadata) if reader.metadata else {}
|
|
3555
|
+
# Credit pdfmd in /Creator, appended in pandoc's own
|
|
3556
|
+
# "<tool> via <wrapper>" order ("LaTeX via pandoc" -> "LaTeX
|
|
3557
|
+
# via pandoc via pdfmd-cli"; "Typst 0.15.1" -> "Typst 0.15.1
|
|
3558
|
+
# via pdfmd-cli"). Named by its PyPI distribution name so it
|
|
3559
|
+
# is searchable; the version is already in PdfmdVersions.
|
|
3560
|
+
# Idempotent (a re-stamp doesn't append twice).
|
|
3561
|
+
creator = str(existing.get("/Creator") or "").strip()
|
|
3562
|
+
if not creator.endswith("pdfmd-cli"):
|
|
3563
|
+
existing["/Creator"] = f"{creator} via pdfmd-cli" if creator else "pdfmd-cli"
|
|
3555
3564
|
writer = pypdf.PdfWriter()
|
|
3556
3565
|
writer.append(reader)
|
|
3557
3566
|
writer.add_metadata({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pdfmd-cli
|
|
3
|
-
Version: 3.15.
|
|
3
|
+
Version: 3.15.1
|
|
4
4
|
Summary: One command from Markdown to a good-looking PDF: a Pandoc wrapper with smart defaults, project-file discovery and a multi-engine fallback chain
|
|
5
5
|
Author: Ali Perdekhan
|
|
6
6
|
License-Expression: MIT
|
|
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
|