←Select platform

ConvertToPDF Method

Summary
Converts the annotation objects inside AnnContainer to a list of PDFAnnotation objects.
Syntax
C#
VB
C++
Java
public static void ConvertToPDF( 
   AnnContainer source, 
   IList<PDFAnnotation> target, 
   double pdfPageHeight 
) 
Public Shared Sub ConvertToPDF( _ 
   ByVal source As AnnContainer, _ 
   ByVal target As IList(Of PDFAnnotation), _ 
   ByVal pdfPageHeight As Double _ 
)  
c#[WinRT C# Syntax] 
public static void ConvertToPDF(  
   AnnContainer source, 
   Windows.Foundation.Collections.IVector //In WinRT the IList interface is replaced by IVector<PDFAnnotation> target, 
   double pdfPageHeight 
) 
public static void convertToPDF(AnnContainer source, List<PDFAnnotation> target, double pdfPageHeight) 
 function Leadtools.Pdf.Annotations.AnnPDFConvertor.ConvertToPDF(  
   source , 
   target , 
   pdfPageHeight  
) 
public:  
   static void ConvertToPDF( 
      AnnContainer^ source, 
      IList<PDFAnnotation^>^ target, 
      double pdfPageHeight 
   ) 

Parameters

source
The source container that holds a list of annotation objects. This value must not be null.

target
The target list of PDFAnnotation to fill converted objects into. This value must not be null.

pdfPageHeight
The height of the PDF page to add annotations into.

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 21.0.2021.6.30
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.