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
Licensing Info
This method is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF Ultimate Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Core Suite selected.
- A DynamicPDF Core Suite for .NET v12.X Developer License.
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:
- An active DynamicPDF Ultimate Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Core Suite selected.
- A DynamicPDF Core Suite for .NET v12.X Developer License.
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);
}
}