DynamicPDF™ Merger.NET Compatibility
DynamicPDF™ Merger v3.0 for .NET contains many improvements over previous versions and the object
model is not 100% compatibale with DynamicPDF™ Merger.NET. In most cases the changes to code written for
Merger.NET are very minor. This page details the changes so that code written for Merger.NET can quickly be
adapted to work with Merger v3.0 for .NET.
- Streaming PDFs to a WebForm
The method used to output PDFs to a WebForm has changed. This was done so that applications that do not output to a
WebForm, such as WinForm or Console applications, do not need to referance the System.Web assembly. Output to
a WebForm is now done using the DrawToWeb method:
Visual Basic Code:
MyDocument.DrawToWeb(Me, "MyDocument.pdf")
C# Code:
document.DrawToWeb( this, "MyDocument.pdf" );
- Corrected Case in Names of 3 Classes
The following classes have had the case corrected in thier names:
- PDFDocument is now PdfDocument
- PDFPage is now PdfPage
- PDFPageList is now PdfPageList
- Modified Class Names
The following class names had been modified:
- PDFAcroForm is now PdfForm
- PDFAcroFormField is now PdfFormField
- PDFAcroFormFieldList is now PdfFormFieldList
DynamicPDF™ Generator.NET Compatibility
DynamicPDF™ Generator v3.0 for .NET contains many improvements over previous versions and the object
model is not 100% compatibale with DynamicPDF™ Generator.NET. In most cases the changes to code written for
Generator.NET are very minor. This page details the changes so that code written for Generator.NET can quickly be
adapted to work with Generator v3.0 for .NET.
- Streaming PDFs to a WebForm
The method used to output PDFs to a WebForm has changed. This was done so that applications that do not output to a
WebForm, such as WinForm or Console applications, do not need to referance the System.Web assembly. Output to
a WebForm is now done using the DrawToWeb method:
Visual Basic Code:
MyDocument.DrawToWeb(Me, "MyDocument.pdf")
C# Code:
document.DrawToWeb( this, "MyDocument.pdf" );
- New Namespace For 3 Classes
The following classes have moved to a new namespace:
- TrueTypeFont moved to ceTeDynamicPDF.Text.TrueTypeFont
- Type1Font moved to ceTeDynamicPDF.Text.Type1Font
- FontFamily moved to ceTeDynamicPDF.Text.FontFamily
- Corrected Case in Names of 17 Classes
The following classes have had the case corrected in thier names:
- CMYKColor is now CmykColor
- EAN13 is now Ean13
- EAN13Sup2 is now Ean13Sup2
- EAN13Sup5 is now Ean13Sup5
- EAN8 is now Ean8
- EAN8Sup2 is now Ean8Sup2
- EAN8Sup5 is now Ean8Sup5
- HtmlTextArea is now HtmlTextArea
- HtmlTextAreaStyle is now HtmlTextAreaStyle
- UPCBase is now UpcBase
- UPCVersionA is now UpcVersionA
- UPCVersionASup2 is now UpcVersionASup2
- UPCVersionASup5 is now UpcVersionASup5
- UPCVersionE is now UpcVersionE
- UPCVersionESup2 is now UpcVersionESup2
- UPCVersionESup5 is now UpcVersionESup5
- ImageStream Class Replaced with ImageData Class
Imaging has undergone many changes for Generator v3.0 for .NET. Most of these changes do not affect
use of the API. However, if your code uses the ImageStream class, it will now need to be modified
to use the ImageData class. The ImageData class can be used in the constructors of the
Image and BackGround image Page Elements.
Visual Basic Code:
' Create an ImageData object from the image.
Dim MyImageData As ImageData = ImageData.GetImage( "C:\MyLogo.gif" )
' Add the image to the fist page twice.
MyPage1.Elements.Add( New BackgroundImage( imageData ) )
MyPage1.Elements.Add( New Image( imageData, 0, 0, 0.24f ) )
' Add the image to the second page at a differant location and scale.
MyPage2.Elements.Add( New Image( imageData, 100, 100, 0.48f ) )
C# Code:
// Create an ImageData object from the image.
ImageData imageData = ImageData.GetImage( @"C:\MyLogo.gif" );
// Add the image to the fist page twice.
page1.Elements.Add( new BackgroundImage( imageData ) );
page1.Elements.Add( new Image( imageData, 0, 0, 0.24f ) );
// Add the image to the second page at a differant location and scale.
page2.Elements.Add( new Image( imageData, 100, 100, 0.48f ) );
|