Skip to content

Commit

Permalink
Force GhostScript orientation
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
danielpetri1 committed Sep 24, 2024
1 parent 82b02e7 commit 415ad5c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bbb-export-annotations/workers/process.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 415ad5c

Please sign in to comment.