Fix bug in form2pdf function. Use local url instead remote url.