How to Change PDF A to PDF in C#

This short topic covers details on how to change PDF A to PDF in C#. It describes the complete process in terms of steps along with the environment configuration and a runnable sample code to convert from PDF A to PDF in C#. This code can be executed in any of the environments supporting the .NET environment and can be modified to verify the compliance status before and after running the compliance removal code.

Steps to Convert PDF A to PDF in C#

  1. Set the environment to use Aspose.PDF for removing PDF/A compliance
  2. Load the source PDF Document having PDF A compliant properties
  3. Call the RemovePdfaCompliance() method in the Document class
  4. Save the resultant PDF file after changing the format

These steps summarize the process to write a PDF A to PDF converter in C#. The source PDF file with PDF/A compliance is loaded into the Document class object followed by calling the RemovePdfaCompliance() method without any arguments. The resultant PDF file can be saved on the disk or to a stream after removing the PDF/A characteristics from the source PDF file.

Code to Convert from PDF A to PDF in C#

This code demonstrates the task to change PDF A to PDF in C#. You can improvise this code by checking the PDF A compliance by using the IsPdfaCompliant property of the Document class before and after calling the RemovePdfaCompliance() method. Note that this property should be True before calling the method and False after calling the RemovePdfaCompliance() method.

This tutorial has taught us to change the file format from PDF A to PDF in C#. If you want to learn the process to change PDF password, refer to the article on how to change PDF password using C#.

 English