import PyPDF2 import glob import os from fpdf import FPDF import shutil class MyPDF(FPDF):
This script is converted to pdf, adds the cover to pdf and the footer containing the page number captures some things, and now I run it for the last time to see if it works, takes too much time, there are no errors, I did something- is it wrong or does he need to merge for a long time and add footers? I work with 3 files, and he quickly converted them.
Exception Exit
convert /home/projects/convert-pdf/docs/sample (1).doc -> /home/projects/convert-pdf/docs/sample (1).pdf using writer_pdf_Export
so it transforms and moves, I think the problem is here somewhere
for file in glob.glob("*.pdf"): pdf.footer() merger.merge(position=0, fileobj=path2) merger.merge(position=0, fileobj=path) merger.write(open(file, 'wb'))
Since I'm trying to combine position=0 with position=0 , I'm not sure about that, though
Lynob
source share