Closed SaiBalaji-PSS closed 5 months ago
@SaiBalaji-PSS Would you mind posting the original screenshot you made from your pdf here so I can have a test?
Update: I have tested it with another PDF file which has only one page of A4 size it works well. The issue occurs trying to crop a PDF page which is rectangular in size with two A4 pages joined together. The screen shot size was 36.4 × 25.71 cm which fails to crop.
Can you put some break points at line 27/64/111 in CGImageExtensions.swift
to see if it threw some error or went into default branch in getBackupBitmapInfo
.
It went into (64,16) branch
@SaiBalaji-PSS Can you also check if it throws any errors in the same file. You can search ‘throw’ in the same file to locate the code. What’s your version of Mantis? Can you upgrade it to the latest version?
@SaiBalaji-PSS Since I haven't heard from you for a while, I close this ticket for now. You can reopen it any time if needed.
I'm trying to take a screen shot of current pdf page displayed using PDFKit. And crop it further using Mantis,
Here is my screen shot code and I'm passing the image to mantis. But the mantis delegate method
func cropViewControllerDidCrop(_ cropViewController: Mantis.CropViewController, cropped: UIImage, transformation: Mantis.Transformation, cropInfo: Mantis.CropInfo)
returns uncropped image as output.Here I have cropped particular part of the screen shot image of pdf page But when loading the cropped image on UIImage it gives uncropped image