Skip to content

Instantly share code, notes, and snippets.

@laser
Last active May 23, 2017 22:26
Show Gist options
  • Save laser/be1a833149faedf0490279ec8b82e012 to your computer and use it in GitHub Desktop.
Save laser/be1a833149faedf0490279ec8b82e012 to your computer and use it in GitHub Desktop.
Quick Demo

What can this thing do so far?

  • works with PDFV2 (e.g. RLP_BUSINESSCARD_CORP_001_EN) and PDFV3 (IMP_FLYER_2PG_EDE_101) designs, so far

  • admin can create configurations which specify an image set id, resource-key-to-strings mapping, and symbol-to-strings mapping

{
  "imageSetId": "corcoran-4",
  "resourceKeyValues": {
    "COR_AGENT_1_TITLE": ["Agent 1 Title", "Agt. 1 Title"]
  },
  "symbolValues": {
    "misc_1.highlight_1": ["Agent 1 License Name"]
  }
}
  • tool load configurations from the outside world specified at a variety of levels for either a layout or sample:

    • AP-specific, design-specific
    • AP-specific, design-agnostic
    • install-specific, design specific
    • install-specific, design agnostic
    • org-agnostic, design-specific
  • tool resolves image set ids to S3 object-URLs to add to generator input values

  • tool picks "longest string that fits" (which could be no string) for a max chars-constrained element

Demo

Retail Install

Configs:

  • Retail install, image set id provided
  • Update install-level agent_1.brokerage to be Brokerage
  • Update install-level agent_1.brokerage to be Brokerage, Brokerage 91", "Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
  • Overwrite one of the image set-images' images by specifying an image for symbol agent_1.company.logo: https://theamericangenius.com/wp-content/uploads/2012/01/imprev-logo.jpg

Corcoran

Show the "sample":

  • Corcoran install, image set id provided (and lots of per-symbol and per-resource-key values, too)
  • Override the EDE_ORIGINAL_LIST_PRICE at the account plan, design-nonspecific level (fancy) (set it to $2,000,000)
  • Override the EDE_ORIGINAL_LIST_PRICE at the account plan, design-nonspecific level (less-fancy) (set it to $500,000)
  • Override the EDE_ORIGINAL_LIST_PRICE at the design + account plan level, setting it to $1,500,000

Show the "layout"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment