DocxMerge | Simple command line program to merge word documents | Command Line Interface library

 by   jamessantiago C# Version: 1.2 License: MIT

kandi X-RAY | DocxMerge Summary

kandi X-RAY | DocxMerge Summary

DocxMerge is a C# library typically used in Utilities, Command Line Interface applications. DocxMerge has no bugs, it has no vulnerabilities, it has a Permissive License and it has low support. You can download it from GitHub.

Simple command line program to merge word documents.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              DocxMerge has a low active ecosystem.
              It has 6 star(s) with 4 fork(s). There are 1 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 2 open issues and 0 have been closed. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of DocxMerge is 1.2

            kandi-Quality Quality

              DocxMerge has no bugs reported.

            kandi-Security Security

              DocxMerge has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.

            kandi-License License

              DocxMerge is licensed under the MIT License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              DocxMerge releases are available to install and integrate.
              Installation instructions, examples and code snippets are available.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of DocxMerge
            Get all kandi verified functions for this library.

            DocxMerge Key Features

            No Key Features are available at this moment for DocxMerge.

            DocxMerge Examples and Code Snippets

            DocxMerge,Getting Started
            C#dot img1Lines of Code : 19dot img1License : Permissive (MIT)
            copy iconCopy
            DocxMerge -i MyFirstDocument.docx MySecondDocument.docx
            
            > .\DocxMerge.exe --help
            DocxMerge 1.2.0.0
            Copyright c James Santiago 2015
            
              -i, --input             Required. A list of docx files to merge in order
            
              -o, --output            Output file   

            Community Discussions

            QUESTION

            Issue converting to .pdf a merged .docx file that opens fine in Word
            Asked 2021-Apr-17 at 14:33

            So, I have the following scenario.

            I am working on a system for academical papers. I have several inputs that are for stuff like author name, coauthors, title, type of paper, introduction, objectives and so on. I store all that information in a database. The user has a Preview button which when clicked, generates a Word asynchronously and sends the file location back to the user and that file is afterwards shown to the user in an iframe using Google Doc Viewer.

            There's a specific use case where the user/author of the paper can attach a .docx file with a table, or a .jpeg file for a figure. That table/figure has to be included inside the final .docx file.

            For the .docx generation process I am using PHPWord.

            So up until this point everything works fine, but my issues start when I try to mix everything and put together the .docx file.

            Approach Number One

            My first approach on doing this was to do everything with PHPWord. I create the file, add the texts where required and in the case of the image just insert the image and after that the figure caption below the image.

            Things get tricky though, when I try doing the same thing with the .docx table file. My only option was to get the table XML using this. It did the trick, but the problem I ran into was that when I opened the resulting Word file, the table was there, but had lost all of its styling and had transparent borders. Because of those transparent borders, afterwards when converting it to PDF the borders were ignored and the table info is just scrambled text.

            Approach Number Two (current one)

            After fighting with Approach Number One and just complicating stuff more, I decided to do something different. Since I already generated one docx file with the main paper information and I needed to add another docx file, I decided to use the DocX Merge Library.

            So, what i basically did was I have three generated word files, one for the main paper information, one for the table and one for the table caption (that last one is mainly to not overcomplicated the order of information). Also, that data is not in the table .docx file.

            Then I run this:

            ...

            ANSWER

            Answered 2021-Apr-17 at 14:33

            After a lot of attempts to fix it, I wasn't able to achieve what I wanted with PHPWord and the merging library I mentioned.

            Since I needed to fix this I decided to invest in the paid library I mentioned in my question. It was an expensive purchase, but for those who are interested, it does exactly what was required and it does it perfectly.

            The two main functions I required were document merging and importing of content to a .docx file.

            So I had to purchase the Premium package. Once there, the library literally does everything for you.

            Example for docx files merge code:

            Source https://stackoverflow.com/questions/67084480

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install DocxMerge

            First grab a copy of DocxMerge.exe and copy to your local system (preferably in your PATH for easy access). This will merge your two documents in the order that you listed the files and output the results to output.docx.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/jamessantiago/DocxMerge.git

          • CLI

            gh repo clone jamessantiago/DocxMerge

          • sshUrl

            git@github.com:jamessantiago/DocxMerge.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Explore Related Topics

            Consider Popular Command Line Interface Libraries

            ohmyzsh

            by ohmyzsh

            terminal

            by microsoft

            thefuck

            by nvbn

            fzf

            by junegunn

            hyper

            by vercel

            Try Top Libraries by jamessantiago

            PoSH-Sodium

            by jamessantiagoHTML

            sCheck

            by jamessantiagoPowerShell

            jamescms

            by jamessantiagoC#

            agsXmppNlogTarget

            by jamessantiagoC#

            UC.NET

            by jamessantiagoC#