Question about using cefsharp as PDF Renderer #4570
Closed
CanadianHusky
started this conversation in
Ideas
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 |
0 replies
|
Thank you, it works. |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
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 BitmapMy basic search in the Documentation did not return anything about existing functionality to manage PDFs inside the cefbrowser, did I miss something ?
Thank you
All reactions