Step 1: Create a new directory in the root directory of the project and name it as “assets”. Added the PDF document inside the new directory as shown in the following image. Step 2: Add the PDF document in the assets section of pubspec. yaml file.
Read moreHow do I add an image to a PDF flutter?
Inserting image to PDF using a web URL The ‘PdfBitmap’ API accepts List and base64 string as inputs, so you can retrieve the image from the web URL as base64 or List and assign it to the bitmap class. Steps to insert an image to the PDF using Web URL: Add http package to the dependencies section of the pubspec .
Read more