I'm using itext and creating PDF files. I need to add a JPG file to my document but i couldn't. I created a test folder for my app which is in assets/imageAssets includes jpg.jpg file, but i couldn't add that JPG file to my document. I'm getting "No such file and directory" error. Here is the code block
var filePath = "assets/imageAssets/jpg.jpg"
var image: Image? = Image.getInstance(filePath)
document.add(image)
Actually i have another question. I'm getting user signatures from user, and i'm saving that on External Storage folder. That jpg will be the thing which i'm going to add to my PDFs. Where can i save them, and can how can i access them? Thanks!