diff --git a/sehuatang/shehuatang.py b/sehuatang/shehuatang.py index 19aea58..fe16a4f 100644 --- a/sehuatang/shehuatang.py +++ b/sehuatang/shehuatang.py @@ -84,6 +84,7 @@ def fetch_and_create_pdf(url): normal_style = styles['Normal'] normal_style.fontName = 'SimHei' + normal_style.fontSize = 13 content = [] @@ -128,7 +129,7 @@ def fetch_and_create_pdf(url): # 添加磁力链接 if magnet_links: for magnet_link in magnet_links: - content.append(Paragraph(f"

{magnet_link}

", normal_style)) + content.append(Paragraph(f"
{magnet_link}
", normal_style)) content.append(Spacer(1, 12)) # 添加图片 @@ -148,7 +149,7 @@ def fetch_and_create_pdf(url): image_height = int((img_height / img_width) * image_width) img_stream = BytesIO(image.getvalue()) content.append(Image(img_stream, width=image_width, height=image_height)) - content.append(Spacer(1, 12)) + content.append(Spacer(1, 4)) # 在每个帖子后添加分页符(除了最后一页) if post != today_posts[-1]: