ConvertFromTextAsync Method |
Convert the specified plain text file to PDF and append converted pages to the specified PDF document.
Namespace:
pdftron.PDF
Assembly:
pdftron (in pdftron.dll) Version: 255.255.255.255
Syntax public static IAsyncAction FromTextAsync(
PDFDoc in_pdfdoc,
IStorageFile file,
Obj options
)
Public Shared Function FromTextAsync (
in_pdfdoc As PDFDoc,
file As IStorageFile,
options As Obj
) As IAsyncAction
public:
static IAsyncAction^ FromTextAsync(
[InAttribute] PDFDoc^ in_pdfdoc,
[InAttribute] IStorageFile^ file,
[InAttribute] Obj^ options
)
pdftron.PDF.Convert.FromTextAsync = function(in_pdfdoc, file, options);
Parameters
- in_pdfdoc
- Type: pdftron.PDFPDFDoc
the PDFDoc to append to - file
- Type: IStorageFile
the StorageFile to the plain text document to convert - options
- Type: pdftron.SDFObj
the conversion options
Return Value
Type:
IAsyncAction[Missing <returns> documentation for "M:pdftron.PDF.Convert.FromTextAsync(pdftron.PDF.PDFDoc,Windows.Storage.IStorageFile,pdftron.SDF.Obj)"]
Remarks
in_options the conversion options. The availble options are:
| Option Name | Type | Note |
|-------------------------|---------|---------------------------------------------------------|
| BytesPerBite | Integer | In bytes. Use for streaming conversion only. |
| FontFace | String | Set the font face used for the conversion. |
| FontSize | Integer | Set the font size used for the conversion. |
| LineHeightMultiplier | Double | Set the line height multiplier used for the conversion. |
| MarginBottom | Double | In inches. Set the bottom margin of the page. |
| MarginLeft | Double | In inches. Set the left margin of the page. |
| MarginRight | Double | In inches. Set the right margin of the page. |
| MarginTop | Double | In inches. Set the top margin of the page. |
| PageHeight | Double | In inches. Set the page height. |
| PageWidth | Double | In inches. Set the page width. |
| UseSourceCodeFormatting | Boolean | Set whether to use mono font for the conversion. |
See Also