CoolUtils Logo
Welcome! Log In Create A New Profile

Advanced

HTMLConverterX with barcode font

Posted by mrbrightwork 
HTMLConverterX with barcode font
March 31, 2012 08:23AM
Hello,

I have fonts installed on my server from [www.barcodesinc.com] and I am having troubles figuring out how to get HTMLConverterX to embed the font into the destination PDF.

Is there a way to convert the HTML to PDF? I am open to options available from your other server-side products.

Thank you.
Ted

---
"\Program Files\TotalHTMLConverterX\HTMLConverterX.exe" barcode.html barcode.pdf

barcode.html file is (different div tags for different styles, just trying to figure out what will work):

<html>
<head>
<title>Barcode Font Test</title>
<style type="text/css" >
@font-face {font-family: bbff;
src: url("[servername]winking smiley;}
.barcode { font-family: "Free 3 of 9 Regular", verdana, calibri; font-size: 36pt; }
.barcodeX { font-family: "Free 3 of 9 Extended Regular", verdana, calibri; font-size: 36pt; }
.bbff1 { font-family:bbff; }
</style>
</head>
<body>
barcode: <div class="barcode">*574656*</div><br>
barcodeX: <div class="barcodeX">*574656*</div><br>
plain: <div >*574656*</div><br>
bbff1: <div class="bbff1">*574656*</div><br>
</body>
</html>
Re: HTMLConverterX with barcode font
April 01, 2012 08:58AM
Dear mrbrightwork,

Thank you for inquiry!

Please, try this version of the program: [www.coolutils.com]

Please, inform if everything is OK now.

--
Best regards,
Mary Thorton
CoolUtils Support
www.coolutils.com
support@CoolUtils.com
Re: HTMLConverterX with barcode font
April 01, 2012 11:54AM
Hi Mary,

Thank you for your response. It works great from a command prompt. Thank you!!!

"\Program Files\TotalHTMLConverterX\HTMLConverterX.exe" barcode.html barcode.pdf

Just for testing, I ran it as a vbscript and I got the error message below:

__barcode.vbs___
dim HC
set HC = CreateObject("HTMLConverter.HTMLConverterX"winking smiley
HC.Convert "c:\temp\barcode.html", "c:\temp\barcode.pdf", "-c pdf -po Portrait -DEC PA -ps Letter"
set HC = nothing

The error message refers to the HC.Convert line: C:\TEMP\barcode.vbs(3, 1) (null): Catastrophic failure
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: