[iOS] Update PDF after a Rotation

Hi,

when i use :

[self.pdfViewCtrl RotateCounterClockwise];

passed from portrait to landscape cause scrollview height longer and i’m not able to refresh the pdf.

I use :

[self.pdfViewCtrl update];

but it’s not working.

Any suggestions ?

You also need to call UpdatePageLayout(). If you search the sample code, or the tools code, in the PDFNet SDK, you should find usage example.

Here is the best usage.

[self.pdfViewCtrl RotateCounterClockwise]; [self.pdfViewCtrl UpdatePageLayout];

You can also see similar reply here, though since you are going through the PDFViewCtrl class, no need to do locking.
http://stackoverflow.com/a/43526594/3761687