Word document added an Undefined Label

Hi, we have an issue when saving a word document after an edition, in the word saved document is adding a label at the beginning of the content.
proces-editor error.PNG (241.7 KB)

We are using GroupDocs editor 23.9 and 24.4
JDK 11
docker image: openjdk:11-jdk-slim

We want to know if something is missing in our configuration that could be causing this label.
I share the documents. Thanks in advance.
Editor-error.zip (132.7 KB)

@sara.campos.medtrainer

Could you please provide more details about the specific configuration settings you are using in GroupDocs editor that might be related to this issue?

@sara.campos.medtrainer

To investigate further, could you also provide a brief code snippet showing how you’re using GroupDocs.Editor to load and save the document, as well as confirm which editor integration you’re using (e.g., CKEditor)? Additionally, since you’re running this in a Docker container (openjdk:11-jdk-slim), please share your Dockerfile or image configuration and let us know if any custom fonts, locales, or additional packages are installed. This will help us reproduce the issue in a matching environment.

Hi we are using TinyMCE,


    private LoadDocumentEntity loadDocumentEntity(String guid, String password) {

        long inTime = System.currentTimeMillis();

        LoadDocumentEntity doc = new LoadDocumentEntity();
        try {
            ILoadOptions options = getLoadOptions(guid, password);
            Editor editor = new Editor(new FileInputStream(guid), options);
            EditableDocument editableDocument = editor.edit(new WordProcessingEditOptions(false));
            PageDescriptionEntity page = new PageDescriptionEntity();
            page.setData(editableDocument.getEmbeddedHtml());
            page.setNumber(0);
            List<PageDescriptionEntity> pages = new ArrayList<>();
            pages.add(page);
            doc.setPages(pages);
            doc.setGuid(guid);
        } catch (Exception ex) {
            throw new TotalGroupDocsException(ex.getMessage(), ex);
        }

        long endTime = System.currentTimeMillis();

        timeUtil.printTime("loadDocumentEntity " + FilenameUtils.getName(guid), inTime, endTime);

        return doc;
    }


    /**
     * Save the content of the HTML file to the file specified in the guid path
     *
     * @param pathHtml contains the html
     * @param guid     destination file to save
     */
    @Override
    public void saveDoc(String pathHtml, String guid) {
        long inTime = System.currentTimeMillis();
        EditDocumentRequest editDocumentRequest = new EditDocumentRequest();
        editDocumentRequest.setGuid(guid);
        String content = getContentFile(pathHtml);

        String filePath = !DefaultDirectories.isAbsolutePath(guid)
            ? editorConfiguration.getFilesDirectory() + File.separator + guid
            : guid;
        log.info("source path: " + pathHtml);
        log.info("result path: " + filePath);
        try (OutputStream outputStream = new FileOutputStream(filePath)) {
            Editor editor = new Editor(filePath);
            EditableDocument outputDocument = EditableDocument.fromMarkup(content, null);
            ISaveOptions options = getSaveOptions(filePath);
            editor.save(outputDocument, outputStream, options);
        } catch (Exception ex) {
            throw new TotalGroupDocsException(ex.getMessage(), ex);
        }
        long endTime = System.currentTimeMillis();
        timeUtil.printTime("saveDoc html to word " + FilenameUtils.getName(guid), inTime, endTime);
    }

docker.zip (1.6 KB)

@sara.campos.medtrainer
We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): EDITORJAVA-1257

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.