The .NET Interface makes it possible for Office Server Document Converter V10.0 to function through .NET applications developed using Visual Basic.NET, Visual C#.NET and similar programs.
Windows version
Linux version
CAUTION: |
The .NET Interface for Amazon Linux 2 Graviton2 version is not available. The Microsoft .NET Framework 1.0/1.1/2.0/3.0 is not supported. You cannot have both Office Server Document Converter V10.0 and another version of Office Server Document Converter installed on your machine when the .NET interface is used. It is necessary to uninstall one version, or only set the path of Office Server Document Converter you want to use by deleting the unwanted path from the environment variables. When using .NET 6 interface on Windows version, ijwhost.dll (.NET Core host DLL) is required. This file is normally installed in the [%ProgramFiles%\dotnet\packs\Microsoft.NETCore.App.Host.win-x64\6.0.XX\runtime\win-x64\native] folder. Please place it in the same folder as DfvDotNet60Ctl100.dll. |
---|
Office Server Document Converter .NET component is not registered automatically to the global assembly cache (GAC). It is necessary to create the path either by putting the .NET component in the current folder of the application, or by creating an application configuration file.
Windows version.NET Component File Name | for .NET Framework 4.6.2/4.7.x/4.8.x | DfvDotNet40Ctl100.dll(build:VS2022) |
---|---|---|
for .NET 6 | DfvDotNet60Ctl100.dll (build:VS2022) |
.NET Component File Name | for .NET 6 | DfvDotNet60MCtl100.dll |
---|
The following classes are contained in the .NET component:
Name | Functions |
---|---|
DfvObj | Office Server Document Converter V10.0 class (itself). This class implements an IDisposable interface. When exiting DfvObj class object, call Dispose method in order to release the resource.
Example for C# DfvDotNetCtl.DfvObj obj = new DfvDotNetCtl.DfvObj();
try {
// some process
} finally {
obj.Dispose();
}
|
DfvException | Office Server Document Converter V10.0 exception class. Throws the execute method of DfvObj class. |
DfvException Class includes the following properties:
Name | Type | R/W | Functions | ||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
ErrorLevel | Int32 | R |
Indicates the level of the error that occurred during the conversion process.
|
||||||||
ErrorCode | Int32 | R | Indicates the code of the exception error that occurred during the converting process. Zero means no error. Non-zero indicates any error occurred. |
DfvObj Class includes the following properties:
Name | Type | R/W | Functions | ||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Version | String | R | Get the version string of Office Server Document Converter V10.0. | ||||||||
DocumentURI | String | R/W | Specifies the URI of the target documents you will convert.
|
||||||||
PrinterName | String | R/W |
Specifies the output format or the printer name to output.
See “How to specify the Printer Name” for the printer name information. See “PDF Output” for the PDF output information. See “SVG Output” for the SVG output information. See “XPS Output” for the XPS output. See “INX Output” for the INX output. See “Flash Output” for the Flash output. Monochrome/256 colors JPEG, PNG and TIFF output are effective only with Windows versions. |
||||||||
OutputFilePath | String | R/W | Specifies the output file path of the converted result. When a printer is specified as an output format by PrinterName, a printing result is saved to the specified file by the printer driver. When an output format other than a printer is specified, it is saved as the specified file with the specified output format. When omitted, or when “@STDOUT” is specified, it goes to standard output. | ||||||||
StartPage EndPage |
Int32 | R/W | Specifies the start page number or the end page number of a document to output. If the start page is omitted or the specified value is 0, the start page is considered the first page. If the end page is omitted or 0, or the specified value exceeds the actual page number, the end page is considered the last page. If the setting is inconsistent (for example, StartPage=5 EndPage=3), an error occurs. | ||||||||
OmitBlankPages | Boolean | R/W |
Specify this property to skip a blank page when it is at the beginning of the document. It is valid only if the conversion source file is MS Word or MS Excel. If there is a blank page at the beginning of the document, that page is skipped. The skipped pages are counted as one page. If you want to skip and get only the first page with content, specify it in combination with EndPage=1. Skip even if the first page has only header and footer. |
||||||||
ExitLevel | Int32 | R/W | Specifies error level to abort converting process. Office Server Document Converter V10.0 will stop converting when the detected error level is greater than or equal to the specified ExitLevel property. The default value is 2 (Warning). Thus if an error occurred and error level is greater than or equal to 2 (Warning), the converting process will be aborted. Legal values are from 1 to 4. When the value of greater than or equal to 5 is specified, it is considered the value of 4. If an error-level:4 (Fatal error) occurs, the converting process will be aborted unconditionally. Note: Setting this value does not cause an error message to be displayed. | ||||||||
ErrorLevel | Int32 | R | Indicates the error level that occurred during the conversion process.
|
||||||||
ErrorCode | Int32 | R | Indicates the error code of the error that occurred during the conversion process. Zero means no error. Non-zero indicates an error occurred. | ||||||||
ErrorMessage | String | R | Indicates the Error Messages of the error that occurred during the conversion process. | ||||||||
ErrorStreamType | Int32 | R/W | Outputs the Error Messages to standard output or to standard error when the error level is less than the specified error level allowed while converting. The error message is not outputted in default.
|
Name | Type | R/W | Functions | ||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
PdfVersion | Int32 | R/W |
Specifies PDF version:
|
||||||||||||||||||||||||||||
PdfEncryptLevel | Int32 | R/W |
Specifies the key length when encrypting the PDF file during output. The key length can be specified as follows:
|
||||||||||||||||||||||||||||
PdfTag | Boolean | R/W | Generates Tagged PDF. Ignored if PDF cannot be tagged depending on the PDF versions. | ||||||||||||||||||||||||||||
PdfUserPassword | String | W | Specifies the user password required to open the PDF. Specify up to 32 ASCII characters. | ||||||||||||||||||||||||||||
PdfOwnerPassword | String | W | Specifies the owner password for the PDF. Specify up to 32 ASCII characters. | ||||||||||||||||||||||||||||
PdfNoPrinting | Boolean | R/W |
Prohibits printing the PDF file.
It is necessary to specify PdfOwnerPassword so that this parameter is effective. |
||||||||||||||||||||||||||||
PdfNoChanging | Boolean | R/W |
Prohibits making changes to the PDF file.
It is necessary to specify PdfOwnerPassword so that this parameter is effective. |
||||||||||||||||||||||||||||
PdfNoContentCopying | Boolean | R/W |
Prohibits copying the content of the PDF file.
It is necessary to specify PdfOwnerPassword so that this parameter is effective. |
||||||||||||||||||||||||||||
PdfNoAddingOrChangingComments | Boolean | R/W |
Prohibits adding comments and form fields to the PDF file.
It is necessary to specify PdfOwnerPassword so that this parameter is effective. |
||||||||||||||||||||||||||||
PdfNoFillForm | Boolean | R/W |
Prohibits filling in of form fields and signing of the PDF file. This parameter is effective only when you specify PDF1.4 or later for the PdfVersion property.
In order to make this parameter effective, other parameter settings may be required.
For more details, see also PDF Reference. |
||||||||||||||||||||||||||||
PdfNoAccessibility | Boolean | R/W | Prohibits text access for screen reader devices of the PDF file. This parameter is effective only when you specify PDF1.4 or later for the PdfVersion property. | ||||||||||||||||||||||||||||
PdfNoAssembleDoc | Boolean | R/W | Prohibits inserting, deleting and rotating the PDF pages. This parameter is effective only when you specify PDF1.4 or later for the PdfVersion property. | ||||||||||||||||||||||||||||
PdfEmbedAllFontsEx | Int32 | R/W |
Specifies whether or not to embed all embeddable fonts used in the file of the conversion result into PDF.
However, even if all fonts are specified to embed, the font forbidden embedding or the font that is not able to be embedded to PDF cannot be embedded.
|
||||||||||||||||||||||||||||
PdfEmbedFonts | String | R/W | Embeds the specified font in the created PDF. To specify multiple fonts, put commas between each font. | ||||||||||||||||||||||||||||
PdfErrorOnEmbedFault | Boolean | R/W | When true is specified, an error is issued when font embedding fails. | ||||||||||||||||||||||||||||
PdfErrorOnMissingGlyph | Boolean | R/W | When true is specified, an error is issued when there is a missing glyph. | ||||||||||||||||||||||||||||
PdfPrintingAllowed | Int32 | R/W |
Specifies whether and how to permit printing of the PDF. This parameter is effective only when you specify PDF1.4 or later for the PdfVersion property.
|
||||||||||||||||||||||||||||
PdfImageCompression | Int32 | R/W |
When a color image format cannot be stored directly in the PDF, an image is stored after being transformed into a bitmap format that is compatible with PDF. Use one of the following values to specify the compression method of the data stored in a PDF file:
|
||||||||||||||||||||||||||||
PdfJPEGQuality | Int32 | R/W |
With color image formats that cannot be stored directly in a PDF, if JPEG compression is specified for PdfImageCompression the image quality can be specified with a numeric value of 1 to 100. Higher values are proportional to increased image quality. However the file size also becomes larger. This is the setting for color images. PdfGrayscaleJPEGQuality can be specified for grayscale images.
|
||||||||||||||||||||||||||||
PdfPutImageColorProfile | Boolean | R/W | Specifies whether to embed the ICC profile (of the embedded color image) in the PDF. | ||||||||||||||||||||||||||||
PdfImageDownSampling | Int32 | R/W |
Specifies either of the following methods to downsample the raster color image in a PDF:
|
||||||||||||||||||||||||||||
PdfImageDownSamplingTarget | Int32 | R/W | Sets the target resolution when a raster color image is downsampled. | ||||||||||||||||||||||||||||
PdfImageDownSamplingDPI | Int32 | R/W | Sets the resolution for the downsampled raster color image. | ||||||||||||||||||||||||||||
PdfGrayscaleImageCompression | Int32 | R/W |
When a grayscale image format cannot be stored directly in the PDF, the image is transformed and stored in a bitmap format that is compatible with PDF. Use one of the following values to specify the compression method of the data stored in a PDF file:
|
||||||||||||||||||||||||||||
PdfGrayscaleJPEGQuality | Int32 | R/W |
For grayscale image formats that cannot be stored directly in the PDF, if JPEG compression is specified in PdfGrayscaleImageCompression the image quality can be specified by a numerical value of 1 to 100. Higher values are proportional to increased image quality, however the file size also becomes larger. These are the settings for grayscale images. Specify PdfJPEGQuality for color images.
|
||||||||||||||||||||||||||||
PdfGrayscaleImageDownSampling | Int32 | R/W |
Specifies either of the following methods to downsample raster grayscale images in a PDF:
|
||||||||||||||||||||||||||||
PdfGrayscaleImageDownSamplingTarget | Int32 | R/W | Sets the target resolution when a raster grayscale image is downsampled. | ||||||||||||||||||||||||||||
PdfGrayscaleImageDownSamplingDPI | Int32 | R/W | Sets the resolution for the downsampled raster grayscale image. | ||||||||||||||||||||||||||||
PdfMonochromeImageCompression | Int32 | R/W |
When monochrome image formats cannot be stored directly in the PDF, the image is transformed and stored in a bitmap format that is compatible with PDF. Use one of the following values to specify the compression method of data stored in a PDF file:
|
||||||||||||||||||||||||||||
PdfMonochromeImageDownSampling | Int32 | R/W |
Specifies either of the following methods to downsample raster monochrome images in a PDF:
|
||||||||||||||||||||||||||||
PdfMonochromeImageDownSamplingTarget | Int32 | R/W | Sets the target resolution when a raster monochrome image is downsampled. | ||||||||||||||||||||||||||||
PdfMonochromeImageDownSamplingDPI | Int32 | R/W | Sets the resolution for the downsampled raster monochrome image. | ||||||||||||||||||||||||||||
PdfLinearize | Boolean | R/W | Specifies whether to output linearized PDF or not. | ||||||||||||||||||||||||||||
PdfCompressContentStream | Boolean | R/W | Specifies whether the text and line art in a PDF are compressed in order to reduce the size of PDF. | ||||||||||||||||||||||||||||
PdfUseLaunchForRelativeURI | Boolean | R/W | Specifies whether external links specified by the relative address are transformed into “Open the file” or into “World Wide Web link” in the PDF link properties. If the value is true, it is transformed to “Open the file”. If the value is false, it is transformed to “World Wide Web link”. | ||||||||||||||||||||||||||||
PdfRGBConversion | Int32 | R/W |
Specifies how to convert the RGB color space (DeviceRGB) to DeviceGray.
|
||||||||||||||||||||||||||||
PdfRasterizeResolution | Int32 | R/W | Specifies the rasterize-resolution value of the transformed raster images from 70 to 500(dpi) when the vector image is converted to the raster image and stored in PDF. SVG, EMF and WMF are rendered in PDF as vectors without being changed to raster images. | ||||||||||||||||||||||||||||
PdfColorProfile | String | R/W | When PDF/A-1b:2005 or PDF/A-2b:2011 is specified for PdfVersion, the ICC profile must be specified. In that case, specify the full path of the ICC profile to this parameter. This parameter is invalid except for PDF/A-1b:2005 and PDF/A-2b:2011. | ||||||||||||||||||||||||||||
PdfOutputScale | String | W | Specifies the scaling ratio of the PDF to output. A value with a unit or % value can be specified as length. | ||||||||||||||||||||||||||||
PdfOutputHeight | String | R/W | Scales the height of the PDF to output. A value with a unit or % value can be specified as length. | ||||||||||||||||||||||||||||
PdfOutputWidth | String | R/W | Scales the width of the PDF to output. A value with a unit or % value can be specified as length. | ||||||||||||||||||||||||||||
PdfErrorOnPDFXFault | Boolean | R/W | An error is not issued when PDF/X or PDF/A is generating. |
Name | Type | R/W | Functions | ||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
SvgVersion | Int32 | R/W |
Specifies the SVG version:
|
||||||||
SvgImageProcessingType | Int32 | R/W |
Specifies how to treat images contained in the output SVG.
|
||||||||
SvgImageCopyPath | String | R/W | Specifies the destination for the copied images if 1 is specified for SvgImageProcessingType. | ||||||||
SvgGzipCompression | Boolean | R/W | Specifies whether to compress the outputted SVG into gzip format. | ||||||||
SvgSingleFile | Boolean | R/W | Specifies whether a converted result composed of multiple pages is output as a single SVG file or as multiple SVG files. If the value is true, output is as a single SVG file. If the value is false, output is as multiple SVG files. When multiple files are output, the files are named as specified in SvgFormat. This takes effect only when outputting to a file and is not valid when output is without a file name such as when streaming. | ||||||||
SvgImageRename | Boolean | R/W | When images are copied to the directory specified by SvgImageCopyPath etc., specifies whether to rename all file names to the prefix specified in SvgImagePrefix, or use the original name. When the file name is duplicated, a sequential number is added. When true is specified, all files are renamed. | ||||||||
SvgImagePrefix | String | R/W | When images are copied to the directory specified by SvgImageCopyPath, specifies the prefix of the file name. The file name will be prefixed followed by a sequential numbers only if the Default is empty. | ||||||||
SvgSinglePageNumber | Boolean | R/W | When SvgSingleFile=false is specified, specifies whether to add sequential number to the output SVG even if it has only one-page. If false it is not added to the output SVG. | ||||||||
SvgFormat | String | R/W | When the original document has multiple pages and false is specified in SvgSingleFile, each page will be output as an SVG file that has a consecutive number at the end of the file name. This parameter specifies the format of those consecutive numbers. For example, when “document.svg” is specified as the name for the output file, by specifying “-01” for SvgFormat the output files will be document-01.svg, document-02.svg and so on. If this parameter is omitted then “1” is considered to have been specified. | ||||||||
SvgEmbedAllFonts | Boolean | R/W | Specifies whether to embed fonts in the outputted SVG. | ||||||||
SvgEmbedFonts | String | R/W | Embeds the specified font in the created SVG. place commas between fonts to specify multiple fonts. | ||||||||
SvgErrorOnEmbedFault | Boolean | R/W | When true is specified, an error is issued when font embedding fails. | ||||||||
SvgImageConversion | Int32 | R/W |
Selects how to convert the images embedded in the output SVG to the following:
|
||||||||
SvgJPEGQuality | Int32 | R/W | For image formats which cannot be stored directly in SVG, if JPEG conversion is specified in SvgImageConversion, specifies the quality of the image from 1 to 100. Higher values are proportional to increased image quality, however the file size also increases. The initial value is set at 80. | ||||||||
SvgRasterizeResolution | Int32 | R/W | Specifies the rasterize-resolution value of the raster image (Changed from a vector image) from 70 to 500(dpi). SVG, EMF and WMF are rendered in SVG as vectors without being changed to raster images. | ||||||||
SvgSingleFileMaxHeight | Int32 | R/W | Specifies the maximum value of the height when assigning two or more pages to a single page when SvgSingleFile=true is specified. A unit must be assigned and specified. When SvgSingleFileMaxPages or SvgSingleFileMaxHeight is specified, (or both are specified), and the page exceeds either the maximum size (SvgSingleFileMaxHeight) or the maximum number of pages (SvgSingleFileMaxPages), Office Server Document Converter will stop converting and abort the job as an error. If this parameter is omitted, there is no limitation in the value of height. | ||||||||
SvgSingleFileMaxPages | Int32 | R/W | Specifies the maximum number of pages outputted when SvgSingleFile=true is specified. If this parameter is omitted If this parameter is omitted, “5000” is considered to be specified. When either SvgSingleFileMaxPages or SvgSingleFileMaxHeight is specified, or both are specified, and the page exceeds either the maximum size (SvgSingleFileMaxHeight) or the maximum number of pages (SvgSingleFileMaxPages), Office Server Document Converter will stop converting and abort the job as an error. | ||||||||
SvgImageDownsamplingDPI | Int32 | R/W | Specifies the resolution of the down sampling when embedding an image with 1 or more integers. When the resolution of the original image is lower than specification, it's embedded with the lower resolution. | ||||||||
SvgImageDownsamplingMethod | Int32 | R/W |
Specifies the method of compression when down sampled. If this parameter is omitted, “IMGDOWNSAMPLING_AVERAGE” is considered to be specified.
|
Name | Type | R/W | Functions | ||||||
---|---|---|---|---|---|---|---|---|---|
InxOutputMode | Int32 | R/W |
Specifies the INX output mode.
|
Name | Type | R/W | Functions |
---|---|---|---|
FlashPartiallyOutput | Boolean | R/W | When an error occurs within the document, the flash file in process will be outputted. |
FlashHidePageButton | Boolean | R/W | The buttom to navigate to the previous/next page is not displayed when outputting the flash file. |
FlashSplitPage | Boolean | R/W | Outputs Flash file per page and saves as every single file. |
FlashOutputAction | Boolean | R/W | Do not output features of ActionScript1.0, such as stop action per page, the page navigation button, linking, etc. |
FlashImageLimitSize | Long | R/W |
Specifies the number of maximum pixels of images outputted to the Flash file by the integral value. When the width or the height of the output image exceeds the specified value, it is reduced to the specified value when outputting the flash file. When this parameter is omitted, 1000 is applied. The image size that can be embedded in Flash is limited to the value of width x height with 2 raised to the 24th power (16,777,216) by the number of pixels. Note that when embedded image exceeds this size, it may not be displayed with Flash Player. |
The properties for printer settings are effective only with Windows versions.
Name | Type | R/W | Functions |
---|---|---|---|
PrnCopies | Int32 | R/W | Specifies the number of copies when outputting to a printer. If nothing is specified, the value is considered 1. |
PrnCollate | Boolean | R/W | Indicates collation of multiple copies when outputting to a printer. If it is not specified or the value false is specified, the same page is multi-copied continuously. If true is specified, the pages specified print from start to end repeatedly. |
BatchPrint | Boolean | R/W | When the value false is specified, the print dialog box is displayed when printing. If the setting is omitted or the value true is specified, the print dialog is not displayed. |
PrnFitPaper | Boolean | R/W | It print at size of paper. Default is false. |
Name | Type | R/W | Functions | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
RasterDPI | Int32 | R/W |
Specifies image size by a numerical value between 1 to 1,440(dpi) when outputting raster inmage. In the windows version when the value of this parameter is outside the range or it is omitted, a DPI value based on the font size in the image is applied. The maximum image size available to output depends on the Windows system resources such as free available memory, etc. |
||||||||||||||
RasterScale | String | R/W | When raster inmage are outputted, the reduction ratio is specified using a numerical value larger than 0 but equal to or less than 1. It can also be specified by % or px (pixel) value. When the value of this parameter is outside the range or it is omitted, the default is 1. | ||||||||||||||
RasterHeight | Int32 | R/W | Sets the maximum image height decided by RasterScale when outputting JPEG and PNG. "px" (pixel) is available as the unit. | ||||||||||||||
RasterFormat | String | R/W | Specifies the file naming format when outputtingraster inmage file. | ||||||||||||||
RasterJpegQuality | Int32 | R/W | Specifies the conversion accuracy using a value between 1 to 100(%). When this parameter is omitted, a value of 80% is used. | ||||||||||||||
RasterUseGdiPlus | Boolean | R/W | GdiPlus is used when the file is converted to raster inmage. This setting is effective only with Windows 7 or later / Windows Server 2008 or later. | ||||||||||||||
RasterMonochrome | Boolean | R/W | Specifies conversion to a monochrome image, when outputting raster inmage. | ||||||||||||||
RasterRGBProfile | String | R/W | Specifies an ICC profile for input with the full path when outputting CMYK TIFF. | ||||||||||||||
RasterCMYKProfile | String | R/W | Specifies an ICC profile for output with the full path when outputting CMYK TIFF. | ||||||||||||||
RasterGrayscale | Boolean | R/W | Outputs grayscale 256 tones. | ||||||||||||||
Raster256Color | Boolean | R/W | Outputs 256 colors | ||||||||||||||
RasterCompression | String | R/W |
Specifies the compression method when outputting TIFF / MTIFF.
|
Name | Type | R/W | Functions |
---|---|---|---|
GdiTextAntialias | Boolean | R/W | Performs the smoothing processing to text when true is specified. |
GdiLineartSmoothing | Boolean | R/W | Performs the smoothing processing to borders when true is specified. |
GdiImageSmoothing | Boolean | R/W | Performs the smoothing processing to images when true is specified. |
☞ | These Properties is effective only with Windows 7 or later / Windows Server 2008 or later. |
---|
Name | Type | R/W | Functions |
---|---|---|---|
LinkFile | Boolean | R/W | If true is specified, linked oox image file is output. |
Name | Type | R/W | Functions |
---|---|---|---|
PropertyNonOutput | Boolean | R/W | If true is specified, office property is not output. |
Name | Type | R/W | Functions |
---|---|---|---|
WatermarkText | String | R/W | Displays the specified watermark text on each page. Possible to make it multiple lines by delimiting with the line feed \n. This setting is invalid with the evaluation version. |
WatermarkFontFamily | String | R/W | Specifies the font family to the character string which you set to WatermarkText. |
WatermarkFontWeight | String | R/W | Specifies the font weight to the character string which you set to WatermarkText. Possible to specify normal, bold or the numerical value from 100 to 900. |
WatermarkFontStyle | String | R/W | Specifies the font style to the character string which you set to WatermarkText. |
WatermarkOpacity | String | R/W | Specifies the opacity to the character string which you set to WatermarkText. |
Name | Type | R/W | Functions |
---|---|---|---|
PdfAnnotation | Boolean | R/W |
Specifies whether to output PDF Annotation. Effective when inputting from PDF. |
Name | Type | R/W | Functions |
---|---|---|---|
PageNumberCorrection | Boolean | R/W | Page numbers in a table of contents are adjusted and rewritten based on the formatting result. In addition, the total number of pages displayed by inserting the page number will be rewritten to the total number of pages displayed after the formatting being finished. |
Name | Type | R/W | Functions | ||||
---|---|---|---|---|---|---|---|
DocPdfBookmarkLevel | int | R/W |
Specifies whether Word outline level is reflected on PDF bookmark hierarchy.
|
||||
DocNonOutline | Boolean | R/W | If true is specified, Word outline is not output as bookmark. |
Name | Type | R/W | Functions |
---|---|---|---|
DocTrackChange | Boolean | R/W | Outputs the Word Track Changes. Text attributes, colors, etc. of the changed part can be specified with Option Setting File. |
Name | Type | R/W | Functions |
---|---|---|---|
ContinuePageNumber | Boolean | R/W | In header/footer, page numbers are made consecutive numbers with all the sheets, the number of pages is made sum total of all the sheets. |
Name | Type | R/W | Functions |
---|---|---|---|
SheetOrderSelect | String | R/W | The specified sheets are outputted in order. Sheet numbers can be specified by numerical values separated by commas [,] or by ranges [-] in order. Numerical values for sheets currently displayed in Excel can be specified, and hidden sheets are not counted. If there is no specified sheet, the setting is ignored. It's possible to coexist with the below-mentioned xlssheetorderactivefirst. when xlssheetorderactivefirst is specified, the specified sheet will be outputted following to the specified sheets by xlssheetorderactivefirst. Even if the specified value has the same value in xlssheetorderactivefirst, it is outputted as specified. |
SheetOrderActiveFirst | Boolean | R/W | The active sheet will be outputted fisrt, then the other sheets will be outputted in order by skipping the active sheet. |
XlsSelectedSheet | Boolean | R/W | The only selected sheet in Excel will be outputted. It can be coexisted with SheetOrderSelect and SheetOrderActiveFirst. In the case of coexisting, SheetOrderSelect and SheetOrderActiveFirst will be applied first, then among the output target sheets, the selected sheet on Excel will be outputted. |
Name | Type | R/W | Functions |
---|---|---|---|
XlsOutputArea | String | R/W |
Outputs the specified cell area. Cell area is specified by a string in the format of "sheet-name!cell-area". Separates the sheet name and the cell area with "!". Cell area is specified in the format of "column-name_row-number:column-name_row-number" similar to Excel's cell area specification. If there is no sheet specified, it is ignored. If xlssheetorderactivefirst, xlssheetorder or xlssheetselected are specified, they are disabled and this option is enabled. |
Name | Type | R/W | Functions | ||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Locale | String | R/W |
The locale used for Excel conversion can be specified by the a character string code. When there is no associated locale, en-US is considered to be specified.
The supported locales are as follows:
|
Name | Type | R/W | Functions |
---|---|---|---|
RowColControlParameter | String | R/W | The column width and the line height are scaled by the specified parameter value. Comma-delimited parameter values can be specified in order of row, col (e.g. "100%,120%"). |
RowColControlFileName | String | R/W | The column width and the line height are scaled by the setting specified in the file. See also the Excel Conversion section for the description of XML file. |
XlsInfoView | Boolean | R/W | Specifies true when returning inside information of a Excel file as an error level (information). Inside information includes the default font, printer name for each seat. |
Name | Type | R/W | Functions |
---|---|---|---|
XlsPaper | String | R/W | Specifies the paper settings. Comma-delimited parameter values can be described and interpreted in order from the beginning (e.g. "A4, portrait"). 4 elements of paper size, orientation, margins and scaling can be specified. For more details, see also Excel function for paper setting. |
XlsPaperDefault | String | R/W | Specifies the default values for paper settings. Comma-delimited parameter values can be described and interpreted in order from the beginning (e.g. "custom:1000mm:1200mm,sheet:portrait,page:2:1,margin:10mm:10mm:15mm:15mm"). 4 elements of paper size, orientation, margins and scaling can be specified. For more details, see also Excel function for paper setting. |
Name | Type | R/W | Functions |
---|---|---|---|
MultiVolume | Boolean | R/W | Separates the PDF file in spreadsheet unit when converting an Excel file to PDF. |
StartVolume | long | R/W | Start volume of output when separating PDF file in spreadsheet unit. |
EndVolume | long | R/W | End volume of output when separating PDF file in spreadsheet unit. |
PdfFormat | String | R/W | Format for file naming when outputting multiple PDFs. For example, if the output file name is workbook.pdf and if you specify "-01", it will be workbook-01.pdf, workbook-02.pdf, and so on. The default value is "1". |
Name | Type | R/W | Functions |
---|---|---|---|
PptNotes | Boolean | R/W | Output Notes pages. |
Name | Type | R/W | Functions |
---|---|---|---|
OpenPassword | String | W | It's possble to cancel the password protection set to Word/Excel/Powerpoint (doc/xls/ppt/docx/xlsx/pptx) created in MS Office 97-2021 and PDF Document. Supported by Microsoft Office 2007/2010 encryption algorithms are SHA-1 hash and AES 128. Supported by Microsoft Office 2013/2016/2019/2021 encryption algorithms are SHA-512 hash and AES 128. |
Name | Type | R/W | Functions |
---|---|---|---|
TextPaperWidth TextPaperHeight |
String | R/W | Specifies the paper size when text format is specified as the input data. |
TextMarginLeft TextMarginTop TextMarginRight TextMarginBottom |
String | R/W | Specifies the margin size when text format is specified as the input data. |
TextFontFamily | String | R/W | Specifies the font family name for output when text format is specified as the input data. |
TextFontSize | String | R/W | Specifies the font size for output when the text format is specified as the input data. |
TextShowPageNumber | Boolean | R/W | Adds page numbers to the output when text format is specified as the input data. |
TextShowLineNumber | Boolean | R/W | Adds line numbers to the outputs when text format is specified as the input data. |
TextLineNumberOffset | String | R/W | When adding line numbers to the output, specifies the distance from the body text when text format is specified to as the input data. |
TextLineNumberFormat | String | R/W | Specifies the output line number format when text format is specified as the input data. |
☞ | When the original file is small, the encoding cannot be recognized and the program may fail to read the file. |
---|
Values can be added using the following units:
Representation | Meanings |
---|---|
cm | centimeter |
mm | millimeter. 1mm = 0.1cm |
in | inch. 1in = 2.54cm |
pt | point. 1pt = 1in/72 |
pc | pica. 1pc = 12pt |
jpt | 1jpt = 0.3514mm |
q | 1q = 0.25mm |
DfvObj Class provides the following methods:
Name | Return Value | Arguments | Functions |
---|---|---|---|
Dispose | None | None | Releases the resource. Call this method when you exit the object. |
Execute | None | None | Executes the conversion and outputs to the destination specified in OutputFilePath or printer specified in PrinterName. |
Clear | None | None | Initializes the conversion engine. |
GetFormattingError | None | errlist : Collections.ArrayList | Possible to call it after the conversion is completed. Acquires error information with an error level less than ExitLevel that occurred during conversion and stores it in Collections.ArrayList specified in the argument. The error information is stored in the ArrayList as an object of the XfoErrorInformation class. The XfoErrorInformation class has three properties as error information: ErrorLevel, ErrorCode, and ErrorMessage. |
GetOptionFileURI | String | index : Int32 | Gets the URL of Option Setting File from the index you specified. |
AddOptionFileURI | None | fileURI : String | Adds the URL of the XML-based Option Setting File that indicates the options for Office Server Document Converter V10.0. The contents of Option Setting File are evaluated immediately and if new properties are set, the former setting will be overwritten. |
Render | None | inputStream : Stream outputStream : Stream outDevice : String |
The following is a C# programming sample. In addition, [Install directory]/samples/dotnet includes some sample files for C# and VisualBasic.NET.