Skip to content
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

Updated Bitmap header #565

Merged
merged 3 commits into from
Jun 22, 2024
Merged

Updated Bitmap header #565

merged 3 commits into from
Jun 22, 2024

Conversation

Apflkuacha
Copy link
Contributor

Summary

Updated the Bitmap header from BITMAPCOREHEADER to BITMAPINFOHEADER according to https://en.wikipedia.org/wiki/BMP_file_format#DIB_header_(bitmap_information_header)

Slightly newer version, now with bitmap size in header.

What existing problem does the pull request solve?**

Updating the header was necessary as inserting the previous version of the BMP wasn't possible into a PDF document.

Updated the Bitmap header to BITMAPINFOHEADER according to https://en.wikipedia.org/wiki/BMP_file_format#DIB_header_(bitmap_information_header)

Slightly improved, now with bitmap size in header. Updating the header was necessary as inserting the previous version inside a PDF document wasn't possible.
@codebude codebude merged commit fc48785 into codebude:master Jun 22, 2024
4 checks passed
@Shane32
Copy link
Contributor

Shane32 commented Jun 23, 2024

@Apflkuacha can I ask, how exactly were you attempting to insert the bmp into a PDF? With Acrobat? With itextsharp?

@Apflkuacha
Copy link
Contributor Author

Yeah, that I mentioned withoud details. I was using PDFsharp to insert that bmp and with the old header it couldn't identify the image and with the newer header it works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants