I did a CFDUMP on the varabies.voucher and copied and pasted it into an HTML 
document and the barcode shows up. What's interesting is that it won't work in 
a PDF, and I think that I know why. The dump code consists of all of the span 
tags that make up the barcode, so it's not actually an image, it's HTML 
formatting, but when creating the PDF it's not working right. Attached is a 
small sample:

<span style="border-right:1px solid; border-color: black; height: 
50px;margin-bottom:0px;margin-top:0px;"> and so on and so on until the barcode 
is created. 

So it seems that making a PDF, it does not know what to do with the SPAN tag. 
This requires some more digging


Bruce


On Sep 20, 2012, at 12:25 PM, Chad Gray <[email protected]> wrote:

> 
> This is a guess, because I have no experience with the custom tag to make the 
> barcode image, but you may want to save the content out at a variable first.  
> Then put it in the <cfdocument> tag.  This has always worked best for me.
> 
> 
> <cfsavecontent variable="voucher">
> 
>    <table width="900" border="0" cellspacing="1" cellpadding="1">
>      <tr>
>        <td width="420" align="left" valign="bottom"><img 
> src="Images/logo.png" /></td>
>        <td width="473" align="left" valign="middle" class="TEXTLEFT">4840 
> PERL EAST CIRCLE, 210 W. <span class="ORANGE">| </span>BOULDER <span 
> class="ORANGE">|</span> CO <span class="ORANGE">|</span> 80301</td>
> ....  etc
> 
> </cfsavecontent>
> 
> 
> <cfdocument format="PDF" filename="Voucher.pdf" overwrite="Yes" 
> localUrl="Yes">
> #variables. Voucher#
> </cfdocument>
> 
> 
> -----Original Message-----
> From: Bruce Sorge [mailto:[email protected]] 
> Sent: Thursday, September 20, 2012 1:03 PM
> To: cf-talk
> Subject: Issue with CF Barcode39
> 
> 
> Has anyone here used CFBARCODE? I am having a small issue with it.
> 
> Basically, I am creating a PDF using CFDOCUMENT and inside the PDF I am using 
> CF_Barcdode39 to insert a barcode into the document that will be emailed to a 
> customer. When I put the code into CFMAIL all works fine, images including 
> barcode are there. But because someone can get that emal and put it into a 
> word doc and change the barcode, they want to use a PDF instead. With the 
> PDF, the logo and signature images are fine. But the barcode will not insert 
> into the PDF and I really cannot figure out why. I have tried cfinclude as 
> well as just putting cf_barcode in the code as I did below. Since the barcode 
> is basically an image that is being created based on the actual barcode in 
> the database, I put it in an IMG tag but still get the nice little red x on 
> the document. Below is the code I am using. 
> 
> 
> 
> 
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:352690
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to