Class represents PdfA Schema.

public class PdfASchema : XmpSchema
Public Class PdfASchema
    Inherits XmpSchema

Inheritance: ObjectXmpSchemaPdfASchema

Licensing Info

This class is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:


This example demonstrates the elements needed to specify a document as PDF/A-1b compatible.
Imports System
Imports ceTe.DynamicPDF
Imports ceTe.DynamicPDF.PageElements
Imports ceTe.DynamicPDF.Xmp
Imports ceTe.DynamicPDF.Text
Module MyModule
    Sub Main()
        ' Create a PDF Document
        Dim MyDocument As Document = New Document 
        ' Set Document Title Property
        MyDocument.Title = "PDF/A1 Document"
        ' Create a XmpaMetadata instance
        Dim MyXmp As XmpMetadata =  New XmpMetadata() 
        ' Add PDF/A schema with the conformance level. 
        Dim MyPdfaSchema As PdfASchema =  New PdfASchema(PdfAStandard.PDF_A_1b_2005) 
        Dim MyDc As DublinCoreSchema =  MyXmp.DublinCore 
        MyDc.Title.AddLang("en-us", "PDF/A1 Document")
        MyDocument.XmpMetadata = MyXmp
        ' Embedded iccprofile file.
        Dim MyIccProfile As IccProfile =  New IccProfile("C:\Temp\IccProfile\sRGB_IEC61966-2-1_noBPC.icc") 
        ' Create Output intent and add to document's outputIntents
        Dim MyOutputIntents As OutputIntent =  New OutputIntent("","IEC 61966-2.1 Default RGB color space - sRGB 1 ","http://www.color.org","sRGB IEC61966-2.1 1",MyIccProfile) 
        MyOutputIntents.Version = OutputIntentVersion.PDF_A
        Dim MyText As String =  "Hello World" 
        ' Create a Type1font 
        Dim MyType1Font As Type1Font =  New Type1Font("C:\Temp\Type1\HELVETICA.PFM","C:\Temp\Type1\HELVETICA.PFB") 
        ' Create a label using type1font
        Dim MyLabel As Label =  New Label(MyText,0,0,504,100,MyType1Font,18,TextAlign.Center,RgbColor.BlueViolet) 
        ' Create a page
        Dim MyPage As Page =  New Page(PageSize.Letter,PageOrientation.Portrait,54.0f) 
        ' Add label to the page
        ' Add Page to the Document
        ' Save the PDF document
    End Sub
End Module
using System;
using ceTe.DynamicPDF;
using ceTe.DynamicPDF.xmp;

public class Example
    public static void CreatePDF(string outputPath, string IccProfilePath, string metricsFilePath, string fontFilePath)
        // Create a PDF Document
        Document document = new Document();

        // Set Document Title Property
        document.Title = "PDF/A1 Document";

        // Create a XmpaMetadata instance
        XmpMetadata xmp = new XmpMetadata();

        // Add PDF/A schema with the conformance level.
        PdfASchema pdfaschema = new PdfASchema(PdfAStandard.PDF_A_1b_2005);
        DublinCoreSchema dc = xmp.DublinCore;
        dc.Title.AddLang("en-us", "PDF/A1 Document");
        document.XmpMetadata = xmp;

        // Embedded iccprofile file
        IccProfile iccProfile = new IccProfile(IccProfilePath);

        // Create Output intent and add to document's outputIntents
        OutputIntent outputIntents = new OutputIntent("", "IEC 61966-2.1 Default RGB color space - sRGB 1 ", "http://www.color.org", "sRGB IEC61966-2.1 1", iccProfile);
        outputIntents.Version = OutputIntentVersion.PDF_A;
        string text = "Hello World";

        // Create a Type1font 
        Type1Font type1Font = new Type1Font(metricsFilePath, fontFilePath);
        // Create a label using type1font
        Label label = new Label(text, 0, 0, 504, 100, type1Font, 18, TextAlign.Center, RgbColor.BlueViolet);

        // Create a page
        Page page = new Page(PageSize.Letter, PageOrientation.Portrait, 54.0f);

        // Add label to the page

        // Add page to the document

        // Save the PDF


PdfASchema(PdfAStandard)Initializes a new instance of the PdfASchema class.


Equals(Object)Determines whether the specified Object is equal to the current Object .
(Inherited from Object)
GetHashCode()Serves as a hash function for a particular type.
(Inherited from Object)
GetType()Gets the Type of the current instance.
(Inherited from Object)
ToString()Returns a String that represents the current Object .
(Inherited from Object)

See Also


In this topic