Use the PDFBox 3 names of renamed and moved APIs

MSAL

Replaces PDFBox 2 types and methods that PDFBox 3.0 removed with the ones their deprecation pointed to, which do the same: RandomAccessBuffer with RandomAccessReadBuffer, Charsets with java.nio.charset.StandardCharsets, AccessPermission.canPrintDegraded() with canPrintFaithful(), the COSStream stream accessors with createInputStream() and its siblings, and the other methods that only changed their names. It also sorts with IterativeMergeSort where code used the QuickSort that PDFBox 2.0.25 removed.

org.openrewrite.apache.pdfbox.MigrateRenamedApis
mod run . --recipe=org.openrewrite.apache.pdfbox.MigrateRenamedApis

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.