|
|
|
|
How to Automate PDF file.
|
|
04-26-2010, 04:33 PM
Post: #1
|
|||
|
|||
|
How to Automate PDF file.
Hello All, Can anybody please let me know how to automate PDF file. I Want to do operation 1. Open PDF file 2. Read the content 3. Compare with another PDF file. 4. Close the file. I am using QTP 10.0 Hoping for all of your cooperation. Regards Mahesh |
|||
|
04-28-2010, 07:36 PM
Post: #2
|
|||
|
|||
RE: How to Automate PDF file.
(04-26-2010 04:33 PM)upadhyay40 Wrote: Hello All, Two ways, 1. Adobe's COM object is exposed for Adobe's proffessional[licensed full] Version. google about it and you will get it. [ Easy way ]. 2. Parse PDF to a text file, read data from the text and compare. [ doable but it sure sweats ]. Make a choice my friend and you should be able to get your task done
Basanth Give a fish to a man and you feed him for a day..Teach a man how to fish and you feed him for life.. Pulsating Fiction - The writer in me
|
|||
|
05-17-2010, 03:46 PM
Post: #3
|
|||
|
|||
|
RE: How to Automate PDF file.
Hi Basanth,
Thanks for the help, but could you please elaborate little bit more on this. I was tried on google for a code to parse PDF to text file but i got only PDF convertor software which are not allowed at my office. So please your help will be appreciated i need to show demo on this friday for the same Thanks |
|||
|
05-18-2010, 08:02 AM
Post: #4
|
|||
|
|||
RE: How to Automate PDF file.
(05-17-2010 03:46 PM)upadhyay40 Wrote: Hi Basanth, The is the Easy way to do it - Automate PDF The painful way to do it - pdftotext [ That is the name of the software. google it and you should get it]. Here is how you would use PDFtoText - pdftotext version 0.92 Copyright 1996-2000 Derek B. Noonburg Usage: pdftotext [options] <PDF-file> [<text-file>] -f <int> : first page to convert -l <int> : last page to convert -ascii7 : convert to 7-bit ASCII (default is 8-bit ISO Latin-1) -latin2 : convert to ISO Latin-2 character set -latin5 : convert to ISO Latin-5 character set -eucjp : convert Japanese text to EUC-JP -raw : keep strings in content stream order -upw <string> : user password (for encrypted files) -q : don't print any messages or errors -v : print copyright and version info -h : print usage information -help : print usage information Example to use would be Systemutil.run "c:\pdftotext.exe"," C:\toconvert.pdf c:\converted.txt" This is a freeware and should be of no issue with respect to licensing or auditing. Why does your organization not allow ? Do they have any valid reason or is it just the whimps and fancy of some half baked sys admin ? Basanth Give a fish to a man and you feed him for a day..Teach a man how to fish and you feed him for life.. Pulsating Fiction - The writer in me
|
|||
|
05-18-2010, 05:32 PM
Post: #5
|
|||
|
|||
|
RE: How to Automate PDF file.
Hi basanth,
Thanks for your help, The reason behind not allowed any external software is only i am working on client end where external S/w's are not allowed. Hope you are getting my trouble. Please if you have any code to Parse PDF to text then it will be beneficial for me. Please take in consider, hoping for your cooperation Thanks |
|||
|
05-20-2010, 11:06 AM
Post: #6
|
|||
|
|||
RE: How to Automate PDF file.
(05-18-2010 05:32 PM)upadhyay40 Wrote: Hi basanth, Did you consider the first option ? That should be allowed because it is legal. Dont the client have a Enterprise PDF version ? Basanth Give a fish to a man and you feed him for a day..Teach a man how to fish and you feed him for life.. Pulsating Fiction - The writer in me
|
|||
|
06-28-2010, 12:06 AM
Post: #7
|
|||
|
|||
|
RE: How to Automate PDF file.
is it allowed to use external/third party dlls there, if so...
see if this helps you http://www.learnqtp.com/learnquicktestpd...fs-in-qtp/ Thanks, ~Saket Kumar Linkedin| pdf Api for QTP | Automated-360 It's so hard when I have to, and so easy when I want to... |
|||
|
06-29-2010, 10:05 AM
Post: #8
|
|||
|
|||
RE: How to Automate PDF file.
(06-28-2010 12:06 AM)Saket Wrote: is it allowed to use external/third party dlls there, if so... Saket - I read this. Excellent work dude !! Just wanted to know if this dll is a shareware or a freeware ? Is it re-distributable without credits to the creator ? I mean, it will be hard if we hit any licensing issues later working under enterprise. Let me know your thoughts. Basanth Give a fish to a man and you feed him for a day..Teach a man how to fish and you feed him for life.. Pulsating Fiction - The writer in me
|
|||
|
06-29-2010, 11:20 AM
Post: #9
|
|||
|
|||
|
RE: How to Automate PDF file.
Thanks Basanth,
this is freeware, however re-distributing this should have credits to atleast learnqtp.com. Thanks, ~Saket Kumar Linkedin| pdf Api for QTP | Automated-360 It's so hard when I have to, and so easy when I want to... |
|||
|
03-07-2012, 09:25 PM
Post: #10
|
|||
|
|||
|
RE: How to Automate PDF file.
I cannot select the Download link for the LearnQuickTestPDF API. My company has the page blocked.
Can we get the LearnQuickTestPDF API elsewhere? thx thx for your time Lorena |
|||
|
« Next Oldest | Next Newest »
|
| Possibly Related Threads... | |||||
| Thread: | Author | Replies: | Views: | Last Post | |
| how to save a .pdf file in a browser window in qtp | ssvali | 15 | 1,577 |
09-24-2012 06:14 PM Last Post: Ankesh |
|
| QTP file compare - ignoring file structure | Fede | 3 | 1,245 |
02-17-2012 02:48 AM Last Post: Parke |
|
| pdf to excel | Winthrop04 | 1 | 698 |
11-08-2011 07:35 PM Last Post: lupas |
|
User(s) browsing this thread: 1 Guest(s)
|
|

Search
Member List
Calendar
Help



