What is the best way to generate PDF file directly from a STM32 microcontroller which can be delivered via USB ( the device can show up as a mass storage device). ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-04-03 7:39 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-04-03 7:59 AM
PDF is a beast of a format (fonts, multimedia, compression, encryption, etc..), I don't think there will be a lightweight enough library without heavy external dependencies to generate PDFs in a microcontroller.
Maybe you can try libharu, no warranties though, it requires zlib and pnglib, but thankfully the requirement seems to be optional.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-04-03 8:15 AM
Thank you @After Forever​ . For now, the only option seems to generate the file line by line so that a small amount of the file is in memory at any point in time.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-04-03 9:30 AM
A STM32MP157C-DK2 + PC with Ubuntu 18.04 + STM32 Dev software + a few hours to bake and you'll have it!
