Our script generated the file and it is saved in Files panel. We want to output message in the console and give download option to user to check the generated file. How to output downloadable file URL in the console.
One way to let users download a file is to set up a simple web server. In NodeJS, you can use a library such as express (expressjs.com) to do so
@ArnavBansal How to output that in console? I want to put download URL into console.log("The images has been merged to merge.pdf file.") I have tried to do that like this ./merge.pdf but the file in console is not clickable. Just run demo and you will find that there is no way to provide download url to just created file.
@ConvertAPI you can print a full URL to the repl. console.log('https://repl.it/@ConvertAPI/Chaining-JPG-to-PDF-then-MERGE') should be clickable.
We're also working on a way to deeplink to files in the repl (but it won't open it as a PDF, just a PDF inside the repl)
@ConvertAPI https://repl.it/@ArnavBansal/Chaining-JPG-to-PDF-then-MERGE A download url requires there to be a server at the other end. I don't think there's a simple access URL to grab a single file. A server in nodejs is pretty simple to set up ^