Save document
Leave feedback
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:
- Initialize PdfSaveOptions class and set parameter EnableAutoTagging as True;
- Instantiate Merger object with source document path or stream;
- Call Save method and pass PdfSaveOptions object to save a resultant document.
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);
}
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);
}
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.