Components for Developers
© 2000-2012, Two Pilots

PDF Library Download Features Manual Tutorials FAQ Pricing HTML2PDF-X Pilot 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
ProtectionOptions_coPrintHigh

See Also Example
Collapse All

This property allows or prohibits printing the document to a representation from which a faithful digital copy of the PDF content could be generated. When this property is set to VARIANT_FALSE (and ProtectionOptions_coPrint is set to VARIANT_TRUE), printing is limited to a low-level representation of the appearance, possibly of degraded quality.

Syntax

VARIANT_BOOL ProtectionOptions_coPrintHigh { get; set; }
Value
VARIANT_TRUE if printing in high resolution is allowed, VARIANT_FALSE otherwise.

Remarks

This PDF protection-level property allows users to print the document in high resolution or prevents them from doing so.

Equivalent in new interface: IPDFDocument4::AllowPrintDocument.

Example

How to Protect a PDF Document

Delphi
[copy to clipboard]
{ PDF object is supposed to be created }
PDF.ProtectionEnabled := true;
PDF.ProtectionKeyLength := ckl128;
PDF.UserPassword = 'userpassword';
PDF.OwnerPassword = 'superpassword';
PDF.ProtectionOptions_coAssembly := false;
PDF.ProtectionOptions_coCopyInformation := false;
PDF.ProtectionOptions_coExtractInfo := false;
PDF.ProtectionOptions_coFillAnnotation := false;
PDF.ProtectionOptions_coModifyAnnotation := false;
PDF.ProtectionOptions_coModifyStructure := false;
PDF.ProtectionOptions_coPrint := true;
PDF.ProtectionOptions_coPrintHigh := true;

PDF.BeginDoc;
{ some document generating code here... }
PDF.EndDoc;
C/C++
[copy to clipboard]
// PDF object is supposed to be created
PDF->ProtectionEnabled = TRUE;
PDF->ProtectionKeyLength = ckl128;
PDF->UserPassword = "userpassword";
PDF->OwnerPassword = "superpassword";
PDF->ProtectionOptions_coAssembly = FALSE;
PDF->ProtectionOptions_coCopyInformation = FALSE;
PDF->ProtectionOptions_coExtractInfo = FALSE;
PDF->ProtectionOptions_coFillAnnotation = FALSE;
PDF->ProtectionOptions_coModifyAnnotation = FALSE;
PDF->ProtectionOptions_coModifyStructure = FALSE;
PDF->ProtectionOptions_coPrint = TRUE;
PDF->ProtectionOptions_coPrintHigh = TRUE;

PDF.BeginDoc();
// some document generating code here...
PDF->EndDoc();
C#
[copy to clipboard]
// PDF object is supposed to be created
PDF.ProtectionEnabled = true;
PDF.ProtectionKeyLength = TxCryptoKeyLength.ckl128;
PDF.UserPassword = "userpassword";
PDF.OwnerPassword = "superpassword";
PDF.ProtectionOptions_coAssembly = false;
PDF.ProtectionOptions_coCopyInformation = false;
PDF.ProtectionOptions_coExtractInfo = false;
PDF.ProtectionOptions_coFillAnnotation = false;
PDF.ProtectionOptions_coModifyAnnotation = false;
PDF.ProtectionOptions_coModifyStructure = false;
PDF.ProtectionOptions_coPrint = true;
PDF.ProtectionOptions_coPrintHigh = true;

PDF.BeginDoc();
// some document generating code here...
PDF.EndDoc();
Visual Basic
[copy to clipboard]
' PDF object is supposed to be created
PDF.ProtectionEnabled = True
PDF.ProtectionKeyLength = 1 'ckl128
PDF.UserPassword = "userpassword"
PDF.OwnerPassword = "superpassword"
PDF.ProtectionOptions_coAssembly = False
PDF.ProtectionOptions_coCopyInformation = False
PDF.ProtectionOptions_coExtractInfo = False
PDF.ProtectionOptions_coFillAnnotation = False
PDF.ProtectionOptions_coModifyAnnotation = False
PDF.ProtectionOptions_coModifyStructure = False
PDF.ProtectionOptions_coPrint = True
PDF.ProtectionOptions_coPrintHigh = True

PDF.BeginDoc
' some document generating code here...
PDF.EndDoc

See Also

PDF Library Download Features Manual Tutorials FAQ Pricing HTML2PDF-X Pilot History In the Lab

 

 

PDF Library | Virtual Printer | Converters to PDF

Support | Blog | Forum | Contacts

© 2000-2012, Two Pilots