ststeiger / PdfSharpCore

Port of the PdfSharp library to .NET Core - largely removed GDI+ (only missing GetFontData - which can be replaced with freetype2)
Other
1.04k stars 231 forks source link

Merging documents does not consolidate identical images #446

Open jltrem opened 2 weeks ago

jltrem commented 2 weeks ago

When merging documents that contain identical images the objects for them are not shared. This results in a larger file size than necessary.

The problem does not exist if images are repeatedly added to a document. (no merge)

I will open a PR for review.