Creating PDF/X compatible PDF (.NET Core/Framework)
Creating PDF/X compatible PDF using DynamicPDF Core Suite is straightforward.
How to Create PDF/X compatible PDF in C#
The following steps and sample code illustrate creating PDF/X compatible PDF document using DynamicPDF Core Suite.
Steps for Creating PDF/X compatible PDF Document
- Create a
Document
object. - Create a
Page
object and add it to the Document instance. - Create a
IccProfile
object. - Create a
OutputIntent
object and specify the parameters along with theIccProfile
object. - Add the
OutputIntent
to the Document instance. - Save the PDf document.
Sample Code - C#
Document document = new Document();
document.Title = "PDF/X-1a Document";
document.PdfVersion = PdfVersion.v1_4;
document.PdfXVersion = PdfXVersion.PDF_X_1a_2003;
document.Pages.Add(new Page());
IccProfile iccProfile = new IccProfile(@"USWebCoatedSWOP.icc");
OutputIntent outputIntent = new OutputIntent("CGATS TR 001-1995 (SWOP)", "CGATS TR 001", "http://www.color.org", "U.S. Web Coated (SWOP) v2", iccProfile);
document.OutputIntents.Add(outputIntent);
document.Trapped = Trapped.False;
document.Draw(@"Output.pdf");
Over 75 Page Elements
DynamicPDF Generator contains over 75 page elements so you can add rich content to the PDFs you create:
- Images
- Text Objects (TextArea and Label)
- HTML
- Barcodes (47 types)
- Form Fields
- Charts
Getting Started
NuGet Package
DynamicPDF Core Suite is available on NuGet and is part of the ceTe.DynamicPDF.CoreSuite.NET
package. The easiest way to install the package is through the Visual Studio Package Manager. You can also download the package directly from NuGet.
DynamicPDF Core Suite Information
More information can be found on the DynamicPDF Core Suite webpage.
Available on Other Platforms
DynamicPDF Core Suite is available for the Java and COM/ActiveX platforms. Refer to the respective product pages for more details.
- Java - DynamicPDF Generator for Java
- COM/ActiveX - DynamicPDF Generator for COM/ActiveX