Simplify the `PDFDocument` constructor
Simplify the `PDFDocument` constructor

Originally the code in the `src/`-folder was shared between the main/worker-threads, and back then it probably made sense that the `PDFDocument` constructor accepted different arguments.
However, for many years we've not been passing anything *except* Streams to `PDFDocument` and we should thus be able to slightly simplify that code. Note that for e.g. unit-tests of this code, using either a `NullStream` or a `StringStream` works just fine.

timvandermeij/pdf.js,mozilla/pdf.js,nawawi/pdf.js,Snuffleupagus/pdf.js,Shoobx/pdf.js,mozilla/pdf.js,showpad/mozilla-pdf.js,Shoobx/pdf.js,timvandermeij/pdf.js,macroplant/pdf.js,Snuffleupagus/pdf.js,Snuffleupagus/pdf.js,nawawi/pdf.js,macroplant/pdf.js,macroplant/pdf.js,mozilla/pdf.js,showpad/mozilla-pdf.js,showpad/mozilla-pdf.js,timvandermeij/pdf.js,nawawi/pdf.js,Shoobx/pdf.js