How to Compress / Decompress PDFX File Using C#
In order to compress or decompress PDFX file, we’ll use
API which is a feature-rich, powerful and easy to use document compression and decompression API for C# platform. Open
package manager, search for Aspose.ZIP and install. You may also use the following command from the Package Manager Console.
Command
PM> Install-Package Aspose.ZIP
Steps for PDFX Files Compression in C#
Developers can easily zip folders, single or multiple files programmatically with just few lines of code.
- Define folder path containing PDFX files.
- Create Object of Archive.
- Using the Archive object, load file with a full path using its CreateEntry method.
- Call the Save() method and pass the compressed file name (full path) as a parameter.
- Now you will get PDFX file as a zip file in a relevant folder without using any zip, rar or any other compatible program.
System Requirements
Our APIs are supported on all major platforms and Operating Systems. Before executing the code below, please make sure that you have the following prerequisites on your system.
- Microsoft Windows or a compatible OS with .NET Framework, .NET Core
- Development environment like Microsoft Visual Studio
- Aspose.ZIP for .NET DLL referenced in your project - Install from NuGet using the Download button above
Compress PDFX Files - C#
Online PDFX Compression Live Demos
Compress PDFX documents right now by visiting our Live Demos website . The live demo has the following benefits
PDFX What is PDFX File Format
PDF/X is an ISO 15930 standard published in 2001 with a subset of PDF functionality. The standard was established and published based on specific requirements of the printing and publishing industries. The requirements for this standard were all devised as per the diverse needs of printing and publishing industries. PDF/X requires the conforming files to be complete i.e. self-contained. This requires that elements like fonts used in the page should be part of the document. Contents such as 3D or video cannot be a part of PDF/X document. The information contained in PDF/X document requires it to be accurate.
Other Supported Compression / Decompression Formats
Using C#, One can also compress / decompress many other formats including.