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:
- Whether expired/incompatible licenses can cause page trimming limitations.
- Whether our current license is compatible with the library version being used.
- If there are any additional configurations required for full document conversion.
Please let us know if any additional logs/sample documents are required.