79332853

Date: 2025-01-06 11:22:55
Score: 2
Natty:
Report link

def embed_screenshot_to_receipt(screenshot_path, pdf_path): """Embeds the screenshot to the bot receipt""" pdf = PDF() pdf.add_watermark_image_to_pdf(image_path=screenshot_path, source_path=pdf_path, output_path=pdf_path)

Using pdf.add_watermark_image_to_pdf

This method you can embed screenshot in pdf

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Ayoub Shah