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

Search box cover up text in PDFs #203

Open
gabaryza opened this issue Oct 31, 2024 · 4 comments · May be fixed by #204
Open

Search box cover up text in PDFs #203

gabaryza opened this issue Oct 31, 2024 · 4 comments · May be fixed by #204

Comments

@gabaryza
Copy link

gabaryza commented Oct 31, 2024

Documentation

Python 3.13.0

I attempted to save a documentation web page, the beginning of the Language Reference, as a PDF for reading offline. In the second and subsequent pages of the saved PDF, the search box from the top of the web page overlays the first line(s) of each PDF page rendering them unreadable.

Demo: https://python-docs-theme-previews--204.org.readthedocs.build/en/204/

@hugovk
Copy link
Member

hugovk commented Oct 31, 2024

Please can you share a screenshot, and maybe upload the PDF? It might need zipping first.

How did you save the PDF? Using which browser and OS?

I don't think we've done anything to optimise the pages for printing, and perhaps we can improve it.

But did you know we have pre-made PDFs of the docs available at https://docs.python.org/3/download.html

Perhaps they're more suitable for you?

@gabaryza
Copy link
Author

My appologies for omitting the info.

The OS is Windows 11 Pro 22H2 Build 22621.4314 (64-bit)
The browser is Microsoft Edge Version 130.0.2849.56 (Official build) (64-bit)

I typed Ctrl-P and selected "Save as PDF" for my print device.

I have attached the first three pages of Chapter 2 of the Language Reference to illustrate
the issue.

Example-126254.pdf

@hugovk hugovk transferred this issue from python/cpython Oct 31, 2024
@hugovk
Copy link
Member

hugovk commented Oct 31, 2024

Thanks!

It looks like this for page 1:

image

And is worse for subsequent pages:

image

@hugovk hugovk linked a pull request Oct 31, 2024 that will close this issue
@hugovk
Copy link
Member

hugovk commented Oct 31, 2024

Please see #204 for a fix, and https://python-docs-theme-previews--204.org.readthedocs.build/en/204/ for a demo.

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 a pull request may close this issue.

2 participants