Convert Between Images and Other Document Formats
When an image is used as an input file, Wordize internally represents it as a single-page document (or as a multi-page document for multi-frame TIFF files), where each page is entirely occupied by the image.
We will look at popular image conversion scenarios.
Convert Word to Image
Converting Word documents to images with Wordize is very easy. However, it is important to keep in mind that if you plan to convert a multi-page document to an image, each page of the document will be saved as a separate image by default.
The following code example shows how to convert DOCX to JPG using the Convert method:
Converter.Convert("DocumentIn.docx", "DocumentOut.jpg");You can also convert DOCX to JPG using the Fluent API and the Create method:
Converter.Create()
.From("DocumentIn.docx")
.To("DocumentOut.jpg")
.Execute();This example is great for situations where you only need the first page or when you are converting a single-page document. To save a multi-page document to a raster image, see page Save a Multi-Page Document as a Single Image.
Convert Image to PDF
It is simple to convert images to PDF using Wordize. Just specify the input image and save the result as a PDF.
The following code example shows how to convert JPG to PDF using the Convert method:
Converter.Convert("DocumentIn.jpg", "DocumentOut.pdf");You can also convert images, including multi-frame TIFF, to PDF using the Fluent API and the Create method:
Converter.Create()
.From("MultiFrameIn.tiff")
.To("DocumentOut.pdf")
.Execute();FAQ
Q: Which image formats are supported for input and output by Wordize?
A: Wordize supports common raster formats such as JPEG, PNG, BMP, GIF, and multi‑frame TIFF for both input and output. Vector formats like SVG are also accepted as input, and the output can be PDF, DOCX, or any of the supported raster types.Q: How do I convert a multi‑frame TIFF to a PDF while preserving all frames?
A: Simply pass the TIFF file to the converter; Wordize treats each frame as a separate page. Use the standardConvertor Fluent API call, and the resulting PDF will contain one page per TIFF frame.Q: Can I control the resolution or DPI of the images generated from a Word document?
A: Yes. Set theResolutionproperty on theImageSaveOptionsbefore executing the conversion. Higher DPI yields higher‑quality images at the cost of larger file size.