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. Image for the cookie policy date

Copy/Paste from PDF is pasting content as plaintext in RichTextEditor

Hi Team,

We are using Syncfusion RichTextEditor in our application.  Following are the issues we are facing when we copy/paste content from PDF into Syncfusion RichTextEditor -

  1. Lines in the PDF becomes paragraphs in the RichTextEditor - This happens when we copy/paste text from PDF opened in Adobe Acrobat Reader. When we open the same PDF in a browser (tested with chrome and Edge), and then copy/paste to RichTextEditor, the text looks fine.
  2. RichTextEditor doesn't honour the BOLD characters. They are pasted as plain text.
  3. RichTextEditor doesn't honour bulleted list formatting. ​They are pasted as plain text. It adds a special character instead of bullet.
  4. Copy/paste of a table into RichTextEditor doesn't respect the table formatting, instead it is pasted as plain text.

We would appreciate it if you could suggest a solution to the above mentioned issues.

Thanks,

Shradha Chauhan


1 Reply

VY Vinothkumar Yuvaraj Syncfusion Team May 4, 2023 01:15 PM UTC

Hi Shradha,

 

We want to let you know that, when we copy text from a PDF file and paste it into a content editable div, the text is often pasted as plain text because the formatting information is not included in the text that is copied from the PDF file. RichTextEditor also has the same behavior, since it is a contentEditable div.

 

PDF files are designed to display text and images consistently across different devices and software applications, but they do not include the same level of formatting information as other document formats, such as HTML or Microsoft Word documents.

 

We have prepared video illustrations which demonstrates the behavior of ContentEditable div while copy and pasting contents from PDF file.

 

Regards,

 

Vinothkumar



Attachment: Video(RTE)_f72f9ce7.zip

Loader.
Up arrow icon