jmcnamara / libxlsxwriter

A C library for creating Excel XLSX files.
https://libxlsxwriter.github.io
Other
1.49k stars 332 forks source link

Add support for header/footer image buffers #384

Open mohd-akram opened 1 year ago

mohd-akram commented 1 year ago

I noticed there's no way to insert a header/footer image via a buffer. I'm thinking perhaps the lxw_header_footer_options struct can have three new fields, image_left_size, image_center_size and image_right_size. If one is non-zero, its corresponding image field is read as a buffer instead of a filename.

jmcnamara commented 1 year ago

I noticed there's no way to insert a header/footer image via a buffer.

I stopped short of adding that because I thought that I would wait until someone requested it. And also because the interface was going to be a bit complicated. I still don't have a strong idea about what it should look like. I'll need to think about it for a while, or at least get some time to think about it.