Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Changing PSPDFKit view mode

Tags:

ios

pspdfkit

I'm using PSPDFKit. The only mode I can show the pages is single. I'm wondering if it is possible to show two pages with when the device is in landscape position?

like image 263
Mariam Avatar asked May 24 '26 16:05

Mariam


1 Answers

When creating view controller for PSPDFKit using PSPDFView controller. make the page mode Automatic. It must be something like this:

PSPDFViewController *pdfController = [[PSPDFViewController alloc] initWithDocument:pdfDocument];
pdfController.pageMode = PSPDFPageModeAutomatic;
like image 158
jackal Avatar answered May 26 '26 05:05

jackal