Jump to content
Changes to the Jaspersoft community edition download ×

Static text cutting off while exporting reports to pdf in Linux Deployments


Recommended Posts

We have static text cutting while exporting reports to pdf in Linux Deployments. The values seems to be displayed correctly only the static text is cut off. Below is the screenshot for report pdf in Windows and Linux Deployments. 

Any help or input would be really appreciated. 

Report on Linux region

converted-file.png.a54c49669f1d1de9550ac2892779019a.png

Report on Windows region

converted-file.png.2c610ac876bf6eb2eda9fd8bc9436f8a.png

Code for implementing static text and values

Status field

<staticText>
                <reportElement positionType="Float" x="0" y="11" width="29" height="11" forecolor="#000000" uuid="33ebd0e4-a138-4a26-943e-a7c1b23fd5ed"/>
                <textElement>
                    <font isBold="true"/>
                </textElement>
                <text><![CDATA[status: ]]></text>
            </staticText>
            <textField>
                <reportElement x="29" y="11" width="140" height="11" forecolor="#000000" uuid="465caf4d-66e7-412f-81f3-02349696cfc0"/>
                <textFieldExpression><![CDATA[$P{claimStatus}]]></textFieldExpression>
            </textField>

Loss Descritpion

<frame>
                <reportElement positionType="Float" x="0" y="33" width="473" height="11" isRemoveLineWhenBlank="true" forecolor="#000000" uuid="2fc22d18-89c7-4b7c-a583-ca4f7acd2344">
                    <printWhenExpression><![CDATA[$P{lossDescription} != null && $P{lossDescription}.length() > 0]]></printWhenExpression>
                </reportElement>                
                <staticText>                
                    <reportElement positionType="Float" x="0" y="0" width="69" height="11" isRemoveLineWhenBlank="true" forecolor="#000000" uuid="70d296f8-0869-4ecf-bf57-a6bdc50366de" backcolor="blue">
                        <printWhenExpression><![CDATA[$P{lossDescription} != null && $P{lossDescription}.length() > 0]]></printWhenExpression>
                    </reportElement>
                    
                    <textElement>                        
                        <font isBold="true"/>
                    </textElement>
                    <text><![CDATA[Loss Description: ]]></text>
                </staticText>
                <textField isStretchWithOverflow="true" isBlankWhenNull="true">
                    <reportElement positionType="Float" x="69" y="0" width="368" height="11" isRemoveLineWhenBlank="true" forecolor="#000000" uuid="7318184a-2d1a-4c75-aaf7-e5c2609e7d92">
                        <printWhenExpression><![CDATA[$P{lossDescription} != null && $P{lossDescription}.length() > 0]]></printWhenExpression>
                    </reportElement>                   
                    <textFieldExpression><![CDATA[$P{lossDescription}]]></textFieldExpression>
                </textField>
            </frame>

 

 

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Popular Days

Posted Images

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...