mirror of
https://github.com/PHPOffice/PhpSpreadsheet.git
synced 2026-08-25 02:48:16 +00:00
9c083e271d
Fix #484. Fix #1318. Both went stale a long time ago. The images can currently specify their location as Left, Center, or Right. However, they also need to specify their type - first page, even pages, or odd pages (which is what is used when neither of the others is applicable). This is accomplished by adding 18 new constants to `Worksheet\HeaderFooter`, any of which can be specified as the second argument to `HeaderFooter::addImage`. Somewhat surprisingly, no changes are required to Xlsx Writer or Reader. Xls Reader and Writer support header/footer, but do not support using images in them. No other readers nor writers support header/footer.