#include <qrinvoice/model/qr_invoice.hpp>
#include <qrinvoice/payment_part_receipt_creator.hpp>
// ...
const qrinvoice::model::qr_invoice qr_invoice = // create using qr_invoice::builder;
qrinvoice::payment_part_receipt_creator ppr_creator;
const qrinvoice::output::payment_part_receipt ppr = ppr_creator.qr_invoice(qr_invoice)
.page_size(qrinvoice::page_size::din_lang)
.in_german()
.output_format(qrinvoice::output_format::pdf)
.create_payment_part_receipt();
// the resulting byte vector contains the payment part & receipt as PDF
// "qrinvoice::output::output::byte" is "unsigned char"
const std::vector<qrinvoice::output::output::byte> &data = ppr.get_data();
const size_t i = ppr.get_size();