We have PDF files generated by the Aspose.word library (after merged data and DOCX template).
However, our vendor rejected our PDF and said our PDF may contain virus.
The following is the code fragment:
private val pdfSaveOptions = PdfSaveOptions().apply {
fontEmbeddingMode = EMBED_ALL
compliance = PDF_A_1_B
}
val document = com.aspose.words.Document(wordDocument.contentStream())
document.save(outputStream, pdfSaveOptions)
I tried to use Document.removeMacros, however, in debugger, I noticed it can’t solve the issue as most of the fields are already same as what removeMacros does.
I suspect it may due to some unknown metadata in the PDF.
Do you have similar incidence before?