hasbot.blogg.se

Mac how to highlight on pdf
Mac how to highlight on pdf






mac how to highlight on pdf
  1. MAC HOW TO HIGHLIGHT ON PDF PDF
  2. MAC HOW TO HIGHLIGHT ON PDF CODE

GetValuLabel.StringValue = locationRect.ToString() Var locationRect = currentSelection.GetBoundsForPage(currentPage) getting the bounds from the current selection and adding it to the annotation PdfPage currentPage = currentSelection.Pages Check if there is an actual selection right nowĬurrentSelection.GetBoundsForPage(currentSelection.Pages) PdfSelection currentSelection = m_aPdfView.CurrentSelection

MAC HOW TO HIGHLIGHT ON PDF PDF

Thanks to svn's answers //Get the current selection on the PDF file opened in the PdfView

MAC HOW TO HIGHLIGHT ON PDF CODE

PS: I found that the subclasses of PDFAnnotation are deprecated on the Apple Developer Website, but not on the Xamarin Website, is there any way of knowing if both of them are related of entirely different ?ĮDIT : Here is the code I got and works perfectly. Would anyone know of a way to make this possible ? There is no method giving the location of the currentSelection, or any hint to go in that direction. The thing is, I can get the current selection and store it into a variable : PdfSelection currentSelection = m_aPdfView.CurrentSelection Īnd I can create an object PdfAnnotationMarkup : //Create the markup annotationĪnnot.MarkupType = PdfMarkupType.Highlight īut I can't find, even though I checked a lot of different documentations, how to link the two of them.

mac how to highlight on pdf

So my goal is to highlight permanently, as an annotation, a selected text in the PDF File, and save it to retrieve it when I open the file later. I'm actualy trying to add a markup annotation in a PDF with PDFKit, in Xamarin.Mac, so for OS X.








Mac how to highlight on pdf