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

Quality of Screenshots #502

Open
davidrzs opened this issue Nov 20, 2024 · 3 comments
Open

Quality of Screenshots #502

davidrzs opened this issue Nov 20, 2024 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@davidrzs
Copy link

Is there an option to control the quality of the screenshots? Ideally we would like to show a preview of the page where the text was extracted, but with the given resolution this is not possible as it looks very pixelated.

Is there an option to select a higher resolution for the screenshots?

@davidrzs davidrzs added the enhancement New feature or request label Nov 20, 2024
@hexapode
Copy link
Member

Will see if possible, may incur extra cost.

@BinaryBrain
Copy link
Member

Hi @davidrzs,
What would be an ideal resolution for your use case?

@davidrzs
Copy link
Author

Our use case is previewing from where a chunk comes.

One idea would be to have a PDF where we jump to the correct page. The problem is that this doesn't work with word files as you might render it differently from how we would transform it into a PDF (e.g. if we do it with soffice we likely have the layout different from you), and extracting from a word is easier than to directly extract from the PDF (correct me if I am wrong).

So the "cheap" alternative would be to display the image of the rendered page instead of the PDF version with an embedded PDF.js. But for this to work the resultion must be great enough such that a normal A4/letter sized page is readable (which is not necessarily the case now).

Let me know what you think would be the best way forward - not sure what the best solution to this use case is.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants