Package org.cef.misc

Class CefPdfPrintSettings


  • public class CefPdfPrintSettings
    extends java.lang.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 java.lang.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 java.lang.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
        Output page size 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
      • 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
        Margins in points. Only used if |margin_type| is set to PDF_PRINT_MARGIN_CUSTOM.
      • margin_right

        public int margin_right
      • margin_bottom

        public int margin_bottom
      • margin_left

        public int margin_left
    • Constructor Detail

      • CefPdfPrintSettings

        public CefPdfPrintSettings()