PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Wed Apr 24, 2024 3:35 pm

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Fri Apr 04, 2008 2:14 pm 
Offline

Joined: Thu Apr 03, 2008 2:48 pm
Posts: 4
I would like to use pdfSharp to introduce text comments in existing pdfs.

In VB I found how to write text over existing pdf page. However, I need the position of the text in the page to be indicated by the user.

For this a preview of the page would be needed and the position in the page where the user clicks to be retrieved.

1) Is it possible to preview existing pdfs using the PagePreview form? (similar to what XGraphicslab project does).

2) How to get the position of a point in the PagePreview that is clicked by the user.

I would appreciate any suggestions. Thanks in advance.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Mon Apr 07, 2008 7:43 am 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3096
Location: Cologne, Germany
Re: 1)
You can use eg. GhostScript to create image files from PDF pages.

Re: 2)
If you use image files created from PDF pages, you might write your own viewer that gives you the mouse clicks.
You have the source code of the viewer, therefore it's possible to add a handler for the mouse click events (if it doesn't exist yet); but you'd have to create a temporary PDF file to preview the images you created previously, so I think writing an own preview could be worth the time here.

_________________
Regards
Thomas Hoevel
PDFsharp Team


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

All times are UTC


Who is online

Users browsing this forum: Google [Bot] and 207 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