Home Forums Support Layout | article description downwards and increase width

This topic contains 1 reply, has 2 voices, and was last updated by  Hillel Coren 1 month, 1 week ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #22882

    thomas_kujawa
    Participant

    Our article description is often very long.

    Therefore I would like to move the text downwards. I also want to increase the width.

    At http://pdfmake.org/playground.html I was not successful.

    Screenshot => https://yadi.sk/i/1SbsWpgVD0cpAQ

    [
      {
        "columns": [
          {
            "stack": "$accountDetails"
          },
          {
            "stack": "$accountAddress"
          },
          [
            {
              "image": "$accountLogo",
              "fit": [
                120,
                80
              ]
            }
          ]
        ]
      },
      {
        "columns": [
          {
            "width": 340,
            "stack": "$clientDetails",
            "margin": [
              0,
              40,
              0,
              0
            ]
          },
          {
            "width": 200,
            "table": {
              "body": "$invoiceDetails"
            },
            "layout": {
              "hLineWidth": "$none",
              "vLineWidth": "$none",
              "hLineColor": "#E6E6E6",
              "paddingLeft": "$amount:10",
              "paddingRight": "$amount:10"
            }
          }
        ]
      },
      {
        "canvas": [
          {
            "type": "rect",
            "x": 0,
            "y": 0,
            "w": 515,
            "h": 25,
            "r": 0,
            "lineWidth": 1,
            "color": "#e6e6e6"
          }
        ],
        "width": 10,
        "margin": [
          0,
          30,
          0,
          -43
        ]
      },
      {
        "style": "invoiceLineItemsTable",
        "table": {
          "headerRows": 1,
          "widths": "$invoiceLineItemColumns",
          "body": "$invoiceLineItems"
        },
        "layout": {
          "hLineWidth": "$notFirst:1",
          "vLineWidth": "$none",
          "hLineColor": "#e6e6e6",
          "paddingLeft": "$amount:8",
          "paddingRight": "$amount:8",
          "paddingTop": "$amount:8",
          "paddingBottom": "$amount:8"
        }
      },
      {
        "columns": [
          "$notesAndTerms",
          {
            "width": 160,
            "style": "subtotals",
            "table": {
              "widths": [
                70,
                60
              ],
              "body": "$subtotals"
            },
            "layout": {
              "hLineWidth": "$none",
              "vLineWidth": "$none",
              "paddingLeft": "$amount:10",
              "paddingRight": "$amount:10",
              "paddingTop": "$amount:4",
              "paddingBottom": "$amount:4"
            }
          }
        ]
      },
      "$signature",
      {
        "stack": [
          "$invoiceDocuments"
        ],
        "style": "invoiceDocuments"
      }
    ]
    #22894

    Hillel Coren
    Keymaster

    One option may be to remove the product key from the invoice (on Settings > Invoice Design > Product Fields) and add the text to the start of the description.

    This video covers adjusting the widths: https://www.youtube.com/watch?v=pXQ6jgiHodc

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

Posted in: