CEF PDF Printing on Mac broken

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

CEF PDF Printing on Mac broken

Postby pkirchner » Thu Jun 07, 2018 2:20 pm

Hi,

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
Last edited by pkirchner on Fri Jun 08, 2018 2:04 am, edited 1 time in total.
pkirchner
Newbie
 
Posts: 6
Joined: Sat Jun 07, 2014 3:48 pm

Re: CEF PDF Printing on Mac broken

Postby magreenblatt » Thu Jun 07, 2018 5:28 pm

What macOS and CEF version? How does the Tests > Print to PDF option behave in cefclient?
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: CEF PDF Printing on Mac broken

Postby pkirchner » Fri Jun 08, 2018 1:33 am

MacOS 10.13.5
CEf 3.3396.1775

CefClient behaves the same when using Tests/Output To PDF.
pkirchner
Newbie
 
Posts: 6
Joined: Sat Jun 07, 2014 3:48 pm

Re: CEF PDF Printing on Mac broken

Postby magreenblatt » Fri Jun 08, 2018 11:05 am

Please add a bug.
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: CEF PDF Printing on Mac broken

Postby pkirchner » Mon Jun 11, 2018 5:23 am

pkirchner
Newbie
 
Posts: 6
Joined: Sat Jun 07, 2014 3:48 pm


Return to Support Forum

Who is online

Users browsing this forum: Google [Bot] and 93 guests