Opening PDF in Directory

pdf
activities

#1

I am trying to open each pdf in a directory and print. Any suggestions?


#2

Hi,
Here we go.

  • assign files =Directory.GetFiles(“Directory path”)
  • For each to iterate through all the files inside the folder
  • Start process to open each pdf
  • Send Hotkey (ctl+p) to print.

printPDF.xaml (9.7 KB)


#3

You are the man @ddpadil


#4

hi,
i wan to just open every pdf file for screen scraping. i need three data from each pdf file.(invoice number, invoice receiver and sum). Which hot key can i use to open each pdf file??
i thank you already.


#5

Thank all i found it


#6

@sjawadaf could you please share the xaml file. Thank in advance


#7

Main.xaml (14.0 KB)


#8

i have problem with data base connection. Do you have any suggestion?


#9

in your shared xaml file not finding any activities related to scraping data from each pdf. I’m currently seeing only opening file and printing details. can you please share the complete folder may be zipped one. do you have skype_id? Thanks in advance


#10

sorry, so far, I have not tried this feature.


#11

i am working on it, the robot cannot recognize the elements. It delivers wrong value from other element of the PDF, when i finished it i will upload it. i will provide you my skype_id.


#12

@sjawadaf, i got some solution for read elements from pdf, let me know you need any help Thanks


#13

@karunakart
hi, i it will be helpful if you upload your file here.
you can contact me: jawad.shirzai@exxeta.com
tnx


#14

@karunakart,
hi, i am waiting for your uploads :sunglasses::sunglasses:


#15

sure, pls upload your pdf doc,


#16

@karunakart ,
hi,
i tried to get the desired resutl, but it doesnt work.
It depends exactly on structure of your pdf. If you have the same structure in all pdf files. It will work. The elements, that i want to extract are Inovice reciever and invoice number with customer number and the sum. They are written in German languag, but important is the structure of the flowchart.
with best regards
Example_3_PDF.xaml (35.4 KB)


#17

Yea agree, you are correct, the elements from which you want to extract data need to have the same structure in all pdf files, if not scripts may fail. Did you get chance work with abbyy ocr, there we may leverage the slight structural changes in pdf. Another solution i’m thinking of is capture entire data on pdf and parse the same as per requirement, hope this helps. Above script of not any use without looking at pdf structure, if possible pls share pdfs for which above script is. best regards