AndreRenaud / PDFGen

Simple C PDF Writer/Generation library
The Unlicense
493 stars 118 forks source link

l can't find data_penguin_jpg[] and data_penguin_jpg_len #97

Closed BrickerZou closed 3 years ago

BrickerZou commented 3 years ago

extern unsigned char data_penguin_jpg[] in main.c But l can't find it in other.c ?

AndreRenaud commented 3 years ago

Hi. The penguin C code is automatically generated from the data/penguin.jpg file. If you look in the Makefile, you'll see there is a rule involving xxd to convert the .jpg data into a C array so we can access it in code.