Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
RWTHmoodle
exam-scan
Commits
280ebd5b
Commit
280ebd5b
authored
Feb 15, 2021
by
Amrita
Browse files
remove commented code
parent
e39bd090
Changes
1
Hide whitespace changes
Inline
Side-by-side
watermark.py
View file @
280ebd5b
...
...
@@ -16,7 +16,6 @@ from multiprocessing import Pool # multi processing
from
functools
import
partial
from
wand.image
import
Image
as
wi
# PDF to images
from
PIL
import
Image
,
ImageDraw
,
ImageFont
# Image handling
#from PyPDF2 import PdfFileMerger, PdfFileReader # PDF handling
from
pikepdf
import
Pdf
#combining PDFs
from
glob
import
glob
#combining PDFs
...
...
@@ -156,8 +155,6 @@ def combine_all_pdfs(pdf_pages, out_dir):
for
pdf_page
in
pdf_pages
:
src
=
Pdf
.
open
(
pdf_page
)
mergedObject
.
pages
.
extend
(
src
.
pages
)
#mergedObject.append(PdfFileReader(pdf_page, 'rb'))
#os.remove(pdf_page)
# Create file name of merged PDF
pdf_name
=
os
.
path
.
basename
(
pdf_pages
[
0
])
# remove full path
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment