Eplan Platform API
Eplan.EplApi.HEServices Namespace / Export Class / PdfPages Method / PdfPages(ArrayList,String,String,DegreeOfColor,Boolean,String,Boolean) Method
Array of Pages to be exported. ArrayList should contain only Pages of one project.
The name of the settings scheme. If no name is given, the last used scheme will be used. The schemes are located in "USER.PDFExportGUI.SCHEMAS".
Name of the PDF \file to be generated. If left blank, the output file name will be determined by the settings in the scheme. If a path name is given, it will override the directory setting in the scheme. 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 or languages of exported pages. To set more than one language, use comma as separator (no blank spaces), e.g. "it_IT,en_US". This parameter does not take effect for any texts set to the variable language. Even if the "Alternative languages" option is set in the "PDF output languages" settings of the project, the alternative languages from the project settings does not affect the export language. This parameter will only make the changes where the display language is used.
Use print margins. Parameter overrides setting in scheme.

In This Topic
    PdfPages(ArrayList,String,String,DegreeOfColor,Boolean,String,Boolean) Method
    In This Topic
    Exports pages of one project as PDF file.
    Syntax

    Parameters

    Parameter NameDescription
    arrayPagesArray of Pages to be exported. ArrayList should contain only Pages of one project.
    strSchemaThe name of the settings scheme. If no name is given, the last used scheme will be used. The schemes are located in "USER.PDFExportGUI.SCHEMAS".
    strPdfExportFileNameName of the PDF \file to be generated. If left blank, the output file name will be determined by the settings in the scheme. If a path name is given, it will override the directory setting in the scheme. 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.
    colorDetermines 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.
    bExportModel3D models will be exported as well as the pages. This requires a separate license for 3D.
    strLanguageLanguage or languages of exported pages. To set more than one language, use comma as separator (no blank spaces), e.g. "it_IT,en_US". This parameter does not take effect for any texts set to the variable language. Even if the "Alternative languages" option is set in the "PDF output languages" settings of the project, the alternative languages from the project settings does not affect the export language. This parameter will only make the changes where the display language is used.
    bUsePrintMarginsUse 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 scheme is given
    Thrown when strLanguage is not available in project translation.
    See Also