PPTX to PDF: "Comment by Nonexistent Author" Exception

Hi Team,

I am using Aspose Slides java to convert a PPT to PDF.
I am using below code to get all the Notes & Comments from PPT to PDF conversion.

INotesCommentsLayoutingOptions notesAndCommentsOptions = pdfOptions.getNotesCommentsLayouting();
notesAndCommentsOptions.setNotesPosition(NotesPositions.BottomFull);
notesAndCommentsOptions.setCommentsPosition(CommentsPositions.Right);

If i am using comments only or Notes only the program works good.

However, when I use both Notes & Comments then getting below error.
Exception in thread “main” class com.aspose.slides.exceptions.Exception: Comment by nonexistent author. AuthorId = 77ccc0b8-3355-3dd6-e6c4-bb9573bc21c5.
com.aspose.slides.ab3.do(Unknown Source)
com.aspose.slides.aoe.for(Unknown Source)
com.aspose.slides.aoe.do(Unknown Source)
com.aspose.slides.ain.do(Unknown Source)
com.aspose.slides.SlideCollection.addClone(Unknown Source)
com.aspose.slides.SlideCollection.insertClone(Unknown Source)
com.aspose.slides.nu.do(Unknown Source)
com.aspose.slides.nu.case(Unknown Source)
com.aspose.slides.nu.do(Unknown Source)
com.aspose.slides.ais.if(Unknown Source)
com.aspose.slides.Presentation.do(Unknown Source)
com.aspose.slides.Presentation.save(Unknown Source)
com.test.AsposePDFAnnotations.convertPPTToPDF(AsposePDFAnnotations.java:146)
com.test.AsposePDFAnnotations.main(AsposePDFAnnotations.java:37)
at com.aspose.slides.ab3.do(Unknown Source)
at com.aspose.slides.aoe.for(Unknown Source)
at com.aspose.slides.aoe.do(Unknown Source)
at com.aspose.slides.ain.do(Unknown Source)
at com.aspose.slides.SlideCollection.addClone(Unknown Source)
at com.aspose.slides.SlideCollection.insertClone(Unknown Source)
at com.aspose.slides.nu.do(Unknown Source)
at com.aspose.slides.nu.case(Unknown Source)
at com.aspose.slides.nu.do(Unknown Source)
at com.aspose.slides.ais.if(Unknown Source)
at com.aspose.slides.Presentation.do(Unknown Source)
at com.aspose.slides.Presentation.save(Unknown Source)
at com.test.AsposePDFAnnotations.convertPPTToPDF(AsposePDFAnnotations.java:146)
at com.test.AsposePDFAnnotations.main(AsposePDFAnnotations.java:37)

Not sure what is wrong in converting pptx to pdf with Notes and Comments.
Please help

Thanks

@hassan.khan,
Thank you for the issue description.

Please check your results using the latest version of Aspose.Slides. If the issue persists, please share/specify the following:

  • presentation file
  • OS version on which the exception occurred
  • JDK version you used

Hi Andrey,

I am using Java jdk10, Aspose Slides 21.11 which is very latest.
Notes&Comments.7z (31.8 KB)

attached PPT in zip.

Tried both windows 10 Enterprise & ubuntu 18.04.

below is my code

com.aspose.slides.Presentation presentation = new com.aspose.slides.Presentation(inFilePath);
com.aspose.slides.PdfOptions pdfOptions = new com.aspose.slides.PdfOptions();
pdfOptions.setShowHiddenSlides(true);
com.aspose.slides.INotesCommentsLayoutingOptions notesAndCommentsOptions = pdfOptions.getNotesCommentsLayouting();
notesAndCommentsOptions.setCommentsPosition(com.aspose.slides.CommentsPositions.Right);
notesAndCommentsOptions.setNotesPosition(com.aspose.slides.NotesPositions.BottomFull);
presentation.save(outFilePath, com.aspose.slides.SaveFormat.Pdf, pdfOptions);
presentation.dispose();

@hassan.khan,
Thank you for the additional information. I’ve reproduced the problem with comments and notes and added a ticket with ID SLIDESJAVA-38695 in our issue tracking system. Our development team will investigate this case. You will be notified when the issue is resolved.

1 Like

The issues you have found earlier (filed as SLIDESJAVA-38695) have been fixed in Aspose.Slides for Java 22.3 (ZIP).
You can check all fixes on the Release Notes page.
You can also find the latest version of our library on the Product Download page.