webscraping's People
webscraping's Issues
First test run on my machine, I got the following errors
Command I used to run:
Get-PDFContent https://www.fas.org/sgp/crs/row/R42694.pdf
PSVersion: 3.0
Add-Type : Cannot bind parameter 'Path' to the target. Exception setting "Path": "Cannot find path 'C:\powershell\dev\itextsharp.dll' because it does not exist."
At C:\powershell\dev\Get-PDFContent.ps1:12 char:20
-
Add-Type -Path "$($commandPath)/itextsharp.dll"
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- CategoryInfo : WriteError: (:) [Add-Type], ParameterBindingException
- FullyQualifiedErrorId : ParameterBindingFailed,Microsoft.PowerShell.Commands.AddTypeCommand
New-Object : Cannot find type [iTextSharp.text.pdf.PdfReader]: make sure the assembly containing this type is loaded.
At C:\powershell\dev\Get-PDFContent.ps1:20 char:15
-
$reader = New-Object iTextSharp.text.pdf.PdfReader $pdfFile
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- CategoryInfo : InvalidType: (:) [New-Object], PSArgumentException
- FullyQualifiedErrorId : TypeNotFound,Microsoft.PowerShell.Commands.NewObjectCommand
New-Object : Cannot find type [iTextSharp.text.pdf.parser.SimpleTextExtractionStrategy]: make sure the assembly containing this type is loaded.
At C:\powershell\dev\Get-PDFContent.ps1:22 char:17
-
$strategy = New-Object iTextSharp.text.pdf.parser.SimpleTextExtractionStrate ...
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- CategoryInfo : InvalidType: (:) [New-Object], PSArgumentException
- FullyQualifiedErrorId : TypeNotFound,Microsoft.PowerShell.Commands.NewObjectCommand
You cannot call a method on a null-valued expression.
At C:\powershell\dev\Get-PDFContent.ps1:28 char:5
-
$reader.Close()
-
~~~~~~~~~~~~~~~
- CategoryInfo : InvalidOperation: (:) [], RuntimeException
- FullyQualifiedErrorId : InvokeMethodOnNull
How can i read Password secured files using PowerShell?
Hi Doug Finke,
This is really awesome functionality from PowerShell, but How can i read Password protected PDF files? We have plan to use Password protected PDF files instead of Plain Text CSV files after seeing your function using PowerShell.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.