Read PDF and Extract page ASP.Net - c#

We ask the our users to print of a multi page form, fill it in, scan it and upload it to our site.
I need to be able to programmaticly find one specific page from the uploaded pdf based on a pattern that I can add (such as a Cross or a barcode) and then split the pdf to pick up that one page.
A pdf text reader won't work because, the pdf is scanned in.
Any suggestions on how to go about it would be helpful.

Related

Open link in a pdf(already loaded into an Iframe) into another iframe

I have been given a task to load a pdf into an iframe. That pdf contains numerous links that points to another pdf. On clicking any link I have to show the destination in another pdf.That pdf should be loaded into second iframe. I am in the middle of nowhere in this situation and I am new in handling pdfs. Please suggest what should be done. I can modify the source pdf using itextsharp(if needed). I am using c#.

Get Current Page in a PDF in windows application

I have a application where I have a pdf to show. I used AxAcroPDFLib. I can successfully show any pdf in that control. Now I want to get the current page of that pdf. There is no method like getCurrentPage in AxAcroPDFLib.
How to get that current page number. I searched it but did not find any solution for this.
You're not showing the code you currently are using, but your problem likely stems from the fact that you don't realize there is an additional layer present here. The document methods in the Adobe PDF library truly only deal with the PDF file itself and a PDF file doesn't have a current page number.
To display PDF documents, Acrobat uses an AVPageView. The AVPageView is your link for anything that concerns the display of your PDF files.
AVPageView has a method to get the currently visible page:
PDPageNumber AVPageViewGetPageNum(AVPageView pageView)
So from the document, get its page view and work with that to get the page number, zoom factor, display mode and so on.

Fill up form in Word/Pdf

What I want to accomplish is a fill up form or a registration form for a hotel in word or pdf file. It's like after filling up name text box and clicking next another text box will appear.
And also it needs to have a preview before printing. If possible, showing the preview simultaneously.
I really want to know where to start or if there is any, sample would be great.
The way I would approach this problem is using Web form data and after confirmation from the user i would generate the report straight away. I dont think manipulating Word document or PDF document is the best approach :
Check User Input using your web form
Generate the Word or PDF document on your reporting server[Connect to it using WCF for instance]
Give the link of the generated document to the user. It would be up to the user to print it or only view it in their browser.

Multiple page document upload and display c#

I have a functionality where I need to upload a multi-page document. For display purposes, I have to give the user ability to view it page-vise. I have to show no. of pages and then user can navigate back and forth between the pages to view each page.
Any pointers on how this can be accomplished? I am using ASP.Net MVC3 and C# as the language.
Much Thanks!
If by "multi-page document" you mean like a PDF or word doc, then you'll need to embed a 3rd party viewer in your page and have it display. Generally they have the functionality you've mentioned built-in.

Create PDF from Merge document via ASP C#

Okay, here is what i want to do..
A user will run a query and return 3 pieces of data (really more but for this example lets say 3.. such as name, city, state).
The user will then be prompted with a list of 1 or more documents that are basically word merge documents. Does not have to be word but needs to be something standard.
Once they pic the document, we need to merge the data with the document and would then like to have a PDF displayed back to the user so they can print or save.
So, looking for ideas on what would be a suggested format to store the merge documents in as well as how to do the merge and create the PDF via ASP C#.
Thanks!
firstly ... stop thinking "doc" as standard cause .. it is not.
PDF is much more standard than doc and using any online viewer it is easy to provide access to it's content
now...
for manipulating PDF files fore free u have a very nice C# Library called iTextSharp

Categories