Issue with DOC to PDF Conversion - Output Trimmed to 3 Pages

Hi Team,

We are facing an issue while converting DOC/DOCX files to PDF using GroupDocs.Conversion for Java.

Issue Details:

  • During conversion, only the first 3 pages are present in the generated PDF.
  • Remaining pages are getting trimmed/skipped.
  • No exception is being thrown during conversion.

Environment Details:

  • Product: GroupDocs.Conversion for Java
  • Current library version: 23.6
  • License Type: Developer OEM
  • Subscription Expiry: 2026-01-23

Sample Conversion Code:

private String convertToPdfIfRequired(String originalFilePath, String sharedDirectory, int sortOrder) {

    if (originalFilePath == null || sharedDirectory == null) {
        return null;
    }

    String extension = originalFilePath.substring(originalFilePath.lastIndexOf('.') + 1).toLowerCase();

    if (!List.of("doc", "docx", "xls", "xlsx").contains(extension)) {
        return originalFilePath;
    }

    String pdfFilePath = Paths.get(sharedDirectory, sortOrder + "_converted.pdf").toString();

    try (Converter converter = new Converter(originalFilePath)) {

        PdfConvertOptions options = new PdfConvertOptions();
        converter.convert(pdfFilePath, options);

        return pdfFilePath;

    } catch (Exception e) {
        e.printStackTrace();
        return null;
    }
}

Observations:

  • Conversion completes successfully without errors.
  • Generated PDF contains only 3 pages even though the source document has more pages.
  • We suspect this may be related to license validation/evaluation mode behavior.

Could you please confirm:

  1. Whether expired/incompatible licenses can cause page trimming limitations.
  2. Whether our current license is compatible with the library version being used.
  3. If there are any additional configurations required for full document conversion.

Please let us know if any additional logs/sample documents are required.

@Polus

I’m sorry for the delayed response, it is highly likely that the license is not applied and library works in the trial mode. Please share you license file by sending it to developers@groupdocs.com and we’ll take a look what is going on as it looks like the version you’re using does not support newer license signature.