Question: how to transfer pdf books from iphone to computer?
Answer: Download and install iMazing. Launch the app, and connect your device to your Mac or PC.
Select your device in the iMazing's sidebar, then select iBooks.
Select one or more ebooks to export.
Click the “Export” button. ... 
iMazing exports the ebooks.