1. montecarlo

    montecarlo Contributor Contributor

    Joined:
    Sep 29, 2020
    Messages:
    922
    Likes Received:
    835
    Location:
    America's Heartland

    Software for compiling from different files

    Discussion in 'Writing Software and Hardware' started by montecarlo, Oct 10, 2021.

    This is work related, not creative writing related, but I think there’s a good chance someone on this forum has a lead.

    I’m looking for some software that can compile multiple word docs or PDFs together into one in a way that is very easy. Let me explain a bit further.

    My company has about 70 business units and 900 customers. We want to disseminate procedures for the different business units and customers, print it out, but have it in one convenient reference for our techs.

    so business unit A may need reference material for customers 1-10 and the state of Ohio; business unit B has customers 2-7 and 15-18 in the state of Michigan. If I had one document for each business unit, if something changes, for example customer #2, I don’t want to open every single file that has customer #2 referenced and make the changes multiple. I want to open the customer #2 reference, make the change once, and hit compile, and all the files that are affect by the change get recompiled.

    So the idea would be to have a bunch of individual files for reference materials, a smaller number of output files with various combinations of those, and a compiler that knows the relationship and order and can recompile on a ad hoc basis.

    any ideas?
     
  2. SapereAude

    SapereAude Contributor Contributor

    Joined:
    Jan 21, 2021
    Messages:
    1,714
    Likes Received:
    1,359
    It sounds to me like what you need is a database -- something like Access or MySQL.
     
    montecarlo likes this.
  3. montecarlo

    montecarlo Contributor Contributor

    Joined:
    Sep 29, 2020
    Messages:
    922
    Likes Received:
    835
    Location:
    America's Heartland
    Yeah, I think I could write something to manage this with C# and SQL Server, but it'd take me forever to hack it together...
     
  4. Hammer

    Hammer Moderator Staff Supporter Contributor

    Joined:
    Oct 28, 2018
    Messages:
    2,269
    Likes Received:
    4,018
    Location:
    UK
    Sounds like relational database territory to me too.

    You could probably use some kind of CRM (customer relationship management) software, but possibly a sledgehammer solution to what sounds largely like document management.
     
  5. Amontillado

    Amontillado Senior Member

    Joined:
    Aug 3, 2018
    Messages:
    291
    Likes Received:
    170
    Pandoc? It supports docx for both input and output, and it will output to pdf.

    I use a Mac for creative writing and daily stuff. Apple Preview (sort of like Adobe Reader, bundled with MacOS) will merge PDF's, let you sort the pages, add watermarks, all kinds of stuff beyond just viewing them.

    I used Mellel to create a couple of Word documents (I don't have Word), which I stored in a Devonthink database.

    Devonthink's merge function concatenated them, which I confirmed by importing them into Nisus Writer Pro.

    Merging PDF's shouldn't present any challenges. Merging docx files may require fine tuning because you have to merge styles as well as content. A style is a global thing. It doesn't get modified at a point in the document. If you're on the last page of your document and update a style, the update will apply to the style throughout the document. Likewise, a given style will apply to the entirety of your merge.


    Edited to add: for the compile, you might use a spreadsheet to maintain a matrix of document-vs-components. Easy Data Transform is a fun tool that I believe could be used to write a series of pandoc commands for selected document consumers. I got it to mine tax rolls for tax assessor malfeasance (found it, too).

    Lately, I've gotten accolades at work for the spreadsheet extracts and joins I've provided.

    Heh, heh, heh - they see my output, they know how messy the input was, and think I spent hours. Truthfully, it's just a simple flowchart thing.
     
    Last edited: Oct 11, 2021
  6. Bruce Johnson

    Bruce Johnson Contributor Contributor Contest Winner 2023

    Joined:
    Jan 9, 2021
    Messages:
    1,346
    Likes Received:
    960
    For the word docs, could you do something in VBA using an Access Database with the relevant information? Create some form for someone to fill out and select the unit, customers, etc.?
     
  7. 48days

    48days Member

    Joined:
    Oct 8, 2021
    Messages:
    15
    Likes Received:
    19
    Location:
    North of the Wall
    Storing the information on an SQL server and writing an application in C# to compile it based on your needs is probably the most elegant solution.

    The dirty solution, which is what I'd probably end up doing, would be to jam all of the data into an excel file, then use VBA to open word and paste the required information before saving it as a PDF.
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice