Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
fairblue
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
hosting
chat
fairblue
Commits
92970a61
Commit
92970a61
authored
5 years ago
by
Richard Alam
Browse files
Options
Downloads
Patches
Plain Diff
- downscale large pages
parent
f8437fb1
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bbb-common-web/src/main/java/org/bigbluebutton/presentation/imp/PresentationFileProcessor.java
+9
-5
9 additions, 5 deletions
...luebutton/presentation/imp/PresentationFileProcessor.java
with
9 additions
and
5 deletions
bbb-common-web/src/main/java/org/bigbluebutton/presentation/imp/PresentationFileProcessor.java
+
9
−
5
View file @
92970a61
...
...
@@ -77,14 +77,18 @@ public class PresentationFileProcessor {
private
void
extractIntoPages
(
UploadedPresentation
pres
)
{
for
(
int
page
=
1
;
page
<=
pres
.
getNumberOfPages
();
page
++)
{
File
extractedPageFile
=
extractPage
(
pres
,
page
);
File
downscaledPageFile
=
downscalePage
(
pres
,
extractedPageFile
,
page
);
String
presDir
=
pres
.
getUploadedFile
().
getParent
();
File
pageFile
=
new
File
(
presDir
+
"/page"
+
"-"
+
page
+
".pdf"
);
downscaledPageFile
.
renameTo
(
pageFile
);
extractedPageFile
.
delete
();
File
extractedPageFile
=
extractPage
(
pres
,
page
);
if
(
extractedPageFile
.
length
()
>
maxBigPdfPageSize
)
{
File
downscaledPageFile
=
downscalePage
(
pres
,
extractedPageFile
,
page
);
downscaledPageFile
.
renameTo
(
pageFile
);
extractedPageFile
.
delete
();
}
else
{
extractedPageFile
.
renameTo
(
pageFile
);
}
PageToConvert
pageToConvert
=
new
PageToConvert
(
pres
,
...
...
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