See Also

Prepress Members  | ceTe.DynamicPDF Namespace

Requirements

Namespace: ceTe.DynamicPDF

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

Assembly: ceTe.DynamicPDF (in ceTe.DynamicPDF.dll)

Language

Visual Basic

C#

Show All

Represents the prepress settings.

For a list of all members of this type, see Prepress members.

Object Model


Inheritance Hierarchy

System.Object
   ceTe.DynamicPDF.Prepress

Syntax

[Visual Basic]
Public Class Prepress
[C#]
public class Prepress

Remarks

For more details on creating PDF/X documents take a look at the PDF/X topic.

Example

[Visual Basic] 

Imports System
Imports ceTe.DynamicPDF
Imports ceTe.DynamicPDF.Text

Module MyModule

    Sub Main()
        ' Create a document and set it's properties
        Dim MyDocument As ceTe.DynamicPDF.Document = New ceTe.DynamicPDF.Document
        MyDocument.Title = "PDF/X-1a Document"
        MyDocument.PdfVersion = PdfVersion.v1_4

        ' Create a page to add to the document
        Dim MyPage As ceTe.DynamicPDF.Page = New ceTe.DynamicPDF.Page(PageSize.Letter, PageOrientation.Portrait, 54.0F)

        MyDocument.Prepress.PdfXVersion = PdfXVersion.PDF_X_1a_2003
        MyDocument.Prepress.OutputIntents.Add(OutputIntent.USWebCoatedSwop)
        MyDocument.Prepress.Trapped = Trapped.False

        ' Create a Label using a TrueType font and CMYK color
        Dim Text As String = "PDF/X 1-a Document"
        Dim MyTrueTypeFont As TrueTypeFont = New TrueTypeFont("verdana.ttf")
        Dim MyLabel As Label = New Label(Text, 0, 0, 504, 100, MyTrueTypeFont, 18, TextAlign.Center, CmykColor.BlueViolet)

        ' Add label to page
        MyPage.Elements.Add(MyLabel)

        ' Add page to document
        MyDocument.Pages.Add(MyPage)

        ' Save the PDF Document
        MyDocument.Draw(C:\MyDocument.pdf")
    End Sub
End Module

[C#] 

using System; 
using ceTe.DynamicPDF; 
using cete.DynamicPDF.Text; 
 
class MyClass 

    static void Main() 
    { 
        // Create a document and set it's properties 
        ceTe.DynamicPDF.Document document = new ceTe.DynamicPDF.Document(); 
        document.Title = "PDF/X-1a Document"; 
        document.PdfVersion = PdfVersion.v1_4; 
                 
        // Create a page to add to the document 
        ceTe.DynamicPDF.Page page = new ceTe.DynamicPDF.Page( PageSize.Letter, PageOrientation.Portrait, 54.0f ); 
         
        document.Prepress.PdfXVersion = PdfXVersion.PDF_X_1a_2003; 
        document.Prepress.OutputIntents.Add( OutputIntent.USWebCoatedSwop ); 
        document.Prepress.Trapped = Trapped.False; 
         
        // Create a Label using a TrueType font and CMYK color 
        string text = "PDF/X 1-a Document"; 
        TrueTypeFont trueTypeFont = new TrueTypeFont( "verdana.ttf" ); 
        Label label = new Label( text, 0, 0, 504, 100, trueTypeFont, 18, TextAlign.Center, CmykColor.BlueViolet ); 
         
        // Add label to page 
        page.Elements.Add( label ); 
                 
        // Add page to document 
        document.Pages.Add( page ); 
         
        // Save the PDF document 
        document.Draw( @"C:\MyDocument.pdf" ); 
    } 
}

Licensing

This class is a DynamicPDF Generator Enterprise Edition feature. One of the following licenses is required for non-evaluation usage:

Requirements

Namespace: ceTe.DynamicPDF

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

Assembly: ceTe.DynamicPDF (in ceTe.DynamicPDF.dll)

See Also

Prepress Members  | ceTe.DynamicPDF Namespace

 

 


© Copyright 2007, ceTe Software