DynamicPDF™ for .NET Compatibility
DynamicPDF v4.0 for .NET is compatible with DynamicPDF Generator and Merger v3.x for .NET.
However, there are some depreciated classes, methods and properties and the
default behavior of the MergeOptions class has changed. All code written against
v3.x will compile against v4.0 but you will receive compiler warnings when using
any depreciated items until they are changed.
A basic difference between the way documents are merged in v3.x and v4.0 is that by default,
v3.0 did not preserve form fields. Version 4.0 will now preserve form fields by default. If this is
not the desired behavior, simply use a MergeOptions class in the MergeDocument
constructor or Append method with the FormFields property set to
false:
Visual Basic Code:
MergeOptions MyOptions = New MergeOptions( False );
C# Code:
MergeOptions mergeOptions = new MergeOptions( false );
Here is a list of the depreciated items and suggested resolutions:
- HtmlTextArea Class – Use the FormattedTextArea class instead.
- HtmlTextAreaStyle Class – Use the FormattedTextAreaStyle class instead.
- Document.DrawToWeb methods – Remove the System.Web.UI.Page argument and leave the
other aruguments as is.
Visual Basic Code:
MyDocument.DrawToWeb(Me); -> MyDocument.DrawToWeb();
C# Code:
document.DrawToWeb(this); -> document.DrawToWeb();
- ceTe.DynamicPDF.Color class static properties – The static properties for specifying
predefined colors are now depreciated. Use the static properties of the RbgColor, CmykColor or
Grayscale classes instead.
- ceTe.DynamicPDF.Apply enumeration - Use constructors for the Rectangle, Circle or Path page
elements that do not use this enumeration. Set the border width to 0 if no border is desired and
fill color to null (Nothing in VB) if no fill color is desired.
Previous Version Compatibility
Compatibility of DynamicPDF™ Generator and Merger v3.0 for .NET and
DynamicPDF Generator.NET and Merger .NET
|