Python Code PDF
from weasyprint import HTML
# HTML content for the History Notes
html_content = """
<!DOCTYPE html>
<html lang="bn">
<head>
<meta charset="UTF-8">
<style>
@page {
size: A4;
margin: 20mm;
background-color: #ffffff;
}
body {
font-family: 'Times New Roman', serif;
line-height: 1.7;
color: #000000;
margin: 0;
padding: 0;
}
...
HTML(string=html_content).write_pdf(output_pdf_path)