com.spire.pdf.conversion
Class OfdConverter

java.lang.Object
  extended by com.spire.pdf.conversion.OfdConverter

public class OfdConverter
extends java.lang.Object

This class provides support for converting ofd into pdf or image.


Constructor Summary
OfdConverter(java.io.InputStream fileStream)
          Initializes a new instance of the class.
OfdConverter(java.lang.String filename)
          Initializes a new instance of the class.
 
Method Summary
 void dispose()
          Releases all resources used.
 int getPageCount()
          Gets the document page count.
 void toPdf(java.io.OutputStream stream)
          Saves OFD document to PDF.
 void toPdf(java.lang.String filename)
          Saves OFD document to PDF.
 

Constructor Detail

OfdConverter

public OfdConverter(java.lang.String filename)
Initializes a new instance of the class.

Parameters:
filename - The path to source pdf file.

OfdConverter

public OfdConverter(java.io.InputStream fileStream)
Initializes a new instance of the class.

Parameters:
fileStream - The ofd file stream.
Method Detail

getPageCount

public int getPageCount()
Gets the document page count.


toPdf

public void toPdf(java.lang.String filename)
Saves OFD document to PDF.

Parameters:
filename - A relative or absolute path for the file.

toPdf

public void toPdf(java.io.OutputStream stream)
Saves OFD document to PDF.

Parameters:
stream - The pdf file stream.

dispose

public void dispose()
Releases all resources used.