-
Notifications
You must be signed in to change notification settings - Fork 1.9k
feat: header and footer support image #2563
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
26b8a88
to
51b0cc9
Compare
28b2d74
to
33bcd50
Compare
33bcd50
to
0a222eb
Compare
@Siemienik this feature is done. if you have time, please review it. |
Thank you, I report it as a candidate to 4.5.0 discussion: #2574 Usually I take PRs to review by thumbs up amount and from the candidates list. |
when can we expect this feature? |
@baian1 @Siemienik Is there any way we can use this PR #2563 now as exceljs.min.js (browserify). If so, please guide me. Look forward to hearing from you. Thank you in advance for your help & support. |
@Sarsewar Currently unable to read HF images; I will look into this issue when I have time over the weekend. |
@baian1 That would be really helpful. Thank you for your support. Looking forward to hearing from you. |
|
@Sarsewar I tested it, and it seems to be working normally. I've built the dist artifacts; you can test them using patch-package. If there are no issues, you can create your own branch and merge the PR, then publish your own package for use. |
Thanks @baian1, I will test it and let you know. May I know which Exceljs version you have used to build dist artifacts. Thank you for support. |
@Sarsewar The artifacts is built using the 'pr' branch version 4.4.0 |
@baian1 I attempted to use a PNG image in the header, but it did not work. I am working on loading an Excel (.xlsx) file using the provided Please find the attached Excel file and code for your reference. I look forward to your feedback. |
I'm sorry. Branch selection was wrong when building the code. Please try this. @Sarsewar |
@baian1 Same issue. Microsoft Excel Unable to open & repair the downloaded the file. I hope you have provided the correct min.js file. |
I noticed that the provided JS file does not support comments when opened in Microsoft Excel. However, according to the official documentation, comments are supported, and this functionality works correctly in version 4.4.0. Could you please verify this? If, as you mentioned, the min.js build is based on version 4.4.0, it should support comments. Additionally, I wanted to highlight that existing header images are now supported in Microsoft Excel with this PR. Thank you for your valuable contribution! |
@Sarsewar I messed up the relationship between comments and hfimage, and the issue has been fixed. |
@baian1 thanks. Let me try at my end. I will test it and let you know. |
@baian1 it is not working. I attempted to use Microsoft Excel and encountered the same issue. Kindly refer to the sheet provided in the previous comment for testing. Additionally, I tried using a different Excel file(which I can't share) that contained drawing shapes and comments; however, both were removed. |
@Sarsewar This is a compatibility issue. I don't have MS Office on my Mac and only tested with WPS. After I got home, I revised it and it can be opened with MS Office now. Moreover, I added two test cases. You can run |
There are still issues with drawing shapes. I will take a look when I am free tomorrow. |
Thank you, @baian1 , for your assistance. I look forward to hearing from you regarding shape drawings. |
I created a branch and merged the code. I simply tested shap and it worked properly. shap-hf-image2. |
Thanks for the help @baian1. 🙌🏻 |
Introduce additional functionalities to enable the use of images in headers and footers.
example code:
TODO:
test xlsx compatibility
libre officenot support