Prepress
Represents the prepress settings.
public class Prepress
Public Class Prepress
Inheritance: ObjectPrepress
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 OpenType 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;
using ceTe.DynamicPDF.PageElements;
public class Example
{
public static void CreatePDF(string inputFontPath, string outputPath)
{
// 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 OpenType font and CMYK color
string text = "PDF/X 1-a Document";
OpenTypeFont openTypeFont = new OpenTypeFont( inputFontPath );
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( outputPath );
}
}
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 . |
PdfXVersion | Gets or sets the PDF/X version for the Document . |
Trapped | Gets or sets a value indicating if trapping information is present in the Document . |
Methods
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) |