Community
    • Login

    Is there a way to convert multiple text files to docx with notepad++ ?

    Scheduled Pinned Locked Moved General Discussion
    6 Posts 4 Posters 1.4k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Hellena CrainicuH
      Hellena Crainicu
      last edited by Hellena Crainicu

      hello, Is there any plugin or python script that can run in notepad++ as to convert several text files to docx?

      Lycan ThropeL 1 Reply Last reply Reply Quote 0
      • Lycan ThropeL
        Lycan Thrope @Hellena Crainicu
        last edited by Lycan Thrope

        @Hellena-Crainicu ,

        Unless someone here knows otherwise, in a word, no. Check this description and realize that NPP is a Text Editor, not a word processor.

        Open with Word, Word Online, Google Docs, or some other word processor.
        

        And:

         What Is a DOCX File?
        
        A file with the DOCX file extension is a Microsoft Word Open XML Format Document file.
        
        DOCX files are used for everything from resumes and cover letters to reports, flyers, documentation, invitations, newsletters, and more. These files usually contain text but can also include objects, styles, rich formatting, and images. 
        

        https://www.lifewire.com/docx-file-2620750

        Just so there is no question, this is a screenshot of NPP opening a .docx file. It’s binary:

        docxformat.PNG

        Paul WormerP 1 Reply Last reply Reply Quote 2
        • Paul WormerP
          Paul Wormer @Lycan Thrope
          last edited by

          @Lycan-Thrope AFAIK a docx is a zip of a number of xml files. The xml’s can be handled by Npp, but first they must be unzipped from the docx.

          Alan KilbornA 1 Reply Last reply Reply Quote 1
          • Alan KilbornA
            Alan Kilborn @Paul Wormer
            last edited by

            @Paul-Wormer said in Is there a way to convert multiple text files to docx with notepad++ ?:

            The xml’s can be handled by Npp, but first they must be unzipped from the docx.

            I think the OP is asking about going the other way.

            Paul WormerP 1 Reply Last reply Reply Quote 0
            • Paul WormerP
              Paul Wormer @Alan Kilborn
              last edited by Paul Wormer

              @Alan-Kilborn The other way is: zip xml’s. (I must add: I’ve never tried it, I read about it). See https://pypi.org/project/docx-mailmerge/

              Alan KilbornA 1 Reply Last reply Reply Quote 0
              • Alan KilbornA
                Alan Kilborn @Paul Wormer
                last edited by

                @Paul-Wormer said in Is there a way to convert multiple text files to docx with notepad++ ?:

                The other way is: zip xml’s.

                Well, the other way might be to figure out what xmls to create, before zipping…
                The presumption here is that user just has free-form .txt files, right?

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post
                The Community of users of the Notepad++ text editor.
                Powered by NodeBB | Contributors