IFileConverterConvert Method (String, ConversionSourceType, ConversionOutputType, DocumentOptions) |
Convert string input to output type returning an array of bytes.
Namespace:
NetQuarry
Assembly:
EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax byte[] Convert(
string Input,
ConversionSourceType ConversionType,
ConversionOutputType OutputType,
DocumentOptions DocOptions
)
Function Convert (
Input As String,
ConversionType As ConversionSourceType,
OutputType As ConversionOutputType,
DocOptions As DocumentOptions
) As Byte()
Parameters
- Input
- Type: SystemString
Input source - ConversionType
- Type: NetQuarryConversionSourceType
Input source type - OutputType
- Type: NetQuarryConversionOutputType
Output file type - DocOptions
- Type: NetQuarryDocumentOptions
Output document options
Return Value
Type:
ByteFile data
Remarks
When converting from HTML to PDF, you can force page breaks into the document by adding CSS page-break-before
and page-break-after properties. For example, you can add a span like this to force a page break in a particular
location: <div style="page-break-before: always"></div>.
See Also