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

Change posts feature's PDF processor to pdf2pic due to unfixed bugs in pdf-img-convert package #68

Merged
merged 1 commit into from
Aug 30, 2023

Conversation

maryamkhan14
Copy link
Owner

Currently, the pdf-img-convert package is being used for converting PDF files to images. This worked well until certain bugs were introduced into the package. They have not yet been fixed. (See here and here](ol-th/pdf-img-convert.js#43).)

As a result, the pdf-img-convert package is being replaced with the pdf2pic package. Although the latter works, it is noticeably slower and requires certain binaries to be installed. If the pdf-img-convert package is fixed, the posts feature will go back to using pdf-img-convert.

This PR introduces the following changes:

  • Remove pdf-img-convert from package.json, add pdf2pic
  • Add RUN commands in posts Dockerfile to install needed binaries
  • Replace pdf-img-convert configuration in file-converter and pdf-preview files with pdf2pic configuration

… pdf-img-convert module

- Remove pdf-img-convert from package.json, add pdf2pic
- Add RUN commands in posts Dockerfile to install needed binaries
- Replace pdf-img-convert configuration in file-converter and pdf-preview files with pdf2pic configuration
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