Document conversion solution

Convert DOC to PDF in Java

Experience the efficiency of a native, high-performance DOC to PDF file converter API designed for Java, J2EE, and J2SE applications. Enjoy support for an extensive set of additional features, allowing customization of the output document’s appearance.

Steps to convert DOC to PDF file in Java

Transforming DOC to PDF is made simple with GroupDocs.Conversion, requiring just a few straightforward steps.

  1. Add GroupDocs.Conversion for Java as a dependency to your project.
  2. Create an instance of Converter class.
  3. Load the DOC file with full path.
  4. Convert file and check output in the current directory.
Copy
new Converter()
    .load("input.doc")              // Set up input DOC file
    .convertTo("converted.pdf")    // Specify output path for converted file
    .convert();                    // Convert DOC to PDF file        
<dependencies> <dependency> <groupId>com.groupdocs</groupId> <artifactId>groupdocs-conversion</artifactId> <version>24.9</version> </dependency> </dependencies> <repositories> <repository> <id>repository.groupdocs.com</id> <name>GroupDocs Repository</name> <url>https://repository.groupdocs.com/repo/</url> </repository> </repositories>
click to copy
copied
More examples Documentation

About GroupDocs.Conversion for Java API

Incorporate support for over 60 popular document formats seamlessly into your Java applications using the GroupDocs.Conversion for Java APIs. With just a few lines of code, developers can effortlessly convert PDFs, Word documents, Excel spreadsheets, presentations, Visio files, Project files, Outlook documents, and many other formats into the desired document or image formats. Enjoy swift document processing without the requirement for installing additional software or external libraries.
Learn more
About illustration

Ready to get started?

Download GroupDocs.Conversion for free or get a trial license for full access!

Convert other file formats using Java

Access a versatile API for converting documents and images across multiple formats in Java. Seamlessly switch between some of the most commonly used file formats listed below without relying on external tools.

Temporary license tips

1
Sign up with your work email.
Free mail services are not allowed.
2
Use Get a temporary license button on the second step.
 English