Expand my Community achievements bar.

Text Wrapping in PDF

Avatar

Level 1

I have a long simple table, but the text doesn't wrap correctly when generating a PDF. I've tried to adjust the relative widths, using <p> tags, nothing seems to fix the issue. 

5 Replies

Avatar

Employee

Hi,

Are you generating PDF using DITA-OT or native PDF?

Also please share a sample of your simple table where this issue can be seen. PDF screenshot will also help.

Thanks and Regards,
Surbhi Maheshwari

Avatar

Level 1

Thanks for the quick reply! I'm not able to share the simple table, but we used DITA-OT for PDF generation.

Avatar

Level 1

Hi Surbhi,

The text is a field name, without any spacing. The only special character is a period ".".

an example:

$.employee.firstname.middlename.lastname.preferredname

Avatar

Level 2

Hi Michelle

 

If you're using Apache FOP which is built into the DITA-OT, it isn't great at wrapping text in tables.  If you insert zero width spaces in your long terms, then FOP may be able to break those terms at an appropriate place.

 

Regards

 

Keith

Avatar

Administrator

@MichelleKent Did you find the suggestion helpful? Please let us know if you require more information. Otherwise, please mark the answer as correct for posterity. If you've discovered a solution yourself, we would appreciate it if you could share it with the community. Thank you!  



Kautuk Sahni