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 -
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.
RichTextEditor doesn't honour the BOLD characters. They are pasted as plain text.
RichTextEditor doesn't honour bulleted listformatting. They are pasted as plain text. It adds a special character instead of bullet.
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.
VYVinothkumar Yuvaraj Syncfusion Team May 4, 2023 01:15 PM UTC
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.