Skip to content

Commit

Permalink
fix pdf conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
Saschl committed Sep 30, 2024
1 parent b9014c0 commit 9ee7910
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/server/src/utilities/file.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ import { readFileSync, lstatSync } from 'fs';
import * as xml2js from 'xml2js';
import { getDocument, PDFDocumentProxy } from 'pdfjs-dist/legacy/build/pdf';
import { join } from 'path';
import { getSimbridgeDir } from './pathUtil';
import { getExecutablePath, getSimbridgeDir } from './pathUtil';
import { pdfToPng } from './pdfConversion';

// eslint-disable-next-line @typescript-eslint/no-var-requires
const pdfjsLib = require('pdfjs-dist/legacy/build/pdf.js');

pdfjsLib.GlobalWorkerOptions.workerSrc = join(
getSimbridgeDir(),
getExecutablePath(),
'node_modules',
'pdfjs-dist',
'build',
Expand Down

0 comments on commit 9ee7910

Please sign in to comment.