NTPSetOption (PDF export)

 

The following is a description of the options supported by the PDF export module. These options may be set by using NTPSetOption. These options may partially be set by using the printer selection dialogue.

 

Note: The PDF export is available only if you have an appropriate license. The PDF export is not part of NotesToPaper Print but must be purchased as an individual license of NotesToPaper PDF.

 

 

NTPOPTION_PDFEXP_RESOLUTION

Defines the resolution in DPI for the coordinate conversion and graphics generation.

Default: 300dpi.

 

 

NTPOPTION_PDFEXP_BITSPERPIXEL

Defines the color depth of any generated graphics. The PDF export encodes images as JPEG.

1 =Black and white

4 = 16 Colors

8 = 256 Colors

24 = 24bit True Color

Default  8

 

 

NTPOPTION_PDFEXP_TITLE

Specifies the title of the generated PDF document.

Default: "NotesToPaper PDF Report"

 

 

NTPOPTION_PDFEXP_SUBJECT

Specifies the subject of the generated PDF document.

Default: ""

 

 

NTPOPTION_PDFEXP_KEYWORDS

Specifies the keywords of the generated PDF document.

Default: ""

 

 

NTPOPTION_PDFEXP_ENCRYPTFILE

If this parameter is set, the resulting file will be encrypted. Then a number of additional options become available which are described in the following.

0 = Do not encrypt file

1 = Encrypt file

Default: 0

 

 

NTPOPTION_PDFEXP_ENABLEPRINTING

If this parameter is set, then the file can be printed even when encrypted. Only valid if NTPOPTION_PDFEXP_ENCRYPTFILE is set to  "1".

0 = Printing not possible

1 = Printing possible

Default: 1

 

 

NTPOPTION_PDFEXP_ENABLECHANGING

If this parameter is set, then the file can be edited even when encrypted. Only valid if NTPOPTION_PDFEXP_ENCRYPTFILE is set to  "1".

0 = Editing not possible

1 = Editing is possible

Default:  1

 

 

NTPOPTION_PDFEXP_ENABLECOPYING

If this parameter is set, then the file can be saved to the clipboard even when encrypted. Only valid if NTPOPTION_PDFEXP_ENCRYPTFILE is set to  "1".

0 = Copying impossible

1 = Copying possible

Default: 1

 

 

NTPOPTION_PDFEXP_ENCRYPTIONLEVEL

Defines the encryption value. Only valid if NTPOPTION_PDFEXP_ENCRYPTFILE is set to  "1".

0 = 40 Bit encryption

1 = 128 Bit encryption (requires Acrobat Reader version 5+)

Default: 0

 

 

NTPOPTION_PDFEXP_OWNERPASSWORD

The owner password for the encrypted file. this is required in order to be able to edit the file. If no password is set, the file is encrypted using a random password. We suggest to always set an appropriate password.

 

NTPOPTION_PDFEXP_USERPASSWORD

The user password for the encrypted file. This is required in order to access an encrypted file. If no password is set, then the access is possible without a password (possibly with limitations, see above).

 

 

NTPOPTION_PDFEXP_FONTMODE

Defines how true type fonts are handled.

 

0 = The true type fonts of the target machine are used - if available - respectively replaced by the font mapper. No font embedding.

1 = All true type fonts are embedded.

2 = Symbol true type fonts are embedded.

3 = No font embedding. Standard post script fonts are used instead.

4 = Subset embedding: Only the subset of the true type font is embedded which is part of the selected codepage.

5 = Subset embedding: Only the subset of the true type font is embedded which is actually being used.

Default: 0

 

 

NTPOPTION_PDFEXP_COMPRESSION

Sets the compression of the resulting file.

0 = No compression.

1 = Flate compression

2 = Run-length compression

3 = FastFlate compression

Default: 2

 

 

NTPOPTION_PDFEXP_JPEGQUALITY

Sets the compression quality of embedded images. High quality means large files.

0 =  Minimum file size

1 = 25% quality

2 = 50% quality

3 = 75% quality

4 = 100% quality

Default: 4

 

 

NTPOPTION_PDFEXP_FILE

Provides the filename for the PDF file to be generated. If empty, the file selection dialogue is shown.

 

 

NTPOPTION_PDFEXP_PATH

Provides the path for the PDF file to be generated.

 

 

NTPOPTION_PDFEXP_QUIET

Defines if the export is to take place with or without user interaction.

0 = Interaction/dialogues allowed

1 = No file selection dialogue (provided export.file has been set) and no "overwrite?" security warning.

Default:  0

 

 

NTPOPTION_PDFEXP_SHOWRESULT

Specifies if, after the export, the application linked to the appropriate file extension is to be launched.

0 = Do not launch

1 = Does a ShellExecute() on NTPOPTION_PDFEXP_FILE, which will normally cause the Acrobat Reader® or a similar application to be launched.

Default: 0