cancel
Showing results for 
Search instead for 
Did you mean: 

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). ?

MStép.1
Associate

Is there any library available?

3 REPLIES 3

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.

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.

KevinA
Senior

A STM32MP157C-DK2 + PC with Ubuntu 18.04 + STM32 Dev software + a few hours to bake and you'll have it!