pdf make 1

by Martin Murciego

HTML

<script src="https://cdn.rawgit.com/bpampuch/pdfmake/0.1.18/build/pdfmake.min.js"></script>
<script src="https://cdn.rawgit.com/bpampuch/pdfmake/0.1.18/build/vfs_fonts.js"></script>
<button id="btnTest">Tıkla</button>

JavaScript

//var docDefinition = { content: 'This is an sample PDF printed with pdfMake' };
var docDefinition = {
  pageSize: 'A4',

  // by default we use portrait, you can change it to landscape if you wish
  pageOrientation: 'landscape',

  // [left, top, right, bottom] or [horizontal, vertical] or just a number for equal margins
  pageMargins: [10, 10, 10, 10],
  content: [{
      alignment: 'justify',
      margin: [0, 0, 0, 0],
      columns: [{
        table: {
          widths: [110, 2, 'auto'],
          body: [
            [{
              text: 'İstasyon No',
              bold: true
            }, ':', 'WAN3894'],
            [{
              text: 'İstasyon Adı',
              bold: true
            }, ':', 'WAN3894'],
            [{
              text: 'İstasyon Adresi',
              bold: true
            }, ':', 'WAN3894'],
            [{
              text: 'Koordinatlar',
              bold: true
            }, ':', 'WAN3894']
          ]
        },
        layout: 'noBorders',
        fontSize: 9
      }, {
        stack: [
          'EK-3'
        ],
        style: 'header',
        alignment: 'right'

      }]
    }, {
      text: 'ÖLÇÜM DEĞERLERİ FORMU',
      style: 'header',
      alignment: 'center',
      bold: true,
      margin: [0, 5, 0, 10]
    },

    {
      table: {
        widths: ['auto'],
        body: [
          [{
            style: 'tableExample',
            color: '#444',
            table: {
              widths: [40, 260, 100, 80, 80, 100, 100],
              headerRows: 2,
              keepWithHeaderRows: 1,
              body: [
                [{
                  text: 'Anten Sektör',
                  rowSpan: 2,
                  margin: [0, 2, 0, 0],
                  alignment: 'center'
                }, {
                  text: 'Antene Olan Uzaklık (m)',
                  rowSpan: 2,
                  margin: [0, 8, 0, 0],
                  alignment: 'center'
                }, {
                  text: 'Ölçülen...