# Convert page layout formats This article demonstrates how you can convert to and from page layout formats with GroupDocs.Conversion for Node.js via 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/nodejs-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: ```js // Load the source TEX file const converter = new groupdocs.conversion.Converter("sample.tex"); // Set the convert options for PDF format const options = new groupdocs.conversion.PdfConvertOptions(); // Convert to PDF format converter.convert("converted.pdf", options); ``` 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/nodejs-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/nodejs-java). ```js // Load the source DOCX file const converter = new groupdocs.conversion.Converter("sample.docx"); // Set the convert options for TEX format const options = new groupdocs.conversion.PdfConvertOptions(); options.setFormat(groupdocs.conversion.PdfFileType.Tex); // Convert to TEX format converter.convert("converted.tex", options); ```