Convert Between Images and Other Document Formats

Convert Word to JPG, JPG to PDF, as well as other image and document formats between each other, using the simple and powerful Wordize tool.

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.

Important to note:
Converting other Word formats to image formats is similar.

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();
Important to note:
Converting other image formats to PDF is similar.