pycatia.in_interfaces.page_setup¶
Module initially auto generated using V5Automation files from CATIA V5 R31 on 2025-09-13 14:18:55.806894
Warning
The notes denoted “CAA V5 Visual Basic Help” are to be used as reference only. They are there as a guide as to how the visual basic / catscript functions work and thus help debugging in pycatia.
- class pycatia.in_interfaces.page_setup.PageSetup(com_object)¶
Note
CAA V5 Visual Basic Help (2025-09-13 14:18:55.806894)
System.IUnknownSystem.IDispatchSystem.CATBaseUnknownSystem.CATBaseDispatchSystem.AnyObjectPageSetupRepresents the page setup.The page setup is the object that stores data which defines how your documentsand images are actually printed on paper. This data includes namely the papersize, the orientation, the bottom, top, right, and left margins, the zoomfactor, the banner, and the printing quality.- property banner: str¶
Note
- CAA V5 Visual Basic Help (2025-09-13 14:18:55.806894)
- Property Banner() As CATBSTRReturns or sets the banner text. The banner text is added to the print andcan include variables, such as the user who prints, the date and time ofprinting. Available variables are:$USERThe user name$HOSTThe workstation name$SCALEThe print scale$TIMEThe print time$DATEThe print date$DAYThe print day$MONTHThe print month$YEARThe print yearThe default banner is:Printed by $USER on $DATE $TIMEExample:This example sets the banner text to the following:Printed by $USER at scale $SCALE on $MONTH/$DAY/$YEARfor the SetupForMyPrint page setup.SetupForMyPrint.Banner = “Printed by $USER at scale $SCALE on $MONTH/$DAY/$YEAR”
- Returns:
str
- property banner_position: int¶
Note
- CAA V5 Visual Basic Help (2025-09-13 14:18:55.806894)
- Property BannerPosition() As CatBannerPositionReturns or sets the banner position. The banner can be located on the top,bottom, left, or right side of the page. catBannerPositionNone removes thebanner.Example:This example sets the banner on the top side of the page for theSetupForMyPrint page setup.SetupForMyPrint.BannerPosition = CatBannerPositionTop
- Returns:
int
- property banner_size: float¶
Note
- CAA V5 Visual Basic Help (2025-09-13 14:18:55.806894)
- Property BannerSize() As floatReturns or sets Banner Size. Banner size could range from 0.1 mm to 10.0 mmDefault value is 2.4 mmExample:This example sets banner size for the SetupForMyPrint pagesetup.SetupForMyPrint.BannerSize = 1.1
- Returns:
float
- property bottom: float¶
Note
- CAA V5 Visual Basic Help (2025-09-13 14:18:55.806894)
- Property Bottom() As floatReturns or sets the lower left corner location with respect to the bottomof the sheet of paper. This is the distance of the document or the image toprint lower left corner to the paper lower left corner.Example:This example sets the location of the lower left corner of the documentor the image to print at 40 mm from the paper lower left corner for theSetupForMyPrint page setup.SetupForMyPrint.Bottom = 40
- Returns:
float
- property bottom_margin: float¶
Note
- CAA V5 Visual Basic Help (2025-09-13 14:18:55.806894)
- Property BottomMargin() As floatReturns or sets the bottom margin. The bottom margin is a strip in whichnothing is printed, located at the bottom of the page, which height isexpressed in mm.Example:This example sets the bottom margin for the SetupForMyPrint page setupto 10 mm.SetupForMyPrint.BottomMargin = 10
- Returns:
float
- property color: int¶
Note
- CAA V5 Visual Basic Help (2025-09-13 14:18:55.806894)
- Property Color() As CatPrintColorReturns or sets the color mode to use when printing.Example:This example sets the color mode to GreyScale for the SetupForMyPrintpage setup.SetupForMyPrint.Color = catColorGreyScale
- Returns:
int
- property dpi: float¶
Note
- CAA V5 Visual Basic Help (2025-09-13 14:18:55.806894)
- Property Dpi() As floatReturns or sets the printing dpi.Example:This example sets the printing dpi for the SetupForMyPrint pagesetup.SetupForMyPrint.Dpi = 150.
- Returns:
float
- property gamma: float¶
Note
- CAA V5 Visual Basic Help (2025-09-13 14:18:55.806894)
- Property Gamma() As floatReturns or sets Gamma factor for print. Gamma value could range from 0.1 to5.0 Default value is 1.0Example:This example sets Gamma factor for the SetupForMyPrint pagesetup.SetupForMyPrint.Gamma = 1.2
- Returns:
float
- property left: float¶
Note
- CAA V5 Visual Basic Help (2025-09-13 14:18:55.806894)
- Property Left() As floatReturns or sets the lower left corner location with respect to the left ofthe sheet of paper. This is the distance of the document or the image to printlower left corner to the paper lower left corner.Example:This example sets the location of the lower left corner of the documentor the image to print at 25 mm from the paper lower left corner for theSetupForMyPrint page setup.SetupForMyPrint.Left = 25
- Returns:
float
- property left_margin: float¶
Note
- CAA V5 Visual Basic Help (2025-09-13 14:18:55.806894)
- Property LeftMargin() As floatReturns or sets the left margin. The left margin is a strip in whichnothing is printed, located at the left of the page, which width is expressedin mm.Example:This example sets the left margin for the SetupForMyPrint page setup to10 mm.SetupForMyPrint.LeftMargin = 10
- Returns:
float
- property line_cap: int¶
Note
- CAA V5 Visual Basic Help (2025-09-13 14:18:55.806894)
- Property LineCap() As CatPrintLineCapReturns or sets Line cap for print. Refer to CatPrintLineCap Default valueis catPrintFlatExample:This example sets Line cap for the SetupForMyPrint pagesetup.SetupForMyPrint.LineCap = catPrintFlat
- Returns:
int
- property line_type_overlapping_check: bool¶
Note
- CAA V5 Visual Basic Help (2025-09-13 14:18:55.806894)
- Property LineTypeOverlappingCheck() As booleanReturns or sets text Line type overlap check option for print. Defaultvalue is FALSEExample:This example sets Line type overlapping check option for theSetupForMyPrint page setup.SetupForMyPrint.LineTypeOverlappingCheck = True
- Returns:
bool
- property line_type_specification: int¶
Note
- CAA V5 Visual Basic Help (2025-09-13 14:18:55.806894)
- Property LineTypeSpecification() As CatPrintLineSpecificationReturns or sets Line type specification for print. Refer toCatPrintLineSpecification Default value iscatPrintAbsoluteExample:This example sets Line type specification for the SetupForMyPrint pagesetup.SetupForMyPrint.LineTypeSpecification = catPrintAbsolute
- Returns:
int
- property line_width_specification: int¶
Note
- CAA V5 Visual Basic Help (2025-09-13 14:18:55.806894)
- Property LineWidthSpecification() As CatPrintLineSpecificationReturns or sets Line width specification for print. Refer toCatPrintLineSpecification Default value iscatPrintAbsoluteExample:This example sets Line width specification for the SetupForMyPrint pagesetup.SetupForMyPrint.LineWidthSpecification = catPrintAbsolute
- Returns:
int
- property logo: str¶
Note
- CAA V5 Visual Basic Help (2025-09-13 14:18:55.806894)
- Property Logo() As CATBSTRReturns or sets the file containing the logo image. The logo is printedwith the banner.Example:This example sets the logo file to the following file:e:userspsrImagesLogo.tif for the SetupForMyPrint pagesetup.SetupForMyPrint.Logo = “e:userspsrImagesLogo.tif”
- Returns:
str
- property logo_visibility: bool¶
Note
- CAA V5 Visual Basic Help (2025-09-13 14:18:55.806894)
- Property LogoVisibility() As booleanReturns or sets LogoVisibility option for print. Default value isFALSEExample:This example sets LogoVisibility option for the SetupForMyPrint pagesetup.SetupForMyPrint.LogoVisibility = True
- Returns:
bool
- property maximum_size: bool¶
Note
- CAA V5 Visual Basic Help (2025-09-13 14:18:55.806894)
- Property MaximumSize() As booleanReturns or sets whether the document or the image should be printed at themaximum size with respect to the page size and margins.True if the document or the image is printed with the maximum size. Thisoverrides the location properties, that is Left and Bottom, and the Zoomproperty values.Example:This example requests to print the document or the image with theSetupForMyPrint page setup at maximum size.SetupForMyPrint.MaximumSize = True
- Returns:
bool
- property orientation: int¶
Note
- CAA V5 Visual Basic Help (2025-09-13 14:18:55.806894)
- Property Orientation() As CatPaperOrientationReturns or sets the paper orientation.Example:This example sets the paper orientation for the SetupForMyPrint pagesetup to catPaperLandscape.SetupForMyPrint.Orientation = catPaperLandscape
- Returns:
int
- property paper_height: float¶
Note
- CAA V5 Visual Basic Help (2025-09-13 14:18:55.806894)
- Property PaperHeight() As floatReturns or sets the paper height.Example:This example sets the page height for the SetupForMyPrint page setup to297 mm..SetupForMyPrint.PaperHeight = 297
- Returns:
float
- property paper_size: int¶
Note
- CAA V5 Visual Basic Help (2025-09-13 14:18:55.806894)
- Property PaperSize() As CatPaperSizeReturns or sets the paper size.Example:This example sets the page size for the SetupForMyPrint page setup tocatPaperA4.SetupForMyPrint.PaperSize = catPaperA4
- Returns:
int
- property paper_width: float¶
Note
- CAA V5 Visual Basic Help (2025-09-13 14:18:55.806894)
- Property PaperWidth() As floatReturns or sets the paper width.Example:This example sets the page width for the SetupForMyPrint page setup to210 mm..SetupForMyPrint.PaperWidth = 210
- Returns:
float
- property print_rendering_mode: int¶
Note
- CAA V5 Visual Basic Help (2025-09-13 14:18:55.806894)
- Property PrintRenderingMode() As CatPrintRenderingModeReturns or sets the printing rendering mode.Example:This example sets the printing rendering mode for the SetupForMyPrintpage setup.SetupForMyPrint.PrintRenderingMode = CatPrintRenderingModeDefault
- Returns:
int
- property quality: int¶
Note
- CAA V5 Visual Basic Help (2025-09-13 14:18:55.806894)
- Property Quality() As CatPrintQualityReturns or sets the printing quality. Refer toCatPrintQualityExample:This example sets the printing quality to draft for the SetupForMyPrintpage setup.SetupForMyPrint.Quality = catPrintQualityDraft
- Returns:
int
- property right_margin: float¶
Note
- CAA V5 Visual Basic Help (2025-09-13 14:18:55.806894)
- Property RightMargin() As floatReturns or sets the right margin. The right margin is a strip in whichnothing is printed, located at the right of the page, which width is expressedin mm.Example:This example sets the right margin for the SetupForMyPrint page setupto 12 mm.SetupForMyPrint.RightMargin = 12
- Returns:
float
- property rotation: int¶
Note
- CAA V5 Visual Basic Help (2025-09-13 14:18:55.806894)
- Property Rotation() As CatImageRotationReturns or sets the rotation of the document or the image to print.Rotations angles can be 0, 90, 180, and 270 degrees countedclockwise.Example:This example sets the rotation to 90 degrees clockwise for theSetupForMyPrint page setup.SetupForMyPrint.Rotation = catImageRotation90
- Returns:
int
- property scaling1_to1: bool¶
Note
- CAA V5 Visual Basic Help (2025-09-13 14:18:55.806894)
- Property Scaling1To1() As booleanReturns or sets whether the document or the image should be printed with azoom factor equals to 1 and the image to print lower left corner on the paperlower corner.True if the document or the image is printed with the zoom factor equals to1 and the image to print lower left corner on the paper lower corner. Thisoverrides the location properties, that is Left and Bottom, and the Zoomproperty values.Example:This example requests to print the document or the image with theSetupForMyPrint page setup.SetupForMyPrint.Scaling1To1 = True
- Returns:
bool
- property text_blanking: bool¶
Note
- CAA V5 Visual Basic Help (2025-09-13 14:18:55.806894)
- Property TextBlanking() As booleanReturns or sets the text blanking option in print Text will be printed inblanking rectangle Default value is FALSEExample:This example sets the text blanking option for the SetupForMyPrint pagesetup.SetupForMyPrint.TextBlanking = True
- Returns:
bool
- property text_scaling: bool¶
Note
- CAA V5 Visual Basic Help (2025-09-13 14:18:55.806894)
- Property TextScaling() As booleanReturns or sets text scaling option for print. Default value isTRUEExample:This example sets text scaling option for the SetupForMyPrint pagesetup.SetupForMyPrint.TextScaling = True
- Returns:
bool
- property top_margin: float¶
Note
- CAA V5 Visual Basic Help (2025-09-13 14:18:55.806894)
- Property TopMargin() As floatReturns or sets the top margin. The top margin is a strip in which nothingis printed, located at the top of the page, which height is expressed inmm.Example:This example sets the top margin for the SetupForMyPrint page setup to15 mm.SetupForMyPrint.TopMargin = 15
- Returns:
float
- property use3_d_accuracy: bool¶
Note
- CAA V5 Visual Basic Help (2025-09-13 14:18:55.806894)
- Property Use3DAccuracy() As booleanReturns or sets Use3DAccuracy option for print. Default value isFALSEExample:This example sets Use3DAccuracy option for the SetupForMyPrint pagesetup.SetupForMyPrint.Use3DAccuracy = True
- Returns:
bool
- property use_image_size: bool¶
Note
- CAA V5 Visual Basic Help (2025-09-13 14:18:55.806894)
- Property UseImageSize() As booleanReturns or sets the paper size to the image size.Example:This example sets the paper size to image size for the SetupForMyPrintpage setup.SetupForMyPrint.UseImageSize = True
- Returns:
bool
- property white_vectors_in_black: bool¶
Note
- CAA V5 Visual Basic Help (2025-09-13 14:18:55.806894)
- Property WhiteVectorsInBlack() As booleanReturns or sets the white vectors in black option. white vectors will beprinted in black if set to True Default value is TRUEExample:This example sets the Print White Vectors In Black option for theSetupForMyPrint page setup.SetupForMyPrint.WhiteVectorsInBlack = True
- Returns:
bool
- property zoom: float¶
Note
- CAA V5 Visual Basic Help (2025-09-13 14:18:55.806894)
- Property Zoom() As floatReturns or sets the zoom factor to use when printing.Example:This example sets the zoom factor to 1.5 for the SetupForMyPrint pagesetup.SetupForMyPrint.Zoom = 1.5
- Returns:
float