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

Fixes #2035 #2047

Closed
wants to merge 9 commits into from
Closed

Fixes #2035 #2047

wants to merge 9 commits into from

Commits on Oct 29, 2022

  1. Configuration menu
    Copy the full SHA
    8025bfe View commit details
    Browse the repository at this point in the history

Commits on Nov 1, 2022

  1. Fixed documentantion about lettered page labels

    The PDF specification explicitly says that after "a" to "b", the numbering follows "aa", "bb", ..., "zz" and not "ab", "ab", "az", "ba",...
    59d6599 should be reverted
    FelixFrog authored and julian-smith-artifex-com committed Nov 1, 2022
    Configuration menu
    Copy the full SHA
    b3d8d61 View commit details
    Browse the repository at this point in the history
  2. Change Xml.add_link() method

    We should support two different parameters, the HTML "href" value, which refers to the link target, and independently the text that is visible to the user.
    
    Also document that `Xml.add_paragraph()` isa context manager.
    JorjMcKie authored and julian-smith-artifex-com committed Nov 1, 2022
    Configuration menu
    Copy the full SHA
    ec94705 View commit details
    Browse the repository at this point in the history
  3. Make "href" a mandatory argument in Xml.add_link()

    The link target must always be specified. Only the its display in the text is optional.
    JorjMcKie authored and julian-smith-artifex-com committed Nov 1, 2022
    Configuration menu
    Copy the full SHA
    a730bc6 View commit details
    Browse the repository at this point in the history

Commits on Nov 3, 2022

  1. Fixing #2013

    Additional safeguard when field is being deleted via `page.delete_widget()`:
    In this case, the underlying annotation may not have been re-established (attribute "_annot"), which will there for be checked.
    JorjMcKie committed Nov 3, 2022
    Configuration menu
    Copy the full SHA
    6a390c0 View commit details
    Browse the repository at this point in the history

Commits on Nov 14, 2022

  1. Immunize against non-UTF8 encoded fontnames

    Python C function `Py_BuildValue("s", fontname)` will fail if fontname is not UTF8-encoded.
    Use PyUnicodeRawEscape function for fontnames instead - like everywhere else in PyMuPDF.
    JorjMcKie committed Nov 14, 2022
    Configuration menu
    Copy the full SHA
    71a819a View commit details
    Browse the repository at this point in the history

Commits on Nov 28, 2022

  1. Various minor fixes

    helper-annot.i (JM_get_annot_xref_list):
    Only include actual annotations in list - no longer "null" objects, etc.
    Refers to #2063
    
    helper-python.i (class linkDest):
    Treat "&zoom=nan" string in `uri` like "&zoom=0".
    
    helper-stext.i (various):
    * Replace font ascender / descender returns with sane values when necessary.
    
    * JM_char_quad:
    Guard against rectangles transformed from quads that are not completely located in the positive quadrant.
    This may happen with incorrectly interpretated Type 3 fonts.
    JorjMcKie committed Nov 28, 2022
    Configuration menu
    Copy the full SHA
    0e9b882 View commit details
    Browse the repository at this point in the history
  2. Fixes #2087

    fitz.i (Document.extract_image):
    If multiple filters for image streams are present, function `pdf_load_stream()` must be used instead of `pdf_load_raw_stream()` to determine the image type.
    JorjMcKie committed Nov 28, 2022
    Configuration menu
    Copy the full SHA
    f3740ca View commit details
    Browse the repository at this point in the history

Commits on Nov 30, 2022

  1. Fix issue #2094

    For correctly detecting a rectangle,  the equality of x- and y-coordinates of the respective 4 corners must be confirmed.
    We did not check x-coordinates.
    JorjMcKie committed Nov 30, 2022
    Configuration menu
    Copy the full SHA
    272ccec View commit details
    Browse the repository at this point in the history