We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ef8fdc9 commit 6f75dd8Copy full SHA for 6f75dd8
scripts/test_grid_overlay.py
@@ -28,7 +28,7 @@
28
# Add the library to path
29
sys.path.insert(0, str(Path(__file__).parent.parent / "lib" / "idp_common_pkg"))
30
31
-from idp_common.grid_overlay import (
+from idp_common.utils.grid_overlay import (
32
add_ruler_edges,
33
draw_bounding_boxes,
34
add_ruler_and_draw_boxes,
@@ -44,7 +44,7 @@ def convert_pdf_to_image(pdf_path: str) -> bytes:
44
page = doc.load_page(0) # First page
45
46
# Render at 150 DPI for good quality
47
- pix = page.get_pixmap(dpi=150)
+ pix = page.get_pixmap(dpi=150) # pyright: ignore[reportAttributeAccessIssue]
48
return pix.tobytes("jpeg")
49
except ImportError:
50
print("ERROR: PyMuPDF (fitz) is required for PDF conversion.")
0 commit comments