• vue window.print()打印多页页面指定内容 纯前端


    来了一个需求,要求做分页pdf文档
    刚开始以为自己可以,用了插件html2canvas和jspdf (具体可以看我另一篇文章:vue将页面导出pdf,vue导出pdf),做出来了,但是支持下载一页的页面,多页的时候会切割,例如这样
    在这里插入图片描述
    所以我用了调用打印的方法iframe.window.print(),让客户自己另存为pdf
    1先建一个文件PrintView.vue文件
    内容:这是PrintView.vue的全部代码

    <template>
      <div class="print">
        <iframe
          id="iframe"
          style="display: none; width: 100%; height: auto"
          frameborder="0"
        ></iframe>
      </div>
    </template>
    <script>
    // import { styleOnload } from '../utils'
    export default {
      name: 'PrintView',
      props: {},
      watch: {},
      methods: {
        setBodyHtml(html) {
          const document = window.document
          const iframe = window.frames[0]
          iframe.document.head.innerHTML = document.head.innerHTML // 获取当前文档的头部给iframe
          iframe.document.body.innerHTML = html // 把传过来的html给iframe头部
          // console.log(iframe.document, '---iframe.document')
    
          let arr = document.getElementsByTagName('tr')
          console.log(arr)
          let heightNum = 0
          let onePage = 800 //第一页的高度
          for (let i in arr) {
            heightNum += arr[i].offsetHeight
            if (heightNum > onePage) {
              // this.thead[i] = true
              heightNum = arr[i].offsetHeight
              onePage = 1500 //第二页高度
            }
          }
          // 图片和样式加载完成
          Promise.all([this.loadStyle(), this.loadImage()]).then(() => {
            // console.log(res)
            //   打印
            iframe.window.print()
          })
        },
        loadStyle() {
          const iframe = window.frames[0]
          const styles = iframe.document.head.getElementsByTagName('style') // <style>
          const links = iframe.document.head.querySelectorAll(
            'link[type="text/css"]'
          ) // <link>
          let str = ''
          str += '<style>html,body,div{height: auto!important;}</style>'
          let arrs = []
          arrs = arrs.concat(...styles, ...links)
          for (let i = 0; i < arrs.length; i++) {
            str += arrs[i].outerHTML
          }
          // eslint-disable-next-line no-unused-vars
          str += '<style>html,body,div{height: auto!important;}</style>'
          // return new Promise((resolve) => {
          //   for (let i = 0; i < arrs.length; i++) {
          //     styleOnload(arrs[i], () => {
          //       if (i === arrs.length - 1) {
          //         console.log('style 样式加载完成')
          //         resolve('style 样式加载完成')
          //       }
          //     })
          //   }
          // })
        },
        loadImage() {
          const iframe = window.frames[0]
          const imgs = iframe.document.body.getElementsByTagName('img') // <img>
          console.log(imgs)
          return new Promise((resolve) => {
            for (let i = 0; i < imgs.length; i++) {
              imgs[i].onload = function () {
                if (i === imgs.length - 1) {
                  console.log('img 加载完成')
                  resolve('img 加载完成')
                }
              }
            }
          })
        },
      },
    }
    </script>
    
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 9
    • 10
    • 11
    • 12
    • 13
    • 14
    • 15
    • 16
    • 17
    • 18
    • 19
    • 20
    • 21
    • 22
    • 23
    • 24
    • 25
    • 26
    • 27
    • 28
    • 29
    • 30
    • 31
    • 32
    • 33
    • 34
    • 35
    • 36
    • 37
    • 38
    • 39
    • 40
    • 41
    • 42
    • 43
    • 44
    • 45
    • 46
    • 47
    • 48
    • 49
    • 50
    • 51
    • 52
    • 53
    • 54
    • 55
    • 56
    • 57
    • 58
    • 59
    • 60
    • 61
    • 62
    • 63
    • 64
    • 65
    • 66
    • 67
    • 68
    • 69
    • 70
    • 71
    • 72
    • 73
    • 74
    • 75
    • 76
    • 77
    • 78
    • 79
    • 80
    • 81
    • 82
    • 83
    • 84
    • 85
    • 86
    • 87

    2、然后在主页全代码

    <template>
      <div class="hello">
        <button @click="handlePrint">下载打印</button>
        <!-- <div style="display: none;"> -->
        <div>
          <div class="contents" id="print_info">
            <table border="0">
              <tbody>
                <div id="logo" class="logo">
                  <img src="../assets/logo.png" class="logo" />
                </div>
                <thead>
                  <tr>
                    <th colspan="8" id="title">报告</th>
                  </tr>
                  <tr>
                    <th colspan="8" id="title">TITLE</th>
                  </tr>
                  <tr class="right-text">
                    <th colspan="8" class="right-th">编号(No):312312312312</th>
                  </tr>
                </thead>
              </tbody>
              <tbody>
                <tr>
                  <td colspan="1">
                    <p>项目名称</p>
                    <p>Project Name</p>
                  </td>
                  <td colspan="3">
                    <p>项目</p>
                    <p>Nigeria KOGI Project</p>
                  </td>
                  <td colspan="2">
                    <p></p>
                    <p>Standard</p>
                  </td>
                  <td colspan="2">
                    <p>2015</p>
                  </td>
                </tr>
                <tr>
                  <td colspan="1">
                    <p>单号</p>
                    <p>Application No</p>
                  </td>
                  <td colspan="1">
                    <p>等级</p>
                    <p>Level</p>
                  </td>
                  <td colspan="1">
                    <p>单间</p>
                    <p>Worksheqwewqeop</p>
                  </td>
                  <td colspan="1">
                    <p>仗量</p>
                    <p>Pour cube</p>
                  </td>
                  <td colspan="2">
                    <p>养护类型</p>
                    <p>Curing type</p>
                  </td>
                  <td colspan="2">
                    <p>检验批次</p>
                    <p>Check batch</p>
                  </td>
                </tr>
                <tr>
                  <td colspan="1">
                    <p>JZ2021001</p>
                  </td>
                  <td colspan="1">
                    <p>C40</p>
                  </td>
                  <td colspan="1">
                    <p>1001/车间名称</p>
                  </td>
                  <td colspan="1">
                    <p>25</p>
                  </td>
                  <td colspan="2">
                    <p>同条件</p>
                    <p>Same condition</p>
                  </td>
                  <td colspan="2">
                    <p>1/2</p>
                  </td>
                </tr>
                <tr>
                  <td colspan="8" class="result">
                    <p>实验结果(Mpa)</p>
                    <p>Experimental result</p>
                  </td>
                </tr>
              </tbody>
              <tbody v-for="(item, index) in tableList" :key="index">
                <!-- <div :key="index"> -->
                <tr class="td-title">
                  <td colspan="2">期限(Age):7d</td>
                  <td colspan="3">方式(Lab method):测</td>
                  <td colspan="2">取样部位(Sample):面</td>
                  <td colspan="1">日期 (Fix date):{{ item.date }}</td>
                </tr>
                <tr>
                  <td>
                    <p>试验时间</p>
                    <p>Lab date</p>
                  </td>
                  <td>
                    <p>重量(Kg)</p>
                    <p>Weight</p>
                  </td>
                  <td>
                    <p>长(mm)</p>
                    <p>Length</p>
                  </td>
                  <td>
                    <p>宽(mm)</p>
                    <p>Width</p>
                  </td>
                  <td>
                    <p>高(mm)</p>
                    <p>Height</p>
                  </td>
                  <td>
                    <p>破坏荷载(KN)</p>
                    <p>Maximu load</p>
                  </td>
                  <td>
                    <p>破坏强度(Mpa)</p>
                    <p>Compressive Strength</p>
                  </td>
                  <td>
                    <p>强度代表(Mpa)</p>
                    <p>Cube Strength</p>
                  </td>
                  <!-- rowspan -->
                </tr>
                <tr>
                  <td rowspan="3">{{ item.date }}</td>
                  <td>{{ item.weight }}</td>
                  <td>{{ item.length }}</td>
                  <td>{{ item.width }}</td>
                  <td>{{ item.height }}</td>
                  <td>{{ item.maximuLoad }}</td>
                  <td>{{ item.compressiveStrength }}</td>
                  <td rowspan="3">{{ item.cubeStrength }}</td>
                </tr>
                <tr>
                  <td>{{ item.weight2 }}</td>
                  <td>{{ item.length2 }}</td>
                  <td>{{ item.width2 }}</td>
                  <td>{{ item.height2 }}</td>
                  <td>{{ item.maximuLoad2 }}</td>
                  <td>{{ item.compressiveStrength2 }}</td>
                </tr>
                <tr>
                  <td>{{ item.weight3 }}</td>
                  <td>{{ item.length3 }}</td>
                  <td>{{ item.width3 }}</td>
                  <td>{{ item.height3 }}</td>
                  <td>{{ item.maximuLoad3 }}</td>
                  <td>{{ item.compressiveStrength3 }}</td>
                </tr>
                <!-- </div> -->
              </tbody>
              <tbody>
                <tr class="result">
                  <td colspan="2">
                    <p>结论</p>
                    <p>Conclusion</p>
                  </td>
                  <td colspan="6">
                    <p>符合大萨达所</p>
                    <p>To satisfy requirements of standard</p>
                  </td>
                </tr>
                <tr>
                  <td colspan="4" class="autograph">
                    <p>代表签字及日期:</p>
                    <p>Owner Signature and date</p>
                  </td>
                  <td colspan="4" class="autograph">
                    <p>签字及日期:</p>
                    <p>CBMI Signature and date</p>
                  </td>
                </tr>
              </tbody>
            </table>
            <div class="foot">
              <p>Test By:</p>
              <p>Date of Report: 2022-06-09</p>
            </div>
          </div>
          <!-- html转pdf -->
          <print-view ref="PrintView" />
        </div>
      </div>
    </template>
    
    <script>
    // import html2canvas from 'html2canvas'
    // import JsPDF from 'jspdf'
    import PrintView from './PrintView'
    export default {
      name: 'HelloWorld',
      // components: { PrintView },
      data() {
        return {
          show: true,
          tableList: [
            {
              date: '2022-5-8',
              weight: 25,
              length: 150,
              width: 150,
              height: 150,
              maximuLoad: 758.1,
              compressiveStrength: 33.7,
              cubeStrength: 33.9,
              //
              weight2: 25,
              length2: 150,
              width2: 150,
              height2: 150,
              maximuLoad2: 667.9,
              compressiveStrength2: 29.7,
              //
              weight3: 25,
              length3: 150,
              width3: 150,
              height3: 150,
              maximuLoad3: 859.5,
              compressiveStrength3: 38.2,
            },
            {
              date: '2022-5-29',
              weight: 25,
              length: 150,
              width: 150,
              height: 150,
              maximuLoad: 1206,
              compressiveStrength: 53.6,
              cubeStrength: 51.4,
              //
              weight2: 25,
              length2: 150,
              width2: 150,
              height2: 150,
              maximuLoad2: 1147.1,
              compressiveStrength2: 51,
              //
              weight3: 25,
              length3: 150,
              width3: 150,
              height3: 150,
              maximuLoad3: 1119,
              compressiveStrength3: 49.7,
            },
            {
              date: '2022-5-30',
              weight: 25,
              length: 150,
              width: 150,
              height: 150,
              maximuLoad: 1206,
              compressiveStrength: 53.6,
              cubeStrength: 51.4,
              //
              weight2: 25,
              length2: 150,
              width2: 150,
              height2: 150,
              maximuLoad2: 1147.1,
              compressiveStrength2: 51,
              //
              weight3: 25,
              length3: 150,
              width3: 150,
              height3: 150,
              maximuLoad3: 1119,
              compressiveStrength3: 49.7,
            },
            {
              date: '2022-5-31',
              weight: 25,
              length: 150,
              width: 150,
              height: 150,
              maximuLoad: 1206,
              compressiveStrength: 53.6,
              cubeStrength: 51.4,
              //
              weight2: 25,
              length2: 150,
              width2: 150,
              height2: 150,
              maximuLoad2: 1147.1,
              compressiveStrength2: 51,
              //
              weight3: 25,
              length3: 150,
              width3: 150,
              height3: 150,
              maximuLoad3: 1119,
              compressiveStrength3: 49.7,
            },
            {
              date: '2022-5-31',
              weight: 25,
              length: 150,
              width: 150,
              height: 150,
              maximuLoad: 1206,
              compressiveStrength: 53.6,
              cubeStrength: 51.4,
              //
              weight2: 25,
              length2: 150,
              width2: 150,
              height2: 150,
              maximuLoad2: 1147.1,
              compressiveStrength2: 51,
              //
              weight3: 25,
              length3: 150,
              width3: 150,
              height3: 150,
              maximuLoad3: 1119,
              compressiveStrength3: 49.7,
            },
            {
              date: '2022-5-31',
              weight: 25,
              length: 150,
              width: 150,
              height: 150,
              maximuLoad: 1206,
              compressiveStrength: 53.6,
              cubeStrength: 51.4,
              //
              weight2: 25,
              length2: 150,
              width2: 150,
              height2: 150,
              maximuLoad2: 1147.1,
              compressiveStrength2: 51,
              //
              weight3: 25,
              length3: 150,
              width3: 150,
              height3: 150,
              maximuLoad3: 1119,
              compressiveStrength3: 49.7,
            },
            {
              date: '2022-5-31',
              weight: 25,
              length: 150,
              width: 150,
              height: 150,
              maximuLoad: 1206,
              compressiveStrength: 53.6,
              cubeStrength: 51.4,
              //
              weight2: 25,
              length2: 150,
              width2: 150,
              height2: 150,
              maximuLoad2: 1147.1,
              compressiveStrength2: 51,
              //
              weight3: 25,
              length3: 150,
              width3: 150,
              height3: 150,
              maximuLoad3: 1119,
              compressiveStrength3: 49.7,
            },
            {
              date: '2022-5-31',
              weight: 25,
              length: 150,
              width: 150,
              height: 150,
              maximuLoad: 1206,
              compressiveStrength: 53.6,
              cubeStrength: 51.4,
              //
              weight2: 25,
              length2: 150,
              width2: 150,
              height2: 150,
              maximuLoad2: 1147.1,
              compressiveStrength2: 51,
              //
              weight3: 25,
              length3: 150,
              width3: 150,
              height3: 150,
              maximuLoad3: 1119,
              compressiveStrength3: 49.7,
            },
            // {
            //   date: '2022-5-31',
            //   weight: 25,
            //   length: 150,
            //   width: 150,
            //   height: 150,
            //   maximuLoad: 1206,
            //   compressiveStrength: 53.6,
            //   cubeStrength: 51.4,
            //   //
            //   weight2: 25,
            //   length2: 150,
            //   width2: 150,
            //   height2: 150,
            //   maximuLoad2: 1147.1,
            //   compressiveStrength2: 51,
            //   //
            //   weight3: 25,
            //   length3: 150,
            //   width3: 150,
            //   height3: 150,
            //   maximuLoad3: 1119,
            //   compressiveStrength3: 49.7,
            // },
            // {
            //   date: '2022-5-31',
            //   weight: 25,
            //   length: 150,
            //   width: 150,
            //   height: 150,
            //   maximuLoad: 1206,
            //   compressiveStrength: 53.6,
            //   cubeStrength: 51.4,
            //   //
            //   weight2: 25,
            //   length2: 150,
            //   width2: 150,
            //   height2: 150,
            //   maximuLoad2: 1147.1,
            //   compressiveStrength2: 51,
            //   //
            //   weight3: 25,
            //   length3: 150,
            //   width3: 150,
            //   height3: 150,
            //   maximuLoad3: 1119,
            //   compressiveStrength3: 49.7,
            // },
            // {
            //   date: '2022-5-31',
            //   weight: 25,
            //   length: 150,
            //   width: 150,
            //   height: 150,
            //   maximuLoad: 1206,
            //   compressiveStrength: 53.6,
            //   cubeStrength: 51.4,
            //   //
            //   weight2: 25,
            //   length2: 150,
            //   width2: 150,
            //   height2: 150,
            //   maximuLoad2: 1147.1,
            //   compressiveStrength2: 51,
            //   //
            //   weight3: 25,
            //   length3: 150,
            //   width3: 150,
            //   height3: 150,
            //   maximuLoad3: 1119,
            //   compressiveStrength3: 49.7,
            // },
            // {
            //   date: '2022-5-31',
            //   weight: 25,
            //   length: 150,
            //   width: 150,
            //   height: 150,
            //   maximuLoad: 1206,
            //   compressiveStrength: 53.6,
            //   cubeStrength: 51.4,
            //   //
            //   weight2: 25,
            //   length2: 150,
            //   width2: 150,
            //   height2: 150,
            //   maximuLoad2: 1147.1,
            //   compressiveStrength2: 51,
            //   //
            //   weight3: 25,
            //   length3: 150,
            //   width3: 150,
            //   height3: 150,
            //   maximuLoad3: 1119,
            //   compressiveStrength3: 49.7,
            // },
          ],
        }
      },
      mounted() {},
      methods: {
        // 下载pdf
        handlePrint() {
          const html = document.getElementById('print_info').innerHTML
          this.$refs.PrintView.setBodyHtml(html)
        },
      },
    }
    </script>
    
    <style scoped>
    .contents {
      max-width: 900px;
      margin: 0px auto;
      page-break-inside: avoid;
    }
    .logo {
      width: 245px;
      height: 43px;
      page-break-inside: avoid;
    }
    .right-text {
      text-align: -webkit-right;
      page-break-inside: avoid;
      break-before: page;
    }
    .right-th {
      font-size: 14px !important;
      page-break-inside: avoid;
      break-before: page;
    }
    .result {
      font-size: 16px;
      page-break-inside: avoid;
      break-before: page;
    }
    .td-title {
      background: #eee;
      page-break-inside: avoid;
      break-before: page;
    }
    thead {
      page-break-inside: avoid;
      break-before: page;
      display: contents;
    }
    .autograph {
      text-align: left !important;
      padding-left: 10px;
      page-break-inside: avoid;
      break-before: page;
    }
    .foot {
      display: flex;
      align-items: center;
      justify-content: space-between;
      page-break-inside: avoid;
      /* break-before: page; */
    }
    
    table {
      /* display: grid; */
      border-collapse: collapse;
      border: none;
      /* break-before: page; */
      /* margin-top: -20px; */
      /* page-break-inside: avoid; */
    }
    th {
      font-size: 20px;
      padding: 10px;
      page-break-inside: avoid;
      break-before: page;
      border: none;
    }
    tbody {
      border: none;
      page-break-inside: avoid;
      break-before: page;
      /* border-bottom: solid 1px black; */
    }
    tr {
      /* border: 1px solid black; */
      /* height: 25px; */
      /* border-bottom: solid 1px black; */
      /* border: none; */
      font-size: 14px;
      page-break-inside: avoid;
      text-align: -webkit-center;
      break-before: page;
    }
    td {
      width: 12.5%;
      page-break-inside: avoid;
      border: 1px solid black;
      text-align: center;
      page-break-before: auto;
      break-before: page;
      height: 45px;
    }
    </style>
    
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 9
    • 10
    • 11
    • 12
    • 13
    • 14
    • 15
    • 16
    • 17
    • 18
    • 19
    • 20
    • 21
    • 22
    • 23
    • 24
    • 25
    • 26
    • 27
    • 28
    • 29
    • 30
    • 31
    • 32
    • 33
    • 34
    • 35
    • 36
    • 37
    • 38
    • 39
    • 40
    • 41
    • 42
    • 43
    • 44
    • 45
    • 46
    • 47
    • 48
    • 49
    • 50
    • 51
    • 52
    • 53
    • 54
    • 55
    • 56
    • 57
    • 58
    • 59
    • 60
    • 61
    • 62
    • 63
    • 64
    • 65
    • 66
    • 67
    • 68
    • 69
    • 70
    • 71
    • 72
    • 73
    • 74
    • 75
    • 76
    • 77
    • 78
    • 79
    • 80
    • 81
    • 82
    • 83
    • 84
    • 85
    • 86
    • 87
    • 88
    • 89
    • 90
    • 91
    • 92
    • 93
    • 94
    • 95
    • 96
    • 97
    • 98
    • 99
    • 100
    • 101
    • 102
    • 103
    • 104
    • 105
    • 106
    • 107
    • 108
    • 109
    • 110
    • 111
    • 112
    • 113
    • 114
    • 115
    • 116
    • 117
    • 118
    • 119
    • 120
    • 121
    • 122
    • 123
    • 124
    • 125
    • 126
    • 127
    • 128
    • 129
    • 130
    • 131
    • 132
    • 133
    • 134
    • 135
    • 136
    • 137
    • 138
    • 139
    • 140
    • 141
    • 142
    • 143
    • 144
    • 145
    • 146
    • 147
    • 148
    • 149
    • 150
    • 151
    • 152
    • 153
    • 154
    • 155
    • 156
    • 157
    • 158
    • 159
    • 160
    • 161
    • 162
    • 163
    • 164
    • 165
    • 166
    • 167
    • 168
    • 169
    • 170
    • 171
    • 172
    • 173
    • 174
    • 175
    • 176
    • 177
    • 178
    • 179
    • 180
    • 181
    • 182
    • 183
    • 184
    • 185
    • 186
    • 187
    • 188
    • 189
    • 190
    • 191
    • 192
    • 193
    • 194
    • 195
    • 196
    • 197
    • 198
    • 199
    • 200
    • 201
    • 202
    • 203
    • 204
    • 205
    • 206
    • 207
    • 208
    • 209
    • 210
    • 211
    • 212
    • 213
    • 214
    • 215
    • 216
    • 217
    • 218
    • 219
    • 220
    • 221
    • 222
    • 223
    • 224
    • 225
    • 226
    • 227
    • 228
    • 229
    • 230
    • 231
    • 232
    • 233
    • 234
    • 235
    • 236
    • 237
    • 238
    • 239
    • 240
    • 241
    • 242
    • 243
    • 244
    • 245
    • 246
    • 247
    • 248
    • 249
    • 250
    • 251
    • 252
    • 253
    • 254
    • 255
    • 256
    • 257
    • 258
    • 259
    • 260
    • 261
    • 262
    • 263
    • 264
    • 265
    • 266
    • 267
    • 268
    • 269
    • 270
    • 271
    • 272
    • 273
    • 274
    • 275
    • 276
    • 277
    • 278
    • 279
    • 280
    • 281
    • 282
    • 283
    • 284
    • 285
    • 286
    • 287
    • 288
    • 289
    • 290
    • 291
    • 292
    • 293
    • 294
    • 295
    • 296
    • 297
    • 298
    • 299
    • 300
    • 301
    • 302
    • 303
    • 304
    • 305
    • 306
    • 307
    • 308
    • 309
    • 310
    • 311
    • 312
    • 313
    • 314
    • 315
    • 316
    • 317
    • 318
    • 319
    • 320
    • 321
    • 322
    • 323
    • 324
    • 325
    • 326
    • 327
    • 328
    • 329
    • 330
    • 331
    • 332
    • 333
    • 334
    • 335
    • 336
    • 337
    • 338
    • 339
    • 340
    • 341
    • 342
    • 343
    • 344
    • 345
    • 346
    • 347
    • 348
    • 349
    • 350
    • 351
    • 352
    • 353
    • 354
    • 355
    • 356
    • 357
    • 358
    • 359
    • 360
    • 361
    • 362
    • 363
    • 364
    • 365
    • 366
    • 367
    • 368
    • 369
    • 370
    • 371
    • 372
    • 373
    • 374
    • 375
    • 376
    • 377
    • 378
    • 379
    • 380
    • 381
    • 382
    • 383
    • 384
    • 385
    • 386
    • 387
    • 388
    • 389
    • 390
    • 391
    • 392
    • 393
    • 394
    • 395
    • 396
    • 397
    • 398
    • 399
    • 400
    • 401
    • 402
    • 403
    • 404
    • 405
    • 406
    • 407
    • 408
    • 409
    • 410
    • 411
    • 412
    • 413
    • 414
    • 415
    • 416
    • 417
    • 418
    • 419
    • 420
    • 421
    • 422
    • 423
    • 424
    • 425
    • 426
    • 427
    • 428
    • 429
    • 430
    • 431
    • 432
    • 433
    • 434
    • 435
    • 436
    • 437
    • 438
    • 439
    • 440
    • 441
    • 442
    • 443
    • 444
    • 445
    • 446
    • 447
    • 448
    • 449
    • 450
    • 451
    • 452
    • 453
    • 454
    • 455
    • 456
    • 457
    • 458
    • 459
    • 460
    • 461
    • 462
    • 463
    • 464
    • 465
    • 466
    • 467
    • 468
    • 469
    • 470
    • 471
    • 472
    • 473
    • 474
    • 475
    • 476
    • 477
    • 478
    • 479
    • 480
    • 481
    • 482
    • 483
    • 484
    • 485
    • 486
    • 487
    • 488
    • 489
    • 490
    • 491
    • 492
    • 493
    • 494
    • 495
    • 496
    • 497
    • 498
    • 499
    • 500
    • 501
    • 502
    • 503
    • 504
    • 505
    • 506
    • 507
    • 508
    • 509
    • 510
    • 511
    • 512
    • 513
    • 514
    • 515
    • 516
    • 517
    • 518
    • 519
    • 520
    • 521
    • 522
    • 523
    • 524
    • 525
    • 526
    • 527
    • 528
    • 529
    • 530
    • 531
    • 532
    • 533
    • 534
    • 535
    • 536
    • 537
    • 538
    • 539
    • 540
    • 541
    • 542
    • 543
    • 544
    • 545
    • 546
    • 547
    • 548
    • 549
    • 550
    • 551
    • 552
    • 553
    • 554
    • 555
    • 556
    • 557
    • 558
    • 559
    • 560
    • 561
    • 562
    • 563
    • 564
    • 565
    • 566
    • 567
    • 568
    • 569
    • 570
    • 571
    • 572
    • 573
    • 574
    • 575
    • 576
    • 577
    • 578
    • 579
    • 580
    • 581
    • 582
    • 583
    • 584
    • 585
    • 586
    • 587
    • 588
    • 589
    • 590
    • 591
    • 592
    • 593
    • 594
    • 595
    • 596
    • 597
    • 598
    • 599
    • 600
    • 601
    • 602
    • 603
    • 604
    • 605

    这是打印预览的界面,虽然后面有一条横线,但是另存pdf之后是没有的。
    在这里插入图片描述

    请各位赐教,实在找不出其他办法分页不被截断了!!!

  • 相关阅读:
    【软考软件评测师】第八章节 软件工程之模块化设计
    源码构建Tomcat 8.5.81启动
    MES系统是什么?如何提高设备的使用效率和使用寿命
    时序分解 | Matlab实现CEEMDAN完全自适应噪声集合经验模态分解时间序列信号分解
    【大画数据结构】第二话 —— 无头单链表的基本操作
    中秋被各大厂的月饼秀到了!快和小编看看这些大厂到底发的什么月饼吧!!!不知道有没有被惊讶到的?
    11.在R语言中使用sql数据
    【UV打印机】PrintExp打印软件教程(五)-高级
    2024制造企业数字化趋势
    RabbitMQ常见问题
  • 原文地址:https://blog.csdn.net/weixin_45869649/article/details/125536345