head	1.63;
access;
symbols
	pkgsrc-2026Q1:1.59.0.2
	pkgsrc-2026Q1-base:1.59
	pkgsrc-2025Q4:1.49.0.2
	pkgsrc-2025Q4-base:1.49
	pkgsrc-2025Q3:1.41.0.2
	pkgsrc-2025Q3-base:1.41
	pkgsrc-2025Q2:1.37.0.2
	pkgsrc-2025Q2-base:1.37
	pkgsrc-2025Q1:1.33.0.2
	pkgsrc-2025Q1-base:1.33
	pkgsrc-2024Q4:1.29.0.2
	pkgsrc-2024Q4-base:1.29
	pkgsrc-2024Q3:1.27.0.2
	pkgsrc-2024Q3-base:1.27
	pkgsrc-2024Q2:1.24.0.2
	pkgsrc-2024Q2-base:1.24
	pkgsrc-2024Q1:1.22.0.2
	pkgsrc-2024Q1-base:1.22
	pkgsrc-2023Q4:1.17.0.2
	pkgsrc-2023Q4-base:1.17
	pkgsrc-2023Q3:1.12.0.2
	pkgsrc-2023Q3-base:1.12
	pkgsrc-2023Q2:1.3.0.2
	pkgsrc-2023Q2-base:1.3;
locks; strict;
comment	@# @;


1.63
date	2026.05.10.13.47.51;	author wiz;	state Exp;
branches;
next	1.62;
commitid	s57laYxqEpk3YgFG;

1.62
date	2026.04.16.07.31.24;	author adam;	state Exp;
branches;
next	1.61;
commitid	yppkfRI9Wn3GE9CG;

1.61
date	2026.04.15.18.36.37;	author wiz;	state Exp;
branches;
next	1.60;
commitid	lODCpyImJfgYm5CG;

1.60
date	2026.03.29.18.21.42;	author wiz;	state Exp;
branches;
next	1.59;
commitid	e06Nc0aFOfhKPTzG;

1.59
date	2026.03.22.07.10.40;	author wiz;	state Exp;
branches;
next	1.58;
commitid	X7zfFkXzccYplWyG;

1.58
date	2026.03.11.10.38.31;	author adam;	state Exp;
branches;
next	1.57;
commitid	pKNHC7YPQNFFQxxG;

1.57
date	2026.03.02.11.42.15;	author adam;	state Exp;
branches;
next	1.56;
commitid	ZebcvD5N1yzvuowG;

1.56
date	2026.03.01.08.49.43;	author wiz;	state Exp;
branches;
next	1.55;
commitid	WoHqXk0jI4dlzfwG;

1.55
date	2026.02.24.19.42.07;	author adam;	state Exp;
branches;
next	1.54;
commitid	uADshkJzUFQWkFvG;

1.54
date	2026.02.18.09.27.08;	author adam;	state Exp;
branches;
next	1.53;
commitid	snDt3NCsC2bU7QuG;

1.53
date	2026.02.13.12.13.57;	author adam;	state Exp;
branches;
next	1.52;
commitid	XNp4JELkJVxcdduG;

1.52
date	2026.01.27.11.10.49;	author adam;	state Exp;
branches;
next	1.51;
commitid	vbHlNCXfLj8op1sG;

1.51
date	2026.01.11.05.40.22;	author wiz;	state Exp;
branches;
next	1.50;
commitid	bWT7bWw3olU26WpG;

1.50
date	2025.12.24.16.46.48;	author ryoon;	state Exp;
branches;
next	1.49;
commitid	KFg91NUNBwaymGnG;

1.49
date	2025.12.15.08.13.25;	author adam;	state Exp;
branches;
next	1.48;
commitid	c3BQEFHlUMbhOtmG;

1.48
date	2025.12.08.07.14.06;	author adam;	state Exp;
branches;
next	1.47;
commitid	tY2lgAZke1LRHzlG;

1.47
date	2025.11.30.08.02.03;	author wiz;	state Exp;
branches;
next	1.46;
commitid	iMn0tsEd2T4keykG;

1.46
date	2025.11.17.09.35.29;	author adam;	state Exp;
branches;
next	1.45;
commitid	KRpr2b0mSBRfaTiG;

1.45
date	2025.11.11.13.41.55;	author adam;	state Exp;
branches;
next	1.44;
commitid	APv8kbvidVwFI8iG;

1.44
date	2025.10.30.13.35.25;	author wiz;	state Exp;
branches;
next	1.43;
commitid	nPChLQcXuLav4BgG;

1.43
date	2025.10.22.10.50.36;	author adam;	state Exp;
branches;
next	1.42;
commitid	m46HsWEg1ngOpyfG;

1.42
date	2025.09.28.20.37.59;	author wiz;	state Exp;
branches;
next	1.41;
commitid	xQdjIrpBD1BerwcG;

1.41
date	2025.08.20.20.06.35;	author wiz;	state Exp;
branches;
next	1.40;
commitid	2kfUAK7WlBLbwv7G;

1.40
date	2025.08.03.10.33.21;	author wiz;	state Exp;
branches;
next	1.39;
commitid	JVrrzHxqGUiqTg5G;

1.39
date	2025.07.20.10.46.08;	author wiz;	state Exp;
branches;
next	1.38;
commitid	T4bxAUIBLgFHpt3G;

1.38
date	2025.07.01.20.35.05;	author wiz;	state Exp;
branches;
next	1.37;
commitid	vcbQHlEJEbxCh51G;

1.37
date	2025.06.10.05.40.40;	author wiz;	state Exp;
branches;
next	1.36;
commitid	3RuSWyMU6nVB0jYF;

1.36
date	2025.05.18.10.34.25;	author wiz;	state Exp;
branches;
next	1.35;
commitid	Ore1E28F0rGennVF;

1.35
date	2025.05.04.01.06.27;	author nia;	state Exp;
branches;
next	1.34;
commitid	nh4jVE7wjNEfGwTF;

1.34
date	2025.04.20.21.11.53;	author wiz;	state Exp;
branches;
next	1.33;
commitid	ejiKzRfkFSxJNPRF;

1.33
date	2025.03.03.13.06.43;	author adam;	state Exp;
branches;
next	1.32;
commitid	toVFe2NCZqiRECLF;

1.32
date	2025.02.23.20.44.51;	author wiz;	state Exp;
branches;
next	1.31;
commitid	JkbuhuRLCgD4sDKF;

1.31
date	2025.02.12.12.12.49;	author adam;	state Exp;
branches;
next	1.30;
commitid	ZWL3sBaTncL7YaJF;

1.30
date	2025.01.27.14.00.11;	author adam;	state Exp;
branches;
next	1.29;
commitid	fkY9b3lS7ZrN48HF;

1.29
date	2024.11.04.17.58.39;	author wiz;	state Exp;
branches;
next	1.28;
commitid	u9AsyLSroEhf6mwF;

1.28
date	2024.10.11.12.43.58;	author adam;	state Exp;
branches;
next	1.27;
commitid	5jD8ASHiVdXT7ftF;

1.27
date	2024.09.22.16.19.49;	author wiz;	state Exp;
branches;
next	1.26;
commitid	LmR3DO6H0QrYVOqF;

1.26
date	2024.07.22.05.51.55;	author adam;	state Exp;
branches;
next	1.25;
commitid	Xxjg4SSsa2k6sNiF;

1.25
date	2024.07.17.03.50.23;	author adam;	state Exp;
branches;
next	1.24;
commitid	1Dd4pgUmPtomW8iF;

1.24
date	2024.04.14.08.58.05;	author wiz;	state Exp;
branches;
next	1.23;
commitid	Jmllw1RbqNueF56F;

1.23
date	2024.04.10.11.19.09;	author adam;	state Exp;
branches;
next	1.22;
commitid	uigWJUQqn8jDzA5F;

1.22
date	2024.03.11.13.18.00;	author wiz;	state Exp;
branches;
next	1.21;
commitid	Q8LAkwiri2egcK1F;

1.21
date	2024.02.19.06.09.44;	author adam;	state Exp;
branches;
next	1.20;
commitid	qIALjBFKvN29v0ZE;

1.20
date	2024.01.28.17.33.44;	author adam;	state Exp;
branches;
next	1.19;
commitid	hy07gZsE4FtCZeWE;

1.19
date	2024.01.21.20.28.36;	author wiz;	state Exp;
branches;
next	1.18;
commitid	R4xCiP4TWESAbmVE;

1.18
date	2023.12.28.18.46.28;	author adam;	state Exp;
branches;
next	1.17;
commitid	b5PxJcuQn7gmogSE;

1.17
date	2023.12.18.09.40.09;	author adam;	state Exp;
branches;
next	1.16;
commitid	pB63C0sw2dFQGVQE;

1.16
date	2023.12.17.19.05.58;	author adam;	state Exp;
branches;
next	1.15;
commitid	CtxYO6PfBdtYQQQE;

1.15
date	2023.11.19.15.58.19;	author wiz;	state Exp;
branches;
next	1.14;
commitid	jI8OmxmbxS7uIeNE;

1.14
date	2023.11.05.09.26.47;	author wiz;	state Exp;
branches;
next	1.13;
commitid	Z9lWWwbE8YT30pLE;

1.13
date	2023.10.28.19.57.19;	author wiz;	state Exp;
branches;
next	1.12;
commitid	jP8MYROLWZ3yJqKE;

1.12
date	2023.09.07.12.09.13;	author adam;	state Exp;
branches;
next	1.11;
commitid	sKLw5csLd3YeNPDE;

1.11
date	2023.08.27.02.57.50;	author adam;	state Exp;
branches;
next	1.10;
commitid	TIlWmOthgE7W5nCE;

1.10
date	2023.08.24.20.05.25;	author wiz;	state Exp;
branches;
next	1.9;
commitid	4YOCfvVejRbBS4CE;

1.9
date	2023.08.16.00.38.05;	author gutteridge;	state Exp;
branches;
next	1.8;
commitid	l3X3gBVCNFiJFWAE;

1.8
date	2023.08.05.07.29.15;	author adam;	state Exp;
branches;
next	1.7;
commitid	109f7TbfcJDMizzE;

1.7
date	2023.07.19.12.53.20;	author wiz;	state Exp;
branches;
next	1.6;
commitid	wdwVDrgYmjo9EpxE;

1.6
date	2023.07.19.11.23.12;	author wiz;	state Exp;
branches;
next	1.5;
commitid	Ff9hGFcv1jqd9pxE;

1.5
date	2023.07.05.22.02.21;	author wiz;	state Exp;
branches;
next	1.4;
commitid	DJ8ErN7YOq4e8FvE;

1.4
date	2023.06.28.08.45.30;	author wiz;	state Exp;
branches;
next	1.3;
commitid	xEOBe2qbGf1UWGuE;

1.3
date	2023.06.15.20.04.20;	author adam;	state Exp;
branches;
next	1.2;
commitid	KwaIGT9Ks4tE75tE;

1.2
date	2023.05.28.22.59.53;	author wiz;	state Exp;
branches;
next	1.1;
commitid	Jlu97wIZtQdRFMqE;

1.1
date	2023.05.28.18.52.36;	author wiz;	state Exp;
branches;
next	;
commitid	F5hncbWRPPo2jLqE;


desc
@@


1.63
log
@py-pdf: update to 6.11.0.

## Version 6.11.0, 2026-05-09

### New Features (ENH)
- Initialise a Font from an embedded font file (#3704)

### Robustness (ROB)
- Allow to fix AES padding length in non-strict mode (#3742)

### Developer Experience (DEV)
- Enable PyPy testing again (#3752)
- Align mypy Makefile target with strict mode (#3690)
@
text
@# $NetBSD: Makefile,v 1.62 2026/04/16 07:31:24 adam Exp $

DISTNAME=	pypdf-6.11.0
PKGNAME=	${PYPKGPREFIX}-${DISTNAME:S/py//}
CATEGORIES=	textproc python
MASTER_SITES=	${MASTER_SITE_PYPI:=p/pypdf/}

MAINTAINER=	pkgsrc-users@@NetBSD.org
HOMEPAGE=	https://github.com/py-pdf/pypdf
COMMENT=	Pure-python PDF library
LICENSE=	modified-bsd

TOOL_DEPENDS+=	${PYPKGPREFIX}-flit_core>=3.11:../../devel/py-flit_core
DEPENDS+=	${PYPKGPREFIX}-fonttools>=0:../../fonts/py-fonttools
DEPENDS+=	${PYPKGPREFIX}-Pillow>=8.0.0:../../graphics/py-Pillow
TEST_DEPENDS+=	${PYPKGPREFIX}-test_socket-[0-9]*:../../devel/py-test_socket
TEST_DEPENDS+=	${PYPKGPREFIX}-test-timeout-[0-9]*:../../devel/py-test-timeout
TEST_DEPENDS+=	${PYPKGPREFIX}-test-xdist-[0-9]*:../../devel/py-test-xdist
TEST_DEPENDS+=	${PYPKGPREFIX}-yaml-[0-9]*:../../textproc/py-yaml

PYTHON_VERSIONED_DEPENDENCIES+=	cryptography

USE_LANGUAGES=	# none

.if make(test)
ALLOW_NETWORK_ACCESS=	yes
.endif
# as of 6.11.0
# 89 failed, 1080 passed, 24 skipped, 3 xfailed

.include "../../lang/python/pyversion.mk"
.if ${PYTHON_VERSION} < 311
DEPENDS+=	${PYPKGPREFIX}-typing-extensions>=4.0:../../devel/py-typing-extensions
.endif

.include "../../lang/python/versioned_dependencies.mk"
.include "../../lang/python/wheel.mk"
.include "../../mk/bsd.pkg.mk"
@


1.62
log
@py-pdf: updated to 6.10.2

Version 6.10.2, 2026-04-15

Security (SEC)
- Do not rely on possibly invalid /Size for incremental cloning
- Introduce limits for FlateDecode parameters and image decoding


Version 6.10.1, 2026-04-14

Security (SEC)
- Limit the allowed size of xref and object streams

Robustness (ROB)
- Consider strict mode setting for decryption errors

Documentation (DOC)
- Use new parameter names for compress_identical_objects
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.61 2026/04/15 18:36:37 wiz Exp $
d3 1
a3 1
DISTNAME=	pypdf-6.10.2
d14 1
a14 1
# full
d18 1
d28 2
a29 2
# as of 6.10.0
# 88 failed, 1064 passed, 24 skipped, 3 xfailed
@


1.61
log
@py-pdf: update to 6.10.0.

## Version 6.10.0, 2026-04-10

### Security (SEC)
- Disallow custom XML entity declarations for XMP metadata (#3724)

### New Features (ENH)
- Skip MD5 key derivation for AES-256 encrypted PDFs (#3694)

### Bug Fixes (BUG)
- Use remove_orphans in compress_identical_objects (#3310)
- Fix PdfReadError when xref table contains comments before trailer (#3710)
- Correctly verify AES padding during decryption (#3699)
- Fix stale object cache from non-authoritative object streams (#3698)
- Fix extract_links pairing when annotations include non-links (#3687)

### Documentation (DOC)
- Add AI policy (#3717)
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.60 2026/03/29 18:21:42 wiz Exp $
d3 1
a3 1
DISTNAME=	pypdf-6.10.0
@


1.60
log
@py-pdf: update to 6.9.2.

## Version 6.9.2, 2026-03-23

### Security (SEC)
- Avoid infinite loop in read_from_stream for broken files (#3693)

### Robustness (ROB)
- Resolve UnboundLocalError for xobjs in _get_image (#3684)
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.59 2026/03/22 07:10:40 wiz Exp $
d3 1
a3 1
DISTNAME=	pypdf-6.9.2
d27 2
a28 2
# as of 6.9.2
# 88 failed, 1055 passed, 24 skipped, 3 xfailed
@


1.59
log
@py-pdf: update to 6.9.1.

Security fix.

## Version 6.9.1, 2026-03-17

### Security (SEC)
- Improve performance and limit length of array-based content streams (#3686)

[Full Changelog](https://github.com/py-pdf/pypdf/compare/6.9.0...6.9.1)

## Version 6.9.0, 2026-03-15

### New Features (ENH)
- Expose /Perms verification result on Encryption object (#3672)

### Performance Improvements (PI)
- Fix O(n²) performance in NameObject read/write (#3679)
- Batch-parse all objects in ObjStm on first access (#3677)

### Bug Fixes (BUG)
- Avoid sharing array-based content streams between pages (#3681)
- Avoid accessing invalid page when inserting blank page under some conditions (#3529)

[Full Changelog](https://github.com/py-pdf/pypdf/compare/6.8.0...6.9.0)
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.58 2026/03/11 10:38:31 adam Exp $
d3 1
a3 1
DISTNAME=	pypdf-6.9.1
d27 2
a28 2
# as of 6.9.1
# 89 failed, 1050 passed, 24 skipped, 3 xfailed, 1 error
@


1.58
log
@py-pdf: updated to 6.8.0

6.8.0, 2026-03-09

Security (SEC)
- Limit allowed `/Length` value of stream

New Features (ENH)
- Add /IRT (in-reply-to) support for markup annotations

Documentation (DOC)
- Avoid using `PageObject.replace_contents` on PdfReader
- Document how to disable jbig2dec calls
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.57 2026/03/02 11:42:15 adam Exp $
d3 1
a3 1
DISTNAME=	pypdf-6.8.0
d27 2
a28 2
# as of 6.7.4
# 88 failed, 1016 passed, 24 skipped, 3 xfailed
@


1.57
log
@py-pdf: updated to 6.7.5

6.7.5
Security (SEC)
- Improve the performance of the ASCIIHexDecode filter
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.56 2026/03/01 08:49:43 wiz Exp $
d3 1
a3 1
DISTNAME=	pypdf-6.7.5
@


1.56
log
@py-pdf: update to 6.7.4.

## Version 6.7.4, 2026-02-27

### Security (SEC)
- Allow limiting output length for RunLengthDecode filter (#3664)

### Robustness (ROB)
- Deal with invalid annotations in extract_links (#3659)
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.55 2026/02/24 19:42:07 adam Exp $
d3 1
a3 1
DISTNAME=	pypdf-6.7.4
@


1.55
log
@py-pdf: updated to 6.7.3

6.7.3

Security (SEC)
- Use zlib decompression limit when retrieving XFA data


6.7.2

Security (SEC)
- Prevent infinite loop from circular xref /Prev references

Bug Fixes (BUG)
- Fix wrong LUT size error
- Fix handling of page boxes defined on `/Pages`
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.54 2026/02/18 09:27:08 adam Exp $
d3 1
a3 1
DISTNAME=	pypdf-6.7.3
d27 2
a28 2
# as of 6.6.0
# 86 failed, 992 passed, 24 skipped, 3 xfailed
@


1.54
log
@py-pdf: updated to 6.7.1

6.7.1, 2026-02-17

Security (SEC)
- Detect cyclic references when accessing TreeObject.children
- Limit size of `/ToUnicode` entries
- Limit FlateDecode recovery attempts

Bug Fixes (BUG)
- Avoid own object replacement logic in `PageObject.replace_contents`
- Fix UnboundLocalError when update_page_form_field_values with /Sig

Robustness (ROB)
- Avoid divison by zero when decoding FlateDecode PNG prediction
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.53 2026/02/13 12:13:57 adam Exp $
d3 1
a3 1
DISTNAME=	pypdf-6.7.1
@


1.53
log
@py-pdf: updated to 6.7.0

Version 6.7.0, 2026-02-08

Deprecations (DEP)
- Deprecate support for abbreviations in decode_stream_data

New Features (ENH)
- Add ability to add font resources for 14 Adobe Core fonts in text widget annotations

Bug Fixes (BUG)
- Avoid invalid load for ICCBased FlateDecode images in mode 1

Robustness (ROB)
- Fix AESV2 decryption when /Length missing in encrypt dict
- Fix merging when annotations point to NullObject
- Check for `self._info` being None in `compress_identical_objects`
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.52 2026/01/27 11:10:49 adam Exp $
d3 1
a3 1
DISTNAME=	pypdf-6.7.0
@


1.52
log
@py-pdf: updated to 6.6.2

Version 6.6.2, 2026-01-26

Security (SEC)
- Detect cyclic references when retrieving outlines

Version 6.6.1, 2026-01-25

Robustness (ROB)
- `/AcroForm` might be NullObject
- Handle missing font bounding boxes gracefully
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.51 2026/01/11 05:40:22 wiz Exp $
d3 1
a3 1
DISTNAME=	pypdf-6.6.2
@


1.51
log
@py-pdf: update to 6.6.0.

## Version 6.6.0, 2026-01-09

### Security (SEC)
- Improve handling of partially broken PDF files (#3594)

### Deprecations (DEP)
- Block common page content modifications when assigned to reader (#3582)

### New Features (ENH)
- Embellishments to generated text appearance streams (#3571)

### Bug Fixes (BUG)
- Do not consider multi-byte BOM-like sequences as BOMs (#3589)

### Robustness (ROB)
- Avoid empty FlateDecode outputs without warning (#3579)

### Documentation (DOC)
- Add outlines documentation and link it in User Guide (#3511)

### Developer Experience (DEV)
- Add PyPy 3.11 to test matrix and benchmarks (#3574)

### Maintenance (MAINT)
- Fix compatibility with Pillow >= 12.1.0 (#3590)
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.50 2025/12/24 16:46:48 ryoon Exp $
d3 1
a3 1
DISTNAME=	pypdf-6.6.0
@


1.50
log
@textproc/py-pdf: Update to 6.5.0

Changelog:
## Version 6.5.0, 2025-12-21

### New Features (ENH)
- Limit jbig2dec memory usage (#3576)
- FontDescriptor: Initiate from embedded font resource (#3551)

### Robustness (ROB)
- Allow fallback to PBM files for jbig2dec without PNG support (#3567)
- Use warning instead of error for early EOD for RunLengthDecode (#3548)

### Developer Experience (DEV)
- Test with macOS as well (#3401)
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.49 2025/12/15 08:13:25 adam Exp $
d3 1
a3 1
DISTNAME=	pypdf-6.5.0
d27 2
a28 2
# as of 6.4.0
# 85 failed, 971 passed, 23 skipped, 3 xfailed
@


1.49
log
@py-pdf: updated to 6.4.2

6.4.2, 2025-12-14

Bug Fixes (BUG)
- Fix KeyError when flattening form field without /Font in resources

Robustness (ROB)
- Allow deleting non-existent annotations

Documentation (DOC)
- Fix level of attachment heading
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.48 2025/12/08 07:14:06 adam Exp $
d3 1
a3 1
DISTNAME=	pypdf-6.4.2
@


1.48
log
@py-pdf: updated to 6.4.1

6.4.1, 2025-12-07

Performance Improvements (PI)
- Optimize loop for layout mode text extraction

Bug Fixes (BUG)
- Do not fail on choice field without /Opt key

Documentation (DOC)
- Document possible issues with merge_page and clipping
- Add some notes about library security

Maintenance (MAINT)
- Use CORE_FONT_METRICS for widths where possible
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.47 2025/11/30 08:02:03 wiz Exp $
d3 1
a3 1
DISTNAME=	pypdf-6.4.1
@


1.47
log
@py-pdf: update to 6.4.0.

Security (SEC)

    Reduce default limit for LZW decoding by @@stefan6419846

New Features (ENH)

    Parse and format comb fields in text widget annotations (#3519) by @@PJBrs

Robustness (ROB)

    Silently ignore Adobe Ascii85 whitespace for suffix detection (#3528) by @@mbierma
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.46 2025/11/17 09:35:29 adam Exp $
d3 1
a3 1
DISTNAME=	pypdf-6.4.0
@


1.46
log
@py-pdf: updated to 6.3.0

6.3.0, 2025-11-16

New Features (ENH)
- Wrap and align text in flattened PDF forms

Bug Fixes (BUG)
- Fix missing "PreventGC" when cloning
- Preserve JPEG image quality by default
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.45 2025/11/11 13:41:55 adam Exp $
d3 1
a3 1
DISTNAME=	pypdf-6.3.0
d27 2
a28 2
# as of 6.1.3
# 84 failed, 962 passed, 23 skipped, 3 xfailed
@


1.45
log
@py-pdf: updated to 6.2.0

6.2.0

New Features (ENH)
- Add 'strict' parameter to PDFWriter

Bug Fixes (BUG)
- PdfWriter.append fails when there are articles being None

Documentation (DOC)
- Execute docs examples in CI
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.44 2025/10/30 13:35:25 wiz Exp $
d3 1
a3 1
DISTNAME=	pypdf-6.2.0
@


1.44
log
@py-pdf: update to 6.1.3.

Security (SEC)

    Allow limiting size of LZWDecode streams (#3502) by @@stefan6419846
    Avoid infinite loop when reading broken DCT-based inline images (#3501) by @@stefan6419846

Bug Fixes (BUG)

    PageObject.scale() scales media box incorrectly (#3489) by @@Nid01

Robustness (ROB)

    Fail with explicit exception when image mode is an empty array (#3500) by @@stefan6419846
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.43 2025/10/22 10:50:36 adam Exp $
d3 1
a3 1
DISTNAME=	pypdf-6.1.3
@


1.43
log
@py-pdf: updated to 6.1.2

Version 6.1.2, 2025-10-19

Bug Fixes (BUG)
- Fix handling of zero-length StreamObject

Robustness (ROB)
- Deal with wrong size for incremental PDF files
- Improve handling for malformed cross-reference tables

Developer Experience (DEV)
- Use released Python 3.14
- Use Mapping instead of dict in type hint of update_page_form_field_values
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.42 2025/09/28 20:37:59 wiz Exp $
d3 1
a3 1
DISTNAME=	pypdf-6.1.2
d27 2
a28 2
# as of 6.1.1
# 84 failed, 955 passed, 22 skipped, 3 xfailed
@


1.42
log
@py-pdf: update to 6.1.1.

## Version 6.1.1, 2025-09-28

### Bug Fixes (BUG)
- Insert new embedded files in a sorted manner (#3477)
- Fix name tree handling for embedded files with Kids-based inputs (#3475)
- Make embedding files not break PDF/A-3 compliance (#3472)

### Documentation (DOC)
- Document AFRelationship handling for PDF/A and provide constants (#3478)

## Version 6.1.0, 2025-09-21

### New Features (ENH)
- Enhance XMP metadata handling with creation and setter methods (#3410)
- Add all font metrics for base 14 Type 1 PDF fonts (#3363)
- Allow deleting embedded files (#3461)
- Add support for Python in FIPS mode for document identifier (#3438)

### Bug Fixes (BUG)
- Fix handling of UTF-16 encoded destination titles (#3463)
- Guard empty input to prevent IndexError (#3448)

### Developer Experience (DEV)
- Fix type hint for XMP metadata setter to add bytes type (#3464)
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.41 2025/08/20 20:06:35 wiz Exp $
d3 1
a3 1
DISTNAME=	pypdf-6.1.1
@


1.41
log
@py-pdf: update to 6.0.0.

Security (SEC)

    Limit decompressed size for FlateDecode filter (#3430) by @@stefan6419846

Deprecations (DEP)

    Drop Python 3.8 support (#3412) by @@stefan6419846

New Features (ENH)

    Move BlackIs1 functionality to tiff_header (#3421) by @@j-t-1

Robustness (ROB)

    Skip Go-To actions without a destination (#3420) by @@badGarnet

Developer Experience (DEV)

    Update code style related libraries (#3414) by @@stefan6419846
    Update mypy to 1.17.0 (#3413) by @@stefan6419846
    Stop testing on Python 3.8 and start testing on Python 3.14 (#3411) by @@stefan6419846

Maintenance (MAINT)

    Cleanup deprecations (#3424) by @@stefan6419846
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.40 2025/08/03 10:33:21 wiz Exp $
d3 1
a3 1
DISTNAME=	pypdf-6.0.0
d24 1
a24 1
# for testing
d26 3
a28 2
# as of 6.0.0
# 84 failed, 921 passed, 22 skipped, 3 xfailed
@


1.40
log
@py-pdf: update to 5.9.0.

New Features (ENH)

    Automatically preserve links in added pages (#3298) by @@larsga
    Allow writing/updating all properties of an embedded file (#3374) by @@Arya-A-Nair

Bug Fixes (BUG)

    Fix XMP handling dropping indirect references (#3392) by @@stefan6419846

Robustness (ROB)

    Deal with DecodeParms being empty list (#3388) by @@stefan6419846

Documentation (DOC)

    Document how to read and modify XMP metadata (#3383) by @@stefan6419846
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.39 2025/07/20 10:46:08 wiz Exp $
d3 1
a3 1
DISTNAME=	pypdf-5.9.0
d26 2
a27 2
# as of 5.9.0
# 82 failed, 923 passed, 22 skipped, 3 xfailed
@


1.39
log
@py-pdf: update to 5.8.0.

New Features (ENH)

    Implement flattening for writer (#3312) by @@PJBrs

Bug Fixes (BUG)

    Unterminated object when using PdfWriter with incremental=True (#3345) by @@m32

Robustness (ROB)

    Resolve some image extraction edge cases (#3371) by @@stefan6419846
    Ignore faulty trailing newline during RLE decoding (#3355) by @@henningkoertelgmg
    Gracefully handle odd-length strings in parse_bfchar (#3348) by @@stefan6419846

Developer Experience (DEV)

    Modernize license specifiers (#3338) by @@stefan6419846

Maintenance (MAINT)

    Reduce max-complexity of tool.ruff.lint.mccabe (#3365) by @@j-t-1
    Refactor text extraction code by @@MartinThoma
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.38 2025/07/01 20:35:05 wiz Exp $
d3 1
a3 1
DISTNAME=	pypdf-5.8.0
d26 2
a27 2
# as of 5.8.0
# 77 failed, 901 passed, 22 skipped, 3 xfailed
@


1.38
log
@py-pdf: update to 5.7.0.

5.7.0

Performance Improvements (PI)

    Performance optimization for LZW decoding (#3329) by @@henningkoertelgmg

Robustness (ROB)

    Flate decoding for streams with faulty tail bytes (#3332) by @@henningkoertelgmg
    dc_creator could be a Bag as well (#3333) by @@stefan6419846
    Handle tree being NullObject when retrieving named destinations (#3331) by @@stefan6419846

Maintenance (MAINT)

    Move inline-image mappings to constants (#3328) by @@stefan6419846

5.6.1

New Features (ENH)

    Add PDF/A XMP metadata support (#3314) by @@Arya-A-Nair

Robustness (ROB)

    Deal with annotations not being lists on merge (#3321) by @@stefan6419846
    Handle NullObject for cmap encoding Differences entry (#3317) by @@stefan6419846

Developer Experience (DEV)

    Update ruff to 0.12.0 (#3316) by @@stefan6419846
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.37 2025/06/10 05:40:40 wiz Exp $
d3 1
a3 1
DISTNAME=	pypdf-5.7.0
d26 2
a27 2
# as of 5.7.0
# 76 failed, 890 passed, 22 skipped, 3 xfailed
@


1.37
log
@py-pdf: update to 5.6.0.

New Features (ENH)

    Add basic support for JBIG2 by using jbig2dec (#3163) by @@stefan6419846

Bug Fixes (BUG)

    Fix crashes by removing unnecessary line (#3293) by @@larsga
    Add delimiters to NameObject.renumber_table (#3286) by @@ztravis

Robustness (ROB)

    Handle DecodeParms being a NullObject (#3285) by @@stefan6419846

Code Style (STY)

    Update to mypy 1.16.0 (#3300) by @@stefan6419846
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.36 2025/05/18 10:34:25 wiz Exp $
d3 1
a3 1
DISTNAME=	pypdf-5.6.0
d26 2
a27 2
# as of 5.6.0
# 72 failed, 881 passed, 22 skipped, 3 xfailed
@


1.36
log
@py-pdf: update to 5.5.0.

New Features (ENH)

    Add support for IndirectObject.iter (#3228) by @@bryan-brancotte
    Allow filtering by font when removing text (#3216) by @@samuelbradshaw

Bug Fixes (BUG)

    Add missing named destinations being ByteStringObjects (#3282) by @@stefan6419846
    Get font information more reliably when removing text (#3252) by @@samuelbradshaw
    T* 2D Translation consistent with PDF 1.7 Spec (#3250) by @@hackowitz-af
    Add font stack to q/Q operations in layout mode (#3225) by @@hackowitz-af
    Avoid completely hiding image loading issues like exceeding image size limits (#3221) by @@stefan6419846
    Using compress_identical_objects on transformed content duplicates differing content (#3197) by @@danio
    Consider BlackIs1 parameter for CCITTFaxDecode filter (#3196) by @@stefan6419846

Robustness (ROB)

    Deal with insufficient cm matrix during text extraction (#3283) by @@stefan6419846
    Allow merging when annotations miss D entry (#3281) by @@stefan6419846
    Fix merging documents if there are no Dests (#3280) by @@stefan6419846
    Fix crash on malformed action in outline (#3278) by @@larsga
    Fix compression issues for removed images which might be None (#3246) by @@stefan6419846
    Attempt to deal with non-rectangular FlateDecode streams (#3245) by @@stefan6419846
    Handle some None values for broken PDF files (#3230) by @@stefan6419846

Developer Experience (DEV)

    Multiple style improvements by @@j-t-1
    Update ruff to 0.11.0 by @@stefan6419846

Maintenance (MAINT)

    Conform ASCIIHexDecode implementation to specification (#3274) by @@j-t-1
    Modify comments of filters that do not use decode_parms (#3260) by @@j-t-1

Code Style (STY)

    Simplify warnings & debugging in layout mode text extraction (#3271) by @@hackowitz-af
    Standardize mypy assert statements (#3276) by @@j-t-1
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.35 2025/05/04 01:06:27 nia Exp $
d3 1
a3 1
DISTNAME=	pypdf-5.5.0
d26 2
a27 2
# as of 5.5.0
# 72 failed, 879 passed, 19 skipped, 3 xfailed
@


1.35
log
@py-pdf: Support non-Rust version of py-cryptography

Discovered by a failure on OpenBSD in drecklypkg ci, this package
should be buildable on platforms for which there is no rust
bootstrap.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.34 2025/04/20 21:11:53 wiz Exp $
d3 1
a3 1
DISTNAME=	pypdf-5.4.0
d26 2
a27 2
# as of 5.4.0
# 70 failed, 862 passed, 19 skipped, 3 xfailed
@


1.34
log
@py-pdf: update to 5.4.0.

New Features (ENH)

    Add support for IndirectObject.__contains__ (#3155) by @@noamkush

Bug Fixes (BUG)

    Fix detection of inline images followed by names or numbers (#3173) by @@stefan6419846

Robustness (ROB)

    Consider root objects without catalog type as fallback (#3175) by @@stefan6419846
    Raise proper error on infinite loop when reading objects (#3169) by @@stefan6419846

Documentation (DOC)

    Mention memory consumption of text extraction (#3168) by @@stefan6419846

Developer Experience (DEV)

    Upgrade to ruff 0.10.0 (#3191) by @@stefan6419846
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.33 2025/03/03 13:06:43 adam Exp $
a15 1
DEPENDS+=	${PYPKGPREFIX}-cryptography-[0-9]*:../../security/py-cryptography
d20 2
d34 1
@


1.33
log
@py-pdf: updated to 5.3.1

5.3.1

Bug Fixes (BUG)

Use the correct name StandardEncoding for the predefined cmap
Handle inline images containing EI  sequences
Fix check box value which should be name object
Fix stream position on inline image fallback extraction
Fix object count for incremental writer

Robustness (ROB)

Avoid index errors on empty lines in xref table
Improve handling of LZW decoder table overflow
Ignore non-numbers for width when building font width map
Avoid negative seek values when reading partially broken files

Documentation (DOC)

Fixed PageObject.images example usage for replacing image
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.32 2025/02/23 20:44:51 wiz Exp $
d3 1
a3 1
DISTNAME=	pypdf-5.3.1
d25 2
a26 2
# as of 5.1.0
# 70 failed, 818 passed, 9 skipped, 3 xfailed
@


1.32
log
@py-pdf: adapt for flit_core 3.11.

Bump PKGREVISION.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.31 2025/02/12 12:12:49 adam Exp $
d3 1
a3 1
DISTNAME=	pypdf-5.3.0
a4 1
PKGREVISION=	1
@


1.31
log
@py-pdf: updated to 5.3.0

Version 5.3.0, 2025-02-09

New Features (ENH)
- Handle attachments in /Kids and provide object-oriented API

Bug Fixes (BUG)
- Handle annotations being None on merging

Robustness (ROB)
- Prevent excessive layout mode text output from Type3 fonts

Documentation (DOC)
- stefan6419846 becomes BDFL of pypdf
- Tidy the visitor function description

Developer Experience (DEV)
- Remove ignoring multiple Ruff rules
- Remove unused mutmut configuration

Testing (TST)
- Fix warning assertions to use `pytest.warns()`
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.30 2025/01/27 14:00:11 adam Exp $
d5 1
d14 1
a14 1
TOOL_DEPENDS+=	${PYPKGPREFIX}-flit_core>=3.9:../../devel/py-flit_core
@


1.30
log
@py-pdf: updated to 5.2.0

Version 5.2.0, 2025-01-26

Deprecations (DEP)
- Deprecate with replacement CCITParameters
- Correct deprecation of interiour_color

New Features (ENH)
- Support alternative (U)F names for embedded file retrieval
- Adding support for reading .metadata.keywords

Bug Fixes (BUG)
- Handle further Tf operators in text extraction layout mode
- Ensure `add_metadata` can deal with `_info = None`
- Handle IndirectObject in CCITTFaxDecode filter
- Handle chained colorspace for inline images when no filter is set
- Avoid extracting inline images twice and dropping other operators
- Fixed reference of value with `str.__new__` in TextStringObject
- Handle indirect objects in font width calculations
- Title sometimes is bytes and not str
- Fix undefined variable for text extraction (regression)
- Don't close stream passed to PdfWriter.write()

Robustness (ROB)
- Handle zero height fonts when extracting text
- Deal with content streams not containing streams
- Gracefully handle some text operators when the operands are missing
- Fall back to non-Adobe Ascii85 format for missing end markers
- Ignore odd-length strings when processing cmap lines
- Skip annotation destination being NullObject in PdfWriter
- Skip destination page being None in PdfWriter
- Fix infinite loop case when reading null objects within an Array
- Fixing infinite loop in ArrayObject read_from_stream

Documentation (DOC)
- Add note about default line colors

Developer Experience (DEV)
- Remove ignoring Ruff rule PGH004
- Tidy ignore array in tool.ruff.lint
- Move Windows CI to Python 3.13
- Move to Ubuntu 22.04

Maintenance (MAINT)
- Fix formatting of warning message and include exception message
- Narrow return type for `ContentStream.operations`

Testing (TST)
- Fix image similarity for upcoming Ubuntu 24.04
- Replace broken Apache Tika Corpora urls

Code Style (STY)
- Add form feed to WHITESPACES
- Lots of small internal changes
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.29 2024/11/04 17:58:39 wiz Exp $
d3 1
a3 1
DISTNAME=	pypdf-5.2.0
@


1.29
log
@py-pdf: update to 5.1.0.

## Version 5.1.0, 2024-10-27

### New Features (ENH)
- Add `layout_mode_font_height_weight` argument to `PageObject.extract_text()` (#2920)

### Bug Fixes (BUG)
- Fix font specificier for FreeText annotation (#2893)
- Line breaks are not generated due to incorrect calculation of text leading (#2890)
- Improve handling of spaces in text extraction (#2882)

### Robustness (ROB)
- Soft failure for flate encode image mode 1 with wrong LUT size (#2900)

### Documentation (DOC)
- Use latest package versions (#2907)
- Correct example of reading FileAttachment annotation (#2906)

### Developer Experience (DEV)
- Update pinned requirements (#2918)
- Make make_release.py compatible with Windows environment (#2894)

### Maintenance (MAINT)
- Remove references to outdated Python versions (#2919)
- Generalize the method of obtaining space_code (#2891)
- Unnecessary character mapping process (#2888)
- New LZW decoding implementation (#2887)

### Testing (TST)
- Add LzwCodec for encoding (#2883)

### Code Style (STY)
- Capitalize error messages (#2903)
- Modify error messages in PdfWriter (#2902)
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.28 2024/10/11 12:43:58 adam Exp $
d3 1
a3 1
DISTNAME=	pypdf-5.1.0
@


1.28
log
@py-pdf: updated to 5.0.1

Version 5.0.1, 2024-09-29

New Features (ENH)
- Add `full` parameter to PdfWriter constructor

Bug Fixes (BUG)
- Update pyproject.toml with minimum Python version of 3.8
- Cope with unbalanced delimiters in dictionary object
- Cope with encoding with too many differences
- Missing spaces in extract_text() method
- Tolerate truncated files and no warning when jumping startxref

Robustness (ROB)
- Repair PDF with invalid Root object
- Continue parsing dictionary object when error is detected
- Merge documents with invalid pages in named destinations
- Tolerate comments in arrays

Developer Experience (DEV)
- Use latest Python version for benchmarking

Maintenance (MAINT)
- Add tests to source distributions
- Refactor _update_field_annotation
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.27 2024/09/22 16:19:49 wiz Exp $
d3 1
a3 1
DISTNAME=	pypdf-5.0.1
d18 2
d23 5
@


1.27
log
@py-pdf: update to 5.0.0.

## Version 5.0.0, 2024-09-15

This version drops support for Python 3.7 (not maintained since July 2023), PdfMerger (use PdfWriter instead) and AnnotationBuilder (use annotations instead).


### Deprecations (DEP)
- Remove the deprecated PfdMerger and AnnotationBuilder classes and other deprecations cleanup (#2813)
- Drop Python 3.7 support (#2793)

### New Features (ENH)
- Add capability to remove /Info from PDF (#2820)
- Add incremental capability to PdfWriter (#2811)
- Add UniGB-UTF16 encodings (#2819)
- Accept utf strings for metadata (#2802)
- Report PdfReadError instead of RecursionError (#2800)
- Compress PDF files merging identical objects (#2795)

### Bug Fixes (BUG)
- Fix sheared image (#2801)

### Robustness (ROB)
- Robustify .set_data() (#2821)
- Raise PdfReadError when missing /Root in trailer (#2808)
- Fix extract_text() issues on damaged PDFs (#2760)
- Handle images with empty data when processing an image from bytes (#2786)

### Developer Experience (DEV)
- Fix coverage uploads (#2832)
- Test against Python 3.13 (#2776)
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.26 2024/07/22 05:51:55 adam Exp $
d3 1
a3 1
DISTNAME=	pypdf-5.0.0
d17 1
a17 3
# tests not included
# https://github.com/py-pdf/pypdf/issues/2864
#TEST_DEPENDS+=	${PYPKGPREFIX}-test_socket-[0-9]*:../../devel/py-test_socket
@


1.26
log
@py-pdf: updated to 4.3.1

Version 4.3.1, 2024-07-21

Bug Fixes (BUG)
- Cope with Matrix entry in field annotations

Robustness (ROB)
- Cope with fields with upside down box/rectangle

Maintenance (MAINT)
- Add deprecate_with_replacement to StreamObject.initializeFromD…
- Deal with cryptography>=43 moving ARC4
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.25 2024/07/17 03:50:23 adam Exp $
d3 1
a3 1
DISTNAME=	pypdf-4.3.1
d17 3
a22 2
PYTHON_VERSIONS_INCOMPATIBLE=	27

@


1.25
log
@py-pdf: updated to 4.3.0

Version 4.3.0, 2024-06-23

New Features (ENH)
- Accept ETen-B5 and UniCNS-UTF16 encodings
- Add decode_as_image() to ContentStreams
- context manager for PdfReader
- Add capability to set font and size in fields
- Allow to pass input file without named argument

Bug Fixes (BUG)
- Fix deprecation for Ressources when using old constants
- Fix images issue 4 bits encoding and LUT starting with UTF16_BOM
- Reading large compressed images takes huge time to process
- Highlighted Text Cannot Be Printed
- Fix UnboundLocalError on malformed pdf

Robustness (ROB)
- Cope with missing Standard 14 fonts in fields
- Improve inline image extraction
- Cope with loops in Fields tree
- Discard /I in choice fields for compatibility with Acrobat
- Cope with some issues in pillow
- Cope with some image extraction issues

Documentation (DOC)
- Various improvements on docstrings and examples

Maintenance (MAINT)
- Deprecate interiour_color with replacement interior_color
- Add deprecate_with_replacement to PdfWriter.find_bookmark

Code Style (STY)
- Change Link to be a non-markup annotation
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.24 2024/04/14 08:58:05 wiz Exp $
d3 1
a3 1
DISTNAME=	pypdf-4.3.0
@


1.24
log
@py-pdf: fix depends for Python 3.10

Also needs py-typing-extensions there.

Bump PKGREVISION.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.23 2024/04/10 11:19:09 adam Exp $
d3 1
a3 1
DISTNAME=	pypdf-4.2.0
a4 1
PKGREVISION=	1
d16 1
a16 1
DEPENDS+=	${PYPKGPREFIX}-cryptodome-[0-9]*:../../security/py-cryptodome
@


1.23
log
@py-pdf: updated to 4.2.0

Version 4.2.0, 2024-04-07

New Features (ENH)
- Allow multiple charsets for NameObject.read_from_stream
- Add support for /Kids in page labels
- Allow to update fields on many pages
- Tolerate PDF with invalid xref pointed objects
- Add Enforce from PDF2.0 in viewer_preferences
- Add += and -= operators to ArrayObject

Bug Fixes (BUG)
- Fix merge_page sometimes generating unknown operator 'QQ'
- Fix fields update where annotations are kids of field
- Process CMYK images without a filter correctly
- Extract text in layout mode without finding resources
- Prevent recursive loop in some PDF files

Robustness (ROB)
- Tolerate "truncated" xref
- Replace error by warning for EOD in RunLengthDecode/ASCIIHexDecode
- Rebuild xref table if one entry is invalid
- Robustify stream extraction

Documentation (DOC)
- Update release process for latest changes
- Encryption/decryption: Clone document instead of copying all pages
- Minor improvements
- Update annotation list
- Update references and formatting
- Correct threads reference, plus minor changes
- Minor readability increases
- Simplify PaperSize examples
- Minor improvements

Developer Experience (DEV)
- Remove unused dependencies
- Remove page labels PR link from message
- Fix changelog generator regarding whitespace and handling of "Other" group
- Add REL to known PR prefixes
- Release using the REL commit instead of git tag
- Unify code between PdfReader and PdfWriter
- Bump softprops/action-gh-release from 1 to 2

Maintenance (MAINT)
- Ressources → Resources (and internal name childs)
- Fix typos found by codespell
- Update Read the Docs configuration
- Add root_object, _info and _ID to PdfReader

Testing (TST)
- Allow loading truncated images if required
- Fix download issues from
- Improve test_get_contents_from_nullobject to show real use-case
- Add missing test annotations
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.22 2024/03/11 13:18:00 wiz Exp $
d5 1
d24 1
a24 1
.if ${PYTHON_VERSION} < 310
@


1.22
log
@py-pdf: update to 4.1.0.

## Version 4.1.0, 2024-03-03

Generating name objects (`NameObject`) without a leading slash
is considered deprecated now. Previously, just a plain warning
would be logged, leading to possibly invalid PDF files. According
to our deprecation policy, this will log a *DeprecationWarning*
for now.

### New Features (ENH)
- Add get_pages_from_field  (#2494)
- Add reattach_fields function (#2480)
- Automatic access to pointed object for IndirectObject (#2464)

### Bug Fixes (BUG)
- Missing error on name without leading / (#2387)
- encode_pdfdocencoding() always returns bytes (#2440)
- BI in text content identified as image tag (#2459)

### Robustness (ROB)
- Missing basefont entry in type 3 font (#2469)

### Documentation (DOC)
- Improve lossless compression example (#2488)
- Amend robustness documentation (#2479)

### Developer Experience (DEV)
- Fix changelog for UTF-8 characters (#2462)

### Maintenance (MAINT)
- Add _get_page_number_from_indirect in writer (#2493)
- Remove user assignment for feature requests (#2483)
- Remove reference to old 2.0.0 branch (#2482)

### Testing (TST)
- Fix benchmark failures (#2481)
- Broken test due to expired test file URL (#2468)
- Resolve file naming conflict in test_iss1767 (#2445)
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.21 2024/02/19 06:09:44 adam Exp $
d3 1
a3 1
DISTNAME=	pypdf-4.1.0
d24 1
a24 1
DEPENDS+=	${PYPKGPREFIX}-typing-extensions>=3.10.0.0:../../devel/py-typing-extensions
@


1.21
log
@py-pdf: updated to 4.0.2

Version 4.0.2, 2024-02-18

Bug Fixes (BUG)
-  Use NumberObject for /Border elements of annotations
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.20 2024/01/28 17:33:44 adam Exp $
d3 1
a3 1
DISTNAME=	pypdf-4.0.2
@


1.20
log
@py-pdf: updated to 4.0.1

Version 4.0.1, 2024-01-28

Bug Fixes (BUG)
- layout mode text extraction ZeroDivisionError

Testing (TST)
- Skip tests using fpdf2 if it's not installed
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.19 2024/01/21 20:28:36 wiz Exp $
d3 1
a3 1
DISTNAME=	pypdf-4.0.1
@


1.19
log
@py-pdf: update to 4.0.0.

## Version 4.0.0, 2024-01-19

### Deprecations (DEP)
-  Drop Python 3.6 support (#2369)
-  Remove deprecated code (#2367)
-  Remove deprecated XMP properties (#2386)

### New Features (ENH)
-  Add "layout" mode for text extraction (#2388)
-  Add Jupyter Notebook integration for PdfReader (#2375)
-  Improve/rewrite PDF permission retrieval (#2400)

### Bug Fixes (BUG)
-  PdfWriter.add_uri was setting the wrong type (#2406)
-  Add support for GBK2K cmaps (#2385)

### Maintenance (MAINT)
-  Return None instead of -1 when page is not attached (#2376)
-  Complete FileSpecificationDictionaryEntries constants (#2416)
-  Replace warning with logging.error (#2377)
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.18 2023/12/28 18:46:28 adam Exp $
d3 1
a3 1
DISTNAME=	pypdf-4.0.0
@


1.18
log
@py-pdf: updated to 3.17.4

3.17.4

Bug Fixes (BUG)
-  Handle IndirectObject as image filter
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.17 2023/12/18 09:40:09 adam Exp $
d3 1
a3 1
DISTNAME=	pypdf-3.17.4
@


1.17
log
@py-pdf: updated to 3.17.3

Version 3.17.3, 2023-12-17

Robustness (ROB)
-  Out-of-bounds issue in handle_tj (text extraction)

Developer Experience (DEV)
-  Make make_release.py easier to configure

Maintenance (MAINT)
-  Bump actions/download-artifact from 3 to 4
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.16 2023/12/17 19:05:58 adam Exp $
d3 1
a3 1
DISTNAME=	pypdf-3.17.3
@


1.16
log
@py-pdf: updated to 3.17.2

Version 3.17.2, 2023-12-10

Bug Fixes (BUG)
-  Cope with deflated images with CMYK Black Only
-  Handle indirect objects as parameters for CCITTFaxDecode
-  check words length in _cmap type1_alternative function

Robustness (ROB)
-  Relax flate decoding for too many lookup values
-  Let _build_destination skip in case of missing /D key
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.15 2023/11/19 15:58:19 wiz Exp $
d3 1
a3 1
DISTNAME=	pypdf-3.17.2
@


1.15
log
@py-pdf: update to 3.17.1.

Bug Fixes (BUG)

    Mediabox expansion size when applying non-right angle rotation (#2282) by @@MrinalJain17

Robustness (ROB)

    MissingWidth is IndirectObject (#2288) by @@MartinThoma
    Initialize states array with an empty value (#2280) by @@alexey-v-paramonov

Documentation (DOC)

    Typo in example in extract-attachments.md (#2285) by @@ageitgey
    Add Alexey Paramonov as a contributor for #2280 by @@MartinThoma

Maintenance (MAINT)

    Update sample-files by @@MartinThoma
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.14 2023/11/05 09:26:47 wiz Exp $
d3 1
a3 1
DISTNAME=	pypdf-3.17.1
@


1.14
log
@py-pdf: update to 3.17.0.

## Version 3.17.0, 2023-10-29

### Security (SEC)
-  Infinite recursion when using PdfWriter(clone_from=reader) (#2264)

### New Features (ENH)
-  Add parameter to select images to be removed (#2214)

### Bug Fixes (BUG)
-  Correctly handle image mode 1 with FlateDecode (#2249)
-  Error when filling a value with parentheses #2268 (#2269)
-  Handle empty root outline (#2239)


## Version 3.16.4, 2023-10-10

### Bug Fixes (BUG)
-  Avoid exceeding recursion depth when retrieving image mode (#2251)

## Version 3.16.3, 2023-10-08

### Bug Fixes (BUG)
-  Invalid cm/tm in visitor functions (#2206)
-  Encrypt / decrypt Stream object dictionaries (#2228)
-  Support nested color spaces for the /DeviceN color space (#2241)
-  Images property fails if NullObject in list (#2215)

### Developer Experience (DEV)
-  Unify mypy options and warn redundant workarounds (#2223)

## Version 3.16.2, 2023-09-24

### Bug Fixes (BUG)
-  PDF size increases because of too high float writing precision (#2213)
-  Fix test_watermarking_reportlab_rendering() (#2203)

## Version 3.16.1, 2023-09-17

⚠️ The 'rename PdfWriter.create_viewer_preference to
PdfWriter.create_viewer_preferences (#2190)' could be a breaking change for you,
if you use it. As it was only introduced last week I'm confident enough that
nobody will be affected though. Hence only the patch update.

### Bug Fixes (BUG)
-  Missing new line in extract_text with cm operations (#2142)
-  _get_fonts not processing properly CIDFonts and annotations (#2194)

### Maintenance (MAINT)
-  Rename PdfWriter.create_viewer_preference to PdfWriter.create_viewer_preferences (#2190)

## Version 3.16.0, 2023-09-10

### Security (SEC)
-  Infinite recursion caused by IndirectObject clone (#2156)

### New Features (ENH)
-  Ease access to ViewerPreferences (#2144)

### Bug Fixes (BUG)
-  Catch the case where w[0] is an IndirectObject instead of an int (#2154)
-  Cope with indirect objects in filters and remove deprecated code (#2177)
-  Accept tabs in cmaps (#2174) / cope with extra space (#2151)
-  Merge pages without resources (#2150)
-  getcontents() shall return None if contents is NullObject (#2161)
-  Fix conversion from 1 to LA (#2175)

### Robustness (ROB)
-  Accept XYZ with no arguments (#2178)
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.13 2023/10/28 19:57:19 wiz Exp $
d3 1
a3 1
DISTNAME=	pypdf-3.17.0
@


1.13
log
@python/wheel.mk: simplify a lot, and switch to 'installer' for installation

This follows the recommended bootstrap method (flit_core, build, installer).

However, installer installs different files than pip, so update PLISTs
for all packages using wheel.mk and bump their PKGREVISIONs.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.12 2023/09/07 12:09:13 adam Exp $
d3 1
a3 1
DISTNAME=	pypdf-3.15.5
a4 1
PKGREVISION=	1
@


1.12
log
@py-pdf: updated to 3.15.5

Version 3.15.5, 2023-09-03

Bug Fixes (BUG)
-  Cope with missing /I in articles
-  Fix image look-up table in EncodedStreamObject
-  remove_images not operating in sub level forms

Robustness (ROB)
-  Cope with damaged PDF


Version 3.15.4, 2023-08-27

Performance Improvements (PI)
-  Making pypdf as fast as pdfrw

Maintenance (MAINT)
-  Relax typing_extensions version
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.11 2023/08/27 02:57:50 adam Exp $
d5 1
@


1.11
log
@py-pdf: updated to 3.15.3

Version 3.15.3, 2023-08-26

Bug Fixes (BUG)
-  Check version of crypt provider
-  TypeError: can't concat str to bytes
-  Require flit_core >= 3.9


Version 3.15.2, 2023-08-20

Security (SEC)
-  Avoid endless recursion of reading damaged PDF file

Performance Improvements (PI)
-  Re-use content stream

Maintenance (MAINT)
-  Make ParseError inherit from PyPdfError
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.10 2023/08/24 20:05:25 wiz Exp $
d3 1
a3 1
DISTNAME=	pypdf-3.15.3
@


1.10
log
@py-pdf: update to 3.15.1.

## Version 3.15.1, 2023-08-13

### Performance Improvements (PI)
-  optimize _decode_png_prediction (#2068)

### Bug Fixes (BUG)
-  Fix incorrect tm_matrix in call to visitor_text (#2060)
-  Writing German characters into form fields (#2047)
-  Prevent stall when accessing image in corrupted pdf (#2081)
-  append() fails when articles do not have /T (#2080)

### Robustness (ROB)
-  Cope with xref not followed by separator (#2083)

## Version 3.15.0, 2023-08-06

### New Features (ENH)
-  Add `level` parameter to compress_content_streams (#2044)
-  Process /uniHHHH for text_extract (#2043)

### Bug Fixes (BUG)
-  Fix AnnotationBuilder.link (#2066)
-  JPX image without ColorSpace  (#2062)
-  Added check for field /Info when cloning reader document (#2055)
-  Fix indexed/CMYK images (#2039)

### Maintenance (MAINT)
-  Cryptography as primary dependency (#2053)
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.9 2023/08/16 00:38:05 gutteridge Exp $
d3 1
a3 1
DISTNAME=	pypdf-3.15.1
@


1.9
log
@py-pdf: this now actually requires flit_core>=3.9

It will fail with anything older. Reported upstream as:
https://github.com/py-pdf/pypdf/pull/2091
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.8 2023/08/05 07:29:15 adam Exp $
d3 1
a3 1
DISTNAME=	pypdf-3.14.0
@


1.8
log
@py-pdf: updated to 3.14.0

Version 3.14.0, 2023-07-29

New Features (ENH)
-  Accelerate image list keys generation
-  Use `cryptography` for encryption/decryption as a fallback for PyCryptodome
-  Extract LaTeX characters
-  ASCIIHexDecode.decode now returns bytes instead of str

Bug Fixes (BUG)
-  Add RunLengthDecode filter
-  Process /Separation ColorSpace
-  Handle single element ColorSpace list
-  Process lookup decoded as TextStringObjects

Robustness (ROB)
-  Cope with garbage collector during cloning

Maintenance (MAINT)
-  Cleanup of annotations


Version 3.13.0, 2023-07-23

New Features (ENH)
-  Add is_open in outlines in PdfReader and PdfWriter

Bug Fixes (BUG)
-  Search /DA in hierarchy fields
-  Cope with different ISO date length
-  Decode Black only/CMYK deviceN images
-  Process CMYK in deflate images

Developer Experience (DEV)
-  Add mypy to pre-commit
-  Release automation
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.7 2023/07/19 12:53:20 wiz Exp $
d13 1
a13 1
TOOL_DEPENDS+=	${PYPKGPREFIX}-flit_core>=3.2:../../devel/py-flit_core
@


1.7
log
@py-pdf: update to 3.12.2.

## Version 3.12.2, 2023-07-16

### Bug Fixes (BUG)
-  Accept calRGB and calGray color_spaces (#1968)
-  Process 2bits and 4bits images (#1967)
-  Check for AcroForm and ensure it is not None (#1965)

### Developer Experience (DEV)
-  Automate the release process (#1970)
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.6 2023/07/19 11:23:12 wiz Exp $
d3 1
a3 1
DISTNAME=	pypdf-3.12.2
d5 1
a5 1
CATEGORIES=	textproc
d13 3
a15 1
TOOL_DEPENDS+=	${PYPKGPREFIX}-flit_core-[0-9]*:../../devel/py-flit_core
a16 4
DEPENDS+=	${PYPKGPREFIX}-Pillow-[0-9]*:../../graphics/py-Pillow
# no tests in pypi distfile
#TEST_DEPENDS+=	${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test
#TEST_DEPENDS+=	${PYPKGPREFIX}-test_socket-[0-9]*:../../devel/py-test_socket
d22 4
a25 2
#do-test:
#	cd ${WRKSRC} && ${SETENV} ${TEST_ENV} pytest-${PYVERSSUFFIX}
@


1.6
log
@py-pdf: update to 3.12.1.

## Version 3.12.1, 2023-07-09

### Bug Fixes (BUG)
-  Prevent updating page contents after merging page (stamping/watermarking) (#1952)
-  % to be hex encoded in names (#1958)
-  Inverse color in CMYK images (#1947)
-  Dates conversion not working with Z00\'00\' (#1946)
-  Support UTF-16-LE Strings (#1884)
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.5 2023/07/05 22:02:21 wiz Exp $
d3 1
a3 1
DISTNAME=	pypdf-3.12.1
@


1.5
log
@py-pdf: update to 3.12.0.

3.12.0

What's Changed

We finally fully support modern cryptography for encrypting and decrypting PDF files.
A big thank you to @@exiledkingcc who did this work a while a go 🙏

New Features (ENH)

    Add AES support for encrypting PDF files (#1918, #1935, #1936, #1938) by @@exiledkingcc
    Add page deletion feature to PdfWriter (#1843) by @@pubpub-zz

Bug Fixes (BUG)

    PdfReader.get_fields() attempts to delete non-existing index "/Off" (#1933) by @@dmjohnsson23
    Remove unused objects when cloning_from (#1926) by @@pubpub-zz
    Add the TK.SIZE into the trailer (#1911) by @@talcher
    add_named_destination() maintains named destination list sort order (#1930) by @@robertkearns

3.11.1

Bug Fixes (BUG)

    Cascaded filters in image objects (#1913) by @@pubpub-zz
    Append pdf with named destination using numbers for pages (#1858) by @@pubpub-zz
    Ignore "/B" fields only on pages in PdfWriter.append() (#1875) by @@pubpub-zz
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.4 2023/06/28 08:45:30 wiz Exp $
d3 1
a3 1
DISTNAME=	pypdf-3.12.0
@


1.4
log
@py-pdf: update to 3.11.0.

## Version 3.11.0, 2023-06-23

### New Features (ENH)
-  Add page_number property (#1856)

### Bug Fixes (BUG)
- File expansion when updating with Page Contents (#1906)
- Missing Alternate in indexed/ICCbased colorspaces (#1896)

## Version 3.10.0, 2023-06-18

### New Features (ENH)
-  Extraction of inline images (#1850)
-  Add capability to replace image (#1849)
-  Extend images interface by returning an ImageFile(File) class (#1848)
-  Add set_data to EncodedStreamObject (#1854)

### Bug Fixes (BUG)
-  Fix RGB FlateEncode Images(PNG) and transparency (#1834)
-  Generate static appearance for fields (#1864)
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.3 2023/06/15 20:04:20 adam Exp $
d3 1
a3 1
DISTNAME=	pypdf-3.11.0
d14 5
a18 1
TEST_DEPENDS+=	${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test
d24 2
a25 2
do-test:
	cd ${WRKSRC} && ${SETENV} ${TEST_ENV} pytest-${PYVERSSUFFIX}
@


1.3
log
@py-pdf: updated to 3.9.1

Version 3.9.1, 2023-06-04

Deprecations (DEP)
- Deprecate PdfMerger

Bug Fixes (BUG)
- Ignore UTF-8 decode errors

Robustness (ROB)
- Handle missing /Type entry in Page tree
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.2 2023/05/28 22:59:53 wiz Exp $
d3 1
a3 1
DISTNAME=	pypdf-3.9.1
@


1.2
log
@py-pdf: not for Python 2
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.1 2023/05/28 18:52:36 wiz Exp $
d3 1
a3 1
DISTNAME=	pypdf-3.9.0
@


1.1
log
@textproc/py-pdf: import py-pdf-3.9.0

pypdf is a free and open-source pure-python PDF library capable of
splitting, merging, cropping, and transforming the pages of PDF
files. It can also add custom data, viewing options, and passwords
to PDF files. pypdf can retrieve text and metadata from PDFs as
well.
@
text
@d1 1
a1 1
# $NetBSD$
d18 2
@

