DocToPDFConverter: Maintain Word Comments in PDF

How would I go about keeping the comments of a word document in the PDF export?

Attachment: Test_Document_c08260.zip

4 Replies

MR Manikandan Ravichandran Syncfusion Team February 19, 2020 09:14 AM UTC

Hi Christopher,

Thank you for contacting Syncfusion support.

At present, our Essential DocIO library doesn’t have support to preserve comments in Word to PDF conversion. We have already logged this as a feature request in our database. We will implement this feature in any of our upcoming releases and we don’t have any immediate plans to implement this feature.
The status of the feature can be tracked through below feedback link.
https://www.syncfusion.com/feedback/3124/support-for-comments-in-word-to-pdf-conversion

Please let us know if you have any other questions.

Regards,
Manikandan Ravichandran
 



CK CHRISTOPHER KELLY February 19, 2020 04:37 PM UTC

ok, I know the DocIO has the ability to read the comments, is there a way to determine where an element in the document is once converted to PDF? If so then I could potentially add a stamp or annotation to the PDF post conversion? 


MR Manikandan Ravichandran Syncfusion Team February 20, 2020 06:33 PM UTC

Hi Christopher,

Thank you for your update.

Yes, DocIO can read the comments from the word document. As mentioned earlier, DocIO library doesn’t have support to preserve comments in Word to PDF conversion. So that, we can’t determine the comments in the generated PDF document.
As workaround we suggest you to add bookmarks for the text where you want to add comments and convert to PDF using DocIO. After converting PDF, you can use Essential PDF to find the bookmarks along with their position in the PDF document and you can add annotation for each bookmark manually.

For more information about find bookmarks in PDF and also add annotation in PDF document, please refer our UG documentation.
https://help.syncfusion.com/file-formats/pdf/working-with-annotations
https://help.syncfusion.com/file-formats/pdf/working-with-bookmarks#modifying-the-bookmarks


Note: Based on the above, we are preparing the sample to meet your requirement and the sample will be available on 24th March 2020.

If we misunderstood any of your requirement, please share the complete requirement. So that we will validate and provide the solution earlier.

Please let us know if you have any further questions.

Regards,
Manikandan Ravichandran
 



MR Manikandan Ravichandran Syncfusion Team February 24, 2020 06:33 PM UTC

Hi Christopher,

Thank you for your patience.

As mentioned earlier, we have prepared a sample to meet your requirement with "Add annotation based on the comments in the word document" in the generated PDF and the sample can be downloaded from the following link.
https://www.syncfusion.com/downloads/support/forum/151685/ze/WinFormsApp-1295603506

In this sample, we have done the following.
1. Loaded the word document
2. Added the bookmarks before and after the comments start and end range.
3. Converted the word document a PDF and stored it in the memory stream.
4. Loaded the PDF document (memory stream) to add annotations.
5. Added the rectangle annotation with comments at the comments range.
6. Saved the PDF document.

Please let us know if you have any other questions.

Regards,
Manikandan Ravichandran


Loader.
Up arrow icon