I need to render dynamic image from a url in pdf file
This is not built into PDFKit, but you can do it yourself fairly easily. Make the AJAX request with xhr.responseType = 'arraybuffer', then pass xhr.response to doc.image.
xhr.responseType = 'arraybuffer'
xhr.response
doc.image