These options control the behavior of the endorsements that can be stamped on the output created by Document Conversion Service.
Endorsements are the placing of additional header and footer information at the top and bottom of each page. See also Watermark Stamping to add watermarks to the page content.
Header and footers can contain text such titles and page numbers. The default height of both the header and the footer is 12 points; this can be adjusted individually as needed.
Both the header and footer can be made up of three separate sections - a left section, a center section and a right section. The width of each section can be set individually to allow for text wrapping within each section. The default width for each section is the width of the page. Text in the top left and bottom left section is always left justified, text in the top center and bottom center section is always centered and text in top right and bottom right sections is always right justified.
The data displayed in each part of the header or footer can be formatted using the Endorsement Formatting Codes to add page number and total page count information to your header and footer text, as well as to display the text in different fonts, font sizes, colors and other text attributes such as bold, italic and underline. The default font used is Arial at 12 points.
Code Sample - C# |
|
PNDocConvQueueServiceLib.PNDocConvQueueItem item = null;
// Create the conversion item item = new PNDocConvQueueServiceLib.PNDocConvQueueItem();
// Set conversion settings item.Set("Endorsements;HeaderHeightInPoints", "20"); item.Set("Endorsements;HeaderLeftFormat", "&KFF0000&BInternal Use&B"); item.Set("Endorsements;HeaderRightFormat", "Confidential\r\nDO NOT COPY");
item.Set("Endorsements;FooterHeightInPoints", "20"); item.Set("Endorsements;FooterCenterFormat", "&'Courier'&P of &N"); ... // convert the file item.Convert("Microsoft Word", @"C:\Test\Report.docx", @"C:\Test\Out\ConvertedReport"); |
Code Sample - VB.NET |
|
Dim item As PNDocConvQueueServiceLib.IPNDocConvQueueItem
' Create the conversion item item = New PNDocConvQueueServiceLib.PNDocConvQueueItem()
' Set conversion settings item.Set("Endorsements;Enable", "1")
item.Set("Endorsements;HeaderHeightInPoints", "20") item.Set("Endorsements;HeaderLeftFormat", _ "&KFF0000&BInternal Use&B") item.Set("Endorsements;HeaderRightFormat", _ "Confidential\r\nDO NOT COPY")
item.Set("Endorsements;FooterHeightInPoints", "20") item.Set("Endorsements;FooterCenterFormat", _ "&'Courier'&P of &N") ... ' convert the file item.Convert("Microsoft Word", _ "C:\Test\Report.docx", _ "C:\Test\Out\ConvertedReport") |
|
||||
---|---|---|---|---|
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|