Doc Converter COM is developed for developers who have the needs to convert files of Microsoft Word, PowerPoint, Excel, JPG, PNG, GIF, HTML and others to PDF by script together with other application like VB, VC, C# etc.
PDFcamp Pro V1.8 or newer
Microsoft Windows 2000 and later systems.
Windows Internet Explorer 5.0 or newer
Microsoft Office 97 or newer
For Example,
Set PdfCreator = New PDFOUTLib.PdfCreator
PdfCreator.HTML2PDF = "C:\sample.html"
PdfCreator.FileName = "C:\sample.pdf"
PdfCreator.HeadersFooters = "off"
PdfCreator.paperType = 6 '//7 is A4 paper, 6 is A3 paper
PdfCreator.CreatePDF
While PdfCreator.StillRunning = 1
DoEvents
Call WaitMessage
Wend
Set PdfCreator = Nothing
Debug.Print "C:\sample.html -->C:\sample.pdf"
After create a PDF file and open it in Acrobat Reader software,
For Example,
Set PdfCreator = New PDFOUTLib.PdfCreator
PdfCreator.HTML2PDF = "C:\sample.html"
PdfCreator.FileName = "C:\sample.pdf"
PdfCreator.HeadersFooters = "off"
PdfCreator.paperType = 6 '//7 is A4 paper, 6 is A3 paper
PdfCreator.ViewPDF
While PdfCreator.StillRunning = 1
DoEvents
Call WaitMessage
Wend
Set PdfCreator = Nothing
Debug.Print "C:\sample.html -->C:\sample.pdf"
If you need to know more function examples, please check on our function list.
First, install it.
Second, call DocConverter COM from PHP code
Example :
<?php
$url = "http://www.verypdf.com";
$path = "C:\\test.pdf";
$com = new COM("PdfOut.PdfCreator");
$com->html2PDF = $url;
$com->fileName = $path;
$com->Doc2PDFViaSocket();
?>
If you need to know more usage about this COM, please read Doc Converter COM Manual.