coldfusion - scale cfdocument with table -


i trying scale cfdocument item using scale attribute doesn't seem use number passed. end goal cfdocument scale single page when exported pdf.

i tried using method shown here: scale pdf single page kept looping until scale value negative , threw error.

i haven't been able find online , expecting scale attribute doesn't work tables or that.

<cfdocument localurl="no" format="pdf" scale="10" fontembed="false">     <cfoutput>     <body>         <cfdocumentitem type="header">              <img id="logo" style="display:inline-block;float:left;margin-bottom:5px;" src="/images/logo206x40.jpg">             <div style="font-size:20px;display:inline-block;float:right;">&nbsp;&nbsp;rubric: #qryrubric.rubric_name#</div>             <div style="width:100%;border-bottom:1px solid black;"></div>         </cfdocumentitem>          <div id="rubric1">             <div style="margin-left: 10%;">                 <table class=" table table-hover blue-rubric table-bordered" cellspacing="1">                     <thead>                         <tr>                             <th style="border-right:1px solid #fff"></th>                             <th colspan="1000">achievement levels</th>                         </tr>                     <tr>                          <th scope="col" class="rounded-firstcol" style="border-right:1px solid #fff;">criteria groups</th>                         <th scope="col">1</th>                         <th scope="col">2</th>                         <th scope="col">3</th>                         <th scope="col" class="rounded-lastcol">4</th>                     </tr>                     </thead>                     <tbody>                             <tr class="col_a">                                 <td>something</td>                                 <td>something</td>                                 <td>something</td>                                 <td>something</td>                                 <td>something</td>                             </tr>                             <tr class="col_a">                                 <td>something</td>                                 <td>something</td>                                 <td>something</td>                                 <td>something</td>                                 <td>something</td>                             </tr>                     </tbody>                     <tfoot>                         <tr></tr>                     </tfoot>                 </table>             </div>         </div>         <cfdocumentitem type="footer">              <div style="width:100%;border-top:1px solid black;font-size:10px;font:arial;text-align:right;"> #cfdocument.currentpagenumber# of #cfdocument.totalpagecount#</div>         </cfdocumentitem>     </body> </cfoutput> 

i read somewhere scale changes size of thumbnails relative document or that, can confirm or deny this? appreciated, thanks.

i haven't used attribute in quite time, if memory serves, believe value should percentage. example scale="10%".


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -