AutoFiller

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.

The AutoFiller type exposes the following members:

Constructors

NameDescription
AutoFiller()Initializes a new instance of the AutoFiller class

Properties

NameDescription
output_streamGets or sets the OutputStream. One of four output modes. Its classical use case is Response.OutputStream.
Please refer to the online demo.
output_streamsGets or sets the many Output Streams. One of four output modes.
input_streamGets or sets the input template stream. One of two input modes.
input_file_nameGets or sets the input template file. One of two input modes.
output_file_nameGets or sets the one big merged output file. One of the four output modes.
generating_pathGets or sets the Generating Path of the small pdf files if many small pdf files to be generated. It works with another property basic_file_nameBasicFileName.
One of the four output modes.
basic_file_nameGets or 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 generating_pathGeneratingPath.

Methods

NameDescription
save()Saves all the pdfs.
save(dest_file)Saves all the pdfs.
save(dest_stream)Saves all the pdfs.
bind_pdf(src_file)Binds a Pdf file.
bind_pdf(src_stream)Binds a Pdf file.
bind_pdf(src_doc)Binds a Pdf document.
close()Closes the object and output streams.

See Also