• Login
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.6k 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.
  • H
    Hellena Crainicu
    last edited by Hellena Crainicu Jan 28, 2023, 4:34 PM Jan 28, 2023, 4:33 PM

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

    L 1 Reply Last reply Jan 28, 2023, 10:45 PM Reply Quote 0
    • L
      Lycan Thrope @Hellena Crainicu
      last edited by Lycan Thrope Jan 28, 2023, 10:53 PM Jan 28, 2023, 10:45 PM

      @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

      P 1 Reply Last reply Jan 29, 2023, 3:29 PM Reply Quote 2
      • P
        Paul Wormer @Lycan Thrope
        last edited by Jan 29, 2023, 3:29 PM

        @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.

        A 1 Reply Last reply Jan 29, 2023, 4:10 PM Reply Quote 1
        • A
          Alan Kilborn @Paul Wormer
          last edited by Jan 29, 2023, 4:10 PM

          @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.

          P 1 Reply Last reply Jan 29, 2023, 4:14 PM Reply Quote 0
          • P
            Paul Wormer @Alan Kilborn
            last edited by Paul Wormer Jan 29, 2023, 4:50 PM Jan 29, 2023, 4:14 PM

            @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/

            A 1 Reply Last reply Jan 29, 2023, 7:11 PM Reply Quote 0
            • A
              Alan Kilborn @Paul Wormer
              last edited by Jan 29, 2023, 7:11 PM

              @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
              6 out of 6
              • First post
                6/6
                Last post
              The Community of users of the Notepad++ text editor.
              Powered by NodeBB | Contributors