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

Поділитися
Вставка
  • Опубліковано 16 жов 2024
  • Friendly tutorial to Automate PDF using real-world scenarios using VBA and PDF API.
    More resources: vbaa2z.blogspo...
    Subscribe, Like, and Comment. 🙏Thanks for watching.
    You can now support by buying any of the Projects or Source Code.
    📥Downloads: pamaitech.com/...
    👍 Support: paypal.me/pama...
    ✉️ Contact: contact@pamaitech.com
    📌What to watch next:
    Playlist: www.youtube.co...
    Videos: www.youtube.co...
    #VbaA2z

КОМЕНТАРІ • 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?

  • @worachatp.2506
    @worachatp.2506 9 місяців тому

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

  • @Wisui-zw4sq
    @Wisui-zw4sq Рік тому +1

    Wow, your works are amazing. Thank you.

    • @VBAA2Z
      @VBAA2Z  Рік тому

      Thank you very much!

  • @Imobajuda
    @Imobajuda 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.

  • @samukacostta
    @samukacostta 4 місяці тому +1

    Nice tutorial man, literaly saved me

    • @VBAA2Z
      @VBAA2Z  4 місяці тому

      Glad it helped!

  • @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

  • @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

  • @Champi-mu7nr
    @Champi-mu7nr Рік тому

    Wow! This amazing. Thanks to you Sir

    • @VBAA2Z
      @VBAA2Z  Рік тому

      You are most welcome

  • @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. ua-cam.com/video/v-uxpc86wrw/v-deo.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

  • @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.
      ua-cam.com/video/uc6palG76Y8/v-deo.html

  • @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.

  • @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

  • @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

  • @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)

  • @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.
      ua-cam.com/video/KoTuy92uboY/v-deo.html

  • @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 11 місяців тому

      Even i got the same error

  • @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.

  • @adrianb6193
    @adrianb6193 Рік тому +1

    Nice one!

    • @VBAA2Z
      @VBAA2Z  Рік тому

      Thank you! Cheers!

  • @serdarcavusoglu6761
    @serdarcavusoglu6761 Рік тому +1

    👏👏👏

  • @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..¿

  • @aathideva2918
    @aathideva2918 3 роки тому

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

    • @VBAA2Z
      @VBAA2Z  3 роки тому

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

  • @bondniko
    @bondniko 6 місяців тому

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

    • @VBAA2Z
      @VBAA2Z  6 місяців тому

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

  • @chanduchikky
    @chanduchikky Рік тому

    Awesome

  • @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

  • @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

  • @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
      ua-cam.com/video/uc6palG76Y8/v-deo.html

  • @sujoyinnovates
    @sujoyinnovates 11 місяців тому +1

    It is not working with Acrobat reader

    • @VBAA2Z
      @VBAA2Z  10 місяців тому

      Acrobat pro is needed

  • @mahaveerprajapat7094
    @mahaveerprajapat7094 Рік тому +1

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

  • @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.

  • @anandkajale8008
    @anandkajale8008 3 роки тому

    How to print horizontal

  • @kiranagarwal1335
    @kiranagarwal1335 4 роки тому +1

    i can show you image

    • @VBAA2Z
      @VBAA2Z  4 роки тому

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