@barbarabeeton Concerning tex.stackexchange.com/questions/534182, you are probably well advised to save the code from the answer from texwelt on your machine locally if you need it before it disappears. I don't have a good feeling about the folks there at texwelt.
@Just_A_Man Regarding that folks (the one who deleted his contributions): though there was no undelete feature, since nobody expected this, the posts have been manually restored by the admin, since the intention is not to lose code once it's published with Creative Commons license.
@DavidCarlisle I remember now, the version has to be set with -dCompatibilityLevel=2.0 and we found no way to set it with setdistillerparams as the option is ignored there. chat.stackexchange.com/transcript/41?m=53279258#53279258. I wonder how \pdf_version_compare:NnTF should handle this.
@DavidCarlisle Well the question is what is sensible. If I do \pdf_version_gset:n{2.0} in the document and then compile with latex+dvips+ps2pdf the resulting pdf is %PDF-1.4. If I compile with ps2pdf -dCompatibilityLevel=1.7 the pdf is 1.7. So basically the setting in the document is irrelevant, unless there is a way to force the value on ps2pdf which we didn't found yet as setdistillerparams doesn't work here.
@UlrikeFischer I think it has to be something more like << /OutputDevice /pdfwrite /CompatibilityLevel 2.0 >> setpagedevice but that doesn't work either:-) The example < /OutputDevice /pdfwrite /OutputFile (MyPDF.pdf) >> setpagedevice at ghostscript.com/doc/current/Language.htm looks similar
@DavidCarlisle but it seems to do something, I get a message about 2.0. In my ghostscript gs_pdfwr.ps contains ` /CompatibilityLevel 1.7` and this is the level I get if I use gswin64c directly.
@DavidCarlisle, @UlrikeFischer The whole business of PDF version in non-PDF-mode routes is hard, as we don't really control it. Suggestions on a better approach welcome!
@UlrikeFischer Exactly, which is why I wanted a marker 'sorry, out of my control' value
@JosephWright yes I remember now. But perhaps with a fresh look we find a way to inject the /CompatibilityLevel in the right place. After all compresslevel suddenly works too ;-)
@JosephWright: I had a quick serial downvote session, which was partially reversed. This may have been an automated reversal, but I think there should be more. How do I inquire about this?
Cooking advice from cooking.se: If you are trying to char bell peppers, I'd suggest a pair of metal tongs over a gas range or a blowtorch if you have either of these. Or a grill. Or a baby dragon.
@AlanMunn -- I keep looking for, but haven't managed to find, one of my favorite New Yorker cartoons: a demure maiden sitting patiently on a rock, while a dragon turns a spit, roasting a chicken over a small fire. Quite a different sort of dragon from the one slain by @UlrikeFischer's maiden.