fix cover issue, add copyleft text
This commit is contained in:
@@ -244,9 +244,12 @@ def image_layouter(image: AbstractImage, page: Page, max_width: Optional[int] =
|
||||
x_offset = page.border_size
|
||||
y_offset = page._current_y_offset
|
||||
|
||||
# Access page.draw to ensure canvas is initialized
|
||||
_ = page.draw
|
||||
|
||||
renderable_image = RenderableImage(
|
||||
image=image,
|
||||
canvas=page.canvas,
|
||||
canvas=page._canvas,
|
||||
max_width=max_width,
|
||||
max_height=max_height,
|
||||
origin=(x_offset, y_offset),
|
||||
|
||||
Reference in New Issue
Block a user