fix(cover): flatten transparencies by targeting PDF 1.3 compatibility

PDF 1.4 preserves transparency objects, which KDP's preflight rejects.
Downgrading to 1.3 forces Ghostscript to composite all rgba overlays,
gradient alphas and image opacities into solid pixels during the write.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
valknarandClaude Sonnet 4.6 committed 2026-05-12 21:49:38 +02:00
1 parent 35c76656e9
commit 42b31bb661
2 files changed
+1 -1

No files matched your search

BIN
View File
Binary file not shown.
+1 -1
View File
@@ -50,7 +50,7 @@ async function runGhostscript({ rawPath, outputPath, marksPath, title, author, t
const args = [ const args = [
'-dBATCH', '-dNOPAUSE', '-dQUIET', '-dBATCH', '-dNOPAUSE', '-dQUIET',
'-sDEVICE=pdfwrite', '-sDEVICE=pdfwrite',
'-dCompatibilityLevel=1.4', '-dCompatibilityLevel=1.3',
'-dPDFSETTINGS=/prepress', '-dPDFSETTINGS=/prepress',
'-dEmbedAllFonts=true', '-dEmbedAllFonts=true',
'-dSubsetFonts=false', '-dSubsetFonts=false',