Introducing the Web to PDF OpenAgents Plugin
Hey everyone,
I wanted to introduce the first plugin that I've developed for the OpenAgents platform - the Web to PDF plugin. This plugin utilizes the URLBox API to convert a given website URL into a PDF document.
Github Repo : https://github.com/ahmedsuryaa/Web-To-PDF
LN Address : ahmedsuryaa@stacker.news
Here's how it works:
- You provide the plugin with the URL of the website you want to convert into a PDF.
- The plugin uses the URLBox API to render the website as a PDF document.
- The PDF document is then generated and can be accessed through the provided URL.
To use the plugin, simply follow these steps:
- Compile the plugin using TinyGo.
- Run the plugin using the Extism CLI, providing the URL you want to convert to PDF.
For example, you can run the plugin with the following command:
extism call pdf.wasm run --input "https://urlbox.com/url-to-pdf" --wasi --allow-host "api.urlbox.io"
The plugin will then generate a PDF version of the provided URL, and you will receive the URL to access the PDF document.
PDF URL: https://renders.urlbox.io/urlbox1/renders/664900eb3984217b455b229f/2024/5/18/570be4bc-6dd4-4b33-bfba-4b3d005d215c.pdf
Feel free to give it a try and let us know your feedback or any suggestions for improvement. Happy PDF converting!