이번 InvoicePrinter 업데이트의 주요 내용은 다음과 같습니다.
새로운 기능: QR 코드 이미지 지원
-
InvoicePrinter에 QR 코드 이미지 삽입 기능이 추가되었습니다. 이 기능은 별도의 외부 의존성 없이 간단한 이미지 형태로 구현되어 라이브러리의 경량성을 유지합니다.
-
QR 코드는 인보이스 문서의 우측 하단, 모든 주석 위에 자동으로 배치됩니다.
-
사용자는 QR 이미지 파일 경로를 지정함으로써 쉽게 QR 코드를 추가할 수 있습니다.
ruby invoice = InvoicePrinter::Document.new( number: 'NO. 202500000001', provider_name: 'John White', provider_lines: provider_address, purchaser_name: 'Will Black', purchaser_lines: purchaser_address, issue_date: '10/20/2025', due_date: '11/03/2025', total: '$ 900', bank_account_number: '156546546465', description: "Invoice with QR image example.", items: [], note: "Scan the QR code for payment or details." ) qr_path = File.expand_path('../qr.png', __FILE__) InvoicePrinter.print( document: invoice, qr: qr_path, file_name: 'qr_invoice.pdf' )### Ruby 버전 지원 강화 -
최신 Ruby 3.4 버전이 공식적으로 지원됩니다. 이로써 InvoicePrinter는 Ruby 3.1부터 3.4까지의 버전을 안정적으로 지원하게 되었습니다.
-
현재 Prawn 버전과의 순환 의존성 문제로 인해 Prawn 라이브러리 버전은 현행을 유지합니다.
새로운 기여자
- 이번 릴리스에는 Simon Neutert 님이 새로운 기여자로 참여하여 프로젝트 발전에 기여했습니다.