We have multiple folders which contains two pdfs(one old, one new)…we have to pick one folder , compare the 2 pdfs using (Compare PDF & Word Documents Online - Draftable)…once done we have to save the result and pick another folder and compare the pdfs inside it…so on
Welcome to the community forum
As I understand it you are having one master directory, with several subdirectories containing the pdf files right?
E.g.:
Master directory
Sub directory 1
*PDF old
*PDF new
Sub directory 2
*PDF old
*PDF new
Sub directory 3
*PDF old
*PDF new
and you wish to compare these using your website there.
Here is how I would do it.
Get a list with all the sub directories
For each Sub directory, get a list of the items in the sub directory
Read the name of the pdf file and determine which is old and which new
Click on the website ‘choose file’ and upload the old pdf file to the website using the file path
Click on the website ‘choose file’ and upload the new pdf file to the website using the file path
To get the following list I would use the following syntax:
listOfSubDirectories = Directory.GetDirectories("Path of the master directory")
For Each dirFile In listOfSubDirectories
subOutput = Directory.GetFiles(dirFile)
For Each pdfFile In listOfSubDirectories
if pdfFile.Contains("Old") then
workflow to click 'choose file' in the 'old' option and type pdfFile into file path
else:
workflow to click 'choose file' in the 'new' option and type pdfFile into file path
end if
Next
Next
1.Open foxit pdf
2.Click on View->Compare
3.One dialogue button will appear …chose old file by clicking on button…then chose new file by clicking on button…
4.click on compare button and save it
5.Next go to other files on another folders and save the comparison
I am in middle of a project wherein I have a huge stock of pdfs in a folder and i need to count the number of pages in it, and how many pages are blank and Also after the above request is done this needs to be written in an excel wirh column, 1.file name(pdf name), 2. Number of pages in the pdf, 3. Number of blank pages in a pdf
Hi @William_Blech_Sister,
Really appreciate ur help. I’m also facing a similar problem, requiring to open files from multiple sub folder. I have seen ur workflow but I do not really understand (I have no IT background and just started). Is it possible for u to do a tutorial for me please .