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 2.5k Views 1 Watching
    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 Offline
      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 Offline
        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 Offline
          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 Offline
            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 Offline
              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 Offline
                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

                Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                With your input, this post could be even better 💗

                Register Login
                • First post
                  Last post
                The Community of users of the Notepad++ text editor.
                Powered by NodeBB | Contributors