Skip to content

SUBMISSION-196 PDF-Only Stamping#84

Merged
DavidLFielding merged 8 commits into
developfrom
SUBMISSION-196-PDF-Only-Stamping
Jul 22, 2026
Merged

SUBMISSION-196 PDF-Only Stamping#84
DavidLFielding merged 8 commits into
developfrom
SUBMISSION-196-PDF-Only-Stamping

Conversation

@DavidLFielding

Copy link
Copy Markdown
Contributor

The prior PR #71 installed the PDF-Only in the location expected for preview (was missing). For TeX submissions the unstamped and stamped PDFs are placed at the top of the submission directory path. Since the new stamp code works reliable for PDF-Only submissions it makes sense to stamp the PDF while we are making the effort to copy the PDF to the preview location.

I did add the unstamped PDF in the same location as we do for TeX submission, but we already have it in the src directory, so I'm still debating about whether this helps.

This calls the TeX2PDF /stamp route and copies the stamped PDF into the preview location, and the unstamped PDF next to it. This seemed like an easy add on after adding the original code to install the PDF.

$ gcloud storage ls -l gs://arxiv-submit-dev/dlf2/4
2917 2026-07-08T21:24:03Z gs://arxiv-submit-dev/dlf2/4/4-nostamp.pdf
5121 2026-07-08T21:24:06Z gs://arxiv-submit-dev/dlf2/4/4.pdf

…ISSION-196]

TeX2PDF stamps TeX submissions and stores both stamped and unstamped PDFs in
GCS during /convert; PDF-only submissions never run /convert, so do the
equivalent on the Submit 2.0 side. New InstallPdfPreview (EventWithSideEffect,
runs under the submission row lock) copies the uploaded PDF to
<id>-nostamp.pdf, calls the tex2pdf /stamp/ endpoint, and writes the stamped
PDF to the preview slot <id>.pdf -- falling back to the unstamped bytes if
stamping fails so the preview slot is never empty. The controller dispatches
this instead of doing unlocked store_preview work. Stamp text mirrors
arXiv::Submit::Util::stamp_and_link. Adds CompileService.stamp (+ api impl and
mock), the store_nostamp_preview slot across all file stores, and tests
covering the stamped path, stamp-failure fallback, idempotency, and that
stamping does not bypass the must-review gate (submitter_confirmed_preview
ys False). David
Comment thread submit_ce/domain/event/process.py
Comment thread submit_ce/domain/event/process.py
Comment thread submit_ce/domain/event/process.py
Comment thread submit_ce/domain/event/process.py
Comment thread submit_ce/domain/event/process.py
Comment thread submit_ce/domain/event/process.py
Comment thread submit_ce/api/compile_service.py
@DavidLFielding
DavidLFielding requested a review from bdc34 July 20, 2026 20:02
@DavidLFielding
DavidLFielding merged commit cfa8861 into develop Jul 22, 2026
1 check passed
@DavidLFielding
DavidLFielding deleted the SUBMISSION-196-PDF-Only-Stamping branch July 22, 2026 14:47
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

Successfully merging this pull request may close these issues.

2 participants