zoomToRect not working

Ankita's Avatar

Ankita

17 Apr, 2017 08:34 AM

Hello,

I need to programmatically zoom the pdf to particular zoom level from given rect when its loaded. I noticed there is method for same that is zoomToRect. But unfortunately, its not working, pdf is not getting zoomed.
Also the zoom is not even working when we use the search functionality. Its just highlighting the searched text but not getting zoomed to focus on that text as it was earlier working when I had worked with FastPdfKit few years back.
Please check this issue and let me know as I need to use this in my project.

Thanks.

  1. 1 Posted by Ankita on 17 Apr, 2017 08:36 AM

    Ankita's Avatar

    Hi,

    By zoomToRect method, I mean this one
    (void)setPage:(NSUInteger)page withZoomOfLevel:(float)zoomLevel onRect:(CGRect)rect

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac