Good afternoon friends, you want to extract PDFs with the condition that it has the same provider, for example the provider “GIGALUX SRL”, it has 3 documents of one page each. There are cases in which the provider has documents with two pages, for example “PROVEFRIO SRL”, on the second page of this provider its name no longer appears, but obviously it must be included. I have already read the names of the suppliers’ documents but I cannot make the cut properly.
1 pdf with 3 “GIGALEX SRL” Documents of one page each (3 pages in total)
1 pdf with 4 Documents DE “KUEHNE + NAGEL SA” of one page each (4 pages in total)
1 pdf with 3 “SEAN METAL SRL” Documents of one page each (3 pages in total)
1 pdf with 3 “PROVEFRIO SRL” Documents of two pages each (6 pages in total)
1 pdf with 4 “INMATEL SA” Documents of one page each (4 pages in total)
I attach the bot to you, it would be great if someone help me with the bot logic
If you run this as is, you will see 3 pdfs gets created in the Splitted Folder and then “Final.pdf” will be created under the root project folder with the keyword “GIGALUX SRL” on it.
This is a start, i am thinking of making it dynamic. or you can put this multi if cases to achieve it.
Thank you very much for the answer, but I have a problem with: Could not load file or assembly ‘itextsharp, Version = 5.5.13.0, Culture = neutral, PublicKeyToken = 8354ae6d2174ddca’ or one of its dependencies.
Thank you very much for your recommendations, I was out yesterday and nothing can advance. The point is that I will only be able to use the modules that I have assigned.
Your bot is very good, but the problem is the following, as the bot could read the names of the other providers, since they change from month to month and I have noticed that you explicitly search for the first provider “GIGALEX SRL” through regex, for the first provider it would work, but for the others it would have a problem and I could not do a regex for each one, because month by month the names of the providers change.
Excuse me for my English, I am using the google translator.
@gh_lzm - Then , first we have build an array with all the providers and loop thru it. In this way we can use the providers name from the array in the regex and make it dynamic.
I think we can do this way. Try this way if not I will try this during this weekend and let you know.
Great, I find it very interesting, I will try. But something strange I found in the “then” and “else” of “IF” in the next screenshot, in the “else” curiously it does not read my variable “OldIntCurrentPage”, nor does it allow values to be assigned to that variable, but it does I do that on the “then” side there if it works, it could be that that’s why it doesn’t extract the pdfs in the right place.