integr-abile / axessibility

LaTeX package that makes mathematical formulae accessible via screen reader and braille display
14 stars 13 forks source link

pdfcompresslevel=0 causes order of magnitude growth under pdflatex #20

Open jweiskoff opened 2 years ago

jweiskoff commented 2 years ago

As reported to arXiv, users who have submitted from the CVPR conference have noted an order of magnitude growth in file sizes. This seems to be caused by the pdfcompresslevel=0 variable on line 349. The result of this is that png and jpg files are then uncompressed at compile time, resulting in the aforementioned file growth. Compare the pdf sizes reported through curl:

$ curl -I https://arxiv.org/pdf/2203.13903v1.pdf
HTTP/1.1 200 OK
Date: Thu, 07 Apr 2022 17:12:53 GMT
Server: Apache
Strict-Transport-Security: max-age=31536000
Set-Cookie: browser=10.17.39.130.1649351573977525; path=/; max-age=946080000; domain=.arxiv.org
Last-Modified: Tue, 29 Mar 2022 01:08:42 GMT
ETag: "16c75128-17c72166-5db5111df71dc"
Accept-Ranges: bytes
Content-Length: 398926182
Access-Control-Allow-Origin: *
Content-Type: application/pdf

against:

$ curl -I https://arxiv.org/pdf/2203.13903.pdf
HTTP/1.1 200 OK
Date: Thu, 07 Apr 2022 17:13:49 GMT
Server: Apache
Strict-Transport-Security: max-age=31536000
Set-Cookie: browser=10.17.39.130.1649351629944306; path=/; max-age=946080000; domain=.arxiv.org
Last-Modified: Wed, 06 Apr 2022 00:29:03 GMT
ETag: "16ca451e-36389c-5dbf172d4e362"
Accept-Ranges: bytes
Content-Length: 3553436
Access-Control-Allow-Origin: *
Content-Type: application/pdf

the difference between the two versions is the removal of the axcessibility package.

jweiskoff commented 1 year ago

arXiv has patched our production version to set the flag to be true.