Page 1 of 1

Re: Printing to pdf pages with frames

Posted: Sun Oct 21, 2018 7:59 am
by salvadordf
Hi,

Perhaps the "Save as..." dialog is setting the focus on the TCEFWindowParent component after the user selects the PDF name.

If you are using the MiniBrowser demo try setting CEFWindowParent1.TabStop to FALSE.

If you still have problems, please provide a URL and all the details to reproduce this issue.

Re: Printing to pdf pages with frames

Posted: Tue Oct 23, 2018 7:45 am
by salvadordf
Something similar is described in this CEF issue :
https://bitbucket.org/chromiumembedded/ ... content-is

The solution is to set the scale factor in the PDF printer settings like this :

Code: Select all

Chromium1.PDFPrintOptions.scale_factor := 50;
These are the code comments for the "scale_factor" setting in CEF :

Code: Select all

  ///
  // 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.
  ///
Try different values. Perhaps 50 is too low but I tested it and it prints the whole document.
You don't need to set the focus in that frame with this solution.

Re: Printing to pdf pages with frames

Posted: Thu Oct 25, 2018 5:51 pm
by salvadordf
Please, if you have the fix for the CEF3 binaries create a "pull request" in the CEF3 project.

Thank you!