Leadtools.Pdf Requires PDF Plug-in license | Send comments on this topic. | Back to Introduction - All Topics | Help Version 15.10.31
Write Method
See Also 
Leadtools.Pdf Namespace > PdfCompressor Class : Write Method




outputFileName
The name of the output file to be saved.
Writes the created file from memory to the file system using the path provided.

Syntax

Visual Basic (Declaration) 
Public Sub Write( _
   ByVal outputFileName As String _
) 
Visual Basic (Usage)Copy Code
Dim instance As PdfCompressor
Dim outputFileName As String
 
instance.Write(outputFileName)
C# 
public void Write( 
   string outputFileName
)
Managed Extensions for C++ 
public: void Write( 
   string* outputFileName
) 
C++/CLI 
public:
void Write( 
   String^ outputFileName
) 

Parameters

outputFileName
The name of the output file to be saved.

Example

Refer to PdfCompressor example.

Remarks

The PDF Compressor object normally creates the compressed PDF document file in memory. It can add as many pages as required to the file. Once the PDF file in memory is complete, call this method to write the file to disk, before calling the Dispose method. You must call RasterCodecs.StartUp before using this function.

For more information, refer to Creating a Compressed PDF File

.

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

Leadtools.Pdf requires a PDF Plug-in license and unlock key. For more information, refer to: Raster Pro/Document/Medical Features