PDFsharp & MigraDoc Foundation
https://forum.pdfsharp.net/

Is it possible to build a simple document manipulator?
https://forum.pdfsharp.net/viewtopic.php?f=2&t=1362
Page 1 of 1

Author:  kerrywales [ Sun Oct 03, 2010 2:44 pm ]
Post subject:  Is it possible to build a simple document manipulator?

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 :?:

Author:  Thomas Hoevel [ Mon Oct 04, 2010 7:53 am ]
Post subject:  Re: Is it possible to build a simple document manipulator?

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.

Author:  ebang [ Fri Oct 08, 2010 8:38 pm ]
Post subject:  Re: Is it possible to build a simple document manipulator?

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

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/