Hey everyone! I'm trying to create a command line tool that can convert files like JPG to PDF and Word to PDF. I'm learning Go and would love to build this project in that language, but I'm open to resources in any programming language. If anyone knows of tutorials, libraries, or guides that could help me out, I'd really appreciate it!
4 Answers
There’s also Aspose, which offers some open-source functionalities for document conversions. It might give you a good starting point to handle some limitations with different file types. Just a thought!
Are you looking to build this converter from scratch, like creating your own libraries to parse and write different formats? If so, that's a big task! For something like JPG to PNG, you could probably find existing Go libraries to help you read and write those files. It’s definitely worth checking out those libraries and experimenting with them! If you're considering Word to PDF, that's trickier if you want accuracy in formatting. It could take a lot of time and effort to achieve that.
Instead of starting from the ground up, why not utilize existing tools like Pandoc or ImageMagick? They already have a lot of functionality for converting various file formats, and you could integrate those into your tool without reinventing the wheel.
You could take a look at using a simple command like `$ a2ping [path/to/image.ext] [path/to/output.pdf]`. This command line example shows how straightforward it can be to convert images if you do it right. Implementing something like that might give you some insight into how to structure your converter!
Related Questions
CSV To Xml Converter
Markdown To Html Converter
Convert Json To Xml
Memory Converter
Bitrate Converter
Aesthetic Text Generator