Remove PDF/UA compliance information in C++

Remove PDF/UA compliance information from an existing document and save the result.

Configure the Aspose.PDF for C++ SDK before running these functions. Pass an existing input file and a writable destination path; create any required output directories first. Each function is an independent example, and its options do not carry over to other examples.

Remove PDF/UA compliance information

Call RemovePdfUaCompliance() before saving. Removing compliance information does not itself remove all document tags.

  1. Open the input PDF/UA document.
  2. Call Document::RemovePdfUaCompliance().
  3. Save the result as PDF.
#include <Aspose.PDF.Cpp/Document.h>

namespace ConvertingExamples
{
using namespace System;
using namespace Aspose::Pdf;

void ConvertPdfUaToPdf(String inputFile, String outputFile)
{
	auto document = MakeObject<Document>(inputFile);
	document->RemovePdfUaCompliance();
	document->Save(outputFile);
}
}