Saving to PDF without PDF/A compliance leads to empty Document ID

When I save a word document to PDF with PDF_A_1_B compliance, the resulting PDF contains a valid document ID.
When I try to save a word document with PDF_15 compliance, or no compliance at all, the resulting PDF document contains no document ID.

This is not very consistent behaviour, it would be nice if the resulting document always contains a Document ID, or at least this can be specified using PdfSaveOptions.


Saving document to pdf without compliance (snippet):

com.aspose.words.Document doc = com.aspose.words.Document("word-with-form-fields.docx");
doc.save("tmp.pdf")

com.aspose.pdf.Document pdf = com.aspose.pdf.Document("tmp.pdf")
com.aspose.pdf.Id documentId = pdf.getId()

Saving document to pdf with compliance (snippet):

com.aspose.words.Document doc = com.aspose.words.Document("word-with-form-fields.docx");

com.aspose.words.PdfSaveOptions save_options = com.aspose.words.PdfSaveOptions()
save_options.setCompliance(com.aspose.words.PdfCompliance.PDF_A_1_B)

doc.save("tmp.pdf", save_options)

com.aspose.pdf.Document pdf = com.aspose.pdf.Document("tmp.pdf")
com.aspose.pdf.Id documentId = pdf.getId()

I'm using Aspose Words 16.7 and Aspose PDF 11.9

Hi Robbert,


Thanks for your inquiry. We tested the scenario and have managed to reproduce the same problem on our end. For the sake of correction, we have logged this problem in our issue tracking system as WORDSNET-14255. Our product team will further look into the details of this problem and we will keep you updated on the status of correction. We apologize for your inconvenience.

Best regards,

The issues you have found earlier (filed as WORDSNET-14255) have been fixed in this Aspose.Words for .NET 16.11.0 update and this Aspose.Words for Java 16.11.0 update.


This message was posted using Notification2Forum from Downloads module by aspose.notifier.