PdfPrintSettings (com.equo.chromium 106.0.28 API)
com.equo.chromium.utils

Class PdfPrintSettings



  • public class PdfPrintSettings
    extends Object
    PDF print settings for browser.printToPDF()
    • Field Detail

      • header_footer_enabled

        public boolean header_footer_enabled
        Set to true to print headers and footers or false to not print headers and footers.
      • header_footer_title

        public String header_footer_title
        Page title to display in the header. Only used if header_footer_enabled is set to true.
      • header_footer_url

        public String header_footer_url
        URL to display in the footer. Only used if header_footer_enabled is set to true.
      • landscape

        public boolean landscape
        Set to true for landscape mode or false for portrait mode.
      • backgrounds_enabled

        public boolean backgrounds_enabled
        Set to true to print background graphics or false to not print background graphics.
      • page_width

        public int page_width
        Specifies the width of the output page in microns (1 millimeter = 1000 microns). If either of these values is less than or equal to zero then the default paper size will be used as returned by the print_handler. A4 is 210 x 297 mm which would be 210000 x 297000 microns. US Letter is 215.9 x 279.4 mm which would be 215900 x 279400 microns.
      • page_height

        public int page_height
        Specifies the height of the output page in microns (1 millimeter = 1000 microns). If either of these values is less than or equal to zero then the default paper size will be used as returned by the print_handler. A4 is 210 x 297 mm which would be 210000 x 297000 microns. US Letter is 215.9 x 279.4 mm which would be 215900 x 279400 microns.
      • selection_only

        public boolean selection_only
        Set to true to print the selection only or false to print all.
      • scale_factor

        public int scale_factor
        The percentage to scale the PDF by before printing (e.g. 50 is 50%). If this value is less than or equal to zero the default value of 100 will be used.
      • margin_top

        public int margin_top
        Specifies the top margin. Margins in points. Only used if |margin_type| is set to PDF_PRINT_MARGIN_CUSTOM.
      • margin_right

        public int margin_right
        Specifies the right margin. Margins in points. Only used if |margin_type| is set to PDF_PRINT_MARGIN_CUSTOM.
      • margin_bottom

        public int margin_bottom
        Specifies the bottom margin. Margins in points. Only used if |margin_type| is set to PDF_PRINT_MARGIN_CUSTOM.
      • margin_left

        public int margin_left
        Specifies the left margin. Margins in points. Only used if |margin_type| is set to PDF_PRINT_MARGIN_CUSTOM.
    • Constructor Detail

      • PdfPrintSettings

        public PdfPrintSettings()

Copyright © 2024. All rights reserved.