Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ENH: Added command update-offsets to adjust offsets and lengths. #15

Merged
merged 22 commits into from
Nov 7, 2024
Merged
Changes from 1 commit
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
b18c8e0
ENH: Added command update-offsets to adjust offsets and lengths.
srogmann Aug 28, 2022
25f0ccd
BUG: Clear stream-length at new object.
srogmann May 24, 2024
d8f6669
DEV: Logging migrated from Python's built-in logging to .
srogmann Nov 3, 2024
37b9b9d
TST: Added test of update-offsets using hello.pdf.
srogmann Nov 3, 2024
be39e9b
MAINT: Regex uppercase module constants.
srogmann Nov 3, 2024
2465ffe
DOC: Add update-offsets command
srogmann Nov 3, 2024
8838ca5
MAINT: Added suggested help-attribute.
srogmann Nov 3, 2024
3429c2f
Minor fixups & adding test_update_offsets_on_all_reference_files()
Nov 4, 2024
10ce504
MAINT: Bugfix help-attribute of x2pdf
srogmann Nov 4, 2024
9b0138a
ENH: Support of referenced lengths.
srogmann Nov 4, 2024
e0a32ff
TST: Renamed test PDF file..
srogmann Nov 5, 2024
4f003e5
TST: Renamed test PDF file.
srogmann Nov 5, 2024
47b16d4
TST: rich.console introduces line-breaks in output.
srogmann Nov 5, 2024
dd1be3b
MAINT: Changed /Length detection to support GeoTopo-komprimiert.pdf
srogmann Nov 5, 2024
9146897
MAINT: Changed /Length detection to support output_with_metadata_pymu…
srogmann Nov 5, 2024
6d72f5a
MAINT: Changed /Length detection (PDF ref 3.1 white-space characters)
srogmann Nov 5, 2024
657955b
MAINT: Don't replace pseudo line-breaks in binary parts of a pdf file.
srogmann Nov 5, 2024
5c3b92c
MAINT: EOL can be CR, LF or CRLF.
srogmann Nov 6, 2024
68a352f
TST: Disabled some documents which are not supported.
srogmann Nov 6, 2024
51ed725
MAINT: black (code formatting)
srogmann Nov 6, 2024
c3a6c88
DEV: directory tests is lower-case.
srogmann Nov 6, 2024
fc42eb4
Pleasing mypy & typing imports under Python 3.8
Nov 7, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
MAINT: Added suggested help-attribute.
srogmann authored and Cimon Lucas (LCM) committed Nov 4, 2024
commit 8838ca5f6e06235c36b6d1cdd90751f2a42c9402
2 changes: 1 addition & 1 deletion pdfly/cli.py
Original file line number Diff line number Diff line change
@@ -229,7 +229,7 @@ def compress(
pdfly.compress.main(pdf, output)


@entry_point.command(name="update-offsets") # type: ignore[misc]
@entry_point.command(name="update-offsets", help=pdfly.update_offsets.__doc__) # type: ignore[misc]
def update_offsets(
file_in: Path,
file_out: Path,