Skip to main content
雄介川48942317
Participant
August 2, 2019
質問

Acrobat Reader DC を使ってエクセルVBAでPDFのプロパティ抽出

  • August 2, 2019
  • 返信数 1.
  • 10260 ビュー

今までACROBAT READER XIでなんとか踏ん張って、以下のリンクを参考のPDFデータを吸い出していました。

Adobe Readerを利用してPDFファイルのページ数を取得するVBAマクロ | 初心者備忘録

この度PCを変える必要があり、改めてACROBAT READER XIをダウンロードしようとしたらどうもなくなっているようです。

またセキュリティの観点からACROBAT READER DCにしましたが、今までのマクロが当然ながら使えません。

VBAで直接PDFのプロパティが見れれば一番ですが、

1. Adobe ReaderでPDFファイルを開く。

2. 文書のプロパティダイアログを表示する。

3. 文書のプロパティダイアログからページ数を取得する。

4. 文書のプロパティダイアログを閉じる。

5. Adobe Readerを終了する。

というような動作が実現できたらいいなと思います。

何かサンプルコードのようなものはありませんでしょうか?

    このトピックへの返信は締め切られました。

    返信数 1

    Amal.
    Legend
    August 5, 2019

    Hi There,

    Apologies for the trouble caused, as you are using Adobe Reader and trying to extract the PDF data, this option is not available with Acrobat Reader as its a free application with limited features. To extract the PDF data you would need Adobe Acrobat DC.

    You may refer to the help articles:

    Let us know if you need more information.

    Regards,

    Amal