File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -6475,7 +6475,7 @@ def to_fitz_y(pdf_y):
64756475 templ_dict["to"] = (0.0, 0.0)
64766476 templ_dict["zoom"] = 0.0
64776477
6478- elif mode in ("/FitH", "/FitBH"):
6478+ elif mode in ("/FitH", "/FitBH"): # codespell:ignore
64796479 del templ_dict["dest"]
64806480 top = as_float(args[0]) if len(args) > 0 else None
64816481 y = to_fitz_y(top)
@@ -9082,7 +9082,7 @@ def apply_view(view):
90829082 self.lt = Point(0, 0)
90839083 return True
90849084
9085- if mode in ("/FitH", "/FitBH"):
9085+ if mode in ("/FitH", "/FitBH"): # codespell:ignore
90869086 top = as_float(args[0]) if len(args) >= 1 else None
90879087 if top is not None:
90889088 self.lt = Point(0, top)
Original file line number Diff line number Diff line change @@ -118,8 +118,8 @@ def test_resolve_names_fit_variants():
118118 "/NullPageDest [null /XYZ 10 20 0] "
119119 f"/FitDest [{ page_xref } 0 R /Fit] "
120120 f"/FitBDest [{ page_xref } 0 R /FitB] "
121- f"/FitHDest [{ page_xref } 0 R /FitH 20] "
122- f"/FitHNull [{ page_xref } 0 R /FitH null] "
121+ f"/FitHDest [{ page_xref } 0 R /FitH 20] " # codespell:ignore
122+ f"/FitHNull [{ page_xref } 0 R /FitH null] " # codespell:ignore
123123 f"/FitVDest [{ page_xref } 0 R /FitV 15] "
124124 f"/FitBHDest [{ page_xref } 0 R /FitBH 25] "
125125 f"/FitBVDest [{ page_xref } 0 R /FitBV 30] "
@@ -151,7 +151,7 @@ def test_linkdest_view_fith_uri():
151151 class Dummy :
152152 is_external = False
153153 page = - 1
154- uri = "#page=1&view=FitH,-4.299011"
154+ uri = "#page=1&view=FitH,-4.299011" # codespell:ignore
155155
156156 d = pymupdf .linkDest (Dummy (), None , None )
157157 assert d .kind == pymupdf .LINK_GOTO
You can’t perform that action at this time.
0 commit comments