PdfProducer Methods

The PdfProducer type exposes the following members.

Methods
  NameDescription
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodStatic memberCode exampleProduce(Stream, ImportFormat, Stream)
Produce the PDF stream using specified import format.
Examples
This sample shows how to produce Pdf stream from CGM stream.
string inputFile = "myImage.cgm";
string outputFile = "myPdf.pdf";
using (FileStream inputStream = File.OpenRead(inputFile))
using (FileStream outputStream = File.Create(outputFile))
{
    PdfProducer.Produce(inputStream, ImportFormat.Cgm, outputStream);
}
Public methodStatic memberCode exampleProduce(Stream, ImportFormat, String)
Produce the PDF file using specified import format.
Examples
This sample shows how to produce Pdf file from CGM stream.
string inputFile = "myImage.cgm";
string outputFile = "myPdf.pdf";
using (FileStream inputStream = File.OpenRead(inputFile))
using (FileStream outputStream = File.Create(outputFile))
{
    PdfProducer.Produce(inputStream, ImportFormat.Cgm, outputStream);
}
Public methodStatic memberCode exampleProduce(Stream, ImportOptions, Stream)
Produce the PDF file using specified import option.
Examples
This sample shows how to produce Pdf stream from CGM stream.
string inputFile = "myImage.cgm";
string outputFile = "myPdf.pdf";
ImportOptions importOptions = new CgmImportOptions();
using (FileStream inputStream = File.OpenRead(inputFile))
using (FileStream outputStream = File.Create(outputFile))
{
    PdfProducer.Produce(inputStream, importOptions, outputStream);
}
Public methodStatic memberCode exampleProduce(Stream, ImportOptions, String)
Produce the PDF file using specified import option.
Examples
This sample shows how to produce Pdf file from CGM stream.
string inputFile = "myImage.cgm";
string outputFile = "myPdf.pdf";
ImportOptions importOptions = new CgmImportOptions();
using (FileStream inputStream = File.OpenRead(inputFile))
{
    PdfProducer.Produce(inputStream, importOptions, outputFile);
}
Public methodStatic memberCode exampleProduce(String, ImportFormat, Stream)
Produce the PDF stream using specified import format.
Examples
This sample shows how to produce Pdf stream from CGM file.
string inputFile = "myImage.cgm";
string outputFile = "myPdf.pdf";
using (FileStream outputStream = File.Create(outputFile))
{
    PdfProducer.Produce(inputFile, ImportFormat.Cgm, outputStream);
}
Public methodStatic memberCode exampleProduce(String, ImportFormat, String)
Produce the PDF file using specified import format.
Examples
This sample shows how to produce Pdf file from CGM file.
string inputFile = "myImage.cgm";
string outputFile = "myPdf.pdf";
PdfProducer.Produce(inputFile, ImportFormat.Cgm, outputFile);
Public methodStatic memberCode exampleProduce(String, ImportOptions, Stream)
Produce the PDF stream using specified import option.
Examples
This sample shows how to produce Pdf stream from CGM file.
string inputFile = "myImage.cgm";
string outputFile = "myPdf.pdf";
ImportOptions importOptions = new CgmImportOptions();
using (FileStream outputStream = File.Create(outputFile))
{
    PdfProducer.Produce(inputFile, importOptions, outputStream);
}
Public methodStatic memberCode exampleProduce(String, ImportOptions, String)
Produce the PDF file using specified import option.
Examples
This sample shows how to produce Pdf file from CGM file.
string inputFile = "myImage.cgm";
string outputFile = "myPdf.pdf";
ImportOptions importOptions = new CgmImportOptions();
PdfProducer.Produce(inputStream, importOptions, outputStream);
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
See Also