forked from 1b-agent/opencadstudio-upstream
AutoCAD's plot preview renders the plotted result on screen instead of producing a file. The web build now does the same: the plotted PDF bytes are rasterised with the hayro pipeline already used for PDF underlays (150 DPI, first 12 pages) and shown in an in-page overlay with Download-PDF and Close actions. The previous strategy opened a new tab via window.open from the async plot task; browsers withhold popups without a live user gesture, and embedded hosts ship no PDF viewer plugin at all — so the fallback download fired and preview behaved like an export. Plain PNG <img> elements need neither permission.