Update Word PDF Lossless Export#4541
Open
JoeYe-233 wants to merge 1 commit into
Open
Conversation
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request significantly enhances the "Word PDF Lossless Export" Windhawk mod by introducing a flexible, robust, and user-configurable hooking mechanism for Microsoft Word's PDF export process. The update provides a new settings interface, improves reliability across Office updates, and offers detailed documentation and guidance for users.
Major improvements and new features:
User Experience & Documentation
Configuration & Settings
hook_method), allowing users to choose between "PDB First" (symbol-based, more robust) and "Pattern First" (faster, no PDB required) strategies for function hooking. The mod now automatically falls back to the alternate method if the preferred one fails, and always uses a local cache for performance.Reliability & Robustness
Implemented a unified cache system (
HookStateCache) to store hook offsets and validation data, ensuring fast and reliable operation even after Office updates. The cache is validated using opcode prefixes and is wiped automatically if settings are changed or if validation fails. [1] [2]The mod now listens for settings changes and immediately wipes the cache and reloads itself, ensuring that user preference changes take effect without manual intervention.
Technical Enhancements
Version bump:
Changelog
If this pull request updates an existing mod, describe the changes below:
Mod authorship
If this pull request introduces a new mod, please complete the section below.
This mod was created by:
Please select the options that best apply. Your selection does not affect the acceptance criteria, but it helps reviewers understand the context of the code and provide relevant feedback.