首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >使用表缩放cfdocument

使用表缩放cfdocument
EN

Stack Overflow用户
提问于 2016-02-08 23:13:19
回答 1查看 572关注 0票数 2

我正在尝试使用scale属性缩放cfdocument项,但它似乎没有使用传递的数字。最终目标是在将此cfdocument导出为pdf时将其缩放到单个页面。

我尝试使用这里所示的方法:scale PDF to single page,它只是一直循环,直到scale值为负值,然后抛出错误。

我在网上找不到任何东西,我希望scale属性不适用于表或类似的东西。

代码语言:javascript
复制
<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>

我在某处读到scale会改变缩略图相对于文档的大小或类似的东西,有人能证实或否认这一点吗?任何帮助都会很感谢,谢谢。

EN

回答 1

Stack Overflow用户

发布于 2016-02-09 05:51:34

我已经很长一段时间没有使用这个属性了,但是如果我没记错的话,我相信这个值应该是一个百分比。例如scale="10%“。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/35272920

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档