Skip to content

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
@codebude
Copy link
Owner

@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