Copy from PDF with formatting

WebViewer Version: 10.4

Do you have an issue with a specific file(s)? No
Can you reproduce using one of our samples or online demos? No
Are you using the WebViewer server? No
Does the issue only happen on certain browsers? No
Is your issue related to a front-end framework? No
Is your issue related to annotations? Maybe?

Please give a brief summary of your issue:
Copy from PDF with formatting

Please describe your issue and provide steps to reproduce it:
We would like to allow our users to copy a selection from a PDF in WebViewer and paste into a supporting editor (e.g. Google Docs) with formatting and layout preserved (as close as possible). Currently we can only get the raw text of a selection. Is there anything that can be done to achieve this, possibly by converting the selection to HTML?

Please provide a link to a minimal sample where the issue is reproducible: N/A

1 Like

Hello George,

Thank you for contacting us.

Could you elaborate more on how you want the pasted text to look? Are you looking for the line breaks, spacing and font size to be exactly like the original document? Is there anything else specific you need copied?

I copied this text from our showcase.

And pasted it into Google Docs. Note I am using a Mac device.

Based on this Google Docs image, it looks like copying was successful in preserving most of the spacing except the breaks between the paragraphs and header (Overview).

Best Regards,

1 Like