Author Topic: Get Methods and Properties of PDF file  (Read 1737 times)

0 Members and 1 Guest are viewing this topic.

Coder

  • Swamp Rat
  • Posts: 800
Get Methods and Properties of PDF file
« on: November 06, 2019, 05:40:48 AM »
Hello everyone.

How can I dump a PDF file to know the available methods and properties with getfiled function?

Code: [Select]
(setq pdf (getfiled "" "" "pdf" 16))

I have seen the below function to create a PDF object but it returns nil for me.

Code: [Select]
(setq obj (vlax-get-or-create-object "AcroExch.PDDoc"))

Thank you in advance.

Coder

  • Swamp Rat
  • Posts: 800
Re: Get Methods and Properties of PDF file
« Reply #1 on: November 06, 2019, 01:24:08 PM »
I need to get the number of pages / sheets of the selected PDF file.

Is this possible?

Lee Mac

  • Seagull
  • Posts: 12393
  • London, England
Re: Get Methods and Properties of PDF file
« Reply #2 on: November 06, 2019, 01:25:30 PM »
I need to get the number of pages / sheets of the selected PDF file.

Is this possible?

This is pretty old now, but may still work.

Coder

  • Swamp Rat
  • Posts: 800
Re: Get Methods and Properties of PDF file
« Reply #3 on: November 06, 2019, 01:47:50 PM »
This is pretty old now, but may still work.

Beautiful.
Thank you Lee so much.


kozmos

  • Newt
  • Posts: 37
Re: Get Methods and Properties of PDF file
« Reply #5 on: November 25, 2019, 03:58:46 AM »
You need to install Adobe Acrobat Reader or Pro/DC to have access to "AcroExch.PDDoc"
KozMos Inc.

Coder

  • Swamp Rat
  • Posts: 800
Re: Get Methods and Properties of PDF file
« Reply #6 on: November 25, 2019, 07:12:34 AM »
You need to install Adobe Acrobat Reader or Pro/DC to have access to "AcroExch.PDDoc"

I already have it installed although it returns nil !  :-(

kozmos

  • Newt
  • Posts: 37
Re: Get Methods and Properties of PDF file
« Reply #7 on: November 25, 2019, 07:45:47 PM »
try to run  (vlax-get-or-create-object "AcroExch.App") first before run (vlax-get-or-create-object "AcroExch.PDDoc").
KozMos Inc.

Coder

  • Swamp Rat
  • Posts: 800
Re: Get Methods and Properties of PDF file
« Reply #8 on: November 26, 2019, 12:40:31 AM »
try to run  (vlax-get-or-create-object "AcroExch.App") first before run (vlax-get-or-create-object "AcroExch.PDDoc").
It returns nil.
Quote
$ (vlax-get-or-create-object "AcroExch.App")
nil
_$