The AddPage Method is available as an add-on to the LEADTOOLS Document and Medical Imaging toolkits.
- page
- The new page properties
Visual Basic (Declaration) | |
---|---|
Public Sub AddPage( _ ByVal page As DocumentPage _ ) |
Visual Basic (Usage) | Copy Code |
---|---|
Dim instance As DocumentWriter Dim page As DocumentPage instance.AddPage(page) |
C# | |
---|---|
public void AddPage( DocumentPage page ) |
C++/CLI | |
---|---|
public: void AddPage( DocumentPage page ) |
Parameters
- page
- The new page properties
This method can be called multiple times for each page to be added to the new document. To create a new document and on information on how to use the DocumentWriter class, refer to BeginDocument.
The DocumentPage.EmfHandle property of the page parameter must contain a valid Windows Enhanced Meta File handle (EMF). The DocumentPage.Image property is optional and is used only when the document being created is PDF with the Image/Text overlay option. To create a PDF document with image/text overlay, perform the following steps:
- Set the value of the PdfDocumentOptions.ImageOverText to true. You can use the GetOptions and SetOptions methods to the get the options used when saving a PDF document.
- Call BeginDocument with DocumentFormat.Pdf as the format to use.
- Add the document pages, the DocumentPage.EmfHandle property must point to the EMF representation of the page and the DocumentPage.Image must contain a Leadtools.RasterImage object for the image to be used as the overlay for the page.
- Repeat for each page in the document.
- Call EndDocument to finish creating the document file on disk.
For more information, refer to PdfDocumentOptions.
Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7