I add pdfdocument to the PDFView . but it is showing margin and also showing in the canter. How to remove this margin . And Is there any way to set pdfdocument to the top-left position.

I add pdfdocument to the PDFView . but it is showing margin and also showing in the canter. How to remove this margin . And Is there any way to set pdfdocument to the top-left position.

jyce1492
On
I think this would help with the problem.
https://developer.apple.com/documentation/pdfkit/pdfview/2881210-pagebreakmargins
Just set a value to this variable pageBreakMargins by passing a UIEdgeInsets value.
Something like this
self.pdfView.pageBreakMargins = UIEdgeInsets(top: 0, left: 0, bottom: 0, right: 0)
Copyright © 2021 Jogjafile Inc.
Here is the sample code:
Output: With margin and without margin.