% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/conversion.R
\name{svg_to_png_with_margin}
\alias{svg_to_png_with_margin}
\title{Convert SVG to PNG with optional margin and background}
\usage{
svg_to_png_with_margin(
  svg_input,
  output_path = NULL,
  margin = 20,
  margin_color = "transparent",
  dpi = 300,
  background = "transparent"
)
}
\arguments{
\item{svg_input}{SVG string or path to SVG file.}

\item{output_path}{Output path for PNG file (optional; a temp file is used if NULL).}

\item{margin}{Margin in pixels to add around the card.}

\item{margin_color}{Color of the margin area (default transparent).}

\item{dpi}{Resolution in dots per inch.}

\item{background}{Background color for the card rasterization (default transparent).}
}
\value{
Path to the generated PNG file.
}
\description{
Creates a PNG with extra margin around the card.
Fonts are embedded before rasterization for consistent appearance.
}
