function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
ronmisronmis 

String without spaces breaking table in VFP

<apex:page showHeader="false" standardStylesheets="false" sidebar="false" applyHtmlTag="false" applyBodyTag="false" docType="html-5.0" renderAs="pdf">
<html>
<table width="200" border="1" style="table-layout: fixed;">
            <tr>
                <td style="width:100px; word-wrap:break-word;">
                    This is long line so it should break
                </td>

                <td style="width:100px; word-wrap:break-word;">
                    This_is_also_long_line_but_it_without_spaces
                </td>
            </tr>
    </table>
</html>
</apex:page>
How do I get the 2nd column's text to wrap properly? In HTML it wraps, but not in PDF. Please help
Best Answer chosen by ronmis
Khan AnasKhan Anas (Salesforce Developers) 
Hi,

Greetings to you!

I tried to research your problem and found that this is a known issue. Keep watching this issue until get fixed. However, you can refer to the workaround provided by Salesforce.

https://success.salesforce.com/issues_view?id=a1p300000008XahAAE

I hope it helps you.

Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future. It will help to keep this community clean.

Thanks and Regards,
Khan Anas