fix: disable -dSAFER flag in Ghostscript commands to ensure proper PDF processing
Build and Push Multi-Platform Images / build-and-push (push) Successful in 28s
Build and Push Multi-Platform Images / build-and-push (push) Successful in 28s
This commit is contained in:
@@ -22,7 +22,7 @@ export class PdfService {
|
||||
await execFileAsync('gs', [
|
||||
'-dNOPAUSE',
|
||||
'-dBATCH',
|
||||
'-dSAFER',
|
||||
'-dNOSAFER',
|
||||
'-sDEVICE=png16m',
|
||||
`-dFirstPage=${page}`,
|
||||
`-dLastPage=${page}`,
|
||||
@@ -45,7 +45,7 @@ export class PdfService {
|
||||
await execFileAsync('gs', [
|
||||
'-dNOPAUSE',
|
||||
'-dBATCH',
|
||||
'-dSAFER',
|
||||
'-dNOSAFER',
|
||||
'-sDEVICE=png16m',
|
||||
`-r${dpi}`,
|
||||
`-sOutputFile=${path.join(tmpDir, 'page-%d.png')}`,
|
||||
@@ -94,7 +94,7 @@ export class PdfService {
|
||||
await execFileAsync('gs', [
|
||||
'-dNOPAUSE',
|
||||
'-dBATCH',
|
||||
'-dSAFER',
|
||||
'-dNOSAFER',
|
||||
'-sDEVICE=pdfwrite',
|
||||
`-sOutputFile=${outputPath}`,
|
||||
inputPath,
|
||||
|
||||
Reference in New Issue
Block a user