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

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

Open
jweiskoff opened this issue Apr 7, 2022 · 1 comment
Open

Comments

@jweiskoff
Copy link

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
Copy link
Author

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

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

No branches or pull requests

1 participant