PDFsharp & MigraDoc Foundation https://forum.pdfsharp.net/ |
|
Get current page https://forum.pdfsharp.net/viewtopic.php?f=2&t=1418 |
Page 1 of 1 |
Author: | cocada [ Fri Nov 12, 2010 12:39 pm ] |
Post subject: | Get current page |
I’m implementing a application that use pdfsharp for bookmarks. The user should be able to choose a page and press the button “bookmark”. The application does the bookmark from the current page. My problem is: How to take the current page of a pdf? Thanks for any idea. |
Author: | mikesowerbutts [ Fri Nov 12, 2010 4:34 pm ] |
Post subject: | Re: Get current page |
Hi, You will need to get the page number from the application you are viewing the pdf with. I would have thought that there is an ActiveX control for Adobe Reader which you could embed into a WinForms application and then you may be able to access the current page from the ActiveX control. Then if you have the .pdf file loaded into a PdfDocument at the same time, you could bookmark the appropriate page, then re-load the .pdf in the ActiveX control? Maybe i am totally missing what you were asking, but hopefully this helps. Mike |
Author: | cocada [ Mon Nov 15, 2010 4:15 pm ] |
Post subject: | Re: Get current page |
Thank you for your answer. I'll try your solution. I'm not using the ActiveX control for Adobe Reader because my app is a wpf application and this control need a windowsformhost control. and I think it is slower as using the webbrowser control direct. |
Page 1 of 1 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |