←Select platform

ConvertFromPDF Method

Summary
Converts a list of PDFAnnotation objects into a list of AnnObject objects by adding it to target AnnContainer.
Syntax
C#
VB
C++
Java
public static void ConvertFromPDF( 
   IList<PDFAnnotation> source, 
   AnnContainer target, 
   LeadSizeD pdfPageSize 
) 
Public Shared Sub ConvertFromPDF( _ 
   ByVal source As IList(Of PDFAnnotation), _ 
   ByVal target As AnnContainer, _ 
   ByVal pdfPageSize As LeadSizeD _ 
)  
c#[WinRT C# Syntax] 
public static void ConvertFromPDF(  
   Windows.Foundation.Collections.IVector //In WinRT the IList interface is replaced by IVector<PDFAnnotation> source, 
   AnnContainer target, 
   LeadSizeD pdfPageSize 
) 
public static void convertFromPDF(List<PDFAnnotation> source, AnnContainer target, LeadSizeD pdfPageSize) 
 function Leadtools.Pdf.Annotations.AnnPDFConvertor.ConvertFromPDF(  
   source , 
   target , 
   pdfPageSize  
) 
public:  
   static void ConvertFromPDF( 
      IList<PDFAnnotation^>^ source, 
      AnnContainer^ target, 
      LeadSizeD^ pdfPageSize 
   ) 

Parameters

source
The list of PDFAnnotation objects to fill into AnnContainer. This value must not be null.

target
The target AnnContainer is used to fill into it a list of PDFAnnotation objects. This parameter must not be null.

pdfPageSize
The size of the PDF page with the annotations.

Remarks

Note:The ConvertToPDF and ConvertFromPDF methods have different signatures for WinRT and WinRTPhone. Refer to the following for the correct signatures:

WinRT and WinRTPhone

public static void ConvertToPDF(AnnContainer source, IList<IPDFAnnotation> target, double pdfPageHeight) 
public static void ConvertFromPDF(IList<IPDFAnnotation> source, AnnContainer target, LeadSizeD pdfPageSize) 
Example

For an example, refer to AnnPDFConvertor.

Requirements

Target Platforms

Help Version 22.0.2021.8.20
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2022 LEAD Technologies, Inc. All Rights Reserved.
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2022 LEAD Technologies, Inc. All Rights Reserved.