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

PDF Translation Function Merges Pages in the Wrong Order #193

Open
mschmermer opened this issue Dec 28, 2024 · 0 comments
Open

PDF Translation Function Merges Pages in the Wrong Order #193

mschmermer opened this issue Dec 28, 2024 · 0 comments

Comments

@mschmermer
Copy link

mschmermer commented Dec 28, 2024

Description:

When using the translation feature with a PDF file, the following issue occurs:
The pages of the PDF are correctly split into images and processed. However, the images are merged back together in the wrong order, resulting in the translated output not matching the original PDF. This makes the function completely unusable, as the translations (e.g., via GPT) are meaningless to the user.

Steps to Reproduce:
1. Upload a multi-page PDF file.
2. Start the translation process for the PDF.
3. Check the generated translations and the order of the pages.

Expected Behavior:
The pages should be merged back in the same order as in the original PDF, ensuring the translations are coherent and usable.

Actual Behavior:
The pages are merged in the wrong order, making the content incorrectly translated and unusable.

Possible Causes:
• Errors when sorting images after processing.
• Possibly incorrect naming of temporary image files.

Examples:
black-clover-Chapter348_translated.pdf

black-clover-Chapter348.pdf

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

No branches or pull requests

1 participant