Convert HTML To PDF - PDFcamp (PDF Writer)
+ DocConverter COM
|
A robust server-side application treatment, VeryPDF HTML to PDF Converter
provides you the simplest, most cost-effective strategy to convert HTML from
practically any present into secure, printable PDF files. No matter whether or
not altering HTML from a stream, a URL, or perhaps a static file, VeryPDF HTML
to PDF Converter is effective but flexible API affords you total deal with much
more than your PDF output, while a number of licensing options offer you
unsurpassed versatility in deployment.
Should you convert HTML tables it's tough to pick the appropriate dimension
together with the output PDF. VeryPDF HTML to PDF Converter has "Fit HTML Width
to the selected PDF-Page-Size" choice. It assures correct results for tables.
Altering to PDF you could should include your logo or other picture within the
route of the qualifications. It might be merely completed with VeryPDF HTML to
PDF Converter. PDF paperwork have attributes like Writer, Creator, Topic, Title.
You might incorporate them later on on on with PDF software. You may encrypt the
output PDF document getting a password using VeryPDF HTML to PDF Converter. In
addition to, you may make use of customer permissions (duplicate, modify, print,
and so forth.) to safeguard your PDF document from illegal use.
If you wish call DocConverter COM
from your ASP or PHP language, please by following steps to try,
1. Please install the PDFcamp Printer into your server,
2. Please install the full version of DocConverter COM into your server (the
trial version does popup a trial message box, this trial message box will block
the conversion in server side, please notice this matter),
3. If you need convert MS Office documents to PDF files, you need install the MS
Office application too,
4. Please make sure the "doc2pdf_service.exe" application is running, you can
run "install_as_exe.bat" or "install_as_service.bat" files to install
doc2pdf_service.exe into your system,
5. You can call HTML to PDF Converter from your ASP or PHP code now,
ASP code,
~~~~~~~~~~~~~~~~~~~
<%
set PdfCreator = Server.CreateObject("PdfOut.PdfCreator")
ConvertHTMLToPDF1 PdfCreator,"http://www.google.com","google001.pdf"
set PdfCreator = nothing
function ConvertHTMLToPDF1(byval PdfCreator, strHTMLFile, strPDFFile)
'The first method to create a PDF file from HTML file
strPDFFile = server.mappath(".") & "\" & strPDFFile
dim strCommandLine
strCommandLine = """" + strHTMLFile + """"
strCommandLine = strCommandLine + " "
strCommandLine = strCommandLine + """" + strPDFFile + """"
strCommandLine = strCommandLine + " "
strCommandLine = strCommandLine + """" + "paperType=6" + """"
Response.write "HTML To PDF Command Line1 is: " & strCommandLine & "<br>"
PdfCreator.Doc2PDFCommandLine(strCommandLine)
end function
%>
~~~~~~~~~~~~~~~~~~~
PHP code,
~~~~~~~~~~~~~~~~~~~
Example 1:
<?
$url = "http://10.0.0.52/html/form.php;
$path = "c:\\temp\\test.pdf";
$com = new COM("PdfOut.PdfCreator");
$com->html2PDF = $url;
$com->fileName = $path;
$com->Doc2PDFViaSocket();
?>
Example 2:
<?php
$PdfCreator =new COM("PdfOut.PdfCreator") or die("Cannot start PdfCreator");
$PdfCreator->Doc2PDFCommandLine(' "c:\input.doc" "c:\output.pdf" ');
$PdfCreator = null;
?>
Example 3:
<?php
$url = "http://10.0.0.52/html/form.php;
$path = "c:\\temp\\test.pdf";
$com = new COM("PdfOut.PdfCreator");
$com->Doc2PDFCommandLine("\"$url\" \"$path\" \"paperType=0,pageWidth=575,pageHeight=850,margin_left=10,margin_top=10,margin_right=10,margin_bottom=10,PrintHTMLBackground=yes,overwrite=yes\"");
?>
~~~~~~~~~~~~~~~~~~~
6. OK, if you encounter any problem during HTML to PDF Conversion, please feel
free to let us know.
Click here to learn more...
Home |
Products |
Downloads |
Support |
Links | Contact
Copyright © 2000- VeryPDF.com, Inc. All rights reserved.
Send comments about this site to the webmaster.