Thank you for your interest in Document Processing.
In order to export a DOCX file to PDF
, you can use the WordsProcessing
library. However, encryption is currently not supported functionality for WordsProcessing
. We have logged a feature request in our feedback portal: DocxFormatProvider: Implement encryption of a document
, where you can subscribe to be notified for any status updates. I added a vote on your behalf for the feature request to increase its priority. As a possible workaround, the exported PDF document can be encrypted using the format provider of the PdfProcessing library
The generated PDF from the sample code you have provided is corrupted since the created RadFixedDocument instance contains no pages. In order to achieve the desired result, you need to encrypt the document exported with the WordsProcessing
library. Please, find attached a sample project demonstrating this approach.
I hope this helps.
Get quickly onboarded and successful
with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.