typedef struct _DOCWRTPDFOPTIONS 
   L_BOOL bImageOverText; 
   L_BOOL bLinearized; 
   L_WCHAR *pwszTitle; 
   L_WCHAR *pwszSubject; 
   L_WCHAR *pwszKeywords; 
   L_WCHAR *pwszAuthor; 
   L_BOOL bProtected; 
   L_CHAR *pszUserPassword; 
   L_CHAR *pszOwnerPassword; 
   L_BOOL bPrintEnabled; 
   L_BOOL bHighQualityPrintEnabled; 
   L_BOOL bCopyEnabled; 
   L_BOOL bEditEnabled; 
   L_BOOL bAnnotationsEnabled; 
   L_BOOL bAssemblyEnabled; 
   DOCWRT1BITIMGCOMP OneBitCompression; 
   DOCWRTCOLORIMGCOMP ColorImgCompression; 
   L_INT nQualityFactor; 
   L_UINT32 uFlags; 
   L_INT nInitialPage; 
   L_DOUBLE dZoomPercent; 
   L_DOUBLE dXCoordinate; 
   L_DOUBLE dYCoordinate; 
   L_BOOL bHideToolbar; 
   L_BOOL bHideMenubar; 
   L_BOOL bHideWindowUI; 
   L_BOOL bFitWindow; 
   L_BOOL bCenterWindow; 
   L_BOOL bDisplayDocTitle; 
   L_TCHAR *pwszCreator; 
   L_TCHAR *pwszProducer; 

The DOCWRTPDFOPTIONS structure provides information about PDF document files.


pDOCWRTPDFOPTIONS is a pointer to DOCWRTPDFOPTIONS structure. Generally, where a function parameter type is pDOCWRTPDFOPTIONS, you can declare a DOCWRTPDFOPTIONS variable, update the structure's fields, and then pass the variable's address in the parameter. Declaring a pDOCWRTPDFOPTIONS variable is necessary only if your program requires a pointer.

Portable Document Format (PDF). PDF was developed by the Adobe Corporation to allow the exchange and viewing of electronic documents easily and reliably, independent of the environment in which they were created. This format lets you compress large documents to a size small enough to download very quickly. It is also becoming a powerful format for reproducing documents over the web.

The LEADTOOLS Document Writers support creating PDF and PDF/A documents. The following features are supported:

The Low Level encryption method (40-bit RC4), allows access for some PDF document areas to be restricted. The user may allow/disallow the following for the created PDF document: print document, modify document content, extract text and graphics, modify comments, etc.

The High Level Encryption method (128-bit RC4), allows you to have more restrictions beside the ones of the low level encryption method, so that the user here may allow/disallow printing high resolution and assemble the document.

User password is for opening/reading the PDF file. If you define the user password the resulting PDF file will be encrypted and you have to enter the user password to open it.

Owner password is used for changing the rights of the PDF document. When an owner password protected PDF document is viewed, the owner password is not requested, but it is requested when trying to change something in the password protected PDF file.

Also note that the pszUserPassword, pszOwnerPassword, DOCWRTPDFENCRYPTIONMODE, and Security permissions such as PrintEnabled, bHighQualityPrintEnabled, bCopyEnabled, bEditEnabled, bAnnotationsEnabled and bAssemblyEnabled only have effect if bProtected is TRUE.

bAssemblyEnabled has effect only if the encryption level is high (128-bit RC4), while bHighQualityPrintEnabled has effect only if bPrintEnabled is TRUE and the encryption level is high (128-bit RC4).

Fast web view (Linearization), Security options, and PDF document description options (author, title, subject and keywords) are available only for PDF and they are not supported for PDF/A.

The Bookmarks feature allows for the creation of bookmarks, which can be used to mark parts of a document for quick access. For more information refer to DOCWRTPDFBOOKMARK structure.

Before using the LEADTOOLS Document Writers SDK, unlock it by using the L_SetLicenseFile function. If you want to use the PDF format you must also unlock PDF support with L_SetLicenseFile.

This structure is used with the L_DocWriterConvert and L_DocWriterInit functions.

Help Version 20.0.2018.7.30
Products | Support | Contact Us | Copyright Notices
© 1991-2018 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Raster Imaging C API Help