RickR
RickR

Reputation: 523

How can I set the rect for a PDF file using PSPDFKit

I'm using PSPDFKit to display PDF files fine. However I would like all PDFs to be displayed with the same page size. Some PDF pages are larger then others. I can use rectBoxForPage to get the current page rect, but how do I set it before it's displayed or at any other point? CGRect r = [document rectBoxForPage:1];

Upvotes: 1

Views: 353

Answers (1)

RickR
RickR

Reputation: 523

Answering my own question, thanks to the developer of PSPDFKit.

Use pageInfo = [document pageInfoForPage:pageNum]; pageInfo.pageRect = r;

to override the pdf page rect.

Upvotes: 1

Related Questions