From 415ad5c0fec5469a6416f333b43db2970202ddbc Mon Sep 17 00:00:00 2001 From: danielpetri1 Date: Tue, 24 Sep 2024 22:10:50 +0000 Subject: [PATCH] Force GhostScript orientation GhostScript is incorrectly inferring the orientation of a slide by looking at the rotation of SVG elements such as whiteboard text. This PR forces GhostScript to retain the orientation of each page. --- bbb-export-annotations/workers/process.js | 1 + 1 file changed, 1 insertion(+) diff --git a/bbb-export-annotations/workers/process.js b/bbb-export-annotations/workers/process.js index 3dcb08c2d6c8..3d1a09789270 100644 --- a/bbb-export-annotations/workers/process.js +++ b/bbb-export-annotations/workers/process.js @@ -423,6 +423,7 @@ async function processPresentationAnnotations() { const serverFilenameWithExtension = `${sanitizedServerFilename}.pdf`; const mergePDFs = [ '-dNOPAUSE', + '-dAutoRotatePages=/None', '-sDEVICE=pdfwrite', `-sOUTPUTFILE="${path.join(outputDir, serverFilenameWithExtension)}"`, `-dBATCH`].concat(ghostScriptInput);