Someone made gitlab.gnome.org/GNOME/librsvg… and it's the kind of patch that is hard to evaluate.
It's to allow restricting rsvg-convert to outputting certain PDF versions. Cairo's default is PDF 1.7, but that causes a warning when embedding such PDFs in #TeXLaTeX.
There are two cases of the relevant warning in texlive (github.com/search?q=repo%3ATeX…) - and as far as I can tell, both are ancient.
So, I'm torn between "having --pdf1.5 is gross in terms of usability" and "this lets people solve a problem".
rsvg-convert: create PDFs with older versions (!857) · Merge requests · GNOME / librsvg · GitLab
Some applications do not support PDF 1.7 or at least have problems with it, e.g. latex. This merge request adds support for rsvg-convert to use cairo::PDFSurface::restrict() to pin...GitLab
This entry was edited (1 year ago)
penguin42
in reply to Federico Mena Quintero • • •Federico Mena Quintero
in reply to penguin42 • • •@penguin42 I was initially concerned about forcing people to learn about the obscurities of PDF versions.
I'm thinking about explicitly mentioning LaTeX in the man page, so at least it's not a bunch of options without a clear reason for existing.
penguin42
in reply to Federico Mena Quintero • • •Federico Mena Quintero
in reply to penguin42 • • •penguin42
in reply to Federico Mena Quintero • • •Jon A. Cruz
in reply to Federico Mena Quintero • • •hmm... Almost sounds like one might want the classic solution for the classic tools.
In this case the classic solution would be a stand-alone tool to convert 1.7 to 1.5 in the "Unix way".
Might depends on the differences in output.
Federico Mena Quintero
in reply to Jon A. Cruz • • •@joncruz Heh, I mean, the meat of the patch is a single line of code, that tells Cairo which PDF version to emit. I'd rather do that than send people on a side quest to find how to convert PDF versions. A tiny bit of maintenance load for me, vs. hours wasted for everyone.
(I'd really prefer it if LaTeX would update their defaults (does it really default to emitting PDF 1.4 or something?), but I understand the reasons for its glacial development pace at the core.)
Jon A. Cruz
in reply to Federico Mena Quintero • • •Hubert Figuière
in reply to Federico Mena Quintero • • •at least it's just connecting the dots. ie nobody is patching Cairo PDF backend here.
Maybe it's gross, but PDF is gross.