Class DocxToPdfRenderer
IronPdf.DocxToPdfRenderer allows any Docx to be turned into a PDF document using an up-to-date embedded Chrome browser.
Inheritance
Namespace: IronPdf
Assembly: IronPdf.dll
Syntax
public class DocxToPdfRenderer : Object
Constructors
DocxToPdfRenderer()
Create a new Docx To PDF renderer.
Declaration
public DocxToPdfRenderer()
DocxToPdfRenderer(DocxPdfRenderOptions)
Declaration
public DocxToPdfRenderer(DocxPdfRenderOptions docxPdfRenderOptions)
Parameters
Type | Name | Description |
---|---|---|
DocxPdfRenderOptions | docxPdfRenderOptions |
Properties
RenderingOptions
Declaration
public DocxPdfRenderOptions RenderingOptions { get; set; }
Property Value
Type | Description |
---|---|
DocxPdfRenderOptions |
Methods
RenderDocxAsPdf(String, DocxPdfRenderOptions)
Creates a PDF file from an Word document and returns it as an PdfDocument object which can be edited and saved to disk or served on a website.
Declaration
public PdfDocument RenderDocxAsPdf(string WordDocumentPath, DocxPdfRenderOptions Options = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | WordDocumentPath | The word document full path to be rendered as a PDF. |
DocxPdfRenderOptions | Options | An instance of DocxPdfRenderOptions that allows configuration of DocxRenderer "Docx to PDF" rendering parameters. |
Returns
Type | Description |
---|---|
PdfDocument | A PdfDocument with the Docx rendered as its contents. |
RenderDocxAsPdfAsync(String, DocxPdfRenderOptions)
, Creates a PDF file from an Word document and returns it as an PdfDocument object which can be edited and saved to disk or served on a website.
Async version of the RenderDocxAsPdf method.
Declaration
public Task<PdfDocument> RenderDocxAsPdfAsync(string WordDocumentPath, DocxPdfRenderOptions Options = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | WordDocumentPath | The word document full path to be rendered as a PDF. |
DocxPdfRenderOptions | Options | An instance of DocxPdfRenderOptions that allows configuration of DocxRenderer "Docx to PDF" rendering parameters. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<PdfDocument> | A PdfDocument with the Docx rendered as its contents. |
RenderDocxMailMergeAsPdf<TRecipientsDataModel>(List<TRecipientsDataModel>, String, DocxPdfRenderOptions)
Declaration
public IEnumerable<PdfDocument> RenderDocxMailMergeAsPdf<TRecipientsDataModel>(List<TRecipientsDataModel> recipientsDataList, string WordDocumentPath, DocxPdfRenderOptions Options = null)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.List<TRecipientsDataModel> | recipientsDataList | |
System.String | WordDocumentPath | |
DocxPdfRenderOptions | Options |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<PdfDocument> |
Type Parameters
Name | Description |
---|---|
TRecipientsDataModel |
RenderDocxMailMergeAsPdfAsync<TRecipientsDataModel>(List<TRecipientsDataModel>, String, DocxPdfRenderOptions)
Creates a PDF file from an Word document and returns it as an PdfDocument object which can be edited and saved to disk or served on a website.
Async version of the RenderDocxAsPdf method.
Declaration
public Task<IEnumerable<PdfDocument>> RenderDocxMailMergeAsPdfAsync<TRecipientsDataModel>(List<TRecipientsDataModel> recipientsDataList, string WordDocumentPath, DocxPdfRenderOptions Options = null)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.List<TRecipientsDataModel> | recipientsDataList | |
System.String | WordDocumentPath | The word document full path to be rendered as a PDF. |
DocxPdfRenderOptions | Options | An instance of DocxPdfRenderOptions that allows configuration of DocxRenderer "Docx to PDF" rendering parameters. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<PdfDocument>> | A PdfDocument with the Docx rendered as its contents. |
Type Parameters
Name | Description |
---|---|
TRecipientsDataModel |