HtmlLayout.Layout

Overloads

Layout()Gets a Document containing the paginated pages.
Layout(Document)Adds the paginated pages to the supplied Document .

Layout()

Gets a Document containing the paginated pages.

public Document Layout()
Function Layout() As Document

Returns

Document

Licensing Info

This method is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

Examples

This example shows simple HTML being displayed on the page.
Imports System
Imports ceTe.DynamicPDF
Imports ceTe.DynamicPDF.PageElements
Imports ceTe.DynamicPDF.PageElements.Html
    
Module MyModule
    
    Sub Main()
    
		'Create a Html Layout
        Dim html As HtmlLayout = New HtmlLayout(New Uri(inputHTMLPath), New PageInfo(PageSize.A4, PageOrientation.Portrait))

        'Create a PDF Document
        Dim document As Document = html.Layout

        ' Save the PDF
        document.Draw(outputPath)
       
  End Sub
End Module
using System;
using ceTe.DynamicPDF;

public class Example
{
    public static void CreatePDF(string inputHTMLPath, string outputPath)
    {
        // Create a Html Layout
        HtmlLayout html = new HtmlLayout(new Uri(inputHTMLPath), new PageInfo(PageSize.A4, PageOrientation.Portrait));
        
        // Create a PDF Document
        Document document = html.Layout();
        
        // Save the PDF
        document.Draw(outputPath);
    }
}

Layout(Document)

Adds the paginated pages to the supplied Document .

public void Layout(Document document)
Sub Layout(document As Document)

Parameters

document
Document

Licensing Info

This method is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

Examples

This example shows simple HTML being displayed on the page.
Imports System
Imports ceTe.DynamicPDF
Imports ceTe.DynamicPDF.PageElements
Imports ceTe.DynamicPDF.PageElements.Html
    
Module MyModule
    
    Sub Main()
		
		'Create a Html Layout
        Dim html As HtmlLayout = New HtmlLayout(New Uri(inputHTMLPath), New PageInfo(PageSize.A4, PageOrientation.Portrait))

        'Create a PDF Document
        Dim document As Document = New Document

        html.Layout(document)

        ' Save the PDF
        document.Draw(outputPath)
      
    End Sub
End Module
using System;
using ceTe.DynamicPDF;

public class Example
{
    public static void CreatePDF(string inputHTMLPath, string outputPath)
    {
        // Create a Html Layout
        HtmlLayout html = new HtmlLayout(new Uri(inputHTMLPath), new PageInfo(PageSize.A4, PageOrientation.Portrait));
        
        // Create a PDF Document
        Document document = new   Document();

        html.Layout(document);
        
        // Save the PDF
        document.Draw(outputPath);
    }
}

See Also

Document
HtmlLayout
ceTe.DynamicPDF

In this topic