Click or drag to resize

PdfMetamorphosis Class

Main class of the PDF Metamorphosis .Net. Allows to export Text, RTF, DOCX, DOC and HTML to PDF; split and merge PDF documents.
Inheritance Hierarchy
SystemObject
  SautinSoftPdfMetamorphosis

Namespace: SautinSoft
Assembly: PdfMetamorphosis (in PdfMetamorphosis.dll) Version: 2024.1.12
Syntax
public class PdfMetamorphosis

The PdfMetamorphosis type exposes the following members.

Constructors
 NameDescription
Public methodPdfMetamorphosis Initializes a new instance of the SautinSoft.PdfMetamorphosis class
Top
Properties
 NameDescription
Public propertyException Get exception details in case of converting failed
Public propertyHtmlSettings Set options necessary for HTML to PDF conversion, such as BaseUrl etc.
Public propertyCode examplePageSettings Set page properties: page size, orientation, margins, page numbers etc
Public propertyPdfSettings Set properties for resulting PDF document, such as PDF version, compression etc.
Public propertyCode exampleSerialObsolete.
Property to activate your copy, the same as method SetSerial
Public propertyTextSettings Allows to set text properties: font face, size, colors, image quality and other conversion options
Public propertyWaterMarks Add waterMarks in PDF document.
Top
Methods
 NameDescription
Public methodCode exampleDocToPdfConvertByte Convert the array of bytes with DOC document to a PDF bytes array.
Public methodCode exampleDocToPdfConvertFile Converts DOC file to PDF file.
Public methodDocToPdfConvertStream Convert the stream with DOC document to a PDF stream.
Public methodCode exampleDocxToPdfConvertByte Convert the array of bytes with DOCX document to a PDF bytes array.
Public methodCode exampleDocxToPdfConvertFile Converts DOCX file to PDF file.
Public methodDocxToPdfConvertStream Convert the stream with DOCX document to a PDF stream.
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodHtmlToPdfConvertByte Converts array of HTML bytes into array of PDF bytes.
Public methodCode exampleHtmlToPdfConvertFile Converts HTML file or URL to PDF file. Output file will be overwritten.
Public methodCode exampleHtmlToPdfConvertFileToByte Converts HTML file or URL into array of PDF bytes.
Public methodHtmlToPdfConvertStream Convert the stream with HTML document to a PDF stream.
Public methodCode exampleHtmlToPdfConvertStringToByte Converts HTML string into array of PDF bytes. Don't forget to set the property BaseUrl to see images in output PDF file.
Public methodCode exampleHtmlToPdfConvertStringToFile Converts HTML string to PDF file. Don't forget to set the property BaseUrl to see images in output PDF file.
Public methodCode exampleMergePDFFileArrayToPDFFile Merge several PDF files into a single PDF file
Public methodMergePDFFileArrayToPDFStream Merge several PDF files into a single document as byte stream
Public methodMergePDFFileToPDFFile Merge two PDF files. Merge File1Path and DestFile file into a single DestFile.
Public methodCode exampleMergePDFStreamArrayToPDFStream Merge several PDF documents into a single document in memory
Public methodPrintPdf(String) Print the PDF file using the default printer
Public methodPrintPdf(String, Int32, Int32) Print the PDF file using the default printer with time settings
Public methodRtfToPdfConvertByte Converts array of RTF bytes into array of PDF bytes.
Public methodCode exampleRtfToPdfConvertFile Converts a RTF file to PDF file.
Public methodCode exampleRtfToPdfConvertFileToByte Converts RTF file into array of PDF bytes.
Public methodRtfToPdfConvertStream Convert the stream with RTF document to a PDF stream.
Public methodCode exampleRtfToPdfConvertStringToByte Converts RTF string into array of PDF bytes.
Public methodCode exampleRtfToPdfConvertStringToFile Converts RTF string to PDF file.
Public methodStatic memberCode exampleSetLicense
Activate your copy after purchasing or use temporary license for delete trial message. ATTENTION: specify this property first of all before creating the instance of PDF Metamorphosis!

Use it when you got own license. We offer two license types:

Permanent license from sautinsoft.com and

Temporary license from start-for-free.

Have question? Ask us: support@sautinsoft.com.
Public methodCode exampleSetSerialObsolete.
Method for activation of your copy, doesn't work in trial version. The method works the same as Serial property
Public methodCode exampleSplitPDFFileToPDFFolder Splits PDF document by pages
Public methodTextToPdfConvertByte Converts array of Text bytes into array of PDF bytes.
Public methodCode exampleTextToPdfConvertFile Converts a Text file to PDF file.
Public methodTextToPdfConvertStream Convert the stream with Text document to a PDF stream.
Public methodCode exampleTextToPdfConvertStringToByte Converts string of Text into array of PDF bytes.
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
See Also