Giter Site home page Giter Site logo

docxswapper's Introduction

DocXSwapper

This is a program for lazy people that don't want to fill word documents.
You create a bunch of templates with placeholders all over and this will replace them with your given fields.

Setup

[1] - Stash your templates in a folder.
[2] - Add placeholders such as ...Name... to the fields that you want to replace.
[3] - Create a .txt file and define what you want to replace the placeholders with.
Example:

Name = Bob Marley
Address = 74 Reggae Street, Heaven

No need to add the placeholder prefix here, only the text.
[4] - Configure DocXSwapper - Check the Config.conf file for all configurations.

!! Known Issues !!
Sometimes the placeholder might get split into ... word ... instead of ...word... and the program will not be able to find it. In order to fix this, copy the placeholder's text into something like notepad, copy it from there and paste it back, this will force the editor to treat it as a whole e.g. ...word....

Config explained:

templates_folder - here you put your templates path
exports_folder - where you want your results
sample_files_folder - where you'll be placing the samples
export_into_folders - export all templates into a folder with the sample name
placeholder_start - customize the start of the placeholder
placeholder_end - customize the end of the placeholder
print_replacements - useful for debug, it will print all replacelemnts done

Enjoy!

docxswapper's People

Contributors

cretucosmin3 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.