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:
2026-05-12 21:49:38 +02:00
parent 35c76656e9
commit 42b31bb661
2 changed files with 1 additions and 1 deletions
+1 -1
View File
@@ -50,7 +50,7 @@ async function runGhostscript({ rawPath, outputPath, marksPath, title, author, t
const args = [
'-dBATCH', '-dNOPAUSE', '-dQUIET',
'-sDEVICE=pdfwrite',
'-dCompatibilityLevel=1.4',
'-dCompatibilityLevel=1.3',
'-dPDFSETTINGS=/prepress',
'-dEmbedAllFonts=true',
'-dSubsetFonts=false',