←Select platform

ConvertToPDF Method

Summary

Converts the annotation objects inside AnnContainer to a list of PDFAnnotation objects.

Syntax

C#
VB
Java
WinRT C#
C++
public static void ConvertToPDF( 
   AnnContainer source, 
   IList<PDFAnnotation> target, 
   double pdfPageHeight 
) 
Public Shared Sub ConvertToPDF( _ 
   ByVal source As Leadtools.Annotations.Core.AnnContainer, _ 
   ByVal target As IList(Of PDFAnnotation), _ 
   ByVal pdfPageHeight As Double _ 
)  
public static void ConvertToPDF(  
   Leadtools.Annotations.Core.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.Annotations.Documents.AnnPDFConvertor.ConvertToPDF(  
   source , 
   target , 
   pdfPageHeight  
) 
public:  
   static void ConvertToPDF( 
      AnnContainer^ source, 
      IList`1<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 19.0.2017.10.18
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Annotations.Documents Assembly