VBA to read contents from PDF File - VBA PDF Automation-3

แชร์
ฝัง
  • เผยแพร่เมื่อ 13 ธ.ค. 2024

ความคิดเห็น • 76

  • @traviscarter317
    @traviscarter317 3 ปีที่แล้ว +5

    This is SO cool. Thank you for taking the time to make this tutorial.

    • @VBAA2Z
      @VBAA2Z  3 ปีที่แล้ว

      You are so welcome!

  • @yvonnecrozier4536
    @yvonnecrozier4536 3 ปีที่แล้ว +4

    This was SO helpful, thank you very much! Is there a way to detect if the text is underlined or bold in the PDF as you are reading through it?

  • @Wisui-zw4sq
    @Wisui-zw4sq ปีที่แล้ว +1

    Wow, your works are amazing. Thank you.

    • @VBAA2Z
      @VBAA2Z  ปีที่แล้ว

      Thank you very much!

  • @samukacostta
    @samukacostta 6 หลายเดือนก่อน +1

    Nice tutorial man, literaly saved me

    • @VBAA2Z
      @VBAA2Z  6 หลายเดือนก่อน

      Glad it helped!

  • @CORRETORCINTRON
    @CORRETORCINTRON 4 ปีที่แล้ว +3

    I don't have the acrobat 10 tape library in excel. you know a way for me to do the dowlonad. thank you !!!

    • @VBAA2Z
      @VBAA2Z  4 ปีที่แล้ว +3

      I'll show another way to read without Acrobat or Adobe reader. Do not forget to subscribe for upcoming videos.

  • @Jojovill
    @Jojovill 4 ปีที่แล้ว +3

    Hi I got "ActiveX component can't create object". why is that?

    • @VBAA2Z
      @VBAA2Z  4 ปีที่แล้ว

      Have you installed, adobe acrobat? If not, please find the link to download free trial version in the video description.

    • @mrinal106l
      @mrinal106l 4 ปีที่แล้ว

      @@VBAA2Z Team I am using Adobe acrobat DC pro but getting same error (Reference selected as Adobe Acrobat library) Kindly help to solve this

  • @Champi-mu7nr
    @Champi-mu7nr ปีที่แล้ว

    Wow! This amazing. Thanks to you Sir

    • @VBAA2Z
      @VBAA2Z  ปีที่แล้ว

      You are most welcome

  • @kiranvediable
    @kiranvediable 4 ปีที่แล้ว +2

    I understand extraction of PDF text to Excel.
    How to extract only comments from PDF to Excel. Instead of manually from PDF acrobat, can I automate it using VBA?

    • @lilkimmacdaddy8542
      @lilkimmacdaddy8542 4 ปีที่แล้ว

      If you have a solution for this, could you please share. Thanks

  • @zahidthakur8725
    @zahidthakur8725 ปีที่แล้ว +1

    Thanks for such a detailed and easy walkthrough. I was looking for something similar to automate a US tax form. I would like to update this form filed using values from different cells in Excel. One way I can think to do this using sheet.range function along with for to loop in all the rows for to update all data. Am I right, or are there any other suggestions?

    • @VBAA2Z
      @VBAA2Z  ปีที่แล้ว +1

      Glad it was helpful!
      Take a look at this video. th-cam.com/video/v-uxpc86wrw/w-d-xo.html

    • @zahidthakur8725
      @zahidthakur8725 ปีที่แล้ว

      Thanks for the response. I did see this is video yesterday, but from what I see, the you did fill out the pdf but the values were constant and update in vba window. As I would like to update it for multiple companies I need it to be more dynamic. So that I could take values from excel cell.

    • @zahidthakur8725
      @zahidthakur8725 ปีที่แล้ว

      Sorry for multiple comments, but one last question. I tried to use your code but unfortunately I am not able to open the pdf form . I am getting access denied pop up

  • @homejonny9326
    @homejonny9326 2 ปีที่แล้ว +1

    Hello. Thanks for the tutorial!
    Do you know if is it possible to get the coordinates of each word?

    • @VBAA2Z
      @VBAA2Z  2 ปีที่แล้ว

      well it depends

  • @lilkimmacdaddy8542
    @lilkimmacdaddy8542 4 ปีที่แล้ว +3

    Excellent video. Could you please show us to only extract comments and annotations from the pdf file.

    • @VBAA2Z
      @VBAA2Z  4 ปีที่แล้ว +3

      Sure, thanks for suggestion. I'll do more videos on PDF automation.

  • @worachatp.2506
    @worachatp.2506 11 หลายเดือนก่อน

    Can it be used with files scanned onto a PC? It's similar to the picture but in a pdf.

  • @adrianb6193
    @adrianb6193 ปีที่แล้ว +1

    Nice one!

    • @VBAA2Z
      @VBAA2Z  ปีที่แล้ว

      Thank you! Cheers!

  • @donaldreitsma6419
    @donaldreitsma6419 2 ปีที่แล้ว

    I get a runtime error "no such interface supported" for Set aApp = CreateObject("AcroExch.App") and set av_doc = CreateObject("AcroExch.AVDoc") any ideas? I have the correct reference checked Adobe Acrobat 10.0 Type Library. Thanks.

    • @sametcimen3767
      @sametcimen3767 ปีที่แล้ว

      Me to same problem, someone help us?

    • @PhreakDarkSoul
      @PhreakDarkSoul ปีที่แล้ว

      @@sametcimen3767 I guess Adobe Acrobat Pro is needed, the Reader does not support this. Thanks, greedy Adobe!

    • @sakeenasammi1768
      @sakeenasammi1768 ปีที่แล้ว

      Even i got the same error

  • @SSS007-66
    @SSS007-66 4 ปีที่แล้ว

    Thanks for the code I run it but getting single single charecters in immediate window.
    How can I get exact words only ?
    How to get values next to perticular word?

  • @3700BANDIT
    @3700BANDIT 2 ปีที่แล้ว

    Great video,
    can someone help me? I’m getting a “Runtime error 91: object variable or with block variable not set” on line “For j = 0 to sel_text.getnumtext -1” I believe I have everything the same as the video just a different folder to a pdf (obviously)

  • @shehrozpal4738
    @shehrozpal4738 2 ปีที่แล้ว +1

    Can you please link me to the video to format the text like the PDF?

    • @VBAA2Z
      @VBAA2Z  2 ปีที่แล้ว

      not sure if there is a way to read properties.

  • @vijaysavarimuthu
    @vijaysavarimuthu 4 ปีที่แล้ว +1

    i get 462 error while running the code in line " Set pdf_doc = av_doc.GetPDDoc"

    • @VBAA2Z
      @VBAA2Z  4 ปีที่แล้ว

      Hi Vijay, you'll need Acrobat Professional. Check below link for more info
      vbaa2z.blogspot.com/2020/01/vba-pdf-automation-read-write-extract.html

  • @jmtiwari5766
    @jmtiwari5766 2 ปีที่แล้ว

    Great. Can we read data from one pdf form nd fill the same in another pdf form ? Or can we copy data from Excel sheet and paste it in PDF form ?

    • @VBAA2Z
      @VBAA2Z  2 ปีที่แล้ว

      Yes, you can. Please check this video.
      th-cam.com/video/uc6palG76Y8/w-d-xo.html

  • @CuriousJessy
    @CuriousJessy 2 ปีที่แล้ว +1

    Hi
    Can you please upload a video for
    Converting multiple pdf in a folder into JPG OR PNG and save in a different folder via VBA

    • @VBAA2Z
      @VBAA2Z  2 ปีที่แล้ว

      Yes sure

  • @ravindradubey2710
    @ravindradubey2710 3 ปีที่แล้ว

    Hi sir
    I am not finding the Acrobat library in Tools>>Reference>
    Could you please help for this

    • @VBAA2Z
      @VBAA2Z  3 ปีที่แล้ว

      please check this link for more info.
      vbaa2z.blogspot.com/2020/01/vba-pdf-automation-read-write-extract.html

  • @vijaysavarimuthu
    @vijaysavarimuthu 4 ปีที่แล้ว

    acrobat reader is fine or need editor version to run the code

    • @VBAA2Z
      @VBAA2Z  4 ปีที่แล้ว

      Hi Vijay, you'll need Acrobat Professional. Check below link for more info
      vbaa2z.blogspot.com/2020/01/vba-pdf-automation-read-write-extract.html

  • @dann6837
    @dann6837 2 ปีที่แล้ว

    hi, this does not seems to work with Adobe Acrobat DC Reader. Can someone please confirm? I was not able to see the AcroApp when I declare "Dim aApp as Acrobat.???", the only option is cAcroApp.. Thanks!

    • @VBAA2Z
      @VBAA2Z  2 ปีที่แล้ว +2

      Hi Dan, this won't work on reader license, it needs pro

    • @madhuridarak
      @madhuridarak ปีที่แล้ว

      That’s sad, any other solution for non pro members..¿

  • @chanduchikky
    @chanduchikky ปีที่แล้ว

    Awesome

    • @VBAA2Z
      @VBAA2Z  ปีที่แล้ว

      thanks

  • @saket004
    @saket004 2 ปีที่แล้ว

    Hi - will this not work without Adobe professional?
    Pls help out

    • @VBAA2Z
      @VBAA2Z  2 ปีที่แล้ว

      yes, check this option if you do not have a license.
      th-cam.com/video/KoTuy92uboY/w-d-xo.html

  • @sujoyinnovates
    @sujoyinnovates ปีที่แล้ว +1

    It is not working with Acrobat reader

    • @VBAA2Z
      @VBAA2Z  ปีที่แล้ว

      Acrobat pro is needed

  • @anandkajale8008
    @anandkajale8008 4 ปีที่แล้ว

    How to print horizontal

  • @vineetgupta1064
    @vineetgupta1064 4 ปีที่แล้ว

    will it also work for scanned PDF files?

    • @VBAA2Z
      @VBAA2Z  4 ปีที่แล้ว +1

      nope, you can try googling OCR APIs.

    • @vineetgupta1064
      @vineetgupta1064 4 ปีที่แล้ว

      @@VBAA2Z thanks.if you know of good free OCR API suggest please

    • @VBAA2Z
      @VBAA2Z  4 ปีที่แล้ว +1

      @@vineetgupta1064 I have not tried it myself so I have no recommendations for VBA

  • @bondniko
    @bondniko 8 หลายเดือนก่อน

    Hi, as soon as I get to setting the aApp, my excel crashes.

    • @VBAA2Z
      @VBAA2Z  8 หลายเดือนก่อน

      please try re-installing Acrobat.
      delete temp files and try again

  • @aathideva2918
    @aathideva2918 4 ปีที่แล้ว

    Great one!!!! i tried this but if we have a = symbol in pdf then it is not running

    • @VBAA2Z
      @VBAA2Z  4 ปีที่แล้ว

      feel free to share your code (email in vid desc.) i can check it for you

  • @noralx4287
    @noralx4287 2 ปีที่แล้ว

    How can I search for text in all pages?

    • @VBAA2Z
      @VBAA2Z  2 ปีที่แล้ว

      You can read text from each page and may be compare using Instr
      th-cam.com/video/uc6palG76Y8/w-d-xo.html

  • @jeffreyvanriebec9837
    @jeffreyvanriebec9837 3 ปีที่แล้ว

    Again a great tutorial.
    can you please change this line
    Debug.Print sel_text.GetText(j)
    to
    Debug.Print sel_text.GetText(j);
    and then look what this will do. This is great for me!
    I am trying to get it printed like this in an Excel file.
    Can you help out?
    Because I don't know if it is possible to read data from PDF line by line.
    It is ok, if the complete TXT will be put into Cell A1, I will then use Excel to rebuild data into columns etc ( the same way I would do when importing a TXT file)

  • @kiranagarwal1335
    @kiranagarwal1335 4 ปีที่แล้ว +1

    use exact code like you...but constant showing error

    • @VBAA2Z
      @VBAA2Z  4 ปีที่แล้ว

      Try update file link. Maybe file path was not correct.

  • @vineetgupta1064
    @vineetgupta1064 4 ปีที่แล้ว

    I could not find the code from any of the links..anyone has code please?

    • @VBAA2Z
      @VBAA2Z  4 ปีที่แล้ว +2

      To promote code yourself, projects/codes downloads are not available. Please let me know if you're stuck / need help.

  • @Rafa_Silvaaaaaaa67
    @Rafa_Silvaaaaaaa67 2 ปีที่แล้ว +1

    👏👏👏

    • @VBAA2Z
      @VBAA2Z  2 ปีที่แล้ว

      thanks!

  • @mahaveerprajapat7094
    @mahaveerprajapat7094 ปีที่แล้ว +1

    Nice but data are not arranged so that i can identify.Thank You

    • @VBAA2Z
      @VBAA2Z  ปีที่แล้ว

      Ok. Thanks

  • @kiranagarwal1335
    @kiranagarwal1335 4 ปีที่แล้ว +1

    i can show you image

    • @VBAA2Z
      @VBAA2Z  4 ปีที่แล้ว

      Yes you can add image to Form using Forms Central / Acrobat.