Copy link to clipboard
Copied
Hai to All,
I just want to know how to use PaperCapture API in either VB.Net or C#.Net.. kindly pls help me in this scenario.
Rgds,
Parthasarathy.S
Copy link to clipboard
Copied
thanks too zephed56
it's help me TOO
but i face some problems when using ocr
1-
so i want to know how i can get the page size and how to resize it .
2-
i want to know how to check at the damage file .
so can you help me to fix this ?
Copy link to clipboard
Copied
Those are both problems you will need to resolve using SOME OTHER API (something that knows about how to process the raw images before they get to Acrobat).
From: Adobe Forums <forums@adobe.com<mailto:forums@adobe.com>>
Reply-To: "jive-508937487-8igo-2-2cejo@mail.forums.adobe.com<mailto:jive-508937487-8igo-2-2cejo@mail.forums.adobe.com>" <jive-508937487-8igo-2-2cejo@mail.forums.adobe.com<mailto:jive-508937487-8igo-2-2cejo@mail.forums.adobe.com>>
Date: Mon, 26 Sep 2011 01:42:55 -0700
To: Leonard Rosenthol <lrosenth@adobe.com<mailto:lrosenth@adobe.com>>
Subject: Use PaperCapture API in .Net
Re: Use PaperCapture API in .Net
created by SDK Discussion<http://forums.adobe.com/people/SDK+Discussion> in Acrobat SDK - View the full discussion<http://forums.adobe.com/message/3937956#3937956
Copy link to clipboard
Copied
i want to know
how i can get the page size in inches?
please
Copy link to clipboard
Copied
Paper size is the size of your image.
From: Adobe Forums <forums@adobe.com<mailto:forums@adobe.com>>
Reply-To: "jive-508937487-8igo-2-2cetw@mail.forums.adobe.com<mailto:jive-508937487-8igo-2-2cetw@mail.forums.adobe.com>" <jive-508937487-8igo-2-2cetw@mail.forums.adobe.com<mailto:jive-508937487-8igo-2-2cetw@mail.forums.adobe.com>>
Date: Mon, 26 Sep 2011 05:48:47 -0700
To: Leonard Rosenthol <lrosenth@adobe.com<mailto:lrosenth@adobe.com>>
Subject: Use PaperCapture API in .Net
Re: Use PaperCapture API in .Net
created by SDK Discussion<http://forums.adobe.com/people/SDK+Discussion> in Acrobat SDK - View the full discussion<http://forums.adobe.com/message/3938324#3938324
Copy link to clipboard
Copied
so how i can get it programmatically ?????????? pleeeeeeeeeeeeeeeeeez
Copy link to clipboard
Copied
You need a programming library to read your image file before you send it to Acrobat.
From: Adobe Forums <forums@adobe.com<mailto:forums@adobe.com>>
Reply-To: "jive-508937487-8igo-2-2ceu2@mail.forums.adobe.com<mailto:jive-508937487-8igo-2-2ceu2@mail.forums.adobe.com>" <jive-508937487-8igo-2-2ceu2@mail.forums.adobe.com<mailto:jive-508937487-8igo-2-2ceu2@mail.forums.adobe.com>>
Date: Mon, 26 Sep 2011 06:06:47 -0700
To: Leonard Rosenthol <lrosenth@adobe.com<mailto:lrosenth@adobe.com>>
Subject: Use PaperCapture API in .Net
Re: Use PaperCapture API in .Net
created by SDK Discussion<http://forums.adobe.com/people/SDK+Discussion> in Acrobat SDK - View the full discussion<http://forums.adobe.com/message/3938330#3938330
Copy link to clipboard
Copied
it's not image file
it's a PDF or tif file
Copy link to clipboard
Copied
TIFF is an image file
From: Adobe Forums <forums@adobe.com<mailto:forums@adobe.com>>
Reply-To: "jive-508937487-8igo-2-2cexp@mail.forums.adobe.com<mailto:jive-508937487-8igo-2-2cexp@mail.forums.adobe.com>" <jive-508937487-8igo-2-2cexp@mail.forums.adobe.com<mailto:jive-508937487-8igo-2-2cexp@mail.forums.adobe.com>>
Date: Mon, 26 Sep 2011 07:00:25 -0700
To: Leonard Rosenthol <lrosenth@adobe.com<mailto:lrosenth@adobe.com>>
Subject: Use PaperCapture API in .Net
Re: Use PaperCapture API in .Net
created by SDK Discussion<http://forums.adobe.com/people/SDK+Discussion> in Acrobat SDK - View the full discussion<http://forums.adobe.com/message/3938461#3938461
Copy link to clipboard
Copied
if it just PDF files ?
Copy link to clipboard
Copied
Per this thread
http://forums.adobe.com/message/1162092#1162092
You need to use PDPageGetCropBox() to get the user space coordinates of the page, and then you have to convert it to device space coordinates (or something). I'm not exactly sure what the conversion method or calculation is, however.
Here's a snippet of my code, and the rectangle values appear to be insane, at first glance.
ASFixedRect rect;
PDPage pg = PDDocAcquirePage(pdDoc, 0);
PDPageGetCropBox(pg, &rect);
char str2[512];
sprintf(str2, "Right = %i - Left = %i -- Top = %i - Bottom = %i\n", rect.right, rect.left, rect.top, rect.bottom);
AVAlertNote(str2);
PDPageRelease(pg);
For some standard 8.5x11 inch docs, I'm getting a right value of 40108032 and top value of 51904512. Divide right by 8.5, and top by 11 and you get 4718592. 65536 * 72 = 4718592. For all of the documents I've tested this on (dividing page width/height by user units for height/width), I'm getting this same value.
Do these rectangle values I'm getting back look normal? Why is 65536 in there? Does it have something to do with the number of colors (256^2)?
In my program, I will be iterating through all the pdf's in a directory, and I need to check the page size before attempting OCR, in order to prevent that alert box from popping up warning about the 45x45 inch page size.
I don't fully understand how user space coordinates relate to actual page size in inches, and would like to know if I can simply reliably divide my user space coordinates for each page in each document by 4718592 in order to get the actual page size in inches.
Thanks.
Copy link to clipboard
Copied
Acrobat is an interactive tool, so this is correct. When the user has chosen to minimize it, there is no active document.
Copy link to clipboard
Copied
Copy link to clipboard
Copied
I am sorry, I accidentally replied to an old post. I have no input for your current question.
I believe Adobe would rather people did not use Paper Capture through an API, and while there happens to be an API they have no intention of documenting it any further or making it more usable. I should say this sort of work is outside the intended scope of Acrobat, as an interactive user tool. There are, I am sure, products much more suitable for batch OCR of PDFs. From Adobe, I believe some of the LiveCycle products do this for a server environment.
Copy link to clipboard
Copied
Okay i accept.
we got many licenses for acrobat XI for systems.We cannot search for livecycle products now.
While getting higher volume i may suggest the above.
I have one doubt while doing manually i'm getting recognize text window->setting
but while executing avcommand i'm directly getting settings window ,you have any suggestion/inputs for below variations?
Copy link to clipboard
Copied
Is there any other way to call Acrobat OCR in the VB.Net Code.
Copy link to clipboard
Copied
I want to convert image which are inside the PDF file in to PDF Text through VB.NET
Copy link to clipboard
Copied
Do you want to do this on a server?
Copy link to clipboard
Copied
No,i am developing VB.Net windows application.
Copy link to clipboard
Copied
Ok, for an interactive end user who owns Acrobat Pro (and can restart the app, click OK on warnings etc.). Still, I have reviewed this whole thread and I think it covers all points. I cannot recommend Acrobat for this task, it's clear Adobe do not provide it for automating OCR. It's also only suitable for very low duty automation.
Copy link to clipboard
Copied
Ok thanks so I need to find out another way or any third party DLL.
Copy link to clipboard
Copied
Different product, not Acrobat. Adobe's volume automation offering is LiveCycle PDF Generator, but there are non Adobe products which we do not discuss here.
Copy link to clipboard
Copied
Interop.acrobat .dll is not functioning in 64 bit PC.Can any one suggest me
Copy link to clipboard
Copied
Hi Irosenth,
Shall we use ASCab to retreive the paramters needed and store the parameters needed for the dialog box.
Kindly clear me i'm going in the right path?
Hi Axel Bangert,
Send keys wont work if the active desktop is locked up.
i have used sendmessage instead but i succeded one click event after that i not able to reach the end.
HWND papercapturedialog=FindWindow(NULL, "Recognize Text");
SendMessage(papercapturedialog, BM_CLICK, 0, 0);
after this if i capture Recognize Text - Settings
i am not able to send any window param for combo box.Kindly clear me where i went wrong?
Rgds,
Manikandan P K