add libreoffice examples for windows

This commit is contained in:
tsuky_chen
2024-03-21 15:49:54 +08:00
parent 65823fcfab
commit 169a0a15ad
36 changed files with 148 additions and 891 deletions

View File

@@ -54,10 +54,10 @@ def check_image_stretch_and_center(modified_ppt, original_ppt):
if the_image.image.blob == modified_image.image.blob:
the_modified_image = modified_image
if (abs(the_modified_image.width - original_pres.slide_width) > Inches(0.1) or
abs(the_modified_image.height - original_pres.slide_height) > Inches(0.1) or
abs(the_modified_image.left - (original_pres.slide_width - the_modified_image.width) / 2) > Inches(0.1) or
abs(the_modified_image.top - (original_pres.slide_height - the_modified_image.height) / 2) > Inches(0.1)):
if (abs(the_modified_image.width - original_pres.slide_width) > Inches(0.5) or
abs(the_modified_image.height - original_pres.slide_height) > Inches(0.5) or
abs(the_modified_image.left - (original_pres.slide_width - the_modified_image.width) / 2) > Inches(0.5) or
abs(the_modified_image.top - (original_pres.slide_height - the_modified_image.height) / 2) > Inches(0.5)):
return 0.
return 1.