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
a794fb15
Commit
a794fb15
authored
4 years ago
by
Christian Rohlfing
Browse files
Options
Downloads
Patches
Plain Diff
fix wrong pdf size
parent
41f0e1ab
No related branches found
No related tags found
1 merge request
!28
Fix wrong PDF size
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
watermark.py
+1
-1
1 addition, 1 deletion
watermark.py
with
1 addition
and
1 deletion
watermark.py
+
1
−
1
View file @
a794fb15
...
@@ -152,7 +152,7 @@ def watermark_img(img_file, template, dpi):
...
@@ -152,7 +152,7 @@ def watermark_img(img_file, template, dpi):
# Save image as PDF and delete original image file
# Save image as PDF and delete original image file
pdf_file
=
os
.
path
.
splitext
(
img_file
)[
0
]
+
'
.pdf
'
pdf_file
=
os
.
path
.
splitext
(
img_file
)[
0
]
+
'
.pdf
'
out
.
save
(
pdf_file
)
out
.
save
(
pdf_file
,
resolution
=
dpi
)
if
os
.
path
.
isfile
(
img_file
):
if
os
.
path
.
isfile
(
img_file
):
os
.
remove
(
img_file
)
os
.
remove
(
img_file
)
...
...
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