Your iPhone can connect to most printers, just like a computer, and with a few taps, it can print out the documents you need.
Once you've successfully installed the local Print to PDF "printer" you might be able to use it on external apps like browsers, documents, and PDF readers. Go to print your document as you normally ...