Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
exam-scan
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
RWTHmoodle
exam-scan
Commits
280ebd5b
Commit
280ebd5b
authored
Feb 15, 2021
by
Amrita
Browse files
Options
Downloads
Patches
Plain Diff
remove commented code
parent
e39bd090
No related branches found
No related tags found
1 merge request
!23
Remove PyPDF2 dependancies-using pikepdf to combine PDFs
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
watermark.py
+0
-3
0 additions, 3 deletions
watermark.py
with
0 additions
and
3 deletions
watermark.py
+
0
−
3
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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment