Altsoft Xml2PDF reference library
CreateFastDestination Method (format, stream, closeStream, log, config)
NamespacesAltsoft.PublisherAPEngineCreateFastDestination(APDestinationFormat, Stream, Boolean, APLog, APConfig)
Creates a document optimized for huge input documents.
Declaration Syntax
C#Visual BasicVisual C++
public APDestination CreateFastDestination(
	APDestinationFormat format,
	Stream stream,
	bool closeStream,
	APLog log,
	APConfig config
)
Public Function CreateFastDestination ( _
	format As APDestinationFormat, _
	stream As Stream, _
	closeStream As Boolean, _
	log As APLog, _
	config As APConfig _
) As APDestination
public:
APDestination^ CreateFastDestination(
	APDestinationFormat format, 
	Stream^ stream, 
	bool closeStream, 
	APLog^ log, 
	APConfig^ config
)
Parameters
format (APDestinationFormat)
Format of a new destination.
stream (Stream)
Output stream for a new destination.
closeStream (Boolean)
Indicates whether to close stream after saving.
log (APLog)
Operation log.
config (APConfig)
Settings for a new destination.
Return Value
A new instance of APDestination.
Remarks

The logic behind its work is document saving page-by-page. Thus you should define the output format and stream beforehand.

Examples
C#
             // Next example formats huge input fo file to fast PDF.
             using (APEngine engine = new APEngine())
             {
                 // initialize engine in evaluation mode
                 engine.Load("");
            
                 // create default config
                 APConfig config = engine.CreateConfig();
                 // create operation log for saving
                 APLog log = new APLog();
            
                 // create fast PDF destination
                 using(APDestination fastPDF = engine.CreateFastDestination(APDestinationFormat.PDF, "output.pdf", log, config))
                 {
                     // append source fo to target PDF
                     using(APSource hugeFO = engine.CreateSourceFO("input.fo"))
                         fastPDF.Append(hugeFO);
            
                     // finalize saving
                     fastPDF.Close();
                 }
             }
             

Assembly: Altsoft.Xml2PDF.Server (Module: Altsoft.Xml2PDF.Server)