Save document

GroupDocs.Merger allows to save PDF resultant document by specifying accesibility settings PdfAccesibilitySettings.

There is an ability to set parameter EnableAutoTagging in order to enable auto tagging mode.

The steps to save document with auto tagging mode are the following:

Save the PDF document with auto tagging mode

The following code sample demonstrates how to save PDF document with auto tagging mode:

string filePath = @"c:\sample.pdf";
string filePathOut = @"c:\result.pdf";

PdfSaveOptions pdfSaveOptions = new PdfSaveOptions();
pdfSaveOptions.AccesibilitySettings.EnableAutoTagging = true;
           
using (Merger merger = new Merger(filePath))
{
     merger.Save(filePathOut, pdfSaveOptions);
}  

Save any document by default

The following code sample demonstrates how to save any document by default:

string filePath = @"c:\sample.docx";
string filePathOut = @"c:\result.docx";

using (Merger merger = new Merger(filePath))
{
     merger.Save(filePathOut);
}  
Close
Loading

Analyzing your prompt, please hold on...

An error occurred while retrieving the results. Please refresh the page and try again.