Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pdf fix #268

Open
wants to merge 2 commits into
base: mnt
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ We appreciate filed issues, pull requests and general discussion.
- Turn your Space into a zooming presentation
- Collaborate in realtime with teammates, students or friends
- Share Spaces on the web or via email
- Export your work as printable PDF or ZIP (currently being fixed, stay tuned)
- Export your work as printable PDF

# Use Cases

Expand Down
8 changes: 7 additions & 1 deletion helpers/exporter.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,13 @@ module.exports = {
browser = await puppeteer.launch(
{
headless: true,
args: ['--disable-dev-shm-usage', '--no-sandbox']
args: [
'--no-sandbox', // Disable the sandbox (useful in Docker)
'--disable-setuid-sandbox', // Additional security measure
'--disable-dev-shm-usage', // Workaround for shared memory issues in Docker
'--disable-gpu' // To ensure headless operation
],
timeout: 60000 // Set a higher timeout (optional, increases wait time)
}
);
page = await browser.newPage();
Expand Down
8 changes: 7 additions & 1 deletion routes/api/webgrabber.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,13 @@ function website_to_png(url,on_success,on_error) {
browser = await puppeteer.launch(
{
headless: true,
args: ['--disable-dev-shm-usage', '--no-sandbox']
args: [
'--no-sandbox', // Disable the sandbox (useful in Docker)
'--disable-setuid-sandbox', // Additional security measure
'--disable-dev-shm-usage', // Workaround for shared memory issues in Docker
'--disable-gpu' // To ensure headless operation
],
timeout: 60000 // Set a higher timeout (optional, increases wait time)
}
);
page = await browser.newPage();
Expand Down