- page
- The new page properties
Visual Basic (Declaration) | |
---|---|
Public Sub AddPage( _ ByVal page As DocumentPage _ ) |
Visual Basic (Usage) | Copy Code |
---|---|
|
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 RasterImage object for the image to be used as the overlay for tha 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 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family