API Help
Eplan.EplApi.HEServices Namespace / Export Class / PdfPages Method / PdfPages(String,String,String[],String,DegreeOfColor,Boolean,String,Boolean) Method
Name of project with full path, from which a pages will be exported.
The name of the settings schema. If no name is given, last used will be used. The Schemas are located in "USER.PDFExportGUI.SCHEMAS".
Array of page names, which will be export. ArrayList should contain only Pages of one project.
Name of the PDF \file to be generated. If left blank, the output file name will be determined by the settings in the schema. If a path name is given, it will override the directory setting in the schema. If the directory does not exist, it will be created. If the user does not have the necessary rights to access the file system, an exception will be thrown. If you set a \file name without the extension ".pfd", the extension will be added.
Determines the color setting of the PDF file. "BlackAndWhite" will make all elements including bitmaps black on a white background. "GreyLevel" will use shades of grey for every item. Color will use the full colors.
3D models will be exported as well as the pages. This requires a separate license for 3D.
Language of exported pages
Use print margins. Parameter overrides setting in scheme.

PdfPages(String,String,String[],String,DegreeOfColor,Boolean,String,Boolean) Method
Exports pages of one project as PDF file.
Syntax

Parameters

strFullLinkFileName
Name of project with full path, from which a pages will be exported.
strSchema
The name of the settings schema. If no name is given, last used will be used. The Schemas are located in "USER.PDFExportGUI.SCHEMAS".
arrayPageNames
Array of page names, which will be export. ArrayList should contain only Pages of one project.
strPdfExportFileName
Name of the PDF \file to be generated. If left blank, the output file name will be determined by the settings in the schema. If a path name is given, it will override the directory setting in the schema. If the directory does not exist, it will be created. If the user does not have the necessary rights to access the file system, an exception will be thrown. If you set a \file name without the extension ".pfd", the extension will be added.
color
Determines the color setting of the PDF file. "BlackAndWhite" will make all elements including bitmaps black on a white background. "GreyLevel" will use shades of grey for every item. Color will use the full colors.
bExportModel
3D models will be exported as well as the pages. This requires a separate license for 3D.
strLanguage
Language of exported pages
bUsePrintMargins
Use print margins. Parameter overrides setting in scheme.
Exceptions
ExceptionDescription
Thrown in case of invalid arguments.
Thrown if null was passed to a parameter
Thrown if an invalid value was passed to a parameter, e.g. dZoomLevel is out of range.
No user rights to create files on the \file system.
The internal interface for image export could not be created.
Errors occurred during export or when project has no pages to export. See the exception message for details.
Thrown if an invalid schema is given
See Also