Pack(String,PdfFormat) Method (PdfDocument)
Packs and saves PDF document to specified file in specified format and switches to the specified file.
This methods copies content of this PDF document to specified file, converts content of the specified file to specified format, removes unused objects from the specified file and switches to specified file.
Source PDF document is not affected. All further changes will affect the specified file only.
Target Platforms: .NET9; .NET 8; .NET 7; .NET 6; .NET Framework 4.8, 4.7, 4.6, 4.5, 4.0, 3.5