Components for Developers
© 2000-2008, Two Pilots

PDF Library Download Features Manual Tutorials FAQ Pricing HTML2PDF Add-on History In the Lab

PDF Creator Pilot documentation

Download CHM version of this manual.
General document methods
Abort
Aborted
AddColorTransformationRule
AddImageFromBitmapHandle
AddImageFromBuffer
AddImageFromFile
AddImageFromFilename
AddImageFromMemory
AddImageWithColorMask
AddImageWithMask
AddTTFFontFromFile
AddTTFFontFromFile2
AddType1FontFromFile
AutoCreateURL
AutoLaunch
BeginDoc
BinaryImage
Compression
CreateWaterMark
CurrentWaterMarkIndex
DocumentInfo_Author
DocumentInfo_CreationDate
DocumentInfo_Creator
DocumentInfo_Keywords
DocumentInfo_Producer
DocumentInfo_Subject
DocumentInfo_Title
EndDoc
FileName
FlipImage
FontEmbedStyle
GenerateInMemoryFile
GetCurrentPageIndex
GetImageCount
GetImageHeight
GetImageResolution
GetImageWidth
GetUsedDC
GetUsedDCResolution
GlyphsToUnicodeStr
HDC
InitialZoom
InitialZoom2
JPEGQuality
LastError
LoadICCProfile
LogActionsAndErrors
LogTextOperation
MakeImageGrayScale
MakeImageNegative
MemoryFileSize
MetafileImagesCompressionType
MetafileImagesJpegCompression
NewPage
NonEmbeddedFonts
NonEmbeddedFonts_Add
NotEmbedAnyFonts
OnePass
OutputByteStream
OwnerPassword
PageCount
PageHeight
PageLayout
PageMode
PageNumber
PageWidth
PlaceImageToCurrentPage
PlayEMF
PrinterForVirtualDC
Printing
ProducePDFA
ProtectionEnabled
ProtectionKeyLength
ProtectionOptions_coAssembly
ProtectionOptions_coCopyInformation
ProtectionOptions_coExtractInfo
ProtectionOptions_coFillAnnotation
ProtectionOptions_coModifyAnnotation
ProtectionOptions_coModifyStructure
ProtectionOptions_coPrint
ProtectionOptions_coPrintHigh
Resolution
SetCurrentPage
SetPDFAOutputIntent
SetPDFXOutputIntent
StartEngine
SwitchedToWatermark
TransformColors
UseCurrentDocumentResolutionForNextPages
UserPassword
UseScreenDC
Version
ViewerPreferences_vpCenterWindow
ViewerPreferences_vpFitWindow
ViewerPreferences_vpHideMenuBar
ViewerPreferences_vpHideToolBar
ViewerPreferences_vpHideWindowUI
Collapse All

Sets the style for embedded fonts in the current document.

Syntax

TxFontEmbeddingType FontEmbedStyle { get; }
Value
One of TxFontEmbeddingType values.

Remarks

FontEmbedStyle sets the style for embedded fonts in the current document. Using font embedding styles, instead of direct font naming, can decrease the size of the generated PDF document. This property is provided for backward compatibility with Library Version 1.x only.

Analogue in new interface: IPDFDocument4::FontEmbedStyle.

Example

Font embed style example

Delphi
[copy to clipboard]
{ PDF object is supposed to be created                         }
PDF.FontEmbedStyle := fetFullFont;
{ If we embed all used fonts in document then file size will   }
{ be larger but anyone will be able to view this document even }
{ without needed fonts installed in the system.                }
PDF.BeginDoc;
PDF.PDFPAGE_SetActiveFont('Verdana', False, False, False, False, 16.0, 0);
PDF.PDFPAGE_TextOut(20, 20, 0.0, 'Text');
PDF.EndDoc;
C#
[copy to clipboard]
// PDF object is supposed to be created
PDF.FontEmbedStyle = TxFontEmbeddingType.fetFullFont;
// If we embed all used fonts in document then file size will
// be larger but anyone will be able to view this document even
// without needed fonts installed in the system.
PDF.BeginDoc();
PDF.PDFPAGE_SetActiveFont("Verdana", false, false, false, false, 16.0, 0);
PDF.PDFPAGE_TextOut(20, 20, 0.0, "Text");
PDF.EndDoc();
C/C++
[copy to clipboard]
// PDF object is supposed to be created
PDF->FontEmbedStyle = fetFullFont;
// If we embed all used fonts in document then file size will
// be larger but anyone will be able to view this document even
// without needed fonts installed in the system.
PDF->BeginDoc();
PDF->PDFPAGE_SetActiveFont("Verdana", FALSE, FALSE, FALSE, FALSE, 16.0, 0);
PDF->PDFPAGE_TextOut(20, 20, 0.0, "Text");
PDF->EndDoc();
Visual Basic
[copy to clipboard]
' PDF object is supposed to be created
PDF.FontEmbedStyle = 0 ' 0 - embed full, 3 - not embed
' If we embed all used fonts in document then file size will
' be larger but anyone will be able to view this document even
' without needed fonts installed in the system.
PDF.BeginDoc
PDF.PDFPAGE_SetActiveFont "Verdana", False, False, False, False, 16.0, 0
PDF.PDFPAGE_TextOut 20, 20, 0.0, "Text"
PDF.EndDoc

See Also

PDF Library Download Features Manual Tutorials FAQ Pricing HTML2PDF Add-on History In the Lab

 

 

PDF Library | Virtual Printer | Converters to PDF

Support | Blog | Forum | Contacts

© 2000-2008, Two Pilots