I need help #2768
Unanswered
Alesker-Dadashov
asked this question in
Looking for help
I need help
#2768
Replies: 1 comment
-
Your code is hard to understand, but I noted one thing: The definition for |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi All,
can you please help me with below code i cant move image4.jpg to right site of pdf page:
`
from fitz import fitz
def add_footer(pdf_path, images, page_params, site="right"):
try:
pdf = fitz.open(pdf_path)
page_count = pdf.page_count
Example usage with different images, positions, and rotations for pages 0, 1, and 2
page_params = [
(200.0, 508.00, 0.110, 0.133), # Parameters for page 0
(295.00, 750.00, 0.400, 0.400), # Parameters for page 1
(295.00, 795.00, 0.400, 0.400), # Parameters for page 2
(150.00, 400.00, 100.00, 100.00)
]
Images for page 0, 1, and 2
images = ["image2.jpg", "image1.jpg", "image5.jpg", "image5.jpg", "image4.jpg"]
add_footer("file.pdf", images, page_params, site="right")
`
Beta Was this translation helpful? Give feedback.
All reactions