Skip to main content

Prepress

Version: 6.0

cete.dynamicpdf.prepress

Prepress​

Represents the prepress settings.

public class Prepress
Public Class Prepress

Inheritance: Object → Prepress

Licensing​

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

  • DynamicPDF Generator for .NET Enterprise Edition
  • DynamicPDF Merger for .NET Enterprise Edition
  • DynamicPDF ReportWriter for .NET Enterprise Edition
  • DynamicPDF Core Suite for .NET Enterprise Edition

Examples​

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.PdfXVersion = PdfXVersion.PDF_X_1a_2003 MyDocument.OutputIntents.Add(OutputIntent.USWebCoatedSwop) MyDocument.Trapped = Trapped.False ' Create a Label using a TrueType font and CMYK color Dim Text As String = "PDF/X 1-a Document" Dim MyOpenTypeFont As OpenTypeFont = New OpenTypeFont("verdana.otf") Dim MyLabel As Label = New Label(Text, 0, 0, 504, 100, MyOpenTypeFont, 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
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.PdfXVersion = PdfXVersion.PDF_X_1a_2003; document.OutputIntents.Add( OutputIntent.USWebCoatedSwop ); document.Trapped = Trapped.False; // Create a Label using a TrueType font and CMYK color string text = "PDF/X 1-a Document"; OpenTypeFont openTypeFont = new OpenTypeFont( "verdana.otf" ); Label label = new Label( text, 0, 0, 504, 100, openTypeFont, 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" );}
}

Remarks​

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

Properties​

OutputIntents​

Gets the output intent list for the Document .

public OutputIntentList OutputIntents { get; }
Public Property OutputIntents As OutputIntentList

Property Value​

OutputIntentList

PdfXVersion​

Gets or sets the PDF/X version for the Document .

public PdfXVersion PdfXVersion { get; set; }
Public Property PdfXVersion As PdfXVersion

Property Value​

PdfXVersion

Trapped​

Gets or sets a value indicating if trapping information is present in the Document .

public Trapped Trapped { get; set; }
Public Property Trapped As Trapped

Property Value​

Trapped

Methods​

Equals(Object)​

Determines whether the specified Object is equal to the current Object . (Inherited from Object)

public bool Equals(Object obj)
Function Equals(obj As Object) As Boolean

Parameters​

The Object to compare with the current Object .

Returns​

true if the specified Object is equal to the current Object ; otherwise, false.

GetHashCode()​

Serves as a hash function for a particular type. (Inherited from Object)

public int GetHashCode()
Function GetHashCode() As Integer

Returns​

A hash code for the current Object .

GetType()​

Gets the Type of the current instance. (Inherited from Object)

public Type GetType()
Function GetType() As Type

Returns​

The Type instance that represents the exact runtime type of the current instance.

ToString()​

Returns a String that represents the current Object . (Inherited from Object)

public string ToString()
Function ToString() As String

Returns​

A String that represents the current Object .

See Also​

ceTe.DynamicPDF