set WshShell = wscript.CreateObject("Wscript.Shell")
WshShell.Run("program.exe " & "command line code")
https://php-xpdf.readthedocs.io/en/latest/
http://www.xpdfreader.com/support.html
{
"require": {
"monolog/monolog": "^1.25",
"php-console/php-console": "^3.1"
"php-xpdf/php-xpdf": "master"
}
}
https://github.com/alchemy-fr/PHP-XPDF
xpdf reader is one http://www.xpdfreader.com/support.html You an then do something like
To make it easier, there is a port using php https://php-xpdf.readthedocs.io/en/latest/
Open in new window
Also https://github.com/mgufrone/pdf-to-html that has required downloads that can be covered with composer.
Open in new window
There are other options for products that end up costing more money than it is worth. I have some projects that I ended up using http://www.pdfsharp.net/ and pdftk https://www.pdflabs.com/tools/pdftk-the-pdf-toolkit/
I would try the php-xpdf library first though. When you use it, first just create a pdf file using just a simple sentence. Then keep adding on. This will be helpful if your pdf is complex to extract. Sometimes there are errors that can stem from multiple options and starting off simple will help eliminate possibilities.