title: How to attached assets images (jpg/png) in Flutter pdf: ^3.6.0 package
body: <p>Hello i'm working with flutter desktop project. How can i attached assets images with the format of jpg/png in Flutter pdf pages.</p>
  <pre><code>static Future&lt;File&gt; generate(Invoice invoice) async {
      final pdf = Document();
  
      pdf.addPage(MultiPage(
        build: (context) =&gt; [
          buildHeader(invoice),
          dashLine(),
          SizedBox(height: 20.0),
          buildTitle(invoice),
          buildInvoice(invoice),
          dashLine(),
          priceDetails(invoice.total),
        ],
      ));
  
      return PdfApi.saveDocument(
          name:
              '${DateTime.now().day}_${DateTime.now().month}_${DateTime.now().year}.pdf',
          pdf: pdf);
    }
  </code></pre>