PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Fri Sep 27, 2024 4:05 am

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Get current page
PostPosted: Fri Nov 12, 2010 12:39 pm 
Offline

Joined: Fri Nov 12, 2010 11:19 am
Posts: 2
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.


Top
 Profile  
Reply with quote  
 Post subject: Re: Get current page
PostPosted: Fri Nov 12, 2010 4:34 pm 
Offline
Supporter

Joined: Fri May 15, 2009 3:28 pm
Posts: 96
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


Top
 Profile  
Reply with quote  
 Post subject: Re: Get current page
PostPosted: Mon Nov 15, 2010 4:15 pm 
Offline

Joined: Fri Nov 12, 2010 11:19 am
Posts: 2
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.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 121 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Privacy Policy, Data Protection Declaration, Impressum
Powered by phpBB® Forum Software © phpBB Group