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

"Selection deleted" text appears in PDF #2704

Closed
mgkuhn opened this issue Nov 6, 2023 · 5 comments
Closed

"Selection deleted" text appears in PDF #2704

mgkuhn opened this issue Nov 6, 2023 · 5 comments
Labels
bug Something isn't working CM6 CodeMirror 6 dependencies Pull requests that update a dependency file frontend Concerning the HTML editor publishing Notebooks as static documents on the web

Comments

@mgkuhn
Copy link
Contributor

mgkuhn commented Nov 6, 2023

Some of my students have submitted Pluto-exported PDFs where the text string “Selection deleted” unexpectedly appears superimposed onto several pages. I don't know yet how to reproduce this, but I suspect this is another GUI element of a Pluto notebook that should be hidden in a PDF printout via appropriate CSS @media print rules.

Similar to #2474 ?

@fonsp
Copy link
Owner

fonsp commented Nov 14, 2023

Thanks for the report! Working on this in codemirror/dev#1298

@fonsp fonsp added bug Something isn't working frontend Concerning the HTML editor dependencies Pull requests that update a dependency file CM6 CodeMirror 6 labels Nov 14, 2023
@fonsp
Copy link
Owner

fonsp commented Nov 14, 2023

Do you still have a PDF document that shows this artefact? It would be really helpful! Did anything else in the PDF document look out of place? The CM author suspects that the student did not use the usual printing (PDF export) feature of the browser.

It would also be helpful to know the browser version number.

@fonsp fonsp added the publishing Notebooks as static documents on the web label Nov 14, 2023
@mgkuhn
Copy link
Contributor Author

mgkuhn commented Nov 14, 2023

Yes, looking at the pdfinfo data from the first two affected files that I could quickly find, they appear to be from “Safari/537.36” (from 2013?) and from “some unnamed/undated Microsoft thing”:

$ pdfinfo student1.pdf 
Creator:        Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36
Producer:       Skia/PDF m118
[...]

$ pdfinfo student2.pdf 
Title:          <‹ DSP assignment 1  Pluto.jl
Author:         
Producer:       Microsoft: Print To PDF
[...]

The “Selection deleted” string appears on the exact same location on the first 5 pages in one file, and on the exact same location on the first 4 pages in the other file. I couldn't spot any other oddities in these files.

@mgkuhn
Copy link
Contributor Author

mgkuhn commented Nov 14, 2023

student1.pdf

@fonsp
Copy link
Owner

fonsp commented Aug 10, 2024

fixed :) updating browsers would also have worked

@fonsp fonsp closed this as completed Aug 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working CM6 CodeMirror 6 dependencies Pull requests that update a dependency file frontend Concerning the HTML editor publishing Notebooks as static documents on the web
Projects
None yet
Development

No branches or pull requests

2 participants