40 Commits

Author SHA256 Message Date
0447bdd29a Accepting request 1290151 from home:mlin7442:branches:devel:languages:python
fix Leap 16 build

OBS-URL: https://build.opensuse.org/request/show/1290151
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyMuPDF?expand=0&rev=64
2025-07-03 12:19:27 +00:00
0128ad6047 Accepting request 1266087 from home:mcalabkova:branches:devel:languages:python
- Fix packaging with new setuptools

OBS-URL: https://build.opensuse.org/request/show/1266087
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyMuPDF?expand=0&rev=62
2025-04-01 12:14:04 +00:00
56fa267d56 Accepting request 1253870 from home:Andreas_Schwab:Factory
- Compile everything with -DNDEBUG to fix reference to undefined symbols
- Compile mupdf with %optflags

OBS-URL: https://build.opensuse.org/request/show/1253870
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyMuPDF?expand=0&rev=60
2025-03-17 20:13:55 +00:00
639a71813b Accepting request 1132913 from home:ecsos:python
- Add %{?sle15_python_module_pythons}

OBS-URL: https://build.opensuse.org/request/show/1132913
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyMuPDF?expand=0&rev=58
2023-12-14 08:09:07 +00:00
bc43332b7f Accepting request 1069993 from home:jengelh:branches:devel:languages:python
- Drop BuildRequires mupdf-devel-static, this is not used and the build always relies on the bundled copy.

OBS-URL: https://build.opensuse.org/request/show/1069993
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyMuPDF?expand=0&rev=56
2023-03-07 19:03:02 +00:00
ab00e2e225 Accepting request 1069756 from home:jengelh:branches:devel:languages:python
- Drop BuildRequires pkgconfig(gumbo), the package never used it
  and used its bundled copy.

OBS-URL: https://build.opensuse.org/request/show/1069756
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyMuPDF?expand=0&rev=55
2023-03-07 14:58:12 +00:00
a35b7175dc Accepting request 1056252 from home:yarunachalam:branches:devel:languages:python
- Update to version 1.21.1: 
  Bug fixes:
  * Fixed #2110: Fully embedded font is extracted only partially if it occupies more than one object
  * Fixed #2094: Rectangle Detection Logic
  * Fixed #2088: Destination point not set for named links in toc
  * Fixed #2087: Image with Filter “[/FlateDecode/JPXDecode]” not extracted
  * Fixed #2086: Document.save() owner_pw & user_pw has buffer overflow bug
  * Fixed #2076: Segfault in fitz.py
  * Fixed #2057: Document.save garbage parameter not working in PyMuPDF 1.21.0
  * Fixed #2051: Missing DPI Parameter
  * Fixed #2048: Invalid size of TextPage and bbox with newest version 1.21.0
  * Fixed #2045: SystemError: <built-in function Page_get_texttrace> returned a result with an error set
  * Fixed #2039: 1.21.0 fails to build against system libmupdf
  * Fixed #2036: Archive::Archive defined twice
  Other
  * Swallow “&zoom=nan” in link uri strings.
  * Add new Page utility methods Page.replace_image() and Page.delete_image().
  Documentation:
  #2040: Added note about test failure with non-default build of MuPDF, to tests/README.md.
  #2037: In docs/installation.rst, mention incompatibility with chocolatey.org on Windows.
  #2061: Fixed description of Annot.file_info.
  #2065: Show how to insert internal PDF link.
  Improved description of building from source without an sdist.
  Added information about running tests.
  #2084: Fixed broken link to PyMuPDF-Utilities.

OBS-URL: https://build.opensuse.org/request/show/1056252
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyMuPDF?expand=0&rev=53
2023-01-06 10:08:58 +00:00
3d0b6e0560 Accepting request 1039381 from home:yarunachalam:branches:devel:languages:python
- Update to version 1.21.0
  * This release uses MuPDF-1.21.0.
    New feature: Stories.
    Added wheels for Python-3.11.
  * Bug fixes:
    Fixed #1701: Broken custom image insertion.
    Fixed #1854: Document.delete_pages() declines keyword arguments.
    Fixed #1868: Access Violation Error at page.apply_redactions().
    Fixed #1909: Adding text with fontname=”Helvetica” can silently fail.
    Fixed #1913: draw_rect(): does not respect width if color is not specified.
    Fixed #1917: subset_fonts(): make it possible to silence the stdout.
    Fixed #1936: Rectangle detection can be incorrect producing wrong output.
    Fixed #1945: Segmentation fault when saving with clean=True.
    Fixed #1965: pdfocr_save() Hard Crash.
    Fixed #1971: Segmentation fault when using get_drawings().
    Fixed #1946: block_no and block_type switched in get_text() docs.
    Fixed #2013: AttributeError: ‘Widget’ object has no attribute ‘_annot’ in delete
    widget.
  * Misc changes to core code:
    Fixed various compiler warnings and a sequence-point bug.
    Added support for Memento builds.
    Fixed leaks detected by Memento in test suite.
    Fixed handling of exceptions in set_name() and set_rect().
    Allow build with latest MuPDF, for regular testing of PyMuPDF master.
    Cope with new MuPDF exceptions when setting rect for some Annot types.
    Reduced cosmetic differences between MuPDF’s config.h and PyMuPDF’s _config.h.
    Cope with various changes to MuPDF API.
  * Other:
    Fixed various broken links and typos in docs.
    Mention install of swig-python on MacOS for #875.

OBS-URL: https://build.opensuse.org/request/show/1039381
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyMuPDF?expand=0&rev=51
2022-12-02 10:45:59 +00:00
84e8056418 Accepting request 1002297 from home:jayvdb:branches:devel:languages:python
- Update to v1.20.2

OBS-URL: https://build.opensuse.org/request/show/1002297
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyMuPDF?expand=0&rev=49
2022-09-12 09:31:35 +00:00
210c4b4830 - Clean up SPEC file.
- Switch to pip/wheel-based build.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyMuPDF?expand=0&rev=47
2022-05-10 00:28:01 +00:00
b46f756692 Fix SPEC
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyMuPDF?expand=0&rev=46
2022-05-10 00:24:03 +00:00
b350956167 Fix SPEC
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyMuPDF?expand=0&rev=45
2022-05-10 00:18:34 +00:00
4edbc57df6 Fix SPEC
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyMuPDF?expand=0&rev=44
2022-05-10 00:15:55 +00:00
8038999ef9 Fix SPEC
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyMuPDF?expand=0&rev=43
2022-05-10 00:15:21 +00:00
2a6098f54c Fix SPEC
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyMuPDF?expand=0&rev=42
2022-05-10 00:14:03 +00:00
7b05a7d1ac - Update to v1.19.6
* Fixed #1620. The TextPage created by Page.get_textpage() will
    now be freed correctly (removed memory leak).
  * Fixed #1601. Document open errors should now be more concise
    and easier to interpret. In the course of this, two
    PyMuPDF-specific Python exceptions have been added:
    EmptyFileError – raised when trying to create a Document
    (fitz.open()) from an empty file or zero-length memory.
    FileDataError – raised when MuPDF encounters irrecoverable
    document structure issues.
  * Added Page.load_widget() given a PDF field’s xref.
  * Added Dictionary pdfcolor which provide the about 500 colors
    defined as PDF color values with the lower case color name as
    key.
  * Added algebra functionality to the Quad class. These objects
    can now also be added and subtracted among themselves, and be
    multiplied by numbers and matrices.
  * Added new constants defining the default text extraction flags
    for more comfortable handling. Their naming convention is like
    TEXTFLAGS_WORDS for page.get_text("words"). See Text Extraction
    Flags Defaults.
  * Changed Page.annots() and Page.widgets() to detect and prevent
    reloading the page (illegally) inside the iterator loops via
    Document.reload_page(). Doing this brings down the interpretor.
    Documented clean ways to do annotation and widget mass updates
    within properly designed loops.
  * Changed several internal utility functions to become
    standalone (“SWIG inline”) as opposed to be part of the Tools
    class. This, among other things, increases the performance of
    geometry object creation.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyMuPDF?expand=0&rev=41
2022-05-10 00:11:10 +00:00
80bbe9de57 Clean up conflicting files.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyMuPDF?expand=0&rev=40
2022-05-10 00:07:54 +00:00
21110a4914 Accepting request 960494 from home:cges30901
Update to v1.19.6

OBS-URL: https://build.opensuse.org/request/show/960494
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyMuPDF?expand=0&rev=38
2022-03-10 10:39:51 +00:00
da7b196dd0 Accepting request 952834 from home:cges30901
Update to v1.19.5

OBS-URL: https://build.opensuse.org/request/show/952834
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyMuPDF?expand=0&rev=37
2022-02-09 00:31:08 +00:00
5da8b3ec4a Accepting request 946723 from home:cges30901
Update to v1.19.4

OBS-URL: https://build.opensuse.org/request/show/946723
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyMuPDF?expand=0&rev=36
2022-01-16 13:27:36 +00:00
5fe4915c86 Accepting request 941349 from home:cges30901
Update to v1.19.3

OBS-URL: https://build.opensuse.org/request/show/941349
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyMuPDF?expand=0&rev=35
2021-12-18 11:03:44 +00:00
1001c88625 Accepting request 933458 from home:cges30901
Update to v1.19.2

OBS-URL: https://build.opensuse.org/request/show/933458
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyMuPDF?expand=0&rev=34
2021-11-25 00:42:48 +00:00
d8fbe88f84 Accepting request 884308 from home:jayvdb:branches:devel:languages:python
- Update to v1.18.11

OBS-URL: https://build.opensuse.org/request/show/884308
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyMuPDF?expand=0&rev=32
2021-04-11 21:47:29 +00:00
a1bb1073bd Accepting request 875556 from home:jayvdb:branches:devel:languages:python
- Revised License to be AGPL-3.0-only
- Add %doc
- Remove COPYING now provided in tarball
- Update to v1.18.9

OBS-URL: https://build.opensuse.org/request/show/875556
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyMuPDF?expand=0&rev=30
2021-02-27 17:37:25 +00:00
661d70ff75 Accepting request 870215 from home:jayvdb:branches:devel:languages:python
- Remove doc sub-package, fixing builds
- Switch to using PyPI, adding COPYING from upstream
- Update URL
- Add build dependency openSUSE-release, needed by setup.py
- Remove fix-library-linking.patch no longer needed
- Fix %check for single-spec
- Update to v1.18.8

OBS-URL: https://build.opensuse.org/request/show/870215
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyMuPDF?expand=0&rev=28
2021-02-08 15:23:16 +00:00
f6f897107c - update to 1.17.4:
* 4th bugfix release over 1.17, which provided these highlights:
  **Added** extended language support for annotations and widgets: a mixture of
  Latin, Greece, Russian, Chinese, Japanese and Korean characters can now be
  used in 'FreeText' annotations and text widgets. No special arrangement is
  required to use it.
  * Faster page access is implemented for documents supporting a "chapter"
  structure. This applies to EPUB documents currently. This comes with several
  new :ref:`Document` methods and changes for :meth:`Document.loadPage` and the
  "indexed" page access *doc[n]*: In addition to specifying a page number as
  before, a tuple *(chaper, pno)* can be specified to identify the desired
  page.
  * **Changed:** Improved support of redaction annotations: images overlapped by
  redactions are **permanantly modified** by erasing the overlap areas. Also
  links are removed if overlapped by redactions. This is now fully in sync with
  PDF specifications.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyMuPDF?expand=0&rev=26
2020-09-23 12:37:02 +00:00
Tomáš Chvátal
5744a18477 Accepting request 788939 from home:mcalabkova:branches:devel:languages:python
- Update to 1.16.14
  * Added JavaScript support to PDF form fields
  * Added a new form field method, which resets the field value to its default.
  * Added :meth:`Page.setMediaBox` for changing the physical PDF page size.
  * Added method which returns a list of Form XObjects of the page.
  * Added advanced graphics features to control the anti-aliasing values
  * Added :meth:`Document.scrub` which removes potentially sensitive data from a PDF.
  * Changed text marker annotations to accept parameters beyond just 
    quadrilaterals such that now text lines between two given points can be marked.
  * Added :meth:`Annot.setBlendMode` to set the annotation's blend mode.

OBS-URL: https://build.opensuse.org/request/show/788939
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyMuPDF?expand=0&rev=24
2020-03-27 10:21:05 +00:00
Tomáš Chvátal
79e223aabf Accepting request 779055 from home:guoyunhe:branches:devel:languages:python
- Version update to 1.16.11
  * Add redact/replace support
  * Fix PolygonAnnotation

OBS-URL: https://build.opensuse.org/request/show/779055
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyMuPDF?expand=0&rev=22
2020-02-25 12:41:23 +00:00
Tomáš Chvátal
d0a393eebe Accepting request 764643 from home:mcalabkova:branches:devel:languages:python
- update to 1.16.10
  * PyMuPDF can also be used as a module in the commandline using 
    "python -m fitz"
  * Support for Python 3.4 has been dropped.

OBS-URL: https://build.opensuse.org/request/show/764643
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyMuPDF?expand=0&rev=20
2020-01-15 12:25:40 +00:00
Tomáš Chvátal
2868f4b3f4 Accepting request 734557 from home:guoyunhe:branches:devel:languages:python
- Version update to 1.16.3
  * significant performance improvements for dict / rawdict text
    extraction
  * Page.getText() now support text extraction for "blocks" and
    "words"

OBS-URL: https://build.opensuse.org/request/show/734557
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyMuPDF?expand=0&rev=18
2019-10-02 11:55:21 +00:00
Tomáš Chvátal
760438b0bd Accepting request 731595 from home:guoyunhe:branches:devel:languages:python
- Version update to 1.16.2
  * Fix memory leak with getText(“rawDICT”)
- Add %check step
- Change category to Development/Libraries/Python
- python-PyMuPDF-doc should be noarch

OBS-URL: https://build.opensuse.org/request/show/731595
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyMuPDF?expand=0&rev=16
2019-09-18 05:35:00 +00:00
Tomáš Chvátal
90fa6ca21b Accepting request 728973 from home:guoyunhe:branches:devel:languages:python
version 1.16.1

OBS-URL: https://build.opensuse.org/request/show/728973
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyMuPDF?expand=0&rev=14
2019-09-07 11:04:21 +00:00
Tomáš Chvátal
52c3d48731 Accepting request 719817 from home:pgajdos
- version update to 1.14.19
  * minor fixes
  * added method to check PDF signature status (#326)

OBS-URL: https://build.opensuse.org/request/show/719817
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyMuPDF?expand=0&rev=12
2019-07-30 14:14:27 +00:00
Tomáš Chvátal
fad8ae8ca3 Accepting request 716213 from home:guoyunhe:branches:devel:languages:python
Version 1.14.18. Drop Python 2 package.

OBS-URL: https://build.opensuse.org/request/show/716213
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyMuPDF?expand=0&rev=11
2019-07-18 08:07:22 +00:00
Tomáš Chvátal
29e2b76839 Accepting request 706899 from home:jengelh:branches:devel:languages:python
- Trim bias and conjecture from descriptions.

OBS-URL: https://build.opensuse.org/request/show/706899
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyMuPDF?expand=0&rev=9
2019-06-03 08:05:03 +00:00
Tomáš Chvátal
32ed0678f3 Accepting request 706269 from home:guoyunhe:branches:devel:languages:python
- Version 1.14.16
  * Recode PDF delete page

OBS-URL: https://build.opensuse.org/request/show/706269
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyMuPDF?expand=0&rev=7
2019-05-29 12:49:43 +00:00
Tomáš Chvátal
4147f3d4d2 Accepting request 704928 from home:guoyunhe:branches:devel:languages:python
- Version 1.14.15
  * Fix utils.updateRect exception
  * Draw a shape without outlines
  * Fix Line cap and Line join

OBS-URL: https://build.opensuse.org/request/show/704928
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyMuPDF?expand=0&rev=5
2019-05-23 09:14:19 +00:00
Tomáš Chvátal
8e398ce2c1 - Use freetype2 not old freetype1
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyMuPDF?expand=0&rev=3
2019-04-11 08:01:50 +00:00
Tomáš Chvátal
6ed1b51aca - Run spec-cleaner
- Run tests

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyMuPDF?expand=0&rev=2
2019-04-11 07:52:57 +00:00
Tomáš Chvátal
3927eadd20 Accepting request 692955 from home:guoyunhe
- Version 1.14.14
  * Fix bug in Link target point calculation
- Version 1.14.13
  * For binary, memory-based input to most methods, now alsoio.BytesIO objects
    are accepted.
  * Fixed a bug not correctly showing inserted images with maintained aspect
    ratio.
- For earlier changelog, see https://github.com/pymupdf/PyMuPDF/releases

OBS-URL: https://build.opensuse.org/request/show/692955
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyMuPDF?expand=0&rev=1
2019-04-11 07:52:10 +00:00