mirror of
https://github.com/ocrmypdf/OCRmyPDF.git
synced 2026-05-19 03:58:06 -04:00
hocr: typing
This commit is contained in:
@@ -49,5 +49,4 @@ if __name__ == "__main__":
|
||||
hocr.to_pdf(
|
||||
out_filename=args.outputfile,
|
||||
image_filename=args.image,
|
||||
show_bounding_boxes=args.boundingboxes,
|
||||
)
|
||||
|
||||
@@ -345,7 +345,7 @@ class PikepdfCanvasAccessor:
|
||||
|
||||
|
||||
class PikepdfCanvas:
|
||||
def __init__(self, *, page_size: tuple[int, int]):
|
||||
def __init__(self, *, page_size: tuple[int | float, int | float]):
|
||||
self.page_size = page_size
|
||||
self._pdf = Pdf.new()
|
||||
self._page = self._pdf.add_blank_page(page_size=page_size)
|
||||
|
||||
Reference in New Issue
Block a user