DMOJ / online-judge

A modern open-source online judge and contest platform system.
https://dmoj.ca
GNU Affero General Public License v3.0
933 stars 364 forks source link

Support PDF-only problems #614

Open Xyene opened 7 years ago

Xyene commented 7 years ago

Support a PDF-version problem statement to facilitate the use of DMOJ as a low-effort ACM judge (i.e. the use of DMOJ by simply shoving in pre-prepared statement, without bothering to convert it).

We can simply embed it as an object in the page, and let the user's browser render it as it sees fit.

Specifying a PDF link should override any problem text.

kiritofeng commented 7 years ago

Would be nice if we could additionally specify a page range (this is mostly for the APIO problems)

quantum5 commented 7 years ago

This should really be done as generated HTML in the admin UI.

Xyene commented 6 years ago

Generated HTML makes it impossible (or at least, painful) for us to later update the UI of the PDF viewer.

An interesting (and easy) possibility is for this to be a "PDF override" functionality, with the side-effect that when a PDF is specified and the statement is blank, the viewer is inserted.