def build_header
      @pdf.text_box(
        @labels[:name],
        size: 20,
        align: :left,
        at: [0, y(720) - @push_down],
        width: x(300),
      )

      if used? @labels[:sublabels][:name]
        @pdf.text_box(
          @labels[:sublabels][:name],
          size: 12,
          at: [0, y(720) - @push_down - 22],
          width: x(300),
          align: :left
        )
      end

      @pdf.text_box(
        @document.number,
        size: 20,
        at: [x(240), y(720) - @push_down],
        width: x(300),
        align: :right
      )

      @pdf.move_down(250)

      if used? @labels[:sublabels][:name]
        @pdf.move_down(12)
      end
    end
def build_header
      @pdf.text_box(
        @labels[:name],
        size: 20,
        align: :left,
        at: [0, y(720) - @push_down],
        width: x(300),
      )

      if used? @labels[:sublabels][:name]
        @pdf.text_box(
          @labels[:sublabels][:name],
          size: 12,
          at: [0, y(720) - @push_down - 22],
          width: x(300),
          align: :left
        )
      end

      @pdf.text_box(
        @document.number,
        size: 20,
        at: [x(240), y(720) - @push_down],
        width: x(300),
        align: :right
      )

      @pdf.move_down(250)

      if used? @labels[:sublabels][:name]
        @pdf.move_down(12)
      end
    end
Build the document name and number at the top:

   NAME                      NO. 901905374583579
   Sublabel name