Skip to content

Support PDF card backgrounds - #320

Open
SimplyRin wants to merge 1 commit into
rooootdev:mainfrom
SimplyRin:SimplyRin-patch-1
Open

Support PDF card backgrounds#320
SimplyRin wants to merge 1 commit into
rooootdev:mainfrom
SimplyRin:SimplyRin-patch-1

Conversation

@SimplyRin

Copy link
Copy Markdown

Summary

  • Adds support for PDF-based card backgrounds.
  • Generates PDF thumbnails using the PDF crop box while preserving aspect ratio.
  • Preserves the original PDF page dimensions when replacing a PDF background.

Details

  • cardBackground.pdf and cardBackgroundCombined.pdf are now recognized.
  • PDF previews are rendered from the first page.
  • Replacing a PDF-backed card creates a PDF matching the original page bounds.

Recognize PDF files as card backgrounds and render the first PDF page
as an aspect-preserving thumbnail.

When replacing an existing PDF background, keep the original PDF page
size so the replacement matches the intended card layout.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant