GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Generate documents for other templates · Issue #1 · QuickSign/docxpand

Generate documents for other templates #1

New issue
Copy link
New issue
Copy link
Open
Open
Generate documents for other templates#1
Copy link

Description

@hienphan161
hienphan161
opened on Nov 29, 2024
Issue body actions

Hi team. Can I use this repository to generate synthetic documents for other templates (other than one of your 9 templates)? If so, what steps do I need to take?

Activity

  1. qs-gbetmont commented on Mar 4, 2025

    @qs-gbetmont
    qs-gbetmont
    on Mar 4, 2025
    Collaborator
    More actions

    Hi,

    Yes, it's possible to achieve this. You can refer to the contents in the pp_td3_a directory for inspiration.

    First, generate a file named front.svg. All the configurations you want should be within the <g id="Textes"> group. You can define the fields you want to generate. For example, for a family_name field, you can create an element like this:

    <text id="family_name_field" transform="translate(102 43.65)">
      <tspan class="cls-110" x="0" y="8.4">Family name and given names (line 1)</tspan>
    </text>

    Do this for every field you need.

    Next, define a generator.json file to specify the provider for each field. The names should match the text IDs in the SVG file but without the _field suffix. For example, for the family_name_field, it would look something like this:

    {
      "name": "family_name",
      "type": "name",
      "provider": {
        "__class__": "faker.providers.person.{name_locale}.Provider",
        "init_context": {
          "generator": "generator"
        },
        "__method__": "last_name_{gender}"
      },
      "parts": {
        "1": 0.85,
        "2": 0.15
      },
      "separator": "-",
      "max_chars_per_line": 24,
      "lines": 1
    }

    There are many possible arguments, but the mandatory ones are the name, type, and provider. You can use a faker provider if you prefer not to code them yourself.

    Unfortunately, we don't have the time to create a proper guide for this process, so you'll need to look into the code and figure it out as you go.

  2. QuickSign
    deleted a comment from Morimoyo on Mar 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.