# Convert page layout formats This article demonstrates how you can convert to and from page layout formats with GroupDocs.Conversion for Java. ## About page layout formats Page layout languages are used in desktop and electronic publishing. The main focus of these languages is to facilitate a two-dimensional graphic design. Popular page layout formats include TEX, SVG, PS, and EPS. ## Supported page layout conversions {{< include file="/conversion/java/_includes/supported-conversions/page-description-language.md" type="page" >}} ## Convert from page layout formats With [GroupDocs.Conversion](https://products.groupdocs.com/conversion/java) you can easily convert a page layout file format into another file format. For example, TEX to PDF conversion code snippet looks like this: {{< tabs "convert-tex-to-pdf">}} {{< tab "Java" >}} ```java import com.groupdocs.conversion.Converter; import com.groupdocs.conversion.options.convert.PdfConvertOptions; // Load the source TEX file Converter converter = new Converter("sample.tex"); // Set the convert options for PDF format PdfConvertOptions options = new PdfConvertOptions(); // Convert to PDF format converter.convert("converted.pdf", options); ``` {{< /tab >}} {{< /tabs >}} Put it simply - you just load a TEX file into `Converter`, select the desired output format and **GroupDocs.Conversion** does all the rest. {{< alert style="info" >}} Refer to the [API reference](https://reference.groupdocs.com/conversion/java/com.groupdocs.conversion.options.convert/package-frame) for more conversion options and customizations. {{< /alert >}} ### Convert to page layout formats On the other hand, converting your files to page layout format is also quite simple and natural. The following code snippet shows how to convert a DOCX document to TEX format in Java using [GroupDocs.Conversion](https://products.groupdocs.com/conversion/java). {{< tabs "convert-docx-to-tex">}} {{< tab "Java" >}} ```java import com.groupdocs.conversion.Converter; import com.groupdocs.conversion.options.convert.PageDescriptionLanguageConvertOptions; import com.groupdocs.conversion.filetypes.PageDescriptionLanguageFileType; // Load the source DOCX file Converter converter = new Converter("sample.docx"); // Set the convert options for TEX format PageDescriptionLanguageConvertOptions options = new PageDescriptionLanguageConvertOptions(); options.setFormat(PageDescriptionLanguageFileType.Tex); // Convert to TEX format converter.convert("converted.tex", options); ``` {{< /tab >}} {{< /tabs >}}