调用print source的按钮指定了primefaces

时间:2014-06-16 21:19:02

标签: primefaces printers

我正在使用此信息primefaces按钮打印面板。 但我需要用较小的字体发送此印象,我该如何在此代码中执行此操作?

                <p:commandButton value="Imprimir" styleClass="btn btn-primary"  >
                     <p:printer target="information" />
                </p:commandButton>  

这是我要打印的组件信息: 在打印中占用整张纸,我想在打印调用时减少字体

    <p:panel id="information">

        <h3 class="text-warning">#{msg['text-warning']}</h3>
        <p>#{msg['text-valueReference']}</p>
        <p class="lead text-primary">#{msg['text-time']}*</p>
        <p>
            <strong>#{msg['lbl-band1']}:</strong>#{' '}#{msg['text-band1']}
        </p>
        <p>
            <strong>#{msg['lbl-band2']}:</strong>#{' '}#{msg['text-band2']}
        </p>
        <p>
            <small> #{msg['text-leiBand']} </small>
        </p>
        <p class="lead text-primary">#{msg['text-Baggage']}</p>
        <p>
            <strong>De mão:</strong>#{' '}#{msg['text-HandLuggage']}
        </p>
        <p>
            <strong>Normal:</strong>#{' '}#{msg['text-NormalBaggage']}
        </p>
        <blockquote>
            <p>#{msg['text-noCharge']}</p>
            <small> #{msg['text-noChargeVolumes']} </small>
        </blockquote>
        <blockquote>
            <p>#{msg['text-Charge']}:</p>
            <small> #{msg['text-ChargeVolumes']} </small>
        </blockquote>
        <p>
            <small> #{msg['text-leiVolumes']} </small>
        </p>
        <p class="lead text-primary">#{msg['text-optionalTransport']}</p>


        <p>
            <strong></strong>#{msg['text-optionalTransportValue']}
        </p>
        <p>
            <strong> </strong>
        </p>
        <blockquote>
            <p>#{msg['text-animals']}:</p>
            <small> #{msg['text-animalsValues']} </small>
        </blockquote>
        <blockquote>
            <p>#{msg['text-large-bags']}:</p>
            <small> #{msg['text-largeBagsValue']} </small>
        </blockquote>

        <p>
            <small> #{msg['text-obs']} </small>
        </p>
    </p:panel>

0 个答案:

没有答案