PDF opening problem

pdf
studio

#1

Hi,

I am able to launch pdf using start process but the problem is that my pdf is blinking at the task bar and then i have to again click on the pdf in the task bar then it is opening.
Please let me know how to open it directly or do i need to select anything so that it directly gets open in screen.


#2

Hi,
You can achieve this by following activity.

  • Open application
  • Restore window

Use Open application activity and create output window variable (hit ctl+k and name the variable) which can be passed as input to Restore window activity.

PS: you can do with start process too, post to that you need to use Attach window activity and pass the appropriate selector and rest is same.


#3

i am able to open now but i am stuck in one thing i have loaded for pdf files at a particular path and i want to read invoice number one by one so i have used for loop and inside for loop i have used anchor activity find element and get ocr text but after fetching one loop its getting failed since the other pdf invoice number is written as invoice no.


#4

i am able to open now but i am stuck in one thing i have loaded for pdf files at a particular path and i want to read invoice number one by one so i have used for loop and inside for loop i have used anchor activity find element and get ocr text but after fetching one loop its getting failed since the other pdf invoice number is written as invoice no.
Please look into it


#5

Hi,
Looks like your doing acme test assignment. :wink:
I don’t think opening pdf and doing scraping is reliable method,you could try using read pdf activity and do string manipulation.you can use regex pattern. check this.


#6

Hi,

Thanks for your help i tried to extract invoice data from txt file but it seems i am not able to extract data or there is some issue with my RegExpression code as you can see below
invoice\s((no|number)&\s)?\d{4,}
The above code i have written to extract data from text file. i am attaching you the dummy text file below.
i want to extract data only from invoice # and sometimes it can be invoice no or invoice number.

INVOICE
123 Basedow Street
Leipzig, DE, 04277 DATE 6/6/2016
Phone: 341 600 800 INVOICE # 850113
Fax: 341 600 801 CUSTOMER ID A700
Website: www.tiefland.com DUE DATE 7/21/2016
BILL TO
IDES AG Frankfurt
231 Lyoner Street
Frankfurt, DE, 60441
Phone: 69 700 777
UNIT PRICE QTY TAXED AMOUNT
5,000.00 1 X 5,000.00

[42] Subtotal 5,000.00
Taxable 5,000.00
Tax rate 10%
Tax due 500.00
Other -
TOTAL € 5,500.00
123 Basedow Street
Leipzig, DE, 04277
Bank Name: Ostbank Berlin
Bank Account: 7387324
IBAN Code: DE560000997387324
Tiefland Glass AG

  1. Total payment due in 45 days
  2. Please include the invoice number on your check
    DESCRIPTION
    Seitz Freun, 010/32323, seitz.freun@tiefland.com
    Professional services
    Make all checks payable to
    Tiefland Glass AG
    If you have any questions about this invoice, please contact
    OTHER COMMENTS
    Invoice Template © 2013-2014 Vertex42.com