bigbluebutton-Github/export-annotations/workers/process.js
Daniel Petri Rocha f299947216 Collector worker
2022-02-12 21:03:07 +01:00

24 lines
640 B
JavaScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

const Logger = require('../lib/utils/logger');
const config = require('../config');
const fs = require('fs');
const { workerData, parentPort } = require('worker_threads')
const jobId = workerData;
const logger = new Logger('presAnn Process Worker');
logger.info("Processing PDF for job " + jobId);
// Process the presentation pages and annotations into a PDF file
// 1. Get the job
// 2. Get the annotations
// 3. Convert annotations to SVG
// 4. Overlay annotations onto slides
// Resulting PDF file is stored in the presentation dir
// Launch Notifier Worker depending on job type
parentPort.postMessage({ message: workerData })