-
-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change optimization task to not remove optional /Type entries contain…
…ing default values An optional /Type field is currently removed like any other optional field if it contains its default value. Since this can lead to problems this change makes the optimization task leave the /Type entries alone. For example, some Factur-X validators need /Type /EmbeddedFile entries for embedded files because if this entry is missing they declare the PDF non-conforming. It is possible to work around this by not optimizing the file or optimizing it and then adding the necessary keys back. But keeping the /Type entry also has other benefits like automatic type wrapping in the general case when such a file is loaded by HexaPDF again.
- Loading branch information
Showing
3 changed files
with
11 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters