Chromium Embedded Framework (CEF)  106.0.15+gbb70d04+chromium-106.0.5249.12
cef_pdf_print_settings_t Struct Reference

Structure representing PDF print settings. More...

#include "include/internal/cef_types.h"

Public Attributes

cef_string_t header_footer_title
 Page title to display in the header. More...
 
cef_string_t header_footer_url
 URL to display in the footer. More...
 
int page_width
 Output page size in microns. More...
 
int page_height
 
int scale_factor
 The percentage to scale the PDF by before printing (e.g. More...
 
int margin_top
 Margins in points. More...
 
int margin_right
 
int margin_bottom
 
int margin_left
 
cef_pdf_print_margin_type_t margin_type
 Margin type. More...
 
int header_footer_enabled
 Set to true (1) to print headers and footers or false (0) to not print headers and footers. More...
 
int selection_only
 Set to true (1) to print the selection only or false (0) to print all. More...
 
int landscape
 Set to true (1) for landscape mode or false (0) for portrait mode. More...
 
int backgrounds_enabled
 Set to true (1) to print background graphics or false (0) to not print background graphics. More...
 

Detailed Description

Structure representing PDF print settings.

Member Data Documentation

◆ backgrounds_enabled

int cef_pdf_print_settings_t::backgrounds_enabled

Set to true (1) to print background graphics or false (0) to not print background graphics.

◆ header_footer_enabled

int cef_pdf_print_settings_t::header_footer_enabled

Set to true (1) to print headers and footers or false (0) to not print headers and footers.

◆ header_footer_title

cef_string_t cef_pdf_print_settings_t::header_footer_title

Page title to display in the header.

Only used if |header_footer_enabled| is set to true (1).

◆ header_footer_url

cef_string_t cef_pdf_print_settings_t::header_footer_url

URL to display in the footer.

Only used if |header_footer_enabled| is set to true (1).

◆ landscape

int cef_pdf_print_settings_t::landscape

Set to true (1) for landscape mode or false (0) for portrait mode.

◆ margin_bottom

int cef_pdf_print_settings_t::margin_bottom

◆ margin_left

int cef_pdf_print_settings_t::margin_left

◆ margin_right

int cef_pdf_print_settings_t::margin_right

◆ margin_top

int cef_pdf_print_settings_t::margin_top

Margins in points.

Only used if |margin_type| is set to PDF_PRINT_MARGIN_CUSTOM.

◆ margin_type

cef_pdf_print_margin_type_t cef_pdf_print_settings_t::margin_type

Margin type.

◆ page_height

int cef_pdf_print_settings_t::page_height

◆ page_width

int cef_pdf_print_settings_t::page_width

Output page size in microns.

If either of these values is less than or equal to zero then the default paper size (A4) will be used.

◆ scale_factor

int cef_pdf_print_settings_t::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.

◆ selection_only

int cef_pdf_print_settings_t::selection_only

Set to true (1) to print the selection only or false (0) to print all.


The documentation for this struct was generated from the following file: