Processing stays local
PDF and image tools use the browser's own file reader and canvas, plus two well known open-source libraries served from this site itself. Your document is read into memory in the tab, changed there, and handed back to you as a download.