The Word to PDF Converter component of the library allows you to convert Word documents in DOCX format to PDF.
You can choose to apply the PDF page settings such as size, orientation and margins from the original Word document,
or you can reflow the content using your own custom PDF page size, orientation and margins.
Additionally, you can add HTML headers and footers with page numbering to the generated PDF file.
The converter can also recognize page break marks in the Word document and translate them into corresponding
PDF page breaks.
You can either enter a Word file URL (which can also be a local URL using the file:// prefix when running the demo on your machine),
or upload a Word file directly from your computer.
Images are reduced to the width of the page and long words are wrapped on their own. For a document with an element
that cannot be reduced, such as a table whose columns hold codes that cannot be broken, the Fit Wide Content to Page
option scales the whole content down to show that element entirely; to see the difference, replace Word_Document.docx
with Word_Document_Wide_Content.docx in the file URL below.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Content Wider than the Page
|
|
|
|
|
|
|
PDF Header and Footer Options
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|