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

config data paths #392

Merged
merged 1 commit into from
Dec 29, 2024
Merged

config data paths #392

merged 1 commit into from
Dec 29, 2024

Conversation

andiwand
Copy link
Member

@andiwand andiwand commented Dec 29, 2024

Adds data paths from poppler, fontconfig and pdf2htmlex to HtmlConfig. This seems a bit odd but I believe it is ultimately the best choice. We decided to use a single config struct to steer all html translations. This makes the interface way easier and more generic. Since data paths are generally only known at runtime (Android/iOS) we have to communicate them somehow. Previously this was done via environment variables but I think it is more generic to use C++ and to put it directly into the HtmlConfig as it ultimately configures the HTML translation.

The paths known at compile time are defaulted into these new config params. Note that these default paths will not be meaningful for some platforms and we might even want to hide them from the binary.

@andiwand andiwand merged commit 00899d4 into main Dec 29, 2024
15 of 18 checks passed
@andiwand andiwand deleted the config-data-paths branch December 29, 2024 15:43
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.

1 participant