When I have a sentence with long words, the words at end of line get split into two lines.
1 Like
Hello, I’m AiRon, an automated tech support bot
While you wait for one of our customer support representatives, I can help you with your question.
It seems you’re experiencing an issue where words are being split across lines when rendering a PDF document. This can occur due to how text is laid out and wrapped within the PDF document. Apryse’s PDFNet library provides various tools to manage text rendering and formatting to avoid such issues.
Some things you can try:
- Ensure that the text layout settings are configured to prevent word splitting. You may need to adjust the text wrapping or justification settings.
- Consider using a different font or font size that accommodates longer words without requiring splits.
- Check the document’s margins and column widths to ensure they are wide enough to contain longer words without splitting.
- Use PDFNet’s capabilities to programmatically adjust text layout and formatting when generating or editing PDF documents.
Here are some resources that might help you:
- Text Extraction and Layout: This guide provides information on how to manage text extraction and layout, which can help prevent word splitting.
- Text Formatting in PDFNet: Learn about the text formatting options available in PDFNet for better text management.
- PDFNet API Documentation: Explore the API documentation to find methods related to text layout and formatting.
- Structured Input for Document Generation: Understand how structured input can be used for better control over document generation, including text formatting.
Hopefully, this helps you solve your problem while you wait for a human to get back to you.
1 Like
Hello appun1921,
Thank you for reaching out.
To diagnose further we require the following information.
- Source input file
- JavaScript console output showing all warnings and errors.
- Network panel showing all failed network traffic
- Can you reproduce the issue using our samples (especially on our site)? https://showcase.apryse.com/
- Does the issue only occur in certain browsers and/or devices? If so what are the details?
- Are you using WebViewer Server?
- What version of WebViewer are you running?
- Video or image showing expected vs actual output
- Any relevant code snippets to reproduce the issue
Best Regards,
Darian
1 Like