PDF Print - Set page range

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.

PDF Print - Set page range

Postby arunsivan » Thu Aug 06, 2020 6:06 am

Hi all,

Is there any way to specify the range of pages while we trigger the Print PDF (GetHost()->PrintToPDF(...)) functionality in CEF? I have gone thru the documentation for CefPdfPrintSettings, but this doesnot provide it. Any other class/function can we invoke to specify it?

Thanks
Arun Sivan
arunsivan
Newbie
 
Posts: 1
Joined: Thu Aug 06, 2020 6:01 am

Re: PDF Print - Set page range

Postby amaitland » Thu Aug 06, 2020 3:24 pm

You should be able to use DevTools to achieve this https://chromedevtools.github.io/devtoo ... printToPDF

CEF now supports issuing DevTools commands directly see https://bitbucket.org/chromiumembedded/ ... ation-over
Maintainer of the CefSharp project.
amaitland
Virtuoso
 
Posts: 1292
Joined: Wed Jan 14, 2015 2:35 am


Return to Support Forum

Who is online

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