PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Sun Jul 14, 2024 12:51 pm

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
PostPosted: Sun Oct 03, 2010 2:44 pm 
Offline

Joined: Sun Oct 03, 2010 2:10 pm
Posts: 1
I am writing a simple scan to pdf program which then allows simple manipulation of the pages in the scanned in document.
This includes:
a. deleting an existing page (unwanted scan created pages)
b. rotate a page (scanned in the wrong way up, or wrong orientation for the scanned in document).

My scan code is working fine and produces a pdf document.

I know want to show the document to the user within a form. The user can decide to leave the page, delete the page or rotate the page 90 degrees clockwise or anti-clockwise.

I know there is no "preview" but I am hoping that I can get to the "pages" and each page (which is a scanned image) can be displayed.

In the loaded PDF I need the page to be able to be rotated (e.g. to create a landscape document) or deleted and then the "accepted" document is saved.

I know this can be done using PDFToolkit (which is an excellent product) but the product is a bit over the top for such a simple requirement. Can this functionality be carried out with PDFSharp?

Regards

Kerry :?:


Top
 Profile  
Reply with quote  
PostPosted: Mon Oct 04, 2010 7:53 am 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3101
Location: Cologne, Germany
Hi!
kerrywales wrote:
I know there is no "preview" [...]

You can invoke Adobe Reader to display PDF files - like e. g. Internet Explorer does it.

One way I can think of: create a temporary PDF with a single page only and display that. Let the user decide what to do with that page.
Then either show the corrected (i. e. rotated) page (beginner mode) or jump directly to the next page (expert mode).

This should be rather quick because you only create single-page extracts from an opened PDF file.

When all pages are handled and user selects Save, then create a new file containing all required pages in the correct orientation.

_________________
Regards
Thomas Hoevel
PDFsharp Team


Top
 Profile  
Reply with quote  
PostPosted: Fri Oct 08, 2010 8:38 pm 
Offline

Joined: Fri Oct 08, 2010 6:11 pm
Posts: 2
Hi,

This can definately be done
The current project I am working on is also a scan project and
I have done pretty much all the functionality you mentioned using the
adobe reader active x as my display


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 24 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