Parsing PDF to text using PowerShell There are times when you come and you find some Important PDF file (Something like a low level design or something similar), The point is I really hate PDF files... I was googling a way which i can use to read PDF files using PowerShell, this can be helpful of you have a lots of PDF files and you want to filter these PDF's based on certain word or a string (Using a regex or something similar to do that). I know i was talking too much so let cut to the chase : I found this amazing .NET library which you can use to parse a PDF file(Convert it into a text). The library is called "ITextSharp", here you can fidn some information about it : http://sourceforge.net/projects/itextsharp/?source=typ_redirect I assume that you already know what the hell I am talking about so, This is the code which i got from from Stack Overflow : http://stackoverflow.com/questions/15684699/how-to-parse-pdf-content-to-database-with-pow...
Popular posts from this blog
IP Calculator in PowerShell...with IP exclusion
Hola todos... que pasa? It has been a while since i post i was really busy with so many stuff, bottom line, i had this strange requirement at work where i had to create a script to calculate the IP address from a subnet, now normally this means we have to create a bunch of scopes or subnets in the DHCP server, which was my case, i had to create more than 4 thousand scopes on Linux DHCP server. now I was thinking how in the hell I am going to insert all these scopes in the configuration file, of course the first things I came up with was to provide the mandatory information (First IP, last IP, broadcast IP and number of hosts) which was not a big problem, I found this link : https://gallery.technet.microsoft.com/scriptcenter/ipcalc-PowerShell-Script-01b7bd23 This guy did a very good job and save my ass, but this was not the issue, in my situation, I had to exclude the first 48 IP addresses from each scope. Now in Linux DHCP configuration file, each scope was represent...
Monitoring your servers using powershell
There were sometimes in my work life were I had to do things my own way and there was no help from anyone.... I created this script 2 years ago to monitor all my windows servers. This script is divided into PowerShell functions. Each function can monitor a certain resource in your server. Take a look: ### Script starts here Function Ping-server { param([string]$ServerName) $pingsrv = Test-Connection -ComputerName $ServerName if ($pingsrv){Write-Host "server " $ServerName "is reachable.."}else {Write-Host "server " $ServerName " is not reachable!!!!, please chack..."} } function get-volsize { param([string]$ServerName) $getvols = Get-WmiObject -Class CIM_LogicalDisk -ComputerName $ServerName | where {$_.DriveType -eq "3"} foreach ($rr in $getvols) { $devid = $rr.DeviceID $VolName = $rr.VolumeName $DriveFullsp = $rr.Size $DriveFresp = $rr.FreeSpace $UsedSpace = $DriveFullsp - $DriveFresp $PercentFree =($DriveFr...
[XN Betting] - XN Affiliate Casino
ReplyDeleteXN Betting. 샌즈카지노 XN Esports offers 메리트카지노총판 an amazing platform that offers the best live betting experience available 바카라 사이트 in the most attractive, rewarding and entertaining