Any updates on converting words documents to the pdf 1.7 standard? Thanks!
We have logged your requirement in our issue tracking system. Your ticket number is WORDSNET-17731. We will further look into the details of this problem and will keep you updated on the status of the linked issue.
Can you please also provide complete details of your usecase? For example, why do you want Aspose.Words to support PDF 1.7 standard? Do you just need PDF 1.7 file? Or do you want Aspose.Words to support some PDF 1.7 features like AES encryption?
As a workaround, you can convert Word document to plain PDF by using the following Aspose.Words’ code:
Document doc = new Document(“input.docx”); doc.save(“awjava-18.10.pdf”);
And then use Aspose.PDF to convert this Aspose.Words’ generated plain PDF to PDF 1.7 standard. For example:
Document doc = new Document("awjava-18.10.pdf"); doc.Convert(new MemoryStream(), PdfFormat.v_1_7, ConvertErrorAction.Delete); doc.Save("final_pdf_1.7.pdf");
It is to update you that starting from the 19.12 versions, Aspose.Words for .NET and Aspose.Words for Java APIs support converting various Word document formats (such as DOC, DOCX, RTF, XML etc) to PDF 1.7 standards compliance level directly.
Aspose.Words also provides the PdfCompliace enumeration to support the conversion of Word document to various PDF format standards (such as PDF 1.7, PDF 1.5, etc.).
You can use the following C# Code to explicitly specify PDF standards compliance level by using
Document doc = new Document("E:\\Temp\\input.docx"); PdfSaveOptions opts = new PdfSaveOptions(); opts.Compliance = PdfCompliance.Pdf17; doc.Save("E:\\Temp\\20.5.pdf", opts);
And since the default value of
PdfSaveOptions.Compliance option is
Pdf17, even the following simple C# code will convert DOCX to PDF 1.7 version:
Document doc = new Document("E:\\Temp\\input.docx"); doc.Save("E:\\Temp\\pdf 1.7 version.pdf");