Aspose::Pdf::Facades::AutoFiller class

AutoFiller class

Represents a class to receive data from database or other datasource, fills them into the designed fields of the template pdf and at last generates new pdf file or stream. It has two template file input modes:input as a stream or a pdf file. It has four types of output modes:one merged stream, one merged file, many small streams, many small files. It can recieve literal data contained in a System.Data.DataTable.

class AutoFiller : public Aspose::Pdf::Facades::ISaveableFacade

Methods

MethodDescription
AutoFiller()
BindPdf(System::String) overrideBinds a Pdf file.
BindPdf(System::SharedPtr<System::IO::Stream>) overrideBinds a Pdf file.
BindPdf(System::SharedPtr<Document>) overrideBinds a Pdf document.
Close() overrideCloses the object and output streams.
Dispose() overrideCloses the object and output streams.
get_BasicFileName() constGets the basic file name if many small files will be generated. The generated file will be like “BasicFileName0”,“BasicFileName1”,… It works with another property GeneratingPathGeneratingPath.
get_GeneratingPath() constGets the Generating Path of the small pdf files if many small pdf files to be generated. It works with another property BasicFileNameBasicFileName. One of the four output modes.
get_InputFileName() constGets the input template file. One of two input modes.
get_InputStream() constGets the input template stream. One of two input modes.
get_OutputFileName() constGets the one big merged output file. One of the four output modes.
get_OutputStream() constGets the OutputStream. One of four output modes. Its classical use case is Response.OutputStream. Please refer to the online demo.
get_OutputStreams() constGets the many Output Streams. One of four output modes.
Save()Saves all the pdfs.
Save(System::String) overrideSaves all the pdfs.
Save(System::SharedPtr<System::IO::Stream>) overrideSaves all the pdfs.
set_BasicFileName(System::String)Sets the basic file name if many small files will be generated. The generated file will be like “BasicFileName0”,“BasicFileName1”,… It works with another property GeneratingPathGeneratingPath.
set_GeneratingPath(System::String)Sets the Generating Path of the small pdf files if many small pdf files to be generated. It works with another property BasicFileNameBasicFileName. One of the four output modes.
set_InputFileName(System::String)Sets the input template file. One of two input modes.
set_InputStream(System::SharedPtr<System::IO::Stream>)Sets the input template stream. One of two input modes.
set_OutputFileName(System::String)Sets the one big merged output file. One of the four output modes.
set_OutputStream(System::SharedPtr<System::IO::Stream>)Sets the OutputStream. One of four output modes. Its classical use case is Response.OutputStream. Please refer to the online demo.
set_OutputStreams(System::ArrayPtr<System::SharedPtr<System::IO::Stream>>)Sets the many Output Streams. One of four output modes.
set_UnFlattenFields(System::ArrayPtr<System::String>)Sets the fields which will not be flattened. If this property is not set, all the fields will be flattened.

See Also