Closed venturi123 closed 2 years ago
After testing the demo.mp4 can work on win10. Maybe you can upload the 1.mp4.
Thanks for your rapid reply,
I've sent this video to your QQ e-mail.
Please check it.
I had the same problem.
You can fix this by changing line 12 in "c:\users\wangq\miniconda3\lib\site-packages\video2ppt\images2pdf.py"
.
instead of
pdf.cell(400, titleH, os.path.basename(image), 1, 1, 'C')
use
pdf.cell(400, titleH, os.path.basename(image), 1, ln=1, align='C')
or First, add this right below your import statement:
from fpdf.enums import XPos, YPos
and change line 12 to
pdf.cell(400, titleH, os.path.basename(image), 1, new_x=XPos.LMARGIN, new_y=YPos.NEXT, align='C')
I found that the problem was due to API changes in the FPDF library.
Yes, that's where the problem lies. It's work now!
@LXF-DX3906 Thanks for your suggestion. @venturi123 The problem has been fixed in the latest version.
Hi @wudududu,
I met an error on
Win10
by usingevp .\ .\1.mp4
. It did extract complete figures but did not generate a PDF file as expected.Here is the traceback about this error.