We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

How to avoid text and image splitting when convert HTML to PDF?

To avoid text and image splitting, disable the SplitTextLines and SplitImages properties in PdfMetafileLayoutFormat class. Please find the sample and code snippet below.

C#:

 

For some cases the text and image will get spitted, even after disabled the SplitTextLines and SplitImages properties, this is due to bitmapped output from IE. To avoid rendering of bitmapped output in PDF document please follow the steps in the below article.

https://www.syncfusion.com/kb/5521

Sample Link:

http://www.syncfusion.com/downloads/support/directtrac/147956/ze/HTMLToPDF1985542964

 

Article ID: Published Date: Last Revised Date: Platform: Control:
6178 01/28/2016 12/23/2016 Windows Forms PDF
Tags:
Did you find this information helpful?
Add Comment
You must log in to leave a comment

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.