Question about using cefsharp as PDF Renderer #4570
Replies: 2 comments 1 reply
-
The PDF Viewer is an emdedded control that exposes very little functionality. You can navigate to a specific page by adding an anchor to the url ( If you want complete control over the PDF, including screen grabs, then you can embed PDFJS, there is a tutorial here: https://github.com/cefsharp/CefSharp/wiki/Embedding-PDF.JS-in-CEFSharp |
Beta Was this translation helpful? Give feedback.
-
Thank you, it works. |
Beta Was this translation helpful? Give feedback.
-
Hello,
I use cefsharp as a PDF Renderer inside Winforms with pseude code like
cefbrowser.Load("file:///c:/temp/test.pdf");
The content is multipage PDF files. The rendering speed and thumbnail preview generation speed of cefsharp is brilliantly fast!
My Questions:
1- How can I tell the browser to navigate to Page N in the existing PDF without reloading the existing file ?
example:
Sub cefbrowser.PDF_NavigateToPage(Page)
2- How can I get the rendered image of Page N, as a .Net compatible Bitmap/Image at a certain DPI?
example :
Function cefbrowser.PDF_RenderPageToBitmap(Page, Dpi) as Bitmap
My basic search in the Documentation did not return anything about existing functionality to manage PDFs inside the cefbrowser, did I miss something ?
Thank you
Beta Was this translation helpful? Give feedback.
All reactions