it seems that printToPDF is broken at least on Mac.
- No honoring of print stylesheet
- not working pagesize attributes (seems to be always A3, no matter what I use for size...)
- pdf is always 1 page, regardless of size of content.
Is there any pointer where to look at? I would be happy to help fixing this...
my CefPdfPrintSettings are:
- Code: Select all
CefPdfPrintSettings pdfSettings;
pdfSettings.backgrounds_enabled = 0;
pdfSettings.header_footer_enabled = 0;
CefString(&pdfSettings.header_footer_title).FromASCII("");
CefString(&pdfSettings.header_footer_url).FromASCII("");
pdfSettings.margin_bottom = 0;
pdfSettings.margin_top = 0;
pdfSettings.margin_left = 0;
pdfSettings.margin_right = 0;
pdfSettings.margin_type = PDF_PRINT_MARGIN_NONE;
pdfSettings.landscape = 0;
pdfSettings.selection_only = 0;
pdfSettings.scale_factor = 100;
pdfSettings.page_height = 0; //297*1000; //Default A4
pdfSettings.page_width = 0; //210*1000; //Default A4