前回の記事では、VBAでAdobe ReaderからPDFファイルのページ数を取得するマクロを紹介しました。 今回はPowerShellでiTextSharpを使ってPDFファイルのページ数を取得してみます。 ※ iTextSharpからZipファイルをダウンロードして「itextsharp.dll」ファイルを適当な場所(下記コードの場合は「C:\System\itextsharp\」)に解凍しておくことが必要。 [System.Reflection.Assembly]::LoadFrom("C:\System\itextsharp\itextsharp.dll") $reader = New-Object iTextSharp.text.pdf.PdfReader("C:\System\itextsharp\Sample.pdf") $pages = $reader.NumberOfPa
![Excel 2016でUTF-8のCSVファイルがサポートされるようになりました。 | 初心者備忘録](https://cdn-ak-scissors.b.st-hatena.com/image/square/9952d57fc031c5141bf59cace53aced1edf8d9ff/height=288;version=1;width=512/https%3A%2F%2Fwww.ka-net.org%2Fblog%2Fwp-content%2Fuploads%2Feyecatch-PowerShell.png)