Hey
I am new member in this forum, i will do my best efforts to be specifc and clear and respect the time of the members.I am a begginer in VBA and need your help.
in the last month i search for a solution of a VBA code that can retrieve information about pdf files and write that information into excel.
I need a vba code that can count pdf pages and write to excell for each pdf the file name and number of pages.
i have tried several vba codes-
None of the codes is perfect. of course sometimes the vba count the pages correctly, but there are alwayes mistakes with files.
Sometimes counting more pages than the real, sometimess less.
After couple of weeks i realized that the best to count pdf pages is a VBA that use third party application- for example the VBA code bellow using adobe acrobat proffesional-
It works perfect, counting the correct number of pages. No mistakes at all - but it is not free.....you need acrobat for that (not reader)
I need a free solution and not a VBA that use adobe acrobat.
I can think about 3 free main options but have no idea how to write code for them.
1 option to write a VBA thay willl use PDFtk, that will retrieve the information without opening the graphical interface
Second option is to write a vba that will use Pdfinfo
Third and last option is to write a vba code that use pdfsam also without really opening the interface- just insall pdfsam and write a vba that will use it for counting pages
Any other free solution will be perfect as well as long as the vba code can look at c:\tempand then write to excel cells 2 types of information:
In another words, a need a VBA that can do the job without "really" opening the the third party interface, and yet get the correct number of pdf pages.
you can read here why counting pdf pages without third party application is very tricky
Thanks in advance for your help
I am new member in this forum, i will do my best efforts to be specifc and clear and respect the time of the members.I am a begginer in VBA and need your help.
in the last month i search for a solution of a VBA code that can retrieve information about pdf files and write that information into excel.
I need a vba code that can count pdf pages and write to excell for each pdf the file name and number of pages.
i have tried several vba codes-
How to count the page numbers of Pdf files in Excel?
www.extendoffice.com
VBA Page Count
Hello Everyone, I have nearly 1500 Pdf files, Each have its own name. So, I have to Open the pdf and List the page numbers in Excel. So, I need a macro code to open the pdf and count the page numbers and post it into excel. Can i Get Any Help from you Guys, Krish.
www.mrexcel.com
None of the codes is perfect. of course sometimes the vba count the pages correctly, but there are alwayes mistakes with files.
Sometimes counting more pages than the real, sometimess less.
After couple of weeks i realized that the best to count pdf pages is a VBA that use third party application- for example the VBA code bellow using adobe acrobat proffesional-
Get page count of pdf files [Archive] - VBA Express Forum
Hi VB'ers :), Is it possible to get the page count of pdf files through vb code? Like the pdfs are saved in one folder and it will list their filenames and page count of each in a simple excel sheet? Please help I really need this one. Any help would be very much appreciated. Thanks a...
www.vbaexpress.com
I need a free solution and not a VBA that use adobe acrobat.
I can think about 3 free main options but have no idea how to write code for them.
1 option to write a VBA thay willl use PDFtk, that will retrieve the information without opening the graphical interface
Second option is to write a vba that will use Pdfinfo
Third and last option is to write a vba code that use pdfsam also without really opening the interface- just insall pdfsam and write a vba that will use it for counting pages
Any other free solution will be perfect as well as long as the vba code can look at c:\tempand then write to excel cells 2 types of information:
- The file name
- The number of pages
In another words, a need a VBA that can do the job without "really" opening the the third party interface, and yet get the correct number of pdf pages.
you can read here why counting pdf pages without third party application is very tricky
Thanks in advance for your help