How about using a FOSS app that do the same offline? https://github.com/LittleTrickster/PDF-Doc-Scan
Or install a Paperless-ngx instance and use an app to scan directly to paperless or a scanner that send the files to a network drive that Paperless will proceed.