5/28/2023 0 Comments Annotate on pdf![]() Position the specified page coordinate at the top left document window corner, and specify the zoom factor. PdfPageFacade.CreateFitRectangleDestination PdfPageFacade.CreateFitVerticallyDestinationĭisplay the specified page area in the document window. PdfPageFacade.CreateFitHorizontallyDestinationįit the entire page to the document window vertically. PdfPageFacade.CreateFitBBoxVerticallyDestinationįit the entire page to the document window both horizontally and vertically ( Zoom to Page Level view).įit the entire page to the document window horizontally. PdfPageFacade.CreateFitBBoxHorizontallyDestinationįit the page’s bounding box to the document window vertically. The location of the document window on this pageĬall one of the following methods to create a destination: View Parametersįit the page’s bounding box to the document window both horizontally and vertically.įit the page’s bounding box to the document window horizontally.Processor.SaveDocument(".\.\Result.pdf")Ī destination includes the following view parameters: UriAnnotation.HighlightMode = PdfAnnotationHighlightingMode.Push ' Add a link annotation to the found textĭim uriAnnotation As PdfLinkAnnotationFacade = page.AddLinkAnnotation(linkRectangle, linkUri) If linkSearchResults.Status = PdfTextSearchStatus.Found Thenĭim linkRectangle As PdfRectangle = linkSearchResults.Rectangles(0).BoundingRectangle Processor.LoadDocument(".\.\Document.pdf")ĭim page As PdfPageFacade = (0)ĭim linkSearchResults As PdfTextSearchResults = processor.FindText(linkText) Using processor As New PdfDocumentProcessor() Processor.SaveDocument(".\\.\\Result.pdf") PdfLinkAnnotationFacade uriAnnotation = page.AddLinkAnnotation(linkRectangle, linkUri) Add a link annotation to the found text ![]() If (linkSearchResults.Status = PdfTextSearchStatus.Found) PdfTextSearchResults linkSearchResults = processor.FindText(linkText) Find the target phrase in the document Processor.LoadDocument(".\\.\\Document.pdf") Using (PdfDocumentProcessor processor = new PdfDocumentProcessor()) The code sample below creates an annotation linked to a URI string: Create Annotations Create Link AnnotationsĬall the PdfPageFacade.AddLinkAnnotation method to create a link annotation. Use the PdfDocumentFacade.Pages property to access the PdfPageFacade class. The PdfPageFacade.Annotations property retrieves all page annotation properties. You can create and delete annotations, edit their content, flatten, add related comments and reviews.
0 Comments
Leave a Reply. |