generateSwissPaymentFormSvg

fun generateSwissPaymentFormSvg(paymentData: PaymentQRValues, documentWidth: Int = PDF_WIDTH_MM_A4, documentHeight: Int = PDF_HEIGHT_MM, position: Float = PDF_POSITION): ByteArray

Generates a Swiss QR payment form in SVG format based on the provided payment data and document dimensions.

Return

a ByteArray representing the generated Swiss QR payment form in SVG format.

Parameters

paymentData

an instance of PaymentQRValues containing payment-specific details, such as creditor and debtor information, payment amount, currency, and references.

documentWidth

the width of the document in millimeters, defaulting to PDF_A4_WIDTH_MM.

documentHeight

the height of the document in millimeters, defaulting to PDF_HEIGHT_MM.