Doccreator V5.0: Neevia
Doccreator V5.0: Neevia
NEEVIA
docCreator v5.0
API Reference
Title ....................................................................................................................................................1
Table of Contents ................................................................................................................................2
License ................................................................................................................................................7
Neevia docCreator API Reference ...................................................................................................... 11
Methods .................................................................................................................................................... 12
doSleep .................................................................................................................................................. 12
setParameter ......................................................................................................................................... 12
getParameter ........................................................................................................................................ 12
getDefaultPrinter................................................................................................................................... 12
setDefaultPrinter ................................................................................................................................... 12
startPrinting........................................................................................................................................... 13
newPrinterName ................................................................................................................................... 13
newPortName ....................................................................................................................................... 13
stopPrinting ........................................................................................................................................... 13
createStaticPrinter ................................................................................................................................ 13
deleteStaticPrinter ................................................................................................................................ 13
createPrinterPort .................................................................................................................................. 14
deletePrinterPort .................................................................................................................................. 14
getPrinterPort........................................................................................................................................ 14
setPrinterPort ........................................................................................................................................ 14
setInputDocument ................................................................................................................................ 15
create .................................................................................................................................................... 15
timeOut ................................................................................................................................................. 15
convertImage ........................................................................................................................................ 15
linearizePDF ........................................................................................................................................... 16
deletePDFpages ..................................................................................................................................... 16
rotatePDFpages ..................................................................................................................................... 16
encryptPDF ............................................................................................................................................ 17
decryptPDF ............................................................................................................................................ 17
mergePDF .............................................................................................................................................. 17
mergeMultiplePDF ................................................................................................................................ 17
splitPDF.................................................................................................................................................. 18
extractPDFpages.................................................................................................................................... 18
stampPDF .............................................................................................................................................. 18
mergeTIFF .............................................................................................................................................. 19
mergeMultipleTIFF ................................................................................................................................ 19
splitTIFF ................................................................................................................................................. 19
extractTIFFpages ................................................................................................................................... 20
getNumPages ........................................................................................................................................ 20
getBaseName ........................................................................................................................................ 20
getExtensionName ................................................................................................................................ 20
fileExists ................................................................................................................................................. 20
isFileInUse ............................................................................................................................................. 21
fileCopy.................................................................................................................................................. 21
fileDelete ............................................................................................................................................... 21
createFolder .......................................................................................................................................... 21
copyFolder ............................................................................................................................................. 21
Neevia docCreator v5.0 API Reference
© Copyright © 2000-2023, Neevia Technology. All Rights Reserved.
Page 2 of 72
deleteFolder .......................................................................................................................................... 21
creatorPath............................................................................................................................................ 22
GUID ...................................................................................................................................................... 22
Conversion parameters - GENERAL .......................................................................................................... 23
DocumentOutputName......................................................................................................................... 23
DocumentOutputFolder ........................................................................................................................ 23
DocumentOutputFormat....................................................................................................................... 23
FirstPage ................................................................................................................................................ 24
LastPage ................................................................................................................................................ 24
UseCropBox ........................................................................................................................................... 24
CropEPS ................................................................................................................................................. 25
UseSystemFonts .................................................................................................................................... 25
Conversion parameters - PostScript/EPS related ..................................................................................... 26
LanguageLevel ....................................................................................................................................... 26
Conversion parameters - Image related ................................................................................................... 27
TIFFType ................................................................................................................................................ 27
MultiPageTIFF ........................................................................................................................................ 27
FillOrder ................................................................................................................................................. 27
JPGType ................................................................................................................................................. 28
JPGQuality ............................................................................................................................................. 28
BMPType ............................................................................................................................................... 28
PSDType................................................................................................................................................. 28
PCXType ................................................................................................................................................. 29
PNGType ................................................................................................................................................ 29
PXLType ................................................................................................................................................. 29
ScalePage............................................................................................................................................... 30
ConstrainProportions ............................................................................................................................ 30
ScaleIfLarger .......................................................................................................................................... 30
PlaceContentIn ...................................................................................................................................... 30
ImgHeight .............................................................................................................................................. 31
ImgWidth ............................................................................................................................................... 31
ImgResH................................................................................................................................................. 31
ImgResV ................................................................................................................................................. 31
FileNameSuffix ...................................................................................................................................... 32
TextAlphaBits ........................................................................................................................................ 32
GraphicsAlphaBits ................................................................................................................................. 32
Interpolate............................................................................................................................................. 32
UseWTS ................................................................................................................................................. 33
UseCIEColor ........................................................................................................................................... 33
DitheringMethod................................................................................................................................... 33
Conversion parameters - PDF/A related ................................................................................................... 34
OutputIntent ......................................................................................................................................... 34
Conversion parameters - PDF related ....................................................................................................... 35
PDFtoPDF............................................................................................................................................... 35
PDFMarksFile ......................................................................................................................................... 35
LinearizePDF .......................................................................................................................................... 35
AttachOriginalFile .................................................................................................................................. 35
OptimizePDFfor ..................................................................................................................................... 36
DocumentResolution............................................................................................................................. 36
NEEVIA TECHNOLOGY
This is an End User License Agreement. This is a contract. If you install this software, you must abide by the
terms of this agreement. This license is applicable to all software products sold by Neevia Technology (Neevia).
The term software includes upgrades, modified versions or updates. This software is licensed and not sold. Only
a personal, non-transferable and nonexclusive right to use the Neevia products is granted to the end user.
a. SERVER
This is a single computer owned, rented or leased by a single individual or entity on which one or more
applications load and execute software in the memory space of that computer. Software is installed on
a server for one or more users. All servers must be licensed to utilize Neevia software.
b. VIRTUAL SERVER
This is a single computer or a virtual machine (a software implementation of a machine that
executes programs like a physical machine) that is owned, rented or leased by an individual or
entity that turns around and rents or leases access to others. The virtual server may have one or more
applications on it for the end users to use. The purpose of the virtual server is to give multiple users
access to many software programs.
c. DEVELOPMENT
This means that you are programming a specific application or tool that will interact with the software
that you are licensing from Neevia Technology.
THIS IS A CONTRACT BETWEEN YOU AND NEEVIA TECHNOLOGY. YOU SHOULD CAREFULLY READ THIS
LICENSING AGREEMENT AND MUST ACCEPT ALL THE TERMS AND CONDITIONS BEFORE INSTALLING THIS
NEEVIA SOFTWARE. BY INSTALLING THE SOFTWARE, YOU ARE AGREEING TO BE BOUND BY THE TERMS AND
CONDITIONS OF THIS LICENSE. IF YOU DO NOT AGREE TO THE TERMS OF THIS LICENSE, DO NOT INSTALL THE
SOFTWARE, AND DO NOT USE THE SOFTWARE. IF YOU VIOLATE THIS AGREEMENT, YOU WILL BE SUBJECT TO
LEGAL ACTION BY NEEVIA TECHNOLOGY.
Subject to the payment of applicable license fees, Neevia Technology grants you a nonexclusive right to use its
accompanying Neevia software product and related documents (the Software) in the terms and conditions
provided as follow:
(d) Archiving:
You may make one copy of the Software solely for archival purposes. If the Software is an upgrade, you
may use the Software only in conjunction with upgraded product. If you receive your first copy of the
Software electronically, and a second copy on media afterward, the second copy can be used for archival
purposes only.
You agree to surrender your license(s) if you violate this agreement. If you violate this agreement, you will not
receive a refund upon termination of this license. You agree not to utilize our software to violate the copyright
of any third parties. If you do violate the copyright of a third party utilizing our software, you agree to hold
Neevia Technology harmless and will indemnify Neevia Technology for any such activity even if the violation is
unintentional.
You may not rent, lease, sub-license, transfer, or sell the Software. You may not modify, translate, reverse
engineer, decompile, disassemble, or create derivative works based on the Software, except to the extent
applicable law expressly prohibits such foregoing restriction. You may use the trademarks to identify the
Software owner's name, or to identify printed output produced by the Software. Such use of any trademark
does not give you any rights of ownership in that trademark.
GENERAL
This Agreement shall be construed, interpreted, and governed by the laws of the State of Florida, excluding the
application of its conflicts of law rules. The United Nations Convention on Contracts of the International Sale of
Goods will not govern this Agreement. If any part of this Agreement is found void and unenforceable, it will not
affect the validity of the rest of the Agreement, which shall remain valid and enforceable according to its terms.
If you need to redistribute this product with your own software products, you need to contact Neevia and
negotiate a separate licensing and royalty agreement.
You may not ship, transfer, or export the Software into any country or used in any manner prohibited by any
export laws, restrictions or regulations.
GOVERNEMENT USERS
For United States government users, the Software and associated Documentation are deemed to be
“commercial computer software” and “commercial computer documentation”, respectively pursuant to DFAR
227.7202 and FAR 12.212(b) as applicable.
ENTIRE AGREEMENT
You acknowledge that you have read this Agreement, understand it and agree to be bounded by its terms and
conditions. It is the complete and exclusive statement of the Agreement between us, which supersedes any
proposal or prior agreement, oral or written, and other communication between us relating to the subject
matter of this Agreement.
Example:
VBScript: Set NVDC = CreateObject("Neevia.docCreator")
NOTE: By default, the .NET assembly can be found in the Program Files (x86)\neevia.com\docCreator\.NET folder;
doSleep
Suspends execution of the current thread for a specified interval.
Syntax
NVDC.doSleep( sleepTime )
Parameters
sleepTime - specifies the amount of time, in milliseconds, for which to suspend execution.
setParameter
Sets a conversion parameter. (see Conversion parameters for a full list)
Syntax
NVDC.setParameter(paramName, paramValue)
Parameters
paramName - parameter name;
paramValue - parameter value (string);
Example
NVDC.setParameter("DocumentOutputFormat", "PDF")
getParameter
Returns the value of a conversion parameter previously set by the setParameter method.
Syntax
Res = NVDC.getParameter(paramName)
Parameters
paramName - parameter name;
getDefaultPrinter
Returns the default system printer.
Syntax
Res = NVDC.getDefaultPrinter
setDefaultPrinter
Sets the default system printer.
Syntax
Res = NVDC.setDefaultPrinter(printerName)
Parameters
printerName - printer name;
Remarks
Res <> 0 on error.
newPrinterName
Returns the name of the printer created by the startPrinting method.
Syntax
Res = NVDC.newPrinterName
newPortName
Returns the printer port associated with the printer created by the startPrinting method.
Syntax
Res = NVDC.newPortName
stopPrinting
Call this method when your application has completed printing to clear up the virtual printer and the variables
that have been created by startPrinting method.
Syntax
Res = NVDC.stopPrinting
Remarks
Res <> 0 on error.
createStaticPrinter
Call this method to create a new system printer based on "Neevia docCreator" printer.
Syntax
Res = NVDC.createStaticPrinter( printerName, printerPort )
Parameters
printerName - printer name;
printerPort - printer port, Ex: "c:\testPort.ps";
Remarks
Res <> 0 on error.
deleteStaticPrinter
Deletes a printer from the system.
Syntax
Res = NVDC.deleteStaticPrinter( printerName )
Parameters
printerName - printer name;
Remarks
Res <> 0 on error.
deletePrinterPort
Deletes a printer port from the system.
Syntax
Res = NVDC.deletePrinterPort( printerPort )
Parameters
printerPort - printer port, Ex: "c:\testPort.ps";
Remarks
Res <> 0 on error.
getPrinterPort
Returns the printer port associated with a specific printer.
Syntax
Res = NVDC.getPrinterPort( printerName )
Parameters
printerName - printer name;
Remarks
Res <> 0 on error.
setPrinterPort
Associates a printer port with a specific printer.
Syntax
Res = NVDC.getPrinterPort( printerName, printerPort )
Parameters
printerName - printer name;
printerPort - printer port, Ex: "c:\testPort.ps";
Remarks
Res <> 0 on error.
create
Call this method to create the output document.
Syntax
Res = NVDC.create
Remarks
Res <> 0 on error.
timeOut
Specifies the timeout period for the create method (in seconds).
Syntax
NVDC.timeOut = 360
Note: Can only be set before calling the Create method.
convertImage
This method converts an image into a different image format - see convertImageParam for supported
parameters.
Syntax
Res = NVDC.convertImage( inputFile, outputFile )
Remarks
Res <> 0 on error.
Examples
To convert a JPEG image to a BMP raster image, use NVDC.convertImage "image.jpg", "image.bmp"
To convert a TIFF image to a PostScript, use NVDC.convertImage "image.tif", "document.ps"
To convert a TIFF image to a PDF document, use NVDC.convertImage "image.tif", "document.pdf"
deletePDFpages
Deletes pages from a specified PDF document.
Syntax
Res = NVDC.deletePDFpages(inFile, outFile, fromPage, toPage)
Parameters
inFile - full path to PDF file to delete pages from;
outFile - full path to destination file;
fromPage - page number to start with;
toPage - page number to end with;
Remarks
Res<>0 on error.
rotatePDFpages
Rotates page(s) in a specified PDF document.
Syntax
Res = NVDC.rotatePDFpages(inFile, outFile, fromPage, toPage, rotate)
Parameters
inFile - full path to PDF file to rotate pages in;
outFile - full path to the destination file;
fromPage - page number to start with;
toPage - page number to end with;
rotate - rotate by (-270, -90, 0, 90, 180, 270) degrees;
Remarks
Res<>0 on error.
isPDFencrypted
Checks if a PDF file is encrypted.
Syntax
Res = NVDC.isPDFencrypted(filename)
Parameters
filename - path to file;
decryptPDF
Decrypts an existing PDF file.
Syntax
Res = NVDC.decryptPDF(srcFile, destFile, userPwd)
Parameters
srcFile - full path to the file that needs to be decrypted;
destFile - full path to the decrypted file;
userPwd - user password to be used in the decoding process;
Remarks
Res<>0 on error.
mergePDF
Merges two PDF files.
Syntax
Res = NVDC.mergePDF(firstFile, secondFile, outFile)
Parameters
firstFile - full path to first PDF file;
secondFile - full path to second PDF file;
outFile - full path to resulting file;
Remarks
Res<>0 on error.
mergeMultiplePDF
Merges multiple PDF files.
Syntax
Res = NVDC.mergeMultiplePDF(filesToMerge, destFile)
Parameters
filesToMerge - PDF files to merge, file names must be separated by +
destFile - output PDF file name;
Example
Res = NVDC.mergeMultiplePDF("c:\t1.pdf+c:\t2.pdf+c:\t3.pdf", "c:\out.pdf")
extractPDFpages
Extracts pages from an existing PDF file.
Syntax
NVDC.extractPDFpages(fileIN, fileOUT, extractFROM, extractTO)
Parameters
fileIN - input PDF file name;
fileOUT - output file name;
extractFROM - extract from this page;
extractTO - extract to this page;
Example
Res = NVDC.extractPDFpages("c:\in.pdf", "c:\out.pdf", 1, 4)
(this will extract pages 1,2,3 and 4 from c:\in.pdf into c:\out.pdf)
Remarks
Res<>0 on error.
stampPDF
Stamps/watermarks an existing PDF document.
Syntax
Res = NVDC.stampPDF(fileToStamp, destFile)
Parameters
fileToStamp - path to input PDF file;
destFile - path to output PDF file;
Example
Res = NVDC.stampPDF("c:\in.pdf", "c:\out.pdf")
Remarks
Res<>0 on error.
mergeMultipleTIFF
Merges multiple TIFF files.
Syntax
Res = NVDC.mergeMultipleTIFF(filesToMerge, destFile)
Parameters
filesToMerge - TIFF files to merge, file names must be separated by +
destFile - output TIFF file name;
Example
Res = NVDC.mergeMultipleTIFF("c:\t1.tif+c:\t2.tif+c:\t3.tif", "c:\out.tif")
Remarks
Res<>0 on error.
splitTIFF
Splits an existing TIFF file.
Syntax
Res = NVDC.splitTIFF(fileToSplit, destFolder)
Parameters
fileToSplit - path to input TIFF file;
destFolder - path to destination folder;
Example
Res = NVDC.splitTIFF("c:\t1.tif", "c:\")
Remarks
Res<>0 on error.
getNumPages
Returns the number of pages in the specified PDF/TIFF document.
Syntax
Res = NVDC.getNumPages(fileName)
Parameters
filename - path to file;
getBaseName
Returns the file name (less any file extension) from a path.
Syntax
Res = NVDC.getBaseName(path)
Parameters
path - file path;
getExtensionName
Returns the file extension from file name.
Syntax
Res = NVDC.getExtensionName( filename )
fileExists
Checks if a specified file exists.
Syntax
Res = NVDC.fileExists(fileToCheck)
Parameters
fileToCheck - path to the file to check;
fileCopy
Copies a file from source to destination.
Syntax
Res = NVDC.fileCopy(srcFile, destFile)
Parameters
srcFile - path to source file;
destFile - path to destination file;
fileDelete
Deletes a specified file.
Syntax
Res = NVDC.fileDelete(filename)
Parameters
filename - path to the file to delete;
createFolder
Creates a folder.
Syntax
Res = NVDC.createFolder(fldrName)
Parameters
fldrName - folder name;
copyFolder
Copies a folder from source to destination.
Syntax
Res = NVDC.copyFolder(srcFolder, destFolder)
Parameters
srcFolder - source path;
destFolder - destination path;
deleteFolder
Deletes a specified folder and its contents.
Syntax
Res = NVDC.deleteFolder(foldername)
Parameters
foldername - path to the folder to delete;
GUID
Returns an unique identifier.
Syntax
Res = NVDC.GUID
Data Type: String
DocumentOutputName
Specifies the output file name (no path and extension). The file extension will be automatically added
depending on the output format.
Syntax
NVDC.setParameter("DocumentOutputName", value)
Data type: String
Note: Can only be set before calling the Create method.
DocumentOutputFolder
Specifies the folder where the output document will go.
Syntax
NVDC.setParameter("DocumentOutputFolder", value)
Data type: String
Note: Can only be set before calling the Create method.
DocumentOutputFormat
Sets the output format.
Possible values: "PDF", "PDFA", “PDFA2”, “PDFA3”, “PDFA2U”, “PDFA3U” "PS", "EPS", "PNG", "BMP", "JPG",
"TIFF", "PCX", "PSD", "PXL", "TEXT".
Syntax
NVDC.setParameter("DocumentOutputFormat", value)
Data type: String
Known limitations:
TXT output format
The text extraction can be successful only if the printed document itself contains text information. If the document is
an image, drawing, metafile, etc, docCreator will not be able to extract any text.
In some cases the printing application sends the text or parts of the text as glyphs. The glyphs codes cannot be
converted back to character codes and the text file will contain unreadable characters.
The coordinates of the beginning text are reported by the printing application. The coordinates of the end of the text
is calculated by the driver, based on the resolution, font, and the actual characters in the text. A small variation of 1 to
5 pixels is normal.
The coordinates of the text are saved as they are received from the printing application. Some applications, such as
Quicken, change the coordinate system during printing. The part of the driver which generates the text output is not
aware of this fact. In cases where the printing application changes the coordinate system, the coordinates saved to
the text file may not be relative to the upper left corner of the image. There is no workaround for this issue.
FirstPage
Specifies the first page to start the conversion with.
Syntax
NVDC.setParameter("FirstPage", value)
Data type: String
Note: Can only be set before calling the Create method.
LastPage
Specifies the last page to be converted.
Syntax
NVDC.setParameter("LastPage", value)
Data type: String
Note: Can only be set before calling the Create method.
UseCropBox
Specifies whether docCreator should use CropBox for paper size rather than MediaBox when converting PDF
files.
Possible values: "true", "false".
Syntax
NVDC.setParameter("UseCropBox", value)
Data Type: String
Note: Can only be set before calling the Create method.
UseSystemFonts
Sets the output format.
Possible values: "0" - use only built-in fonts (the missing fonts will be substituted with Helvetica); "1" -
use the font mapping file created during docCreator install to locate missing fonts;
"2" - scan the <system>\fonts\ folder for missing fonts (very slow);
Syntax
NVDC.setParameter("UseSystemFonts", value)
Data type: String
Note: Can only be set before calling the Create method.
LanguageLevel
Specifies what PostScript language level docCreator should use when generating the output file. Possible
values: "1" (PostScript language level 1),
"1.5" (PostScript language level 1.5),
"2" (PostScript language level 2),
"3" (PostScript language level 3).
Syntax
NVDC.setParameter("LanguageLevel", value)
Data Type: String
Note: Can only be set before calling the Create method. Will have effect only if "DocumentOutputFormat" is "PS" or
"EPS".
TIFFType
Sets image type when output format is "TIFF".
Possible values:
"tiff24nc", (Color - 24bits RGB output, uncompressed)
"tiff32nc", (Color - 32bits CMYK output, uncompressed)
"tiff24lzw", (Color - 24bits RGB, LZW-compatible compression)
"tiff32lzw", (Color - 32bits CMYK, LZW-compatible compression)
"tiff24zip", (Color - 24bits RGB, ZIP (Deflate) compression)
"tiff32zip", (Color - 32bits CMYK, ZIP (Deflate) compression)
"tiffgray", (Grayscale - 8bits output, uncompressed)
"tiffgraylzw", (Grayscale - 8bits output, LZW-compatible compression)
"tiffgrayzip", (Grayscale - 8bits output, ZIP (Deflate) compression)
"tiffg3", (B&W - G3 fax encoding with EOLs)
"tiffg32d", (B&W - 2-D G3 fax encoding)
"tiffg4", (B&W - G4 fax encoding)
"tifflzw", (B&W - LZW-compatible compression)
"tiffpack". (B&W - PackBits compression)
Syntax
NVDC.setParameter("TiffType", value)
Data Type: String
Note: Can only be set before calling the Create method. Will have effect only if "DocumentOutputFormat" is "TIFF".
MultiPageTIFF
Specifies whether docCreator should create multipage tiff files.
Possible values:
"true" (creates a multipage tiff file)
"false" (creates a tiff file for the each page in the input document)
Syntax
NVDC.setParameter("MultiPageTIFF", value)
Data Type: String
Note: Can only be set before calling the Create method. Will have effect only if "DocumentOutputFormat" is "TIFF".
FillOrder
Sets fill order for the TIFF output format.
Possible values: "0" msb-to-lsb, "1" lsb-to-msb.
Syntax
NVDC.setParameter("FillOrder", value)
Data type: String
Note: Can only be set before calling the Create method. Will have effect only if "DocumentOutputFormat" is "TIFF".
JPGQuality
Sets image quality when output format is "JPG".
Possible values: "1"..."100".
Syntax
NVDC.setParameter("JPGQuality", value)
Data Type: String
Note: Can only be set before calling the Create method. Will have effect only if "DocumentOutputFormat" is "JPG".
BMPType
Sets image type when output format is "BMP".
Possible values:
"bmp16m", (Color - 16m colors RGB output)
"bmp16", (Color - 16 colors RGB output)
"bmp256", (Color - 256 colors RGB output)
"bmpgray", (Grayscale output)
"bmpmono". (Monochrome output)
Syntax
NVDC.setParameter("BMPType", value)
Data Type: String
Note: Can only be set before calling the Create method. Will have effect only if "DocumentOutputFormat" is "BMP".
PSDType
Sets image type when output format is "PSD".
Possible values:
"psdrgb", (Color - 24bits RGB output)
"psdcmyk". (Color - 32bits CMYK output)
Syntax
NVDC.setParameter("PSDType", value)
Note: Can only be set before calling the Create method. Will have effect only if "DocumentOutputFormat" is "PSD".
PNGType
Sets image type when output format is "PNG".
Possible values:
"png16m", (Color - 16m colors output)
"png16", (Color - 16 colors output)
"png256", (Color - 256 colors output)
"pnggray", (Grayscale output)
"pngmono". (Monochrome output)
Syntax
NVDC.setParameter("PNGType", value)
Data Type: String
Note: Can only be set before calling the Create method. Will have effect only if "DocumentOutputFormat" is "PNG".
PXLType
Sets image type when output format is "PXL".
Possible values:
"pxlcolor", (Color - 24bits RGB output)
"pxlmono", (Monochrome output)
Syntax
NVDC.setParameter("PXLType", value)
Data Type: String
Note: Can only be set before calling the Create method. Will have effect only if "DocumentOutputFormat" is "PXL".
ConstrainProportions
Specifies whether docCreator should constrain proportions when scaling the output document.
Possible values: "true", "false"
Syntax
NVDC.setParameter("ConstrainProportions", value)
Data Type: String
Note: Can only be set before calling the Create method. Will have effect only if DocumentOutputFormat is "TIFF",
"JPG", "BMP", "PNG" or "PCX" and ScalePage is "true".
ScaleIfLarger
Instructs docCreator to perform scaling only if the input document is larger than the output. Possible values:
"true", "false"
Syntax
NVDC.setParameter("ScaleIfLarger", value)
Data Type: String
Note: Can only be set before calling the Create method. Will have effect only if DocumentOutputFormat is "TIFF",
"JPG", "BMP", "PNG" or "PCX" and ScalePage is "true".
PlaceContentIn
Specifies where docCreator should place the original page content on the scaled page.
Possible values: "0" (left-bottom corner), "1" (right-bottom corner), "2" (center), "3" (center-top),
"4" (center-bottom), "5" (left-center), "6" (right-center), "7" (left-top corner),
"8" (right-top corner)
Syntax
NVDC.setParameter("PlaceContentIn", value)
Data Type: String
Note: Can only be set before calling the Create method. Will have effect only if DocumentOutputFormat is "TIFF",
"JPG", "BMP", "PNG" or "PCX" and ScalePage is "true".
ImgWidth
Specifies the output document width (in pixels).
Syntax
NVDC.setParameter("ImgWidth", value)
Data Type: String
Note: Can only be set before calling the Create method. Will have effect only if DocumentOutputFormat is "TIFF",
"JPG", "BMP", "PNG" or "PCX".
ImgResH
Specifies the output document horizontal resolution (in dpi).
Syntax
NVDC.setParameter("ImgResH", value)
Data Type: String
Note: Can only be set before calling the Create method. Will have effect only if DocumentOutputFormat is "TIFF",
"JPG", "BMP", "PNG" or "PCX".
ImgResV
Specifies the output document vertical resolution (in dpi).
Syntax
NVDC.setParameter("ImgResV", value)
Data Type: String
Note: Can only be set before calling the Create method. Will have effect only if DocumentOutputFormat is "TIFF",
"JPG", "BMP", "PNG" or "PCX".
TextAlphaBits
Controls the use of subsample antialiasing for text content. The subsampling box size should be 4 bits for
optimum output, but smaller values can be used for faster rendering.
Possible Values: "0", "1", "2", "4"
Syntax
NVDC.setParameter("TextAlphaBits", value)
Data Type: String
Note: Can only be set before calling the Create method. Will have effect only if DocumentOutputFormat is "TIFF",
"JPG", "BMP", "PNG" or "PCX".
GraphicsAlphaBits
Controls the use of subsample antialiasing for graphics content. The subsampling box size should be 4 bits for
optimum output, but smaller values can be used for faster rendering.
Possible Values: "0", "1", "2", "4"
Syntax
NVDC.setParameter("GraphicsAlphaBits", value)
Data Type: String
Note: Can only be set before calling the Create method. Will have effect only if DocumentOutputFormat is "TIFF",
"JPG", "BMP", "PNG" or "PCX".
Because of the way antialiasing blends the edges of shapes into the background when they are drawn, some files that
rely on joining separate filled polygons together to cover an area may not render as expected with Graphics
antialiasing at 2 or 4 bits. If you encounter strange lines within solid areas, try rendering that file again with Graphic
antialiasing at 1 bit.
Interpolate
Specifies whether the image parser should use image interpolation. Enabling image interpolation will result in
higher quality for scaled images at the expense of speed.
Possible Values: "true", "false"
Syntax
NVDC.setParameter("Interpolate", value)
Data Type: String
UseCIEColor
Specifies whether the image parser should remap the device-dependent color values through a CIE color space.
This can improve the conversion of CMYK documents to RGB.
Possible Values: "true", "false"
Syntax
NVDC.setParameter("UseCIEColor", value)
Data Type: String
DitheringMethod
Specifies the dithering algorithm docCreator should use when producing B&W FAX TIFF files.
Possible Values: "0" (sierra), "1" (burkes), "2" (stucki), "3" (floyd), "4" (jarvis), "5" (cluster 6x6), "6" (cluster 8x8),
"7" (cluster 16x16), "8" (bayer 4x4), "9" (bayer 8x8)
Syntax
NVDC.setParameter("DitheringMethod", value)
Data Type: String
Note: Can only be set before calling the Create method. Will have effect only if DocumentOutputFormat is "FAX" or
"SEND VIA FAX".
OutputIntent
Specifies the PDF/A Output Intent.
Possible values: "srgb", "jc200103", "fogra27", "swop", "gray".
Syntax
NVDC.setParameter("OutputIntent", value)
Data Type: String
Note: Can only be set before calling the Create method. Will have effect only if "DocumentOutputFormat" is "PDFA".
PDFtoPDF
Specifies whether the PDF document set by the setInputDocument method has to be reparsed when converting
into PDF.
Possible values: "true", "false".
Syntax
NVDC.setParameter("PDFtoPDF", value)
Data Type: String
Note: Can only be set before calling the Create method. Will have effect only if "DocumentOutputFormat" is "PDF".
PDFMarksFile
Specifies the file to load PDFmark commands from.
Syntax
NVDC.setParameter("PDFMarksFile", value)
Data Type: String
Note: Can only be set before calling the Create method. Will have effect only if "DocumentOutputFormat" is "PDF".
LinearizePDF
Specifies whether the output PDF document should be linearized (optimized for fast web view).
Possible values: "true", "false".
Syntax
NVDC.setParameter("LinearizePDF", value)
Data Type: String
Note: Can only be set before calling the Create method. Will have effect only if "DocumentOutputFormat" is "PDF".
AttachOriginalFile
Specifies whether original file should be included as attachment in the output PDF.
Possible values: "true", "false"
Syntax
NVDC.setParameter("AttachOriginalFile", value)
Data Type: String
DocumentResolution
Sets the output document resolution.
Possible values: "10"..."2400".
Syntax
NVDC.setParameter("DocumentResolution", value)
Data Type: String
Note: Can only be set before calling the Create method.
ScalePage
Specifies whether docCreator should scale the output document. If ScalePage is "false" output document will
be stripped to DocumentPaperSize, if ScalePage is "true" output document will be scaled to
DocumentPaperSize.
Syntax
NVDC.setParameter("ScalePage", value)
Data Type: String
Note: Can only be set before calling the Create method. Will have effect only if DocumentOutputFormat is "PDF".
ConstrainProportions
Specifies whether docCreator should constrain proportions when scaling the output document.
Possible values: "true", "false"
Syntax
NVDC.setParameter("ConstrainProportions", value)
Data Type: String
Note: Can only be set before calling the Create method. Will have effect only if DocumentOutputFormat is "PDF" and
ScalePage is "true".
PlaceContentIn
Specifies where docCreator should place the original page content on the scaled page.
Possible values: "0" (left-bottom corner), "1" (right-bottom corner), "2" (center), "3" (center-top),
"4" (center-bottom), "5" (left-center), "6" (right-center), "7" (left-top corner),
"8" (right-top corner)
Syntax
NVDC.setParameter("PlaceContentIn", value)
Data Type: String
Note: Can only be set before calling the Create method. Will have effect only if DocumentOutputFormat is "PDF".
Syntax
NVDC.setParameter("PDFVersion", value)
Data Type: String
Note: Can only be set before calling the Create method. Will have effect only if "DocumentOutputFormat" is "PDF".
DocumentTitle
Sets the title field in the output PDF document.
Syntax
NVDC.setParameter("DocumentTitle", value)
Data Type: String
Note: Can only be set before calling the Create method. Will have effect only if "DocumentOutputFormat" is "PDF".
DocumentSubject
Sets the subject field in the output PDF document.
Syntax
NVDC.setParameter("DocumentSubject", value)
Data Type: String
Note: Can only be set before calling the Create method. Will have effect only if "DocumentOutputFormat" is "PDF".
DocumentAuthor
Sets the author field in the output PDF document.
Syntax
NVDC.setParameter("DocumentAuthor", value)
Data Type: String
Note: Can only be set before calling the Create method. Will have effect only if "DocumentOutputFormat" is "PDF".
PDFAutoRotatePage
Specifies whether docCreator should automatically rotate pages based on the orientation of the text.
Possible values: "None" (will disable the Auto-Rotate Pages option)
"PageByPage" (will rotate each page based on the direction of the text on that page)
"All" (will rotate all pages in the document based on the orientation of the majority of text)
Syntax
NVDC.setParameter("PDFAutoRotatePage", value)
Data Type: String
Note: Can only be set before calling the Create method. Will have effect only if "DocumentOutputFormat" is "PDF".
PDFCompressPages
Specifies whether text and line art in the output PDF document should be compressed.
Possible values: "true", "false"
Syntax
NVDC.setParameter("PDFCompressPages", value)
Data Type: String
Note: Can only be set before calling the Create method. Will have effect only if "DocumentOutputFormat" is "PDF".
PDFEmbedAllFonts
Specifies whether fonts in the output PDF document should be embedded.
Possible values: "true", "false"
Syntax
NVDC.setParameter("PDFEmbedAllFonts", value)
Data Type: String
Note: Can only be set before calling the Create method. Will have effect only if "DocumentOutputFormat" is "PDF".
PDFFontsMaxSubset
Sets the Subset Fonts threshold. If the percentage of used characters (compared with total characters of the
particular font) exceeds this threshold, the entire font is embedded.
Possible values: "0"..."100".
Syntax
NVDC.setParameter("PDFFontsMaxSubset", value)
Data Type: String
Note: Can only be set before calling the Create method. Will have effect only if "DocumentOutputFormat" is "PDF".
PDFProcessColorModel
Sets the color model for the output PDF document.
Possible values: "DeviceRGB", "DeviceCMYK", "DeviceGRAY", "LeaveUnchanged"
Syntax
NVDC.setParameter("PDFProcessColorModel", value)
Data Type: String
Note: Can only be set before calling the Create method. Will have effect only if "DocumentOutputFormat" is "PDF".
CompressColorImages
Specifies whether the color images in the output PDF document should be compressed.
Possible values: "true", "false"
Syntax
NVDC.setParameter("CompressColorImages", value)
Data Type: String
Note: Can only be set before calling the Create method. Will have effect only if "DocumentOutputFormat" is "PDF".
CompressGrayImages
Specifies whether gray images in the output PDF document should be compressed.
Possible values: "true", "false"
Syntax
NVDC.setParameter("CompressGrayImages", value)
Data Type: String
Note: Can only be set before calling the Create method. Will have effect only if "DocumentOutputFormat" is "PDF".
GrayCompressMethod
Sets the compression method for gray images in the output PDF document.
Possible values: "Automatic", "JPEG-maximum", "JPEG-high", "JPEG-medium", "JPEG-low",
"JPEG-minimum", "ZIP".
Syntax
NVDC.setParameter("GrayCompressMethod", value)
Data Type: String
Note: Can only be set before calling the Create method. Will have effect only if "DocumentOutputFormat" is "PDF".
CompressMonoImages
Specifies whether monochrome images in the output PDF document should be compressed.
Possible values: "true", "false"
Syntax
NVDC.setParameter("CompressMonoImages", value)
Data Type: String
Note: Can only be set before calling the Create method. Will have effect only if "DocumentOutputFormat" is "PDF".
ColorImageResolution
Sets the resolution level for color images in the output PDF document.
Possible values: "10"..."2400".
Syntax
NVDC.setParameter("ColorImageResolution", value)
Data Type: String
Note: Can only be set before calling the Create method. Will have effect only if "DocumentOutputFormat" is "PDF".
GrayImageResolution
Sets the resolution level for gray images in the output PDF document.
Possible values: "10"..."2400".
Syntax
NVDC.setParameter("GrayImageResolution", value)
Data Type: String
Note: Can only be set before calling the Create method. Will have effect only if "DocumentOutputFormat" is "PDF".
MonoImageResolution
Sets the resolution level for mono images in the output PDF document.
Possible values: "10"..."2400".
Syntax
NVDC.setParameter("MonoImageResolution", value)
Data Type: String
Note: Can only be set before calling the Create method. Will have effect only if "DocumentOutputFormat" is "PDF".
ColorImageDownsampleType
Possible values: "Bicubic", "Average", "Subsample".
Syntax
NVDC.setParameter("ColorImageDownsampleType", value)
Data Type: String
Note: Can only be set before calling the Create method. Will have effect only if "DocumentOutputFormat" is "PDF".
DownsampleGrayImages
Specifies whether gray images in the output PDF document should be downsampled.
Possible values: "true", "false"
Syntax
NVDC.setParameter("DownsampleGrayImages", value)
Data Type: String
Note: Can only be set before calling the Create method. Will have effect only if "DocumentOutputFormat" is "PDF".
GrayImageDownsampleType
Possible values: "Bicubic", "Average", "Subsample".
Syntax
NVDC.setParameter("GrayImageDownsampleType", value)
Data Type: String
Note: Can only be set before calling the Create method. Will have effect only if "DocumentOutputFormat" is "PDF".
DownsampleMonoImages
Specifies whether monochrome images in the output PDF document should be downsampled.
Possible values: "true", "false"
Syntax
NVDC.setParameter("DownsampleMonoImages", value)
Data Type: String
Note: Can only be set before calling the Create method. Will have effect only if "DocumentOutputFormat" is "PDF".
MaxInlineImageSize
Sets the maximum size of an inline image in bytes.
Default value: "4000"
Syntax
NVDC.setParameter("MaxInlineImageSize", value)
Data Type: String
Note: Can only be set before calling the Create method. Will have effect only if DocumentOutputFormat is “PDF”. For
images larger than this size, docCreator will create a XObject instead of embedding the image into the context stream.
Note that redundant inline images must be embedded each time they occur in the document, while multiple
references can be made to a single XObject image. Therefore it may be advantageous to set a small or zero value if the
source document is expected to contain multiple identical images, reducing the size of the generated PDF.
ParseDSCComments
Intructs the conversion engine whether to parse PS/EPS DSC comments.
Possible values: "true", "false"
Syntax
NVDC.setParameter("ParseDSCComments", value)
Data Type: String
Note: Can only be set before calling the Create method.
DefaultRenderingIntent
Sets the default rendering intent.
Possible values: "0" (Default)
"1" (Perceptual)
"2" (Saturation)
"3" (RelativeColorimetric)
"4" (AbsoluteColorimetric)
Syntax
NVDC.setParameter("DefaultRenderingIntent", value)
Data Type: String
Note: Can only be set before calling the Create method.
UCRandBGInfo
Specifies whether under color removal and black generation settings should be preserved.
Possible values: "true", "false"
Syntax
NVDC.setParameter("UCRandBGInfo", value)
Data Type: String
Note: Can only be set before calling the Create method. Will have effect only if "DocumentOutputFormat" is "PDF".
TransferFunctionInfo
Specifies whether transfer function information should be preserved.
Possible values: "true", "false"
Syntax
NVDC.setParameter("TransferFunctionInfo", value)
Data Type: String
Note: Can only be set before calling the Create method. Will have effect only if "DocumentOutputFormat" is "PDF".
PreserveHaltoneInfo
Specifies whether halftone information should be preserved.
Possible values: "true", "false"
Syntax
NVDC.setParameter("PreserveHalftoneInfo", value)
Data Type: String
Note: Can only be set before calling the Create method. Will have effect only if "DocumentOutputFormat" is "PDF".
PDFEncryption
Specifies whether the output PDF document should be encrypted.
Possible values: "true", "false"
Syntax
NVDC.setParameter("PDFEncryption", value)
Data Type: String
Note: Can only be set before calling the Create method.
PDFEncryptionMethod
Sets the encryption method.
Possible values: "40" (low - 40 bits encryption, Acrobat 3-and-later compatible)
"rc4" (high - 128 bits encryption, Acrobat 5-and-later compatible)
"aes" (high - 128 bits encryption, Acrobat 6-and-later compatible)
"aes256" (high - 256 bits encryption, Acrobat 9-and-later compatible)
Syntax
NVDC.setParameter("PDFEncryptionMethod", value)
Data Type: String
Note: Can only be set before calling the Create method. Will have effect only if "DocumentOutputFormat" is "PDF".
PDFEncryptMeta
Specifies whether metadata in the output PDF file should be encrypted.
Possible values: "true", "false"
Syntax
NVDC.setParameter("PDFEncryptMeta", value)
Data Type: String
Note: Can only be set before calling the Create method. Will have effect only if "DocumentOutputFormat" is "PDF".
PDFUserPassword
Sets the user password in the output PDF document. Users will be asked to enter this password before Acrobat
Reader allows them to view the PDF document.
Syntax
NVDC.setParameter("PDFUserPassword", value)
Data Type: String
Note: Can only be set before calling the Create method. Will have effect only if "DocumentOutputFormat" is "PDF".
PDFPermissions
Sets PDF security permissions to use for encrypting output file.
Possible values:
"p" - document printing is denied
"c" - changing the document is denied
"s" - selection and copying of text and graphics is denied
"a" - adding or changing annotations (PDF comments) or form fields is denied
The following flags are defined for 128 bits and higher encryption:
"i" - disables editing of form fields
"e" - disables extraction of text and graphics
"d" - disables document assembly
"q" - disables high quality printing
Syntax
NVDC.setParameter("PDFPermissions", value)
Example
NVDC.setParameter( "PDFPermissions", "p" )
Data Type: String
Note: Can only be set before calling the Create method. Will have effect only if "DocumentOutputFormat" is "PDF".
OpenAtPage
Specifies the page at which the output PDF document should open in PDF viewer.
Syntax
NVDC.setParameter("OpenAtpage", value)
Data Type: String
Note: Can only be set before calling the Create method. Will have effect only if "DocumentOutputFormat" is "PDF".
OpenMagnification
Specify the open magnification in % for the output document.
Possible values: "0" (Default)
"1" (Actual Size)
"2" (Fit Page)
"3" (Fit Width)
"4" (Fit Height)
"5" (Fit Visible)
"6" (Zoom 25%)
"7" (Zoom 50%)
"8" (Zoom 75%)
"9" (Zoom 100%)
"10" (Zoom 125%)
"11" (Zoom 150%)
"12" (Zoom 200%)
"13" (Zoom 400%)
"14" (Zoom 800%)
"15" (Zoom 1600%)
"16" (Zoom 2400%)
"17" (Zoom 3200%)
"18" (Zoom 6400%)
Syntax
NVDC.setParameter("OpenMagnification", value)
Data Type: String
Note: Can only be set before calling the Create method. Will have effect only if "DocumentOutputFormat" is "PDF".
FullScreen
Specifies whether Acrobat Reader should maximize the document window and display output PDF documents
without the menu bar, toolbar, or window controls.
Possible values: "true", "false"
Syntax
NVDC.setParameter("FullScreen", value)
Data Type: String
Note: take into account that if you hide the menu bar and toolbars users cannot apply commands and select tools
unless they know the keyboard shortcuts.
PageLayout
Specifies page layout to use when output file is opened in PDF viewer.
Possible values: "1" (Display one page at a time)
"2" (Display the pages in one column)
"3" (Display the pages in two columns, with odd numbered pages on the left)
"4" (Display the pages in two columns, with odd numbered pages on the right)
"5" (Display the pages two at a time, with odd numbered pages on the left)
"6" (Display the pages two at a time, with odd numbered pages on the right)
Syntax
NVDC.setParameter("PageLayout", value)
Data Type: String
Note: Can only be set before calling the Create method. Will have effect only if "DocumentOutputFormat" is "PDF".
HideMenuBar
Specifies whether Acrobat Reader should hide the menu bar when displaying the output PDF document.
Possible values: "true", "false"
Syntax
NVDC.setParameter("HideMenuBar", value)
Data Type: String
HideToolbar
Specifies whether Acrobat Reader should hide the toolbar when displaying PDF documents.
Possible values: "true", "false"
Syntax
NVDC.setParameter("HideToolbar", value)
Data Type: String
HideWindowUI
Specifies whether Acrobat Reader should hide the user interface when displaying PDF documents.
Possible values: "true", "false"
Neevia docCreator v5.0 API Reference
© Copyright © 2000-2023, Neevia Technology. All Rights Reserved.
Page 49 of 72
Syntax
NVDC.setParameter("HideWindowUI", value)
Data Type: String
FitWindow
Specifies whether Acrobat Reader should adjust the document window to fit snugly around the opening page
when displaying PDF documents.
Possible values: "true", "false"
Syntax
NVDC.setParameter("FitWindow", value)
Data Type: String
CenterWindow
Specifies whether Acrobat Reader should position the window in the center of the screen area when displaying
PDF documents.
Possible values: "true", "false"
Syntax
NVDC.setParameter("CenterWindow", value)
Data Type: String
StampText
Specifies the text to use as watermark. (See Appendix B for the list of supported variables)
Syntax
NVDC.setParameter("StampText", value)
Data Type: String
StampFile
Specifies the file to load stamp commands from. (See Appendix A for stamp file format info)
Syntax
NVDC.setParameter("StampFile", value)
Data Type: String
Example
NVDC.setParameter( "StampFile", "c:\stamp.nsp" )
Commands contained in stamp.nsp:
\stamp 0
\stampname SampleStamp
\text CONFIDENTIAL
\x center
\y center
\units 1
\fontname Arial
\fontcolor #00FF00
StampFontColor
Specifies the watermark font color.
Syntax
NVDC.setParameter("StampFontColor", value)
Example
NVDC.setParameter( "StampFontColor", "#000000" )
Data Type: String
StampFontName
Specifies the watermark font name.
Syntax
NVDC.setParameter("StampFontName", value)
Example
NVDC.setParameter( "StampFontName", "Arial" )
Data Type: String
StampFontEmbed
Specifies whether fonts should be embedded.
Possible values: "true", "false"
Syntax
NVDC.setParameter("StampFontEmbed", value)
Data Type: String
StampFontSubset
Specifies whether fonts should be subset.
Possible values: "true", "false"
Syntax
NVDC.setParameter("StampFontSubset", value)
Data Type: String
StampTextRenderingMode
Specifies the text rendering mode.
Possible values:
"0" - Fill text, no stroke (default)
"1" - Stroke text, no fill
"2" - Fill then Stroke text
"3" - Invisible
Fill text, no stroke Stroke text, no fill Fill then stroke text
Syntax
NVDC.setParameter("StampTextRenderingMode", value)
Data Type: String
StampScale
Specifies by how much (in percent) to scale the stamp. Default value: "100"
Syntax
NVDC.setParameter("StampScale", value)
Example
NVDC.setParameter( "StampScale", "200" )
Data Type: String
Note: will have effect only for Image and PDFOverlay stamps.
StampFontColor
Specifies font color in RGB colorspace.
Syntax
NVDC.setParameter("StampFontColor", value)
Example
NVDC.setParameter( "StampFontColor", "#FF0000" ) (red)
Data Type: String
StampFontColorGray
Specifies font color in Gray colorspace.
Syntax
NVDC.setParameter("StampFontColorGray", value)
Example
NVDC.setParameter( "StampFontColorGray", "#77" )
Data Type: String
StampFontColorCMYK
Specifies font color in CMYK colorspace.
Syntax
NVDC.setParameter("StampFontColorCMYK", value)
Example
NVDC.setParameter( "StampFontColorCMYK", "#000000FF" ) (black)
Data Type: String
StampStrokeColorGray
Specifies font stroke color in Gray colorspace.
Syntax
NVDC.setParameter("StampStrokeColorGray", value)
Example
NVDC.setParameter( "StampStrokeColorGray", "#77" )
Data Type: String
StampStrokeColorCMYK
Specifies font stroke color in CMYK colorspace.
Syntax
NVDC.setParameter("StampStrokeColorCMYK", value)
Example
NVDC.setParameter( "StampStrokeColorCMYK", "#000000FF" ) (black)
Data Type: String
StampStrokeWidth
Specifies the stroke width.
Syntax
NVDC.setParameter("StampStrokeWidth", value)
Data Type: String
StampRotate
Specifies the watermark rotation angle in degrees.
Syntax
NVDC.setParameter("StampRotate", value)
Data Type: String
PlaceStampOnPages
Specifies the pages to place watermark/stationery on.
Note: page numbers must be separated by commas. To place the watermark/stationery on all pages specify "0".
Syntax
NVDC.setParameter("PlaceStampOnPages", value)
Example
NVDC.setParameter( "PlaceStampOnPages", "1,3,7" )
(will place watermark on pages 1, 3 and 7)
Data Type: String
StampUnits
Specifies measurement unit to use for the StampX and StampY properties.
Possible values: "0" (points), "1" (inches), "2" (centimeters), "3" (millimeters)
Syntax
NVDC.setParameter("StampUnits", value)
Data Type: String
StampX
Specifies the watermark X coordinate.
Syntax
NVDC.setParameter("StampX", value)
Data Type: String
Note: you can use as values, instead of numbers "center", "left" and "right" - as the name suggests they will position
the watermark in the center of the page, on the left or right.
StampY
Specifies the watermark Y coordinate.
Syntax
NVDC.setParameter("StampY", value)
Data Type: String
Note: you can use as values, instead of numbers "center", "top" and "bottom" - as the name suggests they will
position the watermark in the center of the page, on top or in the bottom.
StampHeight
Specifies the stamp height.
Syntax
NVDC.setParameter("StampHeight", value)
Data Type: String
Note: will have effect only for TextBox and Image stamps.
StampTextBox
Specifies the watermark text to use inside a text box. (See Appendix B for the list of supported variables)
Syntax
NVDC.setParameter("StampTextBox", value)
Data Type: String
StampTextAlign
Specifies how the text to use inside a textbox stamp should be aligned.
Possbile values: "0" (left), "1" (center), "2" (right)
Syntax
NVDC.setParameter("StampTextAlign", value)
Data Type: String
StampWordWrap
Specifies whether to enable Word Wrap in case text does not fit in one line.
Possbile values: "true", "false"
Syntax
NVDC.setParameter("StampWordWrap", value)
Data Type: String
StampWebLink
Specifies the web address to go to when the stamp is clicked.
Syntax
NVDC.setParameter("StampWebLink", value)
Data Type: String
StampUseCropBox
Specifies whether to use the page crop box to position stamp.
Possbile values: "true", "false"
Syntax
NVDC.setParameter("StampUseCropBox", value)
Data Type: String
StampUsePageRotation
Specifies whether to use the page rotation parameter when placing stamp.
Possbile values: "true", "false"
Syntax
NVDC.setParameter("StampUsePageRotation", value)
Data Type: String
StampPlaceAs
Specifies how to place stamp on page.
Possible values: "0" as stamp: over page content (Default),
"1" as watermark: under page content
Syntax
NVDC.setParameter("StampPlaceAs", value)
Data Type: String
StampImage
Specifies the image file to use as stamp. Supported formats: GIF, PNG, JPEG, TIFF and BMP.
Syntax
NVDC.setParameter("StampImage", value)
Example
NVDC.setParameter( "StampImage", "c:\image.gif" )
Data Type: String
StampPDFOverlayPage
Specifies the page to use as overlay from the PDFOverlay file. Default value: "1"
Syntax
NVDC.setParameter("StampPDFOverlayPage", value)
Data Type: String
CreatePageBookmarks
Specifies whether bookmarks should be created during merging.
Possible values: "true", "false"
Syntax
NVDC.setParameter("CreatePageBookmarks", value)
Data Type: String
Note: Will have effect only when used in conjunction with the mergePDF method.
CreateNewBookmarks
Specifies whether new bookmarks should be created during merging.
Possible values: "true", "false"
Syntax
NVDC.setParameter("CreateNewBookmarks", value)
Data Type: String
Note: Will have effect only when used in conjunction with mergePDF method.
BookmarksFile
Specifies path to the file that contains the new bookmarks to add while merging files.
Syntax
NVDC.setParameter("BookmarksFile", value)
Data Type: String
Note: Will have effect only when used in conjunction with mergePDF method.
SplitByBookmarks
Specifies whether PDF files should be split by bookmarks.
Possible values: "true", "false"
Syntax
NVDC.setParameter("SplitByBookmarks", value)
Data Type: String
Note: Will have effect only when used in conjunction with splitPDF method.
BkLevel
Specifies the lowest bookmark level to split by.
Default value: "1"
Syntax
NVDC.setParameter("BkLevel", value)
Data Type: String
Note: Will have effect only when used in conjunction with splitPDF method and SplitByBookmarks = true.
NameByBk
Specifies whether to name output PDF file(s) according to bookmark titles.
Possible values: "true", "false"
Syntax
NVDC.setParameter("nameByBk", value)
Data Type: String
Note: Will have effect only when used in conjunction with splitPDF method and SplitByBookmarks = true.
RemoveAnnotations
Specifies whether to remove text annotations from the output PDF file(s).
Possible values: "true", "false"
Syntax
NVDC.setParameter("RemoveAnnotations", value)
Data Type: String
Note: Will have effect only when used in conjunction with splitPDF or mergePDF methods.
RemoveAcroForms
Specifies whether to remove PDF forms from the output PDF file(s).
Possible values: "true", "false"
Syntax
NVDC.setParameter("RemoveAcroForms", value)
Data Type: String
Note: Will have effect only when used in conjunction with splitPDF or mergePDF methods.
RemovePageLabels
Specifies whether to remove page labels from the output PDF file(s).
Possible values: "true", "false"
Syntax
NVDC.setParameter("RemovePageLabels", value)
Data Type: String
Note: Will have effect only when used in conjunction with splitPDF or mergePDF methods.
RemoveLayers
Specifies whether to remove layers from the output PDF file(s).
Possible values: "true", "false"
Syntax
NVDC.setParameter("RemoveLayers", value)
Data Type: String
Note: Will have effect only when used in conjunction with splitPDF or mergePDF methods.
RemoveArticleThreads
Specifies whether to remove article threads from the output PDF file(s).
Possible values: "true", "false"
Syntax
NVDC.setParameter("RemoveArticleThreads", value)
Data Type: String
Note: Will have effect only when used in conjunction with splitPDF or mergePDF methods.
ImageRotate
Specifies how docCreator should handle image rotation/orientation.
Possible Values: "0" (preserve original), "1" (rotate landscape images 90 degrees), "2" (rotate landscape images -90
degrees), "3" (rotate portrait images 90 degrees), "4" (rotate portrait images -90 degrees)
Syntax
NVDC.setParameter("ImageRotate", value)
Data Type: String
Note: Will have effect only when used in conjunction with convertImage method.
OCR
Specifies whether docCreator should perform OCR (Optical Character Recognition) when converting images to
PDF.
Possible values: "true", "false"
Syntax
NVDC.setParameter("OCR", value)
Data Type: String
Note: Will have effect only when used in conjunction with convertImage method.
OCRlang
Sets the OCR language.
Possible Values: "0" English, "1" Czech, "2" Danish, "3" Dutch, "4" Finnish, "5" French, "6" German,
"7" Greek, "8" Hungarian, "9" Italian, "10" Japanese, "11" Korean, "12" Norwegian,
"13" Polish, "14" Portuguese, "15" Russian, "16" Spanish, "17" Swedish, "18" Turkish,
"19" Chinese Traditional, "20" Chinese Simplified
Syntax
NVDC.setParameter("OCRlang", value)
Data Type: String
Note: Will have effect only when used in conjunction with convertImage method and "OCR" = "true".
AutoRotate
Specifies whether the OCR engine should attempt to determine the orientation of the page.
Possible Values: "true", "false"
Syntax
NVDC.setParameter( "AutoRotate", value)
Data Type: String
Note: Will have effect only when used in conjunction with convertImage method and "OCR" = "true".
ConvertImageParam
Specifies additional conversion parameters for convertImage method.
Syntax
NVDC.setParameter("AutoStraighten", value)
Data Type: String
Note: Will have effect only when used in conjunction with convertImage method.
Possible Values:
-useimagepack forces docCreator to use Image Pack for all image conversions - by default docCreator will
use the built-in image parser for jpeg, png, bmp, pcx and tiff images and Image Pack for the rest.
-crop <width>x<height>{+-}<x>{+-} <y>{%} preferred size and location of the cropped image
See -geometry for details about the geometry specification.
The width and height give the size of the image that remains after cropping, and x and y are offsets that give the
location of the top left corner of the cropped image with respect to the original image. To specify the amount to be
removed, use -shave instead.
If the x and y offsets are present, a single image is generated, consisting of the pixels from the cropping region. The
offsets specify the location of the upper left corner of the cropping region measured downward and rightward with
respect to the upper left corner of the image.
If the x and y offsets are omitted, a set of tiles of the specified geometry, covering the entire input image, is
generated. The rightmost tiles and the bottom tiles are smaller if the specified geometry extends beyond the
dimensions of the input image
\stamp <value> - starts a stamp. <value> specifies the pages to stamp (leave blank if you want to stamp all the
pages.
\starttextbox <value> - Starts a Text Box (<value> is the text alignment: 1 - left, 2 - right, 3 - center)
.. text box text to stamp …
\endtextbox
\scale <value> - specifies scaling factor for image and PDF overlay stamps
Examples:
1. Stamp "WATERMARK" on first page at (1in, 1.5in), Arial font, green color
\stamp 1
\stampname Sample Stamp
\text WATERMARK
\x 1
\y 1.5
\units 1
\font Arial
\textrgbcolor #00FF00
2. Add bates numbering (5 digits) to each page at the bottom, Arial font, green color.
\stamp 0
\stampname Sample Stamp
\text %BATES#DIGITS=5%
\x left
\y bottom
\units 1
\overlay
\font Arial
\textrgbcolor #00FF00